Returns the addition of this matrix and another.
Parameters: m - a double matrix exception: MatrixDimensionException - If the matrices are different sizes.
Returns the addition of this matrix and another.
Parameters: m - a double sparse matrix exception: MatrixDimensionException - If the matrices are different sizes.
Returns an element of the matrix.
Parameters: i - row index of the element Parameters: j - column index of the element exception: MatrixDimensionException - If attempting to access an invalid element.
Returns the multiplication of a vector by this matrix.
Parameters: v - a double vector exception: DimensionException - If the matrix and vector are incompatible.
Returns the multiplication of this matrix and another.
Parameters: m - a double matrix exception: MatrixDimensionException - If the matrices are incompatible.
Returns the multiplication of this matrix and another.
Parameters: m - a double sparse matrix exception: MatrixDimensionException - If the matrices are incompatible.
Returns the scalar product of this matrix and another.
Parameters: m - a double matrix. exception: MatrixDimensionException - If the matrices are different sizes.
public void setElement(int i, int j, double x)(Code)
Sets the value of an element of the matrix.
Parameters: i - row index of the element Parameters: j - column index of the element Parameters: x - a number exception: MatrixDimensionException - If attempting to access an invalid element.
Returns the subtraction of this matrix and another.
Parameters: m - a double matrix exception: MatrixDimensionException - If the matrices are different sizes.
Returns the addition of this matrix and another.
Parameters: m - a double sparse matrix exception: MatrixDimensionException - If the matrices are different sizes.