Interface Matrix

    • Method Detail

      • multiply

        Vector multiply​(Vector v)
        Right multiply this matrix, A, by a vector.
        Parameters:
        v - a vector
        Returns:
        Av, a vector
      • scaled

        Matrix scaled​(double c)
        Scale this matrix, A, by a constant.
        Parameters:
        c - a double
        Returns:
        cA
      • getRow

        Vector getRow​(int i)
               throws MatrixAccessException
        Get the specified row in the matrix as a vector.
        Parameters:
        i - the row index
        Returns:
        the vector A[i, ]
        Throws:
        MatrixAccessException - when i < 1, or when i > the number of rows
      • getColumn

        Vector getColumn​(int j)
                  throws MatrixAccessException
        Get the specified column in the matrix as a vector.
        Parameters:
        j - the column index
        Returns:
        a vector A[, j]
        Throws:
        MatrixAccessException - when j < 1, or when j > the number of columns
      • deepCopy

        Matrix deepCopy()
        Description copied from interface: DeepCopyable
        The implementation returns an instance created from this by the copy constructor of the class, or just this if the instance itself is immutable.
        Specified by:
        deepCopy in interface DeepCopyable
        Returns:
        an independent (deep) copy of the instance
      • toCSV

        default String toCSV()