Public Types |
enum | { HEIGHT = 1
} |
enum | { WIDTH = 1
} |
typedef Vec< S, T > | TELEM |
| element type
|
typedef FlatVec< S, T > | TREF |
typedef mat_traits< T >::TSCAL | TSCAL |
| scalar of element type
|
Public Member Functions |
| FlatVector () |
| default constructor does nothing
|
| FlatVector (const FlatVector &v2) |
| copy pointer
|
| FlatVector (unsigned int as, T *adata) |
| set size and mem
|
| FlatVector (unsigned int as, void *adata) |
| set size and mem
|
| FlatVector (int as, LocalHeap &lh) |
| allocate FlatVector on local heap
|
void | AssignMemory (int as, LocalHeap &lh) |
| assign memory for vector on local heap
|
void | AssignMemory (int as, T *mem) |
| assign memory for vector
|
const FlatVector & | operator= (const FlatVector &v) const |
| copy vector. sizes must match
|
template<typename TB > |
const FlatVector & | operator= (const Expr< TB > &v) const |
| evaluate matrix expression
|
const FlatVector & | operator= (TSCAL scal) const |
| assign constant value
|
template<typename TB > |
const FlatVector & | operator+= (const Expr< TB > &v) const |
const FlatVec< S, T > | operator() (int i) const |
| constant element access
|
const FlatVec< S, T > | operator() (int i, int j) const |
| element access. index j is ignored
|
const FlatVec< S, T > | operator[] (int i) const |
| constant element access
|
RowsArrayExpr< FlatVector > | operator() (FlatArray< int > rows) const |
const CArray< Vec< S, T > > | Addr (int i) const |
const FlatVector< Vec< S, T > > | Range (int first, int next) const |
| sub-vector of size next-first, starting at first
|
const FlatVector< Vec< S, T > > | Range (IntRange range) const |
| sub-vector given by range
|
int | Size () const |
| vector size
|
int | Height () const |
| vector is matrix of height size
|
int | Width () const |
| vector is matrix of with 1
|
const void * | Data () const |
| access to data
|
void * | Data () |
| access to data
|
Protected Attributes |
int | s |
| vector size
|
T * | data |
| the data
|