class Vector: public TVector, protected T_storage

Vector<T,S> is a vector of type T with a dynamicallay allocated number of elements.

Inheritance:


Public

[more]T_value value_t
define typedef value_t
[more]T_storage storage_t
define typedef storage_t
[more]TVector structure_t
define typedef structure_t
[more]TVectorIterator iterator_t
define typedef iterator_t
[more] vector_t
define typedef vector_t
[more] this_t
define typedef this_t
[more] Explanation
[more] Example(s)
[more] constructor(s), destructor
[more] unary operation
[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]slrestrict my_d
a pointer to the datas


Inherited from TVector:

Public

Constructor(s), Destructors(s)

operations on profil

Access to element

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


Documentation

Vector<T,S> is a vector of type T with a dynamicallay allocated number of elements.
oT_value value_t
define typedef value_t

oT_value value_t
define typedef value_t

o storage_t
define typedef storage_t

oT_structure structure_t
define typedef structure_t

o matrix_t
define typedef matrix_t

o this_t
define typedef this_t

ostructure_t::iterator_t iterator_t
define typedef iterator_t

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

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

o constructor(s), destructor

oexplicit TinyMatrix()
default constructor

oexplicit TinyMatrix( value_t v)
constructor with value

o ~TinyMatrix()
default destructor

o set/get member

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

ovalue_t get( Index const i, Index const j ) const
get value at ,

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

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

o TinyMatrix<value_t,N,P> op meta::Expr<T_expr> >

othis_t& operator=( meta::Expr<T_expr> const& e )
TinyMatrix Expr<T_expr>, different value, same structure

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

oT_storage storage_t
define typedef storage_t

oTVector structure_t
define typedef structure_t

oTVectorIterator iterator_t
define typedef iterator_t

o vector_t
define typedef vector_t

o this_t
define typedef this_t

o Explanation
sl::Vector<T,A> is a vector of type T. The number of element is dynamically allocated. The allocator A is, by default, sl::MemBlock<T>. It shoud be noted that the inehrithance from the allocator is protected.

o Example(s)
see \verb| sl++/test/debug/vector.cc|

o constructor(s), destructor

oexplicit Vector()
defaultconstructor

oexplicit Vector( unsigned int length)
constructor with size known

o Vector( unsigned int length, value_t v)
constructor with size and an initialize to value

o ~Vector()
default destructor

o unary operation

owrap_t operator+()
operator+

owrap_t operator-()
operator-

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

ovector_t& resize( Index const n )
resize a vector to rows

ovector_t& reshape( Index const n )
resize to rows

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

ovalue_t get( Index const i ) 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() ( Range 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

oslrestrict my_d
a pointer to the datas


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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