|
| safe_array (int64_t in_size) |
|
| safe_array (const safe_array< T > &in_array) |
|
int64_t | size () const |
|
int32_t | rows () const |
|
int32_t | cols () const |
|
int64_t | capacity () const |
|
void | resize (int32_t n_rows, int32_t n_cols) |
|
void | copy (const safe_array< T > &in_array) |
|
void | resize (int64_t new_length) |
|
T | maxCoeff () const |
| return the largest element of the array
|
|
T | minCoeff () const |
| return the largest element of the array
|
|
T | sum (int64_t start_index, int64_t stop_index) |
| return the sum of the specified elements in the array
|
|
T | sum () |
| return the sum of all elements in the array
|
|
void | fill (int64_t start, int64_t N, const T &x) |
|
void | setConstant (const T &x) |
|
void | set_col_major (int32_t col_dim, int32_t col, int32_t row, const T &val) |
| Set an element assuming that the data is stored in column major form.
|
|
T & | get_col_major (int32_t col_dim, int32_t col, int32_t row) |
| Get an element assuming that the data is stored in column major form.
|
|
T & | getItem (int32_t row, int32_t col) |
|
T & | operator() (int32_t row, int32_t col) |
|
const T & | operator() (int32_t row, int32_t col) const |
|
T & | getItem (int64_t i) |
|
const T & | operator[] (int64_t i) const |
|
T & | operator[] (int64_t i) |
|
safe_array< T > | segment (int64_t start_index, int64_t end_index) |
| Return a representation of a subset of this array. More...
|
|
safe_array< T > | eigen_segment (int64_t start_index, int64_t n) |
| Return a representation of a subset of this array. More...
|
|
T * | data () const |
|
safe_array< T > & | operator= (const safe_array< T > &in_array) |
|
template<typename T>
class safe_array< T >
A Safe Array class for nec2++ that performs bounds checking.
Bounds checking is done if the macro NEC_ERROR_CHECK is defined at compile time.
This class also includes some utility functions for handling common vector operations.