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 TypeMethodDescriptionvoid
get
(int row, int col, Complex_F32 output) Returns the complex value of the matrix's elementint
Returns the number of elements in the internal data arrayfloat
getImag
(int row, int col) Returns the imaginary component of the matrix's element.float
getReal
(int row, int col) Returns the real component of the matrix's element.void
set
(int row, int col, float real, float imaginary) Set's the complex value of the matrix's elementvoid
setImag
(int row, int col, float val) Sets the imaginary component of the matrix's element.void
setReal
(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.
-