Vector representation and operations, allows operation in selected subspace. More...
#include <indexed_vector.hpp>
Public Types | |
typedef boost::shared_ptr< SUBSET > | PSubset |
< helper structure for passing matrix op intermediate data between higher-level matrix objects and functions | |
Public Member Functions | |
Indexed_Vector (const DIMTYPE n) | |
Indexed_Vector (const Indexed_Vector &iv) | |
Indexed_Vector & | operator= (Indexed_Vector const &iv) |
void | reset (const DIMTYPE n_max) |
void | redim (const DIMTYPE n=0) |
DATATYPE & | operator[] (const DIMTYPE i) |
DATATYPE & | at_raw (const DIMTYPE i) |
DATATYPE & | at (const DIMTYPE i) |
DATATYPE * | get_raw () |
void | narrow_to (const PSubset sub) |
void | denarrow () |
DIMTYPE | get_n () const |
DIMTYPE | get_d () const |
void | set_all_raw_to (const DATATYPE val) |
void | subtract_raw (const Indexed_Vector &vr) |
void | copy_raw (const Indexed_Vector &vr) |
Protected Attributes | |
DIMTYPE | _n_max |
DIMTYPE | _n |
boost::scoped_array< DATATYPE > | _data |
DIMTYPE | _d |
boost::scoped_array< DIMTYPE > | _index |
Friends | |
class | Indexed_Matrix< DATATYPE, DIMTYPE, SUBSET > |
std::ostream & | operator<< (std::ostream &os, const Indexed_Vector &tdb) |
Vector representation and operations, allows operation in selected subspace.