nec2++  1.7.0
Public Member Functions | List of all members
safe_matrix< T > Class Template Reference
Inheritance diagram for safe_matrix< T >:
safe_array< T >

Public Member Functions

 safe_matrix (int32_t _rows, int32_t _cols)
 
- Public Member Functions inherited from safe_array< T >
 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)
 
maxCoeff () const
 return the largest element of the array
 
minCoeff () const
 return the largest element of the array
 
sum (int64_t start_index, int64_t stop_index)
 return the sum of the specified elements in the array
 
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)
 

Additional Inherited Members

- Protected Member Functions inherited from safe_array< T >
 safe_array (const safe_array< T > &in_array, int64_t start_index, int64_t end_index, bool in_copy_data)
 Constructor only used to construct segment. More...
 
int64_t check (int64_t i) const
 
int64_t check (int32_t row, int32_t col) const
 
- Protected Attributes inherited from safe_array< T >
int64_t len_
 
int32_t rows_
 
int32_t cols_
 
int64_t resize_chunk_
 
T * data_
 
int64_t data_size_
 
bool own_data_
 

The documentation for this class was generated from the following file: