|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavolution.context.RealtimeObject
org.jscience.mathematics.vectors.Matrix<Float64>
org.jscience.mathematics.vectors.Float64Matrix
public final class Float64Matrix
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:
Float64Vector<Rational> column0 = Float64Vector.valueOf(...);
Float64Vector<Rational> column1 = Float64Vector.valueOf(...);
Float64Matrix<Rational> M = Float64Matrix.valueOf(column0, column1).transpose();
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javolution.context.RealtimeObject |
|---|
RealtimeObject.Factory<T extends RealtimeObject> |
| Nested classes/interfaces inherited from interface javolution.context.Realtime |
|---|
Realtime.ObjectSpace |
| Field Summary |
|---|
| Fields inherited from class org.jscience.mathematics.vectors.Matrix |
|---|
XML |
| Method Summary | |
|---|---|
Float64Matrix |
adjoint()
Returns the adjoint of this matrix. |
Float64 |
cofactor(int i,
int j)
Returns the cofactor of an element in this matrix. |
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. |
boolean |
move(Realtime.ObjectSpace os)
|
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(java.util.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. |
| Methods inherited from class org.jscience.mathematics.vectors.Matrix |
|---|
divide, equals, equals, hashCode, isSquare, pow, pseudoInverse, solve, solve, toText, trace, valueOf, valueOf, valueOf |
| Methods inherited from class javolution.context.RealtimeObject |
|---|
export, isLocal, moveHeap, preserve, toString, unpreserve |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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(java.util.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)
Matrix
get in class Matrix<Float64>i - the row index (range [0..m[).j - the column index (range [0..n[).
public Float64Vector getRow(int i)
Matrix
getRow in class Matrix<Float64>i - the row index (range [0..m[).
public Float64Vector getColumn(int j)
Matrix
getColumn in class Matrix<Float64>j - the column index (range [0..n[).
public Float64Vector getDiagonal()
Matrix
getDiagonal in class Matrix<Float64>public Float64Matrix opposite()
Matrix
opposite in interface GroupAdditive<Matrix<Float64>>opposite in class Matrix<Float64>-this.public Float64Matrix plus(Matrix<Float64> that)
Matrix
plus in interface GroupAdditive<Matrix<Float64>>plus in class Matrix<Float64>that - the matrix to be added.
this + that.public Float64Matrix minus(Matrix<Float64> that)
Matrix
minus in class Matrix<Float64>that - the matrix to be subtracted.
this - that.public Float64Matrix times(Float64 k)
Matrix
times in interface VectorSpace<Matrix<Float64>,Float64>times in class Matrix<Float64>k - the coefficient multiplier.
this · kpublic Float64Vector times(Vector<Float64> v)
Matrix
times in class Matrix<Float64>v - the vector.
this · vpublic Float64Matrix times(Matrix<Float64> that)
Matrix
times in interface Ring<Matrix<Float64>>times in class Matrix<Float64>that - the matrix multiplier.
this · that.public Float64Matrix inverse()
Matrix
inverse in class Matrix<Float64>1 / thispublic Float64 determinant()
Matrix
determinant in class Matrix<Float64>public Float64Matrix transpose()
Matrix
transpose in class Matrix<Float64>A'.
public Float64 cofactor(int i,
int j)
Matrix
cofactor in class Matrix<Float64>i - the row index.j - the column index.
THIS[i,j].public Float64Matrix adjoint()
Matrix
adjoint in class Matrix<Float64>public 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 boolean move(Realtime.ObjectSpace os)
move in interface Realtimemove in class RealtimeObject
|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||