class TinyVector: public TVector, protected TinyMemBlock<T_value, N>

TinyVector<T,N> is a tiny vector of type T with N elements.

Inheritance:


Public

[more]T_value value_t
define typedef value_t
[more] storage_t
define typedef storage_t
[more]TVector structure_t
define typedef structure_
[more] vector_t
define typedef vector_t
[more] this_t
define typedef vector_t
[more] Explanation
[more] Example
[more] constructor(s), destructor
[more] set/get member
[more] Looped Vector operation
[more] Range operation
[more] transposition
[more] alias operators needed for compatibility with matlab
[more] contractions operators: sum, min, max
[more] mathematical operators returning a scalar

Private Fields

[more]value_t* my_d
a pointer to the data (almost)


Inherited from TVector:

Public

Constructor(s), Destructors(s)

operations on profil

Access to element

oTVectorIterator iterator_t

public members

Protected

protected constructors

protected members

Private Fields

osize_t my_data_length
oBool my_profil_is_set
oBool my_matrix_is_factored
oVectorUInt my_diag
oVectorUInt my_haut
oIndex my_n

Private Methods

oIndex map( Index const& i, Index const& j ) const
oIndex map_fast( Index const& i, Index const& j ) const


Inherited from TinyMemBlock:

Public

public member

protected members, get/set

protected members, assign/copy

protected members, assign/copy via metaprogramming

Private Fields

ovalue_t my_b[N]


Documentation

TinyVector<T,N> is a tiny vector of type T with N elements.
oT_value value_t
define typedef value_t

o storage_t
define typedef storage_t

oTVector structure_t
define typedef structure_

o vector_t
define typedef vector_t

o this_t
define typedef vector_t

o Explanation
TinyVector<T,N> is a tiny vector of type T with N elements. It should be noted that there is no default value for T and N. This TinyVector<T,N> can't be resized.

o Example
see \verb| sl++/test/tinyvec_test.cc|

o constructor(s), destructor

oexplicit TinyVector()
default constructor

oexplicit TinyVector( value_t v)
constructor: initialize to value

ovector_t& resize( Index const n )
resize a vector to rows, will raise an exception if n!=N

ovector_t& reshape( Index const n )
resize to rows, will raise an exception if n!=N

o ~TinyVector()
default destructor

o set/get member

oconst* const_base() const
const base, must be exported as it is a protected member of storage_t

oconst* const_data() const
const data

ovalue_t& get( Index const i )
set a reference at

ovalue_t& getI()
set a reference at

ovalue_t get( Index const i ) const
get value at

ovalue_t getI() const
get value at

ovalue_t& operator() ( Index const i )
set a reference at index control enable

ovalue_t operator() ( Index const i ) const
get value at , index control enable

ovalue_t& operator[] ( Index const i )
set a reference at index control enable

ovalue_t operator[] ( Index const i ) const
get value at , index control enable

o Looped Vector operation

o operator() ( LoopIndex const& l )
transform a Vector(LoopIndex) into a View1<Vector,LoopIndex> PA: please don't use the meta::Expr<build_t>(build_t(*this,...)) syntax. We need a non meta::Expr<> form in the lhs expressions

o Range operation

o operator() ( TinyRange<RB, RE, RS> const& r )
transform a Vector(Range) into a AddRef<Vector,Range> PA: please don't use the meta::Expr<build_t>(build_t(*this,...)) syntax. We need a non meta::Expr<> form in the lhs expressions

o transposition

o transpose()
Transpose member function PA: please don't use the meta::Expr<build_t>(build_t(*this,...)) syntax. We need a non meta::Expr<> form in the lhs expressions

o alias operators needed for compatibility with matlab

oIndex n() const
alias for rows()

oIndex p() const
alias for cols()

o contractions operators: sum, min, max

ovalue_t sum()
compute the sum of all elements

o mathematical operators returning a scalar

ovalue_t min()
find the minimum

ovalue_t max()
find the maximum

ovalue_t norm2()
compute norm

ovalue_t norm1()
compute norm

ovalue_t* my_d
a pointer to the data (almost)


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.