|
| virtual void | initialize (N rows, N columns)=0 |
| | Initialize matrix with rows and columns. More...
|
| |
| virtual void | copy (const RCMatrix_interface< N, T > *m)=0 |
| | Copy the input matrix. More...
|
| |
| virtual void | clear (N row)=0 |
| | Clear the entire row with zeros. More...
|
| |
| virtual T | get (N row, N column) const =0 |
| | Get the element value at the row and the column. More...
|
| |
| virtual void | add_to_element (N row, N column, T increment_value)=0 |
| | Add a value to an element. More...
|
| |
| virtual void | clear_element (N row, N column)=0 |
| | Clear out an element with zero. More...
|
| |
| virtual void | interruptible_for_each (N row, std::function< bool(N column, T &value)> func)=0 |
| | Manipulate values in serial order. More...
|
| |
| virtual void | const_interruptible_for_each (N row, std::function< bool(N column, T value)> func) const =0 |
| | Read values in serial order. More...
|
| |
| virtual N | rows () const =0 |
| | Get the size of rows. More...
|
| |
| virtual N | columns () const =0 |
| | Get the size of columns. More...
|
| |
| virtual N | non_zeros (N row) const =0 |
| | Get the size of non zero entries in a row. More...
|
| |
| RCMatrix_ptr< N, T > | duplicate () const |
| | Duplicate matrix. More...
|
| |
|
void | clear () |
| | Reset all the elements with zeros.
|
| |
| N | non_zeros () const |
| | Get the number of all the non-zero entries. More...
|
| |
| bool | empty () const |
| | Get if the matrix is empty. More...
|
| |
| bool | empty (N row) const |
| | Get if a row in the matrix is empty. More...
|
| |
| void | for_each (N row, std::function< void(N column, T &value)> func) |
| | Manipulate elements in serial order. More...
|
| |
| void | const_for_each (N row, std::function< void(N column, T value)> func) const |
| | Read elements in serial order. More...
|
| |
| virtual void | multiply (T value)=0 |
| | Multiply a value to all the elements. More...
|
| |
| virtual void | multiply (const RCMatrix_vector_interface< N, T > *rhs, RCMatrix_vector_interface< N, T > *result) const =0 |
| | Apply multiplication to an input vector and substitute to a result vector. More...
|
| |
| virtual void | multiply (const RCMatrix_interface< N, T > *m, RCMatrix_interface< N, T > *result) const =0 |
| | Apply multiplication to an input matrix of the form: [result] = [self][m]. More...
|
| |
| virtual void | add (const RCMatrix_interface< N, T > *m, RCMatrix_interface< N, T > *result) const =0 |
| | Add a matrix. More...
|
| |
| virtual void | transpose (RCMatrix_interface< N, T > *result) const =0 |
| | Transpose this matrix. More...
|
| |
| virtual RCFixedMatrix_ptr< N, T > | make_fixed () const =0 |
| | Make a fixed matrix. More...
|
| |
| RCMatrix_vector_ptr< N, T > | multiply (const RCMatrix_vector_interface< N, T > *rhs) const |
| | Apply multiplication to an input vector. More...
|
| |
| RCMatrix_ptr< N, T > | multiply (const RCMatrix_interface< N, T > *m) const |
| | Apply multiplication to an input matrix of the form: [result] = [self][m]. More...
|
| |
| RCMatrix_ptr< N, T > | add (const RCMatrix_interface< N, T > *m) const |
| | Add to an input matrix. More...
|
| |
| RCMatrix_ptr< N, T > | transpose () const |
| | Transpose this matrix. More...
|
| |
| template<class Y > |
| void | multiply (const std::vector< Y > &rhs, std::vector< Y > &result) const |
| | Apply multiplication to an input vector and substitute to a result vector. Provided to preserve std::vector compatibility. More...
|
| |
| template<class Y > |
| std::vector< Y > | multiply (const std::vector< Y > &rhs) const |
| | Apply multiplication to an input vector. Provided to preserve std::vector compatibility. More...
|
| |
template<class N, class T>
class RCMatrix_interface< N, T >
Interface for Row Compressed Matrix.