|
PLaSK library
|
General simple matrix template. More...
#include <solvers/optical/modal/matrices.hpp>
Public Types | |
| typedef T | DataType |
Public Member Functions | |
| Matrix () | |
| Matrix (size_t m, size_t n) | |
| Matrix (size_t m, size_t n, T val) | |
| Matrix (const Matrix< T > &M) | |
| Matrix< T > & | operator= (const Matrix< T > &M) |
| Matrix (const MatrixDiagonal< T > &M) | |
| Matrix (size_t m, size_t n, T *existing_data) | |
| Matrix (size_t m, size_t n, std::initializer_list< T > data) | |
| ~Matrix () | |
| void | reset () |
| void | reset (size_t m, size_t n) |
| void | reset (size_t m, size_t n, T val) |
| void | reset (size_t m, size_t n, T *existing_data) |
| const T * | data () const |
| T * | data () |
| const T & | operator[] (size_t i) const |
| T & | operator[] (size_t i) |
| const T & | operator() (size_t m, size_t n) const |
| T & | operator() (size_t m, size_t n) |
| size_t | rows () const |
| size_t | cols () const |
| Matrix< T > | copy () const |
| void | copyto (Matrix< T > &dst) |
| Matrix< T > & | operator*= (T a) |
| Matrix< T > & | operator/= (T a) |
| bool | isnan () const |
| Check if the matrix contains any NaN. | |
| bool | empty () const |
| Check if the matrix has any data. | |
| T * | begin () const |
| T * | end () const |
Protected Member Functions | |
| void | dec_ref () |
| void | inc_ref () |
Protected Attributes | |
| size_t | r |
| size_t | c |
| T * | data_ |
| The data of the matrix. | |
| std::atomic< int > * | gc |
| the reference count for the garbage collector | |
General simple matrix template.
Definition at line 32 of file matrices.hpp.
| typedef T plask::optical::modal::Matrix< T >::DataType |
Definition at line 54 of file matrices.hpp.
|
inline |
Definition at line 56 of file matrices.hpp.
|
inline |
Definition at line 58 of file matrices.hpp.
|
inline |
Definition at line 63 of file matrices.hpp.
|
inline |
Definition at line 69 of file matrices.hpp.
|
inline |
Definition at line 80 of file matrices.hpp.
|
inline |
Definition at line 87 of file matrices.hpp.
|
inline |
Definition at line 91 of file matrices.hpp.
|
inline |
Definition at line 96 of file matrices.hpp.
|
inline |
Definition at line 191 of file matrices.hpp.
|
inline |
Definition at line 155 of file matrices.hpp.
|
inline |
Definition at line 157 of file matrices.hpp.
|
inline |
Definition at line 163 of file matrices.hpp.
|
inline |
Definition at line 132 of file matrices.hpp.
|
inline |
Definition at line 131 of file matrices.hpp.
|
inlineprotected |
Definition at line 39 of file matrices.hpp.
|
inline |
Check if the matrix has any data.
Definition at line 187 of file matrices.hpp.
|
inline |
Definition at line 195 of file matrices.hpp.
|
inlineprotected |
Definition at line 48 of file matrices.hpp.
|
inline |
Check if the matrix contains any NaN.
Definition at line 179 of file matrices.hpp.
|
inline |
Definition at line 148 of file matrices.hpp.
|
inline |
Definition at line 143 of file matrices.hpp.
|
inline |
Definition at line 169 of file matrices.hpp.
|
inline |
Definition at line 173 of file matrices.hpp.
|
inline |
Definition at line 73 of file matrices.hpp.
|
inline |
Definition at line 138 of file matrices.hpp.
|
inline |
Definition at line 134 of file matrices.hpp.
|
inline |
Definition at line 100 of file matrices.hpp.
|
inline |
Definition at line 107 of file matrices.hpp.
|
inline |
Definition at line 124 of file matrices.hpp.
|
inline |
Definition at line 115 of file matrices.hpp.
|
inline |
Definition at line 154 of file matrices.hpp.
|
protected |
Definition at line 34 of file matrices.hpp.
|
protected |
The data of the matrix.
Definition at line 36 of file matrices.hpp.
|
protected |
the reference count for the garbage collector
Definition at line 37 of file matrices.hpp.
|
protected |
Definition at line 34 of file matrices.hpp.