Blaze 3.9
Classes
InitializerVector

Classes

class  blaze::InitializerVector< Type, TF, Tag >
 Dense vector representation of an initializer list. More...
 

InitializerVector operators

template<typename Type , bool TF, typename Tag >
bool blaze::isIntact (const InitializerVector< Type, TF, Tag > &v) noexcept
 Returns whether the invariants of the given initializer vector are intact. More...
 
template<typename Type , bool TF, typename Tag >
void blaze::swap (InitializerVector< Type, TF, Tag > &a, InitializerVector< Type, TF, Tag > &b) noexcept
 Swapping the contents of two vectors. More...
 

Detailed Description

Function Documentation

◆ isIntact()

template<typename Type , bool TF, typename Tag >
bool blaze::isIntact ( const InitializerVector< Type, TF, Tag > &  v)
inlinenoexcept

Returns whether the invariants of the given initializer vector are intact.

Parameters
vThe initializer vector to be tested.
Returns
true in case the given vector's invariants are intact, false otherwise.

This function checks whether the invariants of the initializer vector are intact, i.e. if its state is valid. In case the invariants are intact, the function returns true, else it will return false. The following example demonstrates the use of the isIntact() function:

// ... Resizing and initialization
if( isIntact( a ) ) { ... }
Dense vector representation of an initializer list.
Definition: InitializerVector.h:182
bool isIntact(const DiagonalMatrix< MT, SO, DF > &m)
Returns whether the invariants of the given diagonal matrix are intact.
Definition: DiagonalMatrix.h:207

◆ swap()

template<typename Type , bool TF, typename Tag >
void blaze::swap ( InitializerVector< Type, TF, Tag > &  a,
InitializerVector< Type, TF, Tag > &  b 
)
inlinenoexcept

Swapping the contents of two vectors.

Parameters
aThe first vector to be swapped.
bThe second vector to be swapped.
Returns
void