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

[more]typedef typename mat_traits<T>: :TSCAL TSCAL
scalar of element type

Public Methods

[more] FlatVector()
default constructor does nothing
[more] FlatVector(unsigned int as, T* adata)
set size and mem
[more] FlatVector(unsigned int as, void* adata)
set size and mem
[more]template<int S> FlatVector(const Vec<S, TSCAL> & v)
put FlatVector over fixed size vector
[more] FlatVector(int as, LocalHeap & lh)
allocate FlatVector on local heap
[more] FlatVector(const SysVector<TSCAL> & sv)
put FlatVector over systemvector
[more]void AssignMemory(int as, LocalHeap & lh)
assign memory for vector on local heap
[more]void AssignMemory(int as, T* mem)
assign memory for vector
[more]const FlatVector& operator= (const FlatVector & v) const
copy vector.
[more]template<typename TB> const FlatVector& operator= (const Expr<TB> & v) const
evaluate matrix expression
[more]const FlatVector& operator= (TSCAL scal) const
assign constant value
[more]TELEM& operator() (int i) const
constant element accesselement access
[more]const TELEM& operator() (int i, int j) const
element access.
[more]TELEM& operator() (int i, int j)
element access.
[more]TELEM& operator[] (int i) const
constant element accesselement access
[more]int Size() const
vector size
[more]int Height() const
vector is matrix of height size
[more]int Width() const
vector is matrix of with 1
[more]SliceVector<T> Slice(int first, int dist)
take a slice of the vector.
[more]const SliceVector<T> Slice(int first, int dist) const
take a slice of the vector.
[more]const void* Data() const
access to data
[more]void* Data()
access to data

Public Members

[more]typedef T TELEM
element type
[more] sub-vector of size next-first, starting at first

Protected Fields

[more]int s
vector size
[more]T* data
the data


Inherited from MatExpr:


Inherited from Expr:

Public Methods

oT& Spec()
oconst T& Spec() const

oint s
vector size

oT* data
the data

otypedef T TELEM
element type

otypedef typename mat_traits<T>: :TSCAL TSCAL
scalar of element type

o FlatVector()
default constructor does nothing

o FlatVector(unsigned int as, T* adata)
set size and mem

o FlatVector(unsigned int as, void* adata)
set size and mem

otemplate<int S> FlatVector(const Vec<S, TSCAL> & v)
put FlatVector over fixed size vector

o FlatVector(int as, LocalHeap & lh)
allocate FlatVector on local heap

o FlatVector(const SysVector<TSCAL> & sv)
put FlatVector over systemvector

ovoid AssignMemory(int as, LocalHeap & lh)
assign memory for vector on local heap

ovoid AssignMemory(int as, T* mem)
assign memory for vector

oconst FlatVector& operator= (const FlatVector & v) const
copy vector. sizes must match

otemplate<typename TB> const FlatVector& operator= (const Expr<TB> & v) const
evaluate matrix expression

oconst FlatVector& operator= (TSCAL scal) const
assign constant value

oTELEM& operator() (int i) const
constant element accesselement access

oconst TELEM& operator() (int i, int j) const
element access. index j is ignored

oTELEM& operator() (int i, int j)
element access. index j is ignored

oTELEM& operator[] (int i) const
constant element accesselement access

o sub-vector of size next-first, starting at first
sub-vector of size next-first, starting at first

oint Size() const
vector size

oint Height() const
vector is matrix of height size

oint Width() const
vector is matrix of with 1

oSliceVector<T> Slice(int first, int dist)
take a slice of the vector. Take elements first+i * dist.

oconst SliceVector<T> Slice(int first, int dist) const
take a slice of the vector. Take elements first+i * dist.

oconst void* Data() const
access to data

ovoid* 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++.