Package org.ejml.data
Interface ZMatrix
- All Superinterfaces:
Matrix,Serializable
- All Known Implementing Classes:
ZMatrixD1,ZMatrixRMaj
Interface for all complex 64 bit floating point rectangular matrices.
-
Method Summary
Modifier and TypeMethodDescriptionvoidget(int row, int col, Complex_F64 output) Returns the complex value of the matrix's elementintReturns the number of elements in the internal data arraydoublegetImag(int row, int col) Returns the imaginary component of the matrix's element.doublegetReal(int row, int col) Returns the real component of the matrix's element.voidset(int row, int col, double real, double imaginary) Set's the complex value of the matrix's elementvoidsetImag(int row, int col, double val) Sets the imaginary component of the matrix's element.voidsetReal(int row, int col, double 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, double real, double 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
double 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, double 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
double 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, double 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.
-