![]() |
Classes | |
struct | blaze::CompressedVector< Type, TF >::Rebind< ET > |
Rebind mechanism to obtain a CompressedVector with different data/element type. More... | |
class | blaze::CompressedVector< Type, TF > |
Efficient implementation of an arbitrary sized sparse vector.The CompressedVector class is the representation of an arbitrarily sized sparse vector, which stores only non-zero 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 CompressedVector< float, false > | blaze::CVecNf |
Compressed single precision vector. | |
typedef CompressedVector< double, false > | blaze::CVecNd |
Compressed double precision vector. | |
typedef CompressedVector< real, false > | blaze::CVecN |
Compressed vector with system-specific precision. | |
Enumerations | |
enum | { smpAssignable = !IsSMPAssignable<Type>::value } |
Compilation flag for SMP assignments. More... | |
CompressedVector operators | |
template<typename Type , bool TF> | |
void | blaze::reset (CompressedVector< Type, TF > &v) |
Resetting the given compressed vector. More... | |
template<typename Type , bool TF> | |
void | blaze::clear (CompressedVector< Type, TF > &v) |
Clearing the given compressed vector. More... | |
template<typename Type , bool TF> | |
bool | blaze::isDefault (const CompressedVector< Type, TF > &v) |
Returns whether the given compressed vector is in default state. More... | |
template<typename Type , bool TF> | |
void | blaze::swap (CompressedVector< Type, TF > &a, CompressedVector< Type, TF > &b) |
Swapping the contents of two compressed vectors. More... | |
template<typename Type , bool TF> | |
void | blaze::move (CompressedVector< Type, TF > &dst, CompressedVector< Type, TF > &src) |
Moving the contents of one compressed vector to another. More... | |
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).
|
inline |
Clearing the given compressed vector.
v | The compressed vector to be cleared. |
|
inline |
Returns whether the given compressed vector is in default state.
v | The compressed vector to be tested for its default state. |
This function checks whether the compressed 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:
|
inline |
Moving the contents of one compressed vector to another.
dst | The destination vector. |
src | The source vector. |
no-throw | guarantee. |
|
inline |
Resetting the given compressed vector.
v | The compressed vector to be resetted. |
|
inline |
Swapping the contents of two compressed vectors.
a | The first compressed vector to be swapped. |
b | The second compressed vector to be swapped. |
no-throw | guarantee. |