|
virtual void | copy (const RCMatrix_vector_interface< N, T > *x) |
| Copy the vector. More...
|
|
virtual void | resize (N size)=0 |
| Resize the dimension. More...
|
|
virtual N | size () const =0 |
| Get the size of dimension. More...
|
|
virtual void | clear (T value=T())=0 |
| Clear out all the value with the input value. Note that the dimension size of vector remain intact. More...
|
|
virtual T | at (N index) const =0 |
| Get an element value at an input index position. More...
|
|
virtual void | set (N index, T value)=0 |
| Set an element value at an input index position. More...
|
|
virtual void | add (N index, T value)=0 |
| Add an element value at an input index position. More...
|
|
virtual void | add (const RCMatrix_vector_interface< N, T > *x) |
| Add a vector. More...
|
|
virtual void | subtract (const RCMatrix_vector_interface< N, T > *x) |
| Subtract a vector. More...
|
|
virtual void | subtract (N index, T value)=0 |
| Subtract an element value at an input index position. More...
|
|
virtual void | multiply (N index, T value)=0 |
| Multiply an element value at an input index position. More...
|
|
virtual void | divide (N index, T value)=0 |
| Divide an element value at an input index position. More...
|
|
virtual void | parallel_for_each (std::function< void(N row, T &value)> func)=0 |
| Manipulate values in parallel. More...
|
|
virtual void | const_parallel_for_each (std::function< void(N row, T value)> func) const =0 |
| Read values in parallel. More...
|
|
virtual void | interruptible_for_each (std::function< bool(N row, T &value)> func)=0 |
| Manipulate values in serial order. More...
|
|
virtual void | const_interruptible_for_each (std::function< bool(N row, T value)> func) const =0 |
| Read values in serial order. More...
|
|
virtual T | abs_max () const =0 |
| Compute the uniform norm. More...
|
|
virtual T | dot (const RCMatrix_vector_interface< N, T > *x) const =0 |
| Compute the dot product. More...
|
|
virtual void | add_scaled (T alpha, const RCMatrix_vector_interface< N, T > *x)=0 |
| Add alpha * x. More...
|
|
RCMatrix_vector_ptr< N, T > | duplicate () const |
| Duplicate this vector. More...
|
|
void | for_each (std::function< void(N row, T &value)> func) |
| Manipulate values in serial order. More...
|
|
void | const_for_each (std::function< void(N row, T value)> func) const |
| Read values in serial order. More...
|
|
template<class Y > |
void | convert_from (const std::vector< Y > &v) |
| Convert input std::vector to the vector of this type. More...
|
|
template<class Y > |
void | convert_to (std::vector< Y > &v) const |
| Convert to std::vector. More...
|
|
template<class N, class T>
class RCMatrix_vector_interface< N, T >
Interface to provide vector calculations.