|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.matrix.complex.ComplexContainer | +--drasys.or.matrix.complex.Matrix | +--drasys.or.matrix.complex.ContiguousMatrix | +--drasys.or.matrix.complex.RowMajorMatrix
A dense contiguous row-major matrix of complex values. This storage format matches the 'C' language matrix format. The elements are store contiguously in a single java array. This matrix is efficient for numerical computing, especially row-wise computations. There is more information available about the internal storage format.
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
Inner classes inherited from class drasys.or.matrix.complex.ContiguousMatrix |
ContiguousMatrix.Sub |
Fields inherited from class drasys.or.matrix.complex.ComplexContainer |
_epsilon,
_globalEpsilon |
Constructor Summary | |
RowMajorMatrix(double[][] array)
Constructs a contiguous dense row-major matrix with the same number of rows as 'array'. |
|
RowMajorMatrix(double[][] real,
double[][] imag)
Constructs a contiguous dense row-major matrix with the same number of rows as 'real' and 'imag'. |
|
RowMajorMatrix(int sizeOfRows,
int sizeOfColumns)
Constructs a contiguous dense row-major matrix with an explicit size. |
|
RowMajorMatrix(int sizeOfRows,
int sizeOfColumns,
int capacityOfRows,
int capacityOfColumns)
Constructs a contiguous dense row-major matrix with an explicit size and capacity. |
|
RowMajorMatrix(MatrixI matrix)
Constructs a contiguous dense column-major matrix with the same number of rows and columns as 'matrix'. |
|
RowMajorMatrix(VectorI vector)
Constructs a square matrix with the 'vector' as the diagonal and zeros. |
Method Summary | |
void |
addColumn(VectorI vector)
Adds a new column and any non-null elements in vector to the end of the matrix . |
void |
addRow(VectorI vector)
Adds a new row and any non-null elements in vector to the end of the matrix . |
java.util.Enumeration |
columnElements(int column)
Returns an enumeration of the non-null elements in a column. |
Complex |
elementAt(int row,
int column)
Returns the value of an element by its row and column index. |
Complex |
elementAt(int row,
int column,
Complex results)
Returns the value of an element by its row and column index. |
java.util.Enumeration |
elements()
Returns an enumeration of the non-null elements in the matrix. |
double[][] |
getArray()
Returns a new two-dimensional array containing the values in matrix. |
int |
getColumnIncrement()
Returns the distance between corresponding elements in adjacent columns. |
int |
getOffset(int row,
int column)
Returns an element's offset into the value array. |
int |
getRowIncrement()
Returns the distance between corresponding elements in adjacent rows. |
boolean |
isColumnMajor()
Returns true if the matrix is column-major. |
boolean |
isRowMajor()
Returns true if the matrix is row-major. |
java.util.Enumeration |
rowElements(int row)
Returns an enumeration of the non-null elements in a row. |
void |
setCapacity(int capacityOfRows,
int capacityOfColumns)
Allocates memory so the matrix can hold this many rows and columns without reallocating memory. |
void |
setElementAt(int row,
int column,
ComplexI value)
Sets the value of an element by its row and column index. |
void |
setSize(int sizeOfRows,
int sizeOfColumns)
Sets the number of rows and columns in the matrix. |
Methods inherited from class drasys.or.matrix.complex.ContiguousMatrix |
capacityOfColumns,
capacityOfRows,
columnVector,
diagonalVector,
getValueArray,
isNull,
rowVector,
setElements,
sizeOfColumns,
sizeOfElements,
sizeOfRows,
sum,
sumOfSquaredDifferences,
sumOfSquares |
Methods inherited from class drasys.or.matrix.complex.Matrix |
equals,
equals,
setColumn,
setDiagonal,
setElements,
setRow,
sum,
sum,
sumOfSquaredDifferences,
sumOfSquaredDifferences,
sumOfSquares,
sumOfSquares,
toString |
Methods inherited from class drasys.or.matrix.complex.ComplexContainer |
equals,
equals,
getEpsilon,
getGlobalEpsilon,
setEpsilon,
setGlobalEpsilon |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public RowMajorMatrix(int sizeOfRows, int sizeOfColumns)
public RowMajorMatrix(int sizeOfRows, int sizeOfColumns, int capacityOfRows, int capacityOfColumns)
public RowMajorMatrix(double[][] array)
public RowMajorMatrix(double[][] real, double[][] imag)
public RowMajorMatrix(MatrixI matrix)
public RowMajorMatrix(VectorI vector)
Method Detail |
public int getOffset(int row, int column)
public int getRowIncrement()
public int getColumnIncrement()
public boolean isRowMajor()
public boolean isColumnMajor()
public void setSize(int sizeOfRows, int sizeOfColumns)
public void setCapacity(int capacityOfRows, int capacityOfColumns)
public void addRow(VectorI vector)
public void addColumn(VectorI vector)
public void setElementAt(int row, int column, ComplexI value)
public Complex elementAt(int row, int column)
public Complex elementAt(int row, int column, Complex results)
public double[][] getArray()
public java.util.Enumeration rowElements(int row)
public java.util.Enumeration columnElements(int column)
public java.util.Enumeration elements()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |