org.jscience.mathematics.algebraic.matrices
Class DoubleSymmetricMatrix
java.lang.Object
org.jscience.mathematics.algebraic.AbstractHypermatrix
org.jscience.mathematics.algebraic.AbstractMatrix
org.jscience.mathematics.algebraic.matrices.AbstractDoubleMatrix
org.jscience.mathematics.algebraic.matrices.AbstractDoubleSquareMatrix
org.jscience.mathematics.algebraic.matrices.DoubleSquareMatrix
org.jscience.mathematics.algebraic.matrices.DoubleSymmetricMatrix
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Algebra.Member, Ring.Member, AbelianGroup.Member, Hypermatrix, Matrix, Module.Member, VectorSpace.Member, SquareMatrix, Member
public class DoubleSymmetricMatrix
- extends DoubleSquareMatrix
- implements java.lang.Cloneable, java.io.Serializable
The DoubleSquareMatrix class provides an object for encapsulating square
matrices containing doubles.
- See Also:
- Serialized Form
|
Method Summary |
java.lang.Object |
clone()
Clone matrix into a new matrix. |
void |
setElement(int i,
int j,
double x)
Also sets the symmetric element. |
| Methods inherited from class org.jscience.mathematics.algebraic.matrices.DoubleSquareMatrix |
add, add, choleskyDecompose, det, directSum, equals, frobeniusNorm, getPrimitiveElement, infNorm, inverse, luDecompose, mapElements, multiply, multiply, multiply, negate, polarDecompose, qrDecompose, scalarDivide, scalarMultiply, scalarProduct, scalarProduct, setAllElements, singularValueDecompose, subtract, subtract, tensorProduct, toComplexMatrix, toIntegerMatrix, toPrimitiveArray, toString, trace, transpose |
| Methods inherited from class org.jscience.mathematics.algebraic.matrices.AbstractDoubleMatrix |
abs, add, directSum, equals, equals, getColumn, getElement, getMatrixAsColumns, getMatrixAsRows, getRow, getSet, getSubMatrix, hashCode, horizontalAxisSymmetry, mass, max, mean, min, multiply, multiply, read, reverse, scalarDivide, scalarMultiply, setColumn, setRow, setSubMatrix, subtract, tensorProduct, verticalAxisSymmetry |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
DoubleSymmetricMatrix
public DoubleSymmetricMatrix(int size)
- Constructs an empty matrix.
- Parameters:
size - the number of rows/columns.
DoubleSymmetricMatrix
public DoubleSymmetricMatrix(double[][] array)
- Constructs a matrix by wrapping an array.
- Parameters:
array - an assigned value.
DoubleSymmetricMatrix
public DoubleSymmetricMatrix(DoubleVector[] array)
- Constructs a matrix from an array of vectors (columns).
- Parameters:
array - an assigned value.
DoubleSymmetricMatrix
public DoubleSymmetricMatrix(DoubleSymmetricMatrix mat)
- Copy constructor.
- Parameters:
mat - an assigned value.
setElement
public void setElement(int i,
int j,
double x)
- Also sets the symmetric element.
- Overrides:
setElement in class DoubleSquareMatrix
- Parameters:
i - DOCUMENT ME!j - DOCUMENT ME!x - DOCUMENT ME!
clone
public java.lang.Object clone()
- Clone matrix into a new matrix.
- Overrides:
clone in class DoubleSquareMatrix
- Returns:
- the cloned matrix.