NGSolve  4.9
Public Types | Public Member Functions | Protected Attributes
ngbla::FlatVector< Vec< S, T > > Class Template Reference
Inheritance diagram for ngbla::FlatVector< Vec< S, T > >:
ngbla::CMCPMatExpr< FlatVector< Vec< S, T > > > ngbla::MatExpr< FlatVector< Vec< S, T > > > ngbla::Expr< FlatVector< Vec< S, T > > > ngbla::Vector< Vec< S, T > >

List of all members.

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 FlatVectoroperator= (const FlatVector &v) const
 copy vector. sizes must match
template<typename TB >
const FlatVectoroperator= (const Expr< TB > &v) const
 evaluate matrix expression
const FlatVectoroperator= (TSCAL scal) const
 assign constant value
template<typename TB >
const FlatVectoroperator+= (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< FlatVectoroperator() (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

template<int S, typename T>
class ngbla::FlatVector< Vec< S, T > >


The documentation for this class was generated from the following file: