NGSolve
4.9
|
A vector with non-linear data access. More...
#include <vector.hpp>
Public Types | |
enum | { IS_LINEAR = 0 } |
element access is not linear | |
typedef T | TELEM |
the entry type | |
typedef mat_traits< T >::TSCAL | TSCAL |
the scalar type of the vector | |
Public Member Functions | |
FixSliceVector (unsigned int as, T *adata) | |
set size, distance and memory | |
template<typename TB > | |
FixSliceVector & | operator= (const Expr< TB > &v) |
evaluates matrix expression | |
const FixSliceVector & | operator= (TSCAL scal) const |
assignes constant value | |
const FixSliceVector & | operator= (const FixSliceVector &v2) const |
copies contents of vector | |
template<typename TB > | |
const FixSliceVector & | operator= (const Expr< TB > &v) const |
template<typename TB > | |
const FixSliceVector & | operator+= (const Expr< TB > &v) const |
TELEM & | operator() (int i) |
access element | |
TELEM & | operator() (int i) const |
access element | |
TELEM & | operator() (int i, int j) const |
access element, index j is unused | |
TELEM & | operator() (int i, int j) |
access element, index j is unused | |
TELEM & | operator[] (int i) |
access element | |
TELEM & | operator[] (int i) const |
access element | |
TELEM * | Addr (int i) const |
int | Size () const |
vector size | |
int | Height () const |
vector is a matrix of hight size | |
int | Width () const |
vector is a matrix of width 1 | |
const FixSliceVector | Range (int first, int next) const |
const FixSliceVector | Range (IntRange range) const |
const SliceVector< T > | Slice (int first, int adist) const |
Protected Attributes | |
int | s |
vector size | |
T * | data |
the data |
A vector with non-linear data access.
Has size and generic data-pointer. No memory allocation/deallocation. User must provide memory.