|
template<typename VT , bool TF> |
size_t | blaze::size (Vector< VT, TF > &v) |
| Returns the current size/dimension of the vector. More...
|
|
template<typename VT , bool TF> |
size_t | blaze::capacity (Vector< VT, TF > &v) |
| Returns the maximum capacity of the vector. More...
|
|
template<typename VT , bool TF> |
size_t | blaze::nonZeros (Vector< VT, TF > &v) |
| Returns the number of non-zero elements in the vector. More...
|
|
|
template<typename VT1 , bool TF1, typename VT2 , bool TF2> |
void | blaze::assign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) |
| Default implementation of the assignment of a vector to a vector. More...
|
|
template<typename VT1 , bool TF1, typename VT2 , bool TF2> |
void | blaze::addAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) |
| Default implementation of the addition assignment of a vector to a vector. More...
|
|
template<typename VT1 , bool TF1, typename VT2 , bool TF2> |
void | blaze::subAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) |
| Default implementation of the subtraction assignment of a vector to a vector. More...
|
|
template<typename VT1 , bool TF1, typename VT2 , bool TF2> |
void | blaze::multAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) |
| Default implementation of the multiplication assignment of a vector to a vector. More...
|
|
template<typename VT1 , bool TF1, typename VT2 , bool TF2> |
bool | blaze::isSame (const Vector< VT1, TF1 > &a, const Vector< VT2, TF2 > &b) |
| Returns whether the two given vectors represent the same observable state. More...
|
|
|
template<typename T1 , typename T2 > |
const MultTrait< typename
T1::ElementType, typename
T2::ElementType >::Type | blaze::operator, (const Vector< T1, false > &lhs, const Vector< T2, false > &rhs) |
| Multiplication operator for the scalar product (inner product) of two vectors ( ). More...
|
|
template<typename T1 , typename T2 > |
const MultTrait< typename
T1::ElementType, typename
T2::ElementType >::Type | blaze::operator, (const Vector< T1, false > &lhs, const Vector< T2, true > &rhs) |
| Multiplication operator for the scalar product (inner product) of two vectors ( ). More...
|
|
template<typename T1 , typename T2 > |
const MultTrait< typename
T1::ElementType, typename
T2::ElementType >::Type | blaze::operator, (const Vector< T1, true > &lhs, const Vector< T2, false > &rhs) |
| Multiplication operator for the scalar product (inner product) of two vectors ( ). More...
|
|
template<typename T1 , typename T2 > |
const MultTrait< typename
T1::ElementType, typename
T2::ElementType >::Type | blaze::operator, (const Vector< T1, true > &lhs, const Vector< T2, true > &rhs) |
| Multiplication operator for the scalar product (inner product) of two vectors ( ). More...
|
|
template<typename VT , bool TF> |
std::ostream & | blaze::operator<< (std::ostream &os, const Vector< VT, TF > &v) |
| Global output operator for dense and sparse vectors. More...
|
|
template<typename VT1 , bool TF1, typename VT2 , bool TF2>
void blaze::addAssign |
( |
Vector< VT1, TF1 > & |
lhs, |
|
|
const Vector< VT2, TF2 > & |
rhs |
|
) |
| |
|
inline |
Default implementation of the addition assignment of a vector to a vector.
- Parameters
-
lhs | The target left-hand side vector. |
rhs | The right-hand side vector to be added. |
- Returns
- void
This function implements the default addition assignment of a vector to a vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
template<typename VT1 , bool TF1, typename VT2 , bool TF2>
void blaze::assign |
( |
Vector< VT1, TF1 > & |
lhs, |
|
|
const Vector< VT2, TF2 > & |
rhs |
|
) |
| |
|
inline |
Default implementation of the assignment of a vector to a vector.
- Parameters
-
lhs | The target left-hand side vector. |
rhs | The right-hand side vector to be assigned. |
- Returns
- void
This function implements the default assignment of a vector to another vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
template<typename VT1 , bool TF1, typename VT2 , bool TF2>
bool blaze::isSame |
( |
const Vector< VT1, TF1 > & |
a, |
|
|
const Vector< VT2, TF2 > & |
b |
|
) |
| |
|
inline |
Returns whether the two given vectors represent the same observable state.
- Parameters
-
a | The first vector to be tested for its state. |
b | The second vector to be tested for its state. |
- Returns
- true in case the two vectors share a state, false otherwise.
The isSame function provides an abstract interface for testing if the two given vectors represent the same observable state. This happens for instance in case a
and b
refer to the same vector or in case a
and b
are aliases for the same vector. In case both vectors represent the same observable state, the function returns true, other it returns false.
VectorType vec1( 4UL );
VectorType vec2( 4UL );
SubvectorType sub1 =
subvector( vec1, 0UL, 4UL );
SubvectorType sub2 =
subvector( vec1, 1UL, 2UL );
SubvectorType sub3 =
subvector( vec1, 1UL, 2UL );
template<typename VT1 , bool TF1, typename VT2 , bool TF2>
void blaze::multAssign |
( |
Vector< VT1, TF1 > & |
lhs, |
|
|
const Vector< VT2, TF2 > & |
rhs |
|
) |
| |
|
inline |
Default implementation of the multiplication assignment of a vector to a vector.
- Parameters
-
lhs | The target left-hand side vector. |
rhs | The right-hand side vector to be multiplied. |
- Returns
- void
This function implements the default multiplication assignment of a vector to a vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
template<typename VT1 , bool TF1, typename VT2 , bool TF2>
void blaze::subAssign |
( |
Vector< VT1, TF1 > & |
lhs, |
|
|
const Vector< VT2, TF2 > & |
rhs |
|
) |
| |
|
inline |
Default implementation of the subtraction assignment of a vector to a vector.
- Parameters
-
lhs | The target left-hand side vector. |
rhs | The right-hand side vector to be subtracted. |
- Returns
- void
This function implements the default subtraction assignment of a vector to a vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.