|
PLaSK library
|
General simple diagonal matrix template. More...
#include <solvers/optical/modal/matrices.hpp>
Public Types | |
| typedef T | DataType |
Public Member Functions | |
| MatrixDiagonal () | |
| MatrixDiagonal (size_t n) | |
| MatrixDiagonal (size_t n, T val) | |
| MatrixDiagonal (const MatrixDiagonal< T > &M) | |
| MatrixDiagonal< T > & | operator= (const MatrixDiagonal< T > &M) |
| ~MatrixDiagonal () | |
| void | reset () |
| void | reset (size_t n) |
| void | reset (size_t n, T val) |
| const T * | data () const |
| T * | data () |
| const T & | operator[] (size_t n) const |
| T & | operator[] (size_t n) |
| const T & | operator() (size_t m, size_t n) const |
| T & | operator() (size_t m, size_t n) |
| size_t | size () const |
| MatrixDiagonal< T > | copy () const |
| MatrixDiagonal< T > & | operator*= (T a) |
| MatrixDiagonal< 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 | siz |
| T * | data_ |
| std::atomic< int > * | gc |
General simple diagonal matrix template.
Definition at line 203 of file matrices.hpp.
| typedef T plask::optical::modal::MatrixDiagonal< T >::DataType |
Definition at line 225 of file matrices.hpp.
|
inline |
Definition at line 227 of file matrices.hpp.
|
inline |
Definition at line 229 of file matrices.hpp.
|
inline |
Definition at line 233 of file matrices.hpp.
|
inline |
Definition at line 238 of file matrices.hpp.
|
inline |
Definition at line 249 of file matrices.hpp.
|
inline |
Definition at line 324 of file matrices.hpp.
|
inline |
Definition at line 303 of file matrices.hpp.
|
inline |
Definition at line 278 of file matrices.hpp.
|
inline |
Definition at line 277 of file matrices.hpp.
|
inlineprotected |
Definition at line 210 of file matrices.hpp.
|
inline |
Check if the matrix has any data.
Definition at line 320 of file matrices.hpp.
|
inline |
Definition at line 328 of file matrices.hpp.
|
inlineprotected |
Definition at line 219 of file matrices.hpp.
|
inline |
Check if the matrix contains any NaN.
Definition at line 313 of file matrices.hpp.
|
inline |
Definition at line 294 of file matrices.hpp.
|
inline |
Definition at line 289 of file matrices.hpp.
|
inline |
Definition at line 309 of file matrices.hpp.
|
inline |
Definition at line 310 of file matrices.hpp.
|
inline |
Definition at line 242 of file matrices.hpp.
|
inline |
Definition at line 284 of file matrices.hpp.
|
inline |
Definition at line 280 of file matrices.hpp.
|
inline |
Definition at line 253 of file matrices.hpp.
|
inline |
Definition at line 260 of file matrices.hpp.
|
inline |
Definition at line 268 of file matrices.hpp.
|
inline |
Definition at line 301 of file matrices.hpp.
|
protected |
Definition at line 207 of file matrices.hpp.
|
protected |
Definition at line 208 of file matrices.hpp.
|
protected |
Definition at line 205 of file matrices.hpp.