public class CDenseMatrix64F extends CD1Matrix64F
data, numCols, numRows| Constructor and Description |
|---|
CDenseMatrix64F(CDenseMatrix64F original)
Creates a new
CDenseMatrix64F which is a copy of the passed in matrix. |
CDenseMatrix64F(double[][] data)
Creates a matrix with the values and shape defined by the 2D array 'data'.
|
CDenseMatrix64F(int numRows,
int numCols)
Creates a new matrix with the specified number of rows and columns
|
CDenseMatrix64F(int numRows,
int numCols,
boolean rowMajor,
double... data) |
| Modifier and Type | Method and Description |
|---|---|
CDenseMatrix64F |
copy()
Creates an exact copy of the matrix
|
void |
get(int row,
int col,
Complex64F output)
Returns the complex value of the matrix's element
|
int |
getDataLength()
Returns the number of elements in the internal data array
|
double |
getImaginary(int row,
int col)
Returns the imaginary component of the matrix's element.
|
int |
getIndex(int row,
int col)
Returns the internal array index for the specified row and column.
|
double |
getReal(int row,
int col)
Returns the real component of the matrix's element.
|
int |
getRowStride()
Number of array elements in the matrix's row.
|
void |
print()
Prints the matrix to standard out.
|
void |
reshape(int numRows,
int numCols)
Equivalent to invoking reshape(numRows,numCols,false);
|
void |
set(CDenseMatrix64F original) |
void |
set(int numRows,
int numCols,
boolean rowMajor,
double... data)
Sets this matrix equal to the matrix encoded in the array.
|
void |
set(int row,
int col,
double real,
double imaginary)
Set's the complex value of the matrix's element
|
void |
set(Matrix original)
Sets this matrix to be identical to the 'original' matrix passed in.
|
void |
setImaginary(int row,
int col,
double val)
Sets the imaginary component of the matrix's element.
|
void |
setReal(int row,
int col,
double val)
Sets the real component of the matrix's element.
|
getData, getNumCols, getNumRows, set, setData, setNumCols, setNumRowspublic CDenseMatrix64F(double[][] data)
Creates a matrix with the values and shape defined by the 2D array 'data'.
It is assumed that 'data' has a row-major formatting:
data[ row ][ column ]
data - 2D array representation of the matrix. Not modified.public CDenseMatrix64F(int numRows,
int numCols,
boolean rowMajor,
double... data)
public CDenseMatrix64F(CDenseMatrix64F original)
CDenseMatrix64F which is a copy of the passed in matrix.original - Matrix which is to be copiedpublic CDenseMatrix64F(int numRows,
int numCols)
numRows - number of rowsnumCols - number of columnspublic int getIndex(int row,
int col)
CD1Matrix64FgetIndex in class CD1Matrix64Frow - Row index.col - Column index.public void reshape(int numRows,
int numCols)
ReshapeMatrixnumRows - The new number of rows in the matrix.numCols - The new number of columns in the matrix.public void get(int row,
int col,
Complex64F output)
ComplexMatrix64Frow - Matrix element's row index..col - Matrix element's column index.output - Storage for the complex numberpublic void set(int row,
int col,
double real,
double imaginary)
ComplexMatrix64Frow - Matrix element's row index..col - Matrix element's column index.real - The real componentimaginary - The imaginary componentpublic double getReal(int row,
int col)
ComplexMatrix64Frow - Matrix element's row index..col - Matrix element's column index.public void setReal(int row,
int col,
double val)
ComplexMatrix64Frow - Matrix element's row index..col - Matrix element's column index.val - The element's new value.public double getImaginary(int row,
int col)
ComplexMatrix64Frow - Matrix element's row index..col - Matrix element's column index.public void setImaginary(int row,
int col,
double val)
ComplexMatrix64Frow - Matrix element's row index..col - Matrix element's column index.val - The element's new value.public int getDataLength()
ComplexMatrix64Fpublic void set(CDenseMatrix64F original)
public CDenseMatrix64F copy()
Matrixpublic void set(Matrix original)
Matrixpublic void print()
Matrixpublic int getRowStride()
public void set(int numRows,
int numCols,
boolean rowMajor,
double... data)
numRows - The number of rows.numCols - The number of columns.rowMajor - If the array is encoded in a row-major or a column-major format.data - The formatted 1D array. Not modified.