drasys.or.matrix
Class DenseMatrix
java.lang.Object
|
+--drasys.or.matrix.RealContainer
|
+--drasys.or.matrix.Matrix
|
+--drasys.or.matrix.ContiguousMatrix
|
+--drasys.or.matrix.RowMajorMatrix
|
+--drasys.or.matrix.DenseMatrix
- public class DenseMatrix
- extends RowMajorMatrix
Convenience class defining a general purpose dense matrix.
References:
Matrix Computations (Johns Hopkins Studies in the Mathematical Sciences)
Gene H. Golub, Charles F. Van Loan (Contributor) / Paperback / Published 1996
Numerical Recipes in C : The Art of Scientific Computing
William H. Press, et al / Hardcover / Published 1993
Parallel Algorithms for Matrix Computations
K.A. Gallivan / Paperback / Published 1990
- See Also:
- Serialized Form
Constructor Summary |
DenseMatrix(double[][] array)
Constructs a dense matrix with the same number of rows as 'array'. |
DenseMatrix(double[][] array,
double epsilon)
Constructs a dense matrix with the same number of rows as 'array'. |
DenseMatrix(int sizeOfRows,
int sizeOfColumns)
Constructs a dense matrix with an explicit size. |
DenseMatrix(int sizeOfRows,
int sizeOfColumns,
int capacityOfRows,
int capacityOfColumns)
Constructs a dense matrix with an explicit size and capacity. |
DenseMatrix(MatrixI matrix)
Constructs a dense matrix with the same number of rows
and columns as 'matrix'. |
DenseMatrix(VectorI vector)
Constructs a square dense matrix with the 'vector' as the diagonal and zeros. |
Methods inherited from class drasys.or.matrix.RowMajorMatrix |
addColumn,
addRow,
elementAt,
getArray,
getColumnIncrement,
getOffset,
getRowIncrement,
isColumnMajor,
isRowMajor,
setCapacity,
setElementAt,
setSize |
Methods inherited from class drasys.or.matrix.ContiguousMatrix |
capacityOfColumns,
capacityOfRows,
columnElements,
columnVector,
diagonalVector,
elements,
getValueArray,
isNull,
rowElements,
rowVector,
setElements,
sizeOfColumns,
sizeOfElements,
sizeOfRows,
submatrix,
submatrix,
sum,
sumOfSquaredDifferences,
sumOfSquares |
Methods inherited from class drasys.or.matrix.Matrix |
equals,
equals,
setColumn,
setDiagonal,
setElements,
setRow,
sum,
sum,
sumOfSquaredDifferences,
sumOfSquaredDifferences,
sumOfSquares,
sumOfSquares,
toString |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DenseMatrix
public DenseMatrix(int sizeOfRows,
int sizeOfColumns)
- Constructs a dense matrix with an explicit size.
All the elements are initialized to zero.
DenseMatrix
public DenseMatrix(int sizeOfRows,
int sizeOfColumns,
int capacityOfRows,
int capacityOfColumns)
- Constructs a dense matrix with an explicit size and capacity.
All the elements are initialized to zero.
DenseMatrix
public DenseMatrix(double[][] array)
- Constructs a dense matrix with the same number of rows as 'array'.
The number of columns will match the longest row in 'array'.
Some elements can be missing from 'array' either because a row is null or too short.
These elements will be set to zero in the matrix.
DenseMatrix
public DenseMatrix(double[][] array,
double epsilon)
- Constructs a dense matrix with the same number of rows as 'array'.
The number of columns will match the longest row in 'array'.
Some elements can be missing from 'array' either because a row is null or too short.
These elements will be set to zero in the matrix.
DenseMatrix
public DenseMatrix(MatrixI matrix)
- Constructs a dense matrix with the same number of rows
and columns as 'matrix'.
If 'matrix' is sparse, the null elements will be set to zero in the new matrix.
DenseMatrix
public DenseMatrix(VectorI vector)
- Constructs a square dense matrix with the 'vector' as the diagonal and zeros.
If 'vector' is sparse, the null elements will be set to zero in the diagonal.
Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com