Classes | Typedefs | Enumerations
DynamicVector

Classes

struct  blaze::DynamicVector< Type, TF >::Rebind< ET >
 Rebind mechanism to obtain a DynamicVector with different data/element type. More...
 
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.
 

Enumerations

enum  { vectorizable = IsVectorizable<Type>::value }
 Compilation flag for intrinsic optimization. More...
 
enum  { smpAssignable = !IsSMPAssignable<Type>::value }
 Compilation flag for SMP assignments. More...
 

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

Enumeration Type Documentation

template<typename Type, bool TF = defaultTransposeFlag>
anonymous enum

Compilation flag for intrinsic optimization.

The vectorizable compilation flag indicates whether expressions the vector is involved in can be optimized via intrinsics. In case the element type of the vector is an intrinsic data type, the vectorizable compilation flag is set to true, otherwise it is set to false.

template<typename Type, bool TF = defaultTransposeFlag>
anonymous enum

Compilation flag for SMP assignments.

The smpAssignable compilation flag indicates whether the vector can be used in SMP (shared memory parallel) assignments (both on the left-hand and right-hand side of the assignment).

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.