All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs
DynamicVector

Classes

class  blaze::DynamicVector< Type, TF >
 Efficient implementation of an arbitrary sized vector.The DynamicVector class template is the representation of an arbitrary sized vector with dynamically allocated elements of arbitrary type. The type of the elements and the transpose flag of the vector can be specified via the two template parameters: More...
 

Typedefs

typedef DynamicVector< float,
false > 
blaze::VecNf
 N-dimensional single precision vector.
 
typedef DynamicVector< double,
false > 
blaze::VecNd
 N-dimensional double precision vector.
 
typedef DynamicVector< real,
false > 
blaze::VecN
 N-dimensional vector with system-specific precision.
 

DynamicVector operators

template<typename Type , bool TF>
void blaze::reset (DynamicVector< Type, TF > &v)
 Resetting the given dynamic vector. More...
 
template<typename Type , bool TF>
void blaze::clear (DynamicVector< Type, TF > &v)
 Clearing the given dynamic vector. More...
 
template<typename Type , bool TF>
bool blaze::isDefault (const DynamicVector< Type, TF > &v)
 Returns whether the given dynamic vector is in default state. More...
 
template<typename Type , bool TF>
void blaze::swap (DynamicVector< Type, TF > &a, DynamicVector< Type, TF > &b)
 Swapping the contents of two vectors. More...
 
template<typename Type , bool TF>
void blaze::move (DynamicVector< Type, TF > &dst, DynamicVector< Type, TF > &src)
 Moving the contents of one dynamic vector to another. More...
 

Detailed Description

Function Documentation

template<typename Type , bool TF>
void blaze::clear ( DynamicVector< Type, TF > &  v)
inline

Clearing the given dynamic vector.

Parameters
vThe dynamic vector to be cleared.
Returns
void
template<typename Type , bool TF>
bool blaze::isDefault ( const DynamicVector< Type, TF > &  v)
inline

Returns whether the given dynamic vector is in default state.

Parameters
vThe dynamic vector to be tested for its default state.
Returns
true in case the given vector's size is zero, false otherwise.

This function checks whether the dynamic vector is in default (constructed) state, i.e. if it's size is 0. In case it is in default state, the function returns true, else it will return false. The following example demonstrates the use of the isDefault() function:

// ... Resizing and initialization
if( isDefault( a ) ) { ... }
template<typename Type , bool TF>
void blaze::move ( DynamicVector< Type, TF > &  dst,
DynamicVector< Type, TF > &  src 
)
inline

Moving the contents of one dynamic vector to another.

Parameters
dstThe destination vector.
srcThe source vector.
Returns
void
Exceptions
no-throwguarantee.
template<typename Type , bool TF>
void blaze::reset ( DynamicVector< Type, TF > &  v)
inline

Resetting the given dynamic vector.

Parameters
vThe dynamic vector to be resetted.
Returns
void
template<typename Type , bool TF>
void blaze::swap ( DynamicVector< Type, TF > &  a,
DynamicVector< Type, TF > &  b 
)
inline

Swapping the contents of two vectors.

Parameters
aThe first vector to be swapped.
bThe second vector to be swapped.
Returns
void
Exceptions
no-throwguarantee.