Package org.ejml.data
Interface CMatrix
- All Superinterfaces:
Matrix,Serializable
- All Known Implementing Classes:
CMatrixD1,CMatrixRMaj
Interface for all complex 64 bit floating point rectangular matrices.
-
Method Summary
Modifier and TypeMethodDescriptionvoidget(int row, int col, Complex_F32 output) Returns the complex value of the matrix's elementintReturns the number of elements in the internal data arrayfloatgetImag(int row, int col) Returns the imaginary component of the matrix's element.floatgetReal(int row, int col) Returns the real component of the matrix's element.voidset(int row, int col, float real, float imaginary) Set's the complex value of the matrix's elementvoidsetImag(int row, int col, float val) Sets the imaginary component of the matrix's element.voidsetReal(int row, int col, float val) Sets the real component of the matrix's element.Methods inherited from interface org.ejml.data.Matrix
copy, create, createLike, getNumCols, getNumRows, getType, print, print, setTo, zero
-
Method Details
-
get
Returns the complex value of the matrix's element- Parameters:
row- Matrix element's row index..col- Matrix element's column index.output- Storage for the complex number
-
set
void set(int row, int col, float real, float imaginary) Set's the complex value of the matrix's element- Parameters:
row- Matrix element's row index..col- Matrix element's column index.real- The real componentimaginary- The imaginary component
-
getReal
float getReal(int row, int col) Returns the real component of the matrix's element.- Parameters:
row- Matrix element's row index..col- Matrix element's column index.- Returns:
- The specified element's value.
-
setReal
void setReal(int row, int col, float val) Sets the real component of the matrix's element.- Parameters:
row- Matrix element's row index..col- Matrix element's column index.val- The element's new value.
-
getImag
float getImag(int row, int col) Returns the imaginary component of the matrix's element.- Parameters:
row- Matrix element's row index..col- Matrix element's column index.- Returns:
- The specified element's value.
-
setImag
void setImag(int row, int col, float val) Sets the imaginary component of the matrix's element.- Parameters:
row- Matrix element's row index..col- Matrix element's column index.val- The element's new value.
-
getDataLength
int getDataLength()Returns the number of elements in the internal data array- Returns:
- Number of elements in the data array.
-