public final class Float64Matrix extends Matrix<Float64>
This class represents an optimized matrix implementation
for 64 bits floating-point numbers.
Instances of this class can be created from Float64Vector,
either as rows or columns if the matrix is transposed. For example:[code]
Float64Vector
| Modifier and Type | Method and Description |
|---|---|
Float64Matrix |
adjoint()
Returns the adjoint of this matrix.
|
Float64 |
cofactor(int i,
int j)
Returns the cofactor of an element in this matrix.
|
Float64Matrix |
copy()
Returns a copy of this matrix
allocated
by the calling thread (possibly on the stack). |
Float64 |
determinant()
Returns the determinant of this matrix.
|
Float64 |
get(int i,
int j)
Returns a single element from this matrix.
|
Float64Vector |
getColumn(int j)
Returns the column identified by the specified index in this matrix.
|
Float64Vector |
getDiagonal()
Returns the diagonal vector.
|
int |
getNumberOfColumns()
Returns the number of columns
n for this matrix. |
int |
getNumberOfRows()
Returns the number of rows
m for this matrix. |
Float64Vector |
getRow(int i)
Returns the row identified by the specified index in this matrix.
|
Float64Matrix |
inverse()
Returns the inverse of this matrix (must be square).
|
Float64Matrix |
minus(Matrix<Float64> that)
Returns the difference between this matrix and the one specified.
|
Float64Matrix |
opposite()
Returns the negation of this matrix.
|
Float64Matrix |
plus(Matrix<Float64> that)
Returns the sum of this matrix with the one specified.
|
Float64Matrix |
tensor(Matrix<Float64> that)
Returns the linear algebraic matrix tensor product of this matrix
and another (Kronecker product).
|
Float64Matrix |
times(Float64 k)
Returns the product of this matrix by the specified factor.
|
Float64Matrix |
times(Matrix<Float64> that)
Returns the product of this matrix with the one specified.
|
Float64Vector |
times(Vector<Float64> v)
Returns the product of this matrix by the specified vector.
|
Float64Matrix |
transpose()
Returns the transpose of this matrix.
|
static Float64Matrix |
valueOf(double[][] values)
Returns a dense matrix from a 2-dimensional array of
double
values. |
static Float64Matrix |
valueOf(Float64Vector... rows)
Returns a complex matrix holding the specified row vectors
(column vectors if
transposed). |
static Float64Matrix |
valueOf(List<Float64Vector> rows)
Returns a complex matrix holding the row vectors from the specified
collection (column vectors if
transposed). |
static Float64Matrix |
valueOf(Matrix<Float64> that)
Returns a complex matrix equivalent to the specified matrix.
|
Float64Vector |
vectorization()
Returns the vectorization of this matrix.
|
public static Float64Matrix valueOf(double[][] values)
double
values. The first dimension being the row and the second being the
column.values - the array of double values.DimensionException - if rows have different length.Float64Vectorpublic static Float64Matrix valueOf(Float64Vector... rows)
transposed).rows - the row vectors.DimensionException - if the rows do not have the same dimension.public static Float64Matrix valueOf(List<Float64Vector> rows)
transposed).rows - the list of row vectors.DimensionException - if the rows do not have the same dimension.public static Float64Matrix valueOf(Matrix<Float64> that)
that - the matrix to convert.that or a complex matrix holding the same elements
as the specified matrix.public int getNumberOfRows()
Matrixm for this matrix.getNumberOfRows in class Matrix<Float64>public int getNumberOfColumns()
Matrixn for this matrix.getNumberOfColumns in class Matrix<Float64>public Float64 get(int i, int j)
Matrixpublic Float64Vector getRow(int i)
Matrixpublic Float64Vector getColumn(int j)
Matrixpublic Float64Vector getDiagonal()
MatrixgetDiagonal in class Matrix<Float64>public Float64Matrix opposite()
Matrixpublic Float64Matrix plus(Matrix<Float64> that)
Matrixpublic Float64Matrix minus(Matrix<Float64> that)
Matrixpublic Float64Matrix times(Float64 k)
Matrixpublic Float64Vector times(Vector<Float64> v)
Matrixpublic Float64Matrix times(Matrix<Float64> that)
Matrixpublic Float64Matrix inverse()
Matrixpublic Float64 determinant()
Matrixdeterminant in class Matrix<Float64>public Float64Matrix transpose()
Matrixpublic Float64 cofactor(int i, int j)
Matrixpublic Float64Matrix adjoint()
Matrixpublic Float64Matrix tensor(Matrix<Float64> that)
MatrixDenseMatrix.tensor in class Matrix<Float64>that - the second matrix.this ⊗ thatpublic Float64Vector vectorization()
MatrixDenseVector.vectorization in class Matrix<Float64>public Float64Matrix copy()
Matrixallocated
by the calling thread (possibly on the stack).