NGSolve  4.9
Public Types | Public Member Functions | Protected Attributes
ngbla::FixSliceVector< DIST, T > Class Template Reference

A vector with non-linear data access. More...

#include <vector.hpp>

Inheritance diagram for ngbla::FixSliceVector< DIST, T >:
ngbla::CMCPMatExpr< FixSliceVector< DIST, T > > ngbla::MatExpr< FixSliceVector< DIST, T > > ngbla::Expr< FixSliceVector< DIST, T > >

List of all members.

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 >
FixSliceVectoroperator= (const Expr< TB > &v)
 evaluates matrix expression
const FixSliceVectoroperator= (TSCAL scal) const
 assignes constant value
const FixSliceVectoroperator= (const FixSliceVector &v2) const
 copies contents of vector
template<typename TB >
const FixSliceVectoroperator= (const Expr< TB > &v) const
template<typename TB >
const FixSliceVectoroperator+= (const Expr< TB > &v) const
TELEMoperator() (int i)
 access element
TELEMoperator() (int i) const
 access element
TELEMoperator() (int i, int j) const
 access element, index j is unused
TELEMoperator() (int i, int j)
 access element, index j is unused
TELEMoperator[] (int i)
 access element
TELEMoperator[] (int i) const
 access element
TELEMAddr (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

Detailed Description

template<int DIST, typename T = double>
class ngbla::FixSliceVector< DIST, T >

A vector with non-linear data access.

Has size and generic data-pointer. No memory allocation/deallocation. User must provide memory.


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