In file vector.hpp:template<typename T = double> class FlatVector
A simple vector.
Documentation
A simple vector.
Has size and generic data-pointer.
No memory allocation/deallocation. User must provide memory.
Inheritance:
Public Fields
-
typedef typename mat_traits<T>: :TSCAL TSCAL
- scalar of element type
Public Methods
-
FlatVector()
- default constructor does nothing
-
FlatVector(unsigned int as, T* adata)
- set size and mem
-
FlatVector(unsigned int as, void* adata)
- set size and mem
-
template<int S> FlatVector(const Vec<S, TSCAL> & v)
- put FlatVector over fixed size vector
-
FlatVector(int as, LocalHeap & lh)
- allocate FlatVector on local heap
-
FlatVector(const SysVector<TSCAL> & sv)
- put FlatVector over systemvector
-
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.
-
template<typename TB> const FlatVector& operator= (const Expr<TB> & v) const
- evaluate matrix expression
-
const FlatVector& operator= (TSCAL scal) const
- assign constant value
-
TELEM& operator() (int i) const
- constant element accesselement access
-
const TELEM& operator() (int i, int j) const
- element access.
-
TELEM& operator() (int i, int j)
- element access.
-
TELEM& operator[] (int i) const
- constant element accesselement access
-
int Size() const
- vector size
-
int Height() const
- vector is matrix of height size
-
int Width() const
- vector is matrix of with 1
-
SliceVector<T> Slice(int first, int dist)
- take a slice of the vector.
-
const SliceVector<T> Slice(int first, int dist) const
- take a slice of the vector.
-
const void* Data() const
- access to data
-
void* Data()
- access to data
Public Members
-
typedef T TELEM
- element type
-
sub-vector of size next-first, starting at first
Protected Fields
-
int s
- vector size
-
T* data
- the data
Inherited from MatExpr:
Inherited from Expr:
Public Methods
-
T& Spec()
-
const T& Spec() const
int s
- vector size
T* data
- the data
typedef T TELEM
- element type
typedef typename mat_traits<T>: :TSCAL TSCAL
- scalar of element type
FlatVector()
- default constructor does nothing
FlatVector(unsigned int as, T* adata)
- set size and mem
FlatVector(unsigned int as, void* adata)
- set size and mem
template<int S> FlatVector(const Vec<S, TSCAL> & v)
- put FlatVector over fixed size vector
FlatVector(int as, LocalHeap & lh)
- allocate FlatVector on local heap
FlatVector(const SysVector<TSCAL> & sv)
- put FlatVector over systemvector
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
TELEM& operator() (int i) const
- constant element accesselement access
const TELEM& operator() (int i, int j) const
- element access. index j is ignored
TELEM& operator() (int i, int j)
- element access. index j is ignored
TELEM& operator[] (int i) const
- constant element accesselement access
sub-vector of size next-first, starting at first
- sub-vector of size next-first, starting at first
int Size() const
- vector size
int Height() const
- vector is matrix of height size
int Width() const
- vector is matrix of with 1
SliceVector<T> Slice(int first, int dist)
- take a slice of the vector. Take elements first+i * dist.
const SliceVector<T> Slice(int first, int dist) const
- take a slice of the vector. Take elements first+i * dist.
const void* Data() const
- access to data
void* Data()
- access to data
- Direct child classes:
- VectorMem
Vector
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.