MatrixNxM< TYPE > Class Template Reference Math Library
#include <matrix_nxm.h>
General n x m matrix.
Public Types |
|
| using | ValueType = TYPE |
公共成员函数 |
|
| 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=nullptr) const |
| MAXON_OPERATOR_EQUALITY_HASHCODE ( MatrixNxM , _xcnt , _ycnt , _arr ) | |
私有成员函数 |
|
| 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.
| MatrixNxM | ( | MatrixNxM < TYPE > && | src | ) |
|
private |
| MAXON_OPERATOR_MOVE_ASSIGNMENT | ( | MatrixNxM < TYPE > | ) |
| Result <void> Resize | ( | Int | new_xcnt , |
| Int | new_ycnt | ||
| ) |
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 |
| Result <void> CopyFrom | ( | const MatrixNxM < TYPE > & | src | ) |
Copy matrix elements from src matrix. The number of rows and columns are resized if necessary.
| [in] | src | source matrix |
| TYPE& operator() | ( | Int | x , |
| Int | y | ||
| ) |
Operator to access a matrix element.
| [in] | x | column |
| [in] | y | row |
| const TYPE& operator() | ( | const Int | x , |
| const Int | y | ||
| ) | const |
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
=
nullptr
|
) | const |
Returns a readable string of the content.
| [in] | formatStatement | Nullptr or additional formatting instruction. See also Formatting Floating point values . |
| MAXON_OPERATOR_EQUALITY_HASHCODE | ( | MatrixNxM < TYPE > | , |
| _xcnt | , | ||
| _ycnt | , | ||
| _arr | |||
| ) |
|
private |
|
private |
|
private |