\n\n\n\nFloat64Matrix\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n
\n
\n
\n\n\n\n
\n
org.jscience.mathematics.vector
\n

## Class Float64Matrix

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
• \n\n
\n
• \n\n\n

### Method Detail

\n\n\n\n
\n
• \n

#### valueOf

\n
public static Float64Matrix valueOf(double[][] values)
\n
Returns a dense matrix from a 2-dimensional array of double\n values. The first dimension being the row and the second being the \n column.
\n
Parameters:
values - the array of double values.
\n
Returns:
the matrix having the specified elements.
\n
Throws:
\n
DimensionException - if rows have different length.
Float64Vector
\n
• \n
\n\n\n\n
\n
• \n

#### valueOf

\n
public static Float64Matrix valueOf(Float64Vector... rows)
\n
Returns a complex matrix holding the specified row vectors \n (column vectors if transposed).
\n
Parameters:
rows - the row vectors.
\n
Returns:
the matrix having the specified rows.
\n
Throws:
\n
DimensionException - if the rows do not have the same dimension.
\n
• \n
\n\n\n\n
\n
• \n

#### valueOf

\n
public static Float64Matrix valueOf(List<Float64Vector> rows)
\n
Returns a complex matrix holding the row vectors from the specified \n collection (column vectors if transposed).
\n
Parameters:
rows - the list of row vectors.
\n
Returns:
the matrix having the specified rows.
\n
Throws:
\n
DimensionException - if the rows do not have the same dimension.
\n
• \n
\n\n\n\n
\n
• \n

#### valueOf

\n
public static Float64Matrix valueOf(Matrix<Float64> that)
\n
Returns a complex matrix equivalent to the specified matrix.
\n
Parameters:
that - the matrix to convert.
\n
Returns:
that or a complex matrix holding the same elements\n as the specified matrix.
\n
• \n
\n\n\n\n
\n
• \n

#### getNumberOfRows

\n
public int getNumberOfRows()
\n
Description copied from class: Matrix
\n
Returns the number of rows m for this matrix.
\n
\n
Specified by:
\n
getNumberOfRows in class Matrix<Float64>
\n
Returns:
m, the number of rows.
\n
• \n
\n\n\n\n
\n
• \n

#### getNumberOfColumns

\n
public int getNumberOfColumns()
\n
Description copied from class: Matrix
\n
Returns the number of columns n for this matrix.
\n
\n
Specified by:
\n
getNumberOfColumns in class Matrix<Float64>
\n
Returns:
n, the number of columns.
\n
• \n
\n\n\n\n
\n
• \n

#### get

\n
public Float64 get(int i,\n          int j)
\n
Description copied from class: Matrix
\n
Returns a single element from this matrix.
\n
\n
Specified by:
\n
get in class Matrix<Float64>
\n
Parameters:
i - the row index (range [0..m[).
j - the column index (range [0..n[).
\n
Returns:
\n
• \n
\n\n\n\n
\n
• \n

#### getRow

\n
public Float64Vector getRow(int i)
\n
Description copied from class: Matrix
\n
Returns the row identified by the specified index in this matrix.
\n
\n
Specified by:
\n
getRow in class Matrix<Float64>
\n
Parameters:
i - the row index (range [0..m[).
\n
Returns:
the vector holding the specified row.
\n
• \n
\n\n\n\n
\n
• \n

#### getColumn

\n
public Float64Vector getColumn(int j)
\n
Description copied from class: Matrix
\n
Returns the column identified by the specified index in this matrix.
\n
\n
Specified by:
\n
getColumn in class Matrix<Float64>
\n
Parameters:
j - the column index (range [0..n[).
\n
Returns:
the vector holding the specified column.
\n
• \n
\n\n\n\n
\n
• \n

#### getDiagonal

\n
public Float64Vector getDiagonal()
\n
Description copied from class: Matrix
\n
Returns the diagonal vector.
\n
\n
Specified by:
\n
getDiagonal in class Matrix<Float64>
\n
Returns:
the vector holding the diagonal elements.
\n
• \n
\n\n\n\n\n\n\n\n\n\n\n\n
\n
• \n

#### minus

\n
public Float64Matrix minus(Matrix<Float64> that)
\n
Description copied from class: Matrix
\n
Returns the difference between this matrix and the one specified.
\n
\n
Overrides:
\n
minus in class Matrix<Float64>
\n
Parameters:
that - the matrix to be subtracted.
\n
Returns:
this - that.
\n
• \n
\n\n\n\n\n\n\n\n
\n
• \n

#### times

\n
public Float64Vector times(Vector<Float64> v)
\n
Description copied from class: Matrix
\n
Returns the product of this matrix by the specified vector.
\n
\n
Specified by:
\n
times in class Matrix<Float64>
\n
Parameters:
v - the vector.
\n
Returns:
this \xc2\xb7 v
\n
• \n
\n\n\n\n
\n
• \n

#### times

\n
public Float64Matrix times(Matrix<Float64> that)
\n
Description copied from class: Matrix
\n
Returns the product of this matrix with the one specified.
\n
\n
Specified by:
\n
times in interface Ring<Matrix<Float64>>
\n
Specified by:
\n
times in class Matrix<Float64>
\n
Parameters:
that - the matrix multiplier.
\n
Returns:
this \xc2\xb7 that.
\n
• \n
\n\n\n\n
\n
• \n

#### inverse

\n
public Float64Matrix inverse()
\n
Description copied from class: Matrix
\n
Returns the inverse of this matrix (must be square).
\n
\n
Specified by:
\n
inverse in class Matrix<Float64>
\n
Returns:
1 / this
\n
• \n
\n\n\n\n
\n
• \n

#### determinant

\n
public Float64 determinant()
\n
Description copied from class: Matrix
\n
Returns the determinant of this matrix.
\n
\n
Specified by:
\n
determinant in class Matrix<Float64>
\n
Returns:
this matrix determinant.
\n
• \n
\n\n\n\n
\n
• \n

#### transpose

\n
public Float64Matrix transpose()
\n
Description copied from class: Matrix
\n
Returns the transpose of this matrix.
\n
\n
Specified by:
\n
transpose in class Matrix<Float64>
\n
Returns:
A\'.
\n
• \n
\n\n\n\n
\n
• \n

#### cofactor

\n
public Float64 cofactor(int i,\n               int j)
\n
Description copied from class: Matrix
\n
Returns the cofactor of an element in this matrix. It is the value\n obtained by evaluating the determinant formed by the elements not in\n that particular row or column.
\n
\n
Specified by:
\n
cofactor in class Matrix<Float64>
\n
Parameters:
i - the row index.
j - the column index.
\n
Returns:
the cofactor of THIS[i,j].
\n
• \n
\n\n\n\n
\n
• \n

\n
\n
Description copied from class: Matrix
\n
Returns the adjoint of this matrix. It is obtained by replacing each\n element in this matrix with its cofactor and applying a + or - sign\n according (-1)**(i+j), and then finding the transpose of the resulting\n matrix.
\n
\n
Specified by:
\n
\n
Returns:
\n
• \n
\n\n\n\n\n\n\n\n
\n
• \n

#### vectorization

\n
public Float64Vector vectorization()
\n
Description copied from class: Matrix
\n
Returns the vectorization of this matrix. The vectorization of \n a matrix is the column vector obtain by stacking the columns of the\n matrix on top of one another. The default implementation returns \n a DenseVector.
\n
\n
Specified by:
\n
vectorization in class Matrix<Float64>
\n
Returns:
the vectorization of this matrix.
\n Wikipedia: Vectorization.
\n
• \n
\n\n\n\n
\n
• \n

#### copy

\n
public Float64Matrix copy()
\n
Description copied from class: Matrix
\n
Returns a copy of this matrix \n allocated \n by the calling thread (possibly on the stack).
\n
\n
Specified by:
\n
copy in interface javolution.lang.ValueType
\n
Specified by:
\n
copy in class Matrix<Float64>
\n
Returns:
an identical and independant copy of this matrix.
\n
• \n
\n
• \n
\n
• \n
\n
\n
\n\n\n
\n\n\n\n\n
\n
\n
\n\n\n