#include <matrix_nxm.h>
General n x m matrix.
Public Types | |
| using | ValueType = TYPE | 
Public Member Functions | |
| MatrixNxM () | |
| MatrixNxM (MatrixNxM &&src) | |
| MAXON_OPERATOR_MOVE_ASSIGNMENT (MatrixNxM) | |
| Result< void > | Resize (Int new_xcnt, Int new_ycnt) | 
| Result< void > | CopyFrom (const MatrixNxM &src) | 
| TYPE & | operator() (Int x, Int y) | 
| const TYPE & | operator() (const Int x, const Int y) const | 
| Int | GetXCount () const | 
| Int | GetYCount () const | 
| Result< void > | ShiftMatrix () | 
| String | ToString (const FormatStatement *formatStatement) const | 
| MAXON_OPERATOR_EQUALITY_HASHCODE (MatrixNxM, _xcnt, _ycnt, _arr) | |
Private Member Functions | |
| MAXON_DISALLOW_COPY_AND_ASSIGN (MatrixNxM) | |
Private Attributes | |
| BaseArray< TYPE > | _arr | 
| Int | _xcnt | 
| Int | _ycnt | 
| using ValueType = TYPE | 
| MatrixNxM | ( | ) | 
Creates a matrix with no rows or columns.
      
  | 
  private | 
| MAXON_OPERATOR_MOVE_ASSIGNMENT | ( | MatrixNxM< TYPE > | ) | 
Resizes the matrix to contain new_xcnt*new_ycnt elements. If new_xcnt or new_ycnt differ from the existing values the internal array is expanded.
| [in] | new_xcnt | new number of columns | 
| [in] | new_ycnt | new number of rows | 
Copy matrix elements from src matrix. The number of rows and columns are resized if necessary.
| [in] | src | source matrix | 
Operator to access a matrix element.
| [in] | x | column | 
| [in] | y | row | 
Operator to access a matrix element.
| [in] | x | column | 
| [in] | y | row | 
| Int GetXCount | ( | ) | const | 
Get number of columns.
| Int GetYCount | ( | ) | const | 
Get number of rows.
| Result<void> ShiftMatrix | ( | ) | 
This function is especially useful for dealing with FFT transformed data Note: If either number of rows or columns are not a multiple of 2 you get an error.
| String ToString | ( | const FormatStatement * | formatStatement | ) | const | 
Returns a readable string of the content.
| [in] | formatStatement | Nullptr or additional formatting instruction. See also format_float. | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |