|
MSpin-JCoupling
2.1
|
monodimensional dynamically allocated array More...
#include <mathtools.h>
Public Member Functions | |
| D1Array () | |
| D1Array (size_t i) | |
| D1Array (size_t i, const X &x) | |
| D1Array (const D1Array &x) | |
| void | Initialize (size_t i) |
| void | Initialize (size_t i, const X &x) |
| ~D1Array () | |
| void | Clear () |
| X & | operator() (size_t i) |
| const X & | operator() (size_t i) const |
| operator X* () | |
| operator const X * () const | |
| D1Array & | operator= (const D1Array &x) |
| void | operator*= (const X &x) |
| void | operator/= (const X &x) |
| size_t | size () const |
monodimensional dynamically allocated array
abstraction of memory-contiguous dyanamically allocated monodimensional arrays
|
inline |
Build empty array
|
inlineexplicit |
Build an array of size i and undefined values
| magnes::D1Array< X >::D1Array | ( | size_t | i, |
| const X & | x | ||
| ) |
Build an array of size i, with an x value for all elements
| magnes::D1Array< X >::D1Array | ( | const D1Array< X > & | x | ) |
copy constructor
|
inline |
destructor all date are deleted from the heap
|
inline |
resize an existing array to size i, all values are undefined and data are lost
| void magnes::D1Array< X >::Initialize | ( | size_t | i, |
| const X & | x | ||
| ) |
resize an existing array to size i, all values are set to x and previous data are deleted
|
inline |
casting operator to const X*, allow easy pass to math libraries
|
inline |
casting operator to X*, allow easy pass to math libraries
| X & magnes::D1Array< X >::operator() | ( | size_t | i | ) |
| const X & magnes::D1Array< X >::operator() | ( | size_t | i | ) | const |
| void magnes::D1Array< X >::operator*= | ( | const X & | x | ) |
multiply by scalar x
| void magnes::D1Array< X >::operator/= | ( | const X & | x | ) |
divide by scalar x
| D1Array< X > & magnes::D1Array< X >::operator= | ( | const D1Array< X > & | x | ) |
asignment operator
|
inline |
Referenced by magnes::D1Array< double >::D1Array(), magnes::Eigen(), magnes::operator*(), magnes::D1Array< double >::operator=(), and magnes::D2Array< X >::Trace().
1.8.12