Blaze 3.9
Loading...
Searching...
No Matches
blaze::DenseVector< VT, TF > Class Template Reference

Base class for N-dimensional dense vectors. More...

#include <DenseVector.h>

Inherits blaze::Vector< VT, TF >.

Inherited by blaze::CustomVector< NewType, AF, PF, TF, Tag, RRT >, blaze::CustomVector< Type, AF, PF, TF, Tag, RRT >, blaze::DynamicVector< NewType, TF, NewAlloc, Tag >, blaze::HybridVector< NewType, N, TF, AF, PF, Tag >, blaze::InitializerVector< NewType, TF, Tag >, and blaze::StaticVector< NewType, N, TF, AF, PF, Tag >.

Public Types

using VectorType = VT
 Type of the vector.

Public Member Functions

Conversion operators
BLAZE_ALWAYS_INLINE constexpr VT & operator~ () noexcept
 CRTP-based conversion operation for non-constant vectors.
BLAZE_ALWAYS_INLINE constexpr const VT & operator~ () const noexcept
 CRTP-based conversion operation for constant vectors.
constexpr VT & operator* () noexcept
 CRTP-based conversion operation for non-constant vectors.
constexpr const VT & operator* () const noexcept
 CRTP-based conversion operation for constant vectors.

Static Public Attributes

static constexpr bool transposeFlag = TF
 Transpose flag of the vector.

Protected Member Functions

Special member functions
 DenseVector (const DenseVector &)=default
 DenseVector (DenseVector &&)=default
DenseVector & operator= (const DenseVector &)=default
DenseVector & operator= (DenseVector &&)=default

Detailed Description

template<typename VT, bool TF>
class blaze::DenseVector< VT, TF >

Base class for N-dimensional dense vectors.

The DenseVector class is a base class for all arbitrarily sized (N-dimensional) dense vectors. It provides an abstraction from the actual type of the dense vector, but enables a conversion back to this type via the Vector base class.

Member Function Documentation

◆ operator*() [1/2]

template<typename VT, bool TF>
BLAZE_ALWAYS_INLINE constexpr const VT & blaze::Vector< VT, TF >::operator* ( ) const
constexprnoexceptinherited

CRTP-based conversion operation for constant vectors.

Returns
Const reference of the actual type of the vector.

This operator performs the CRTP-based type-safe downcast to the actual type VT of the vector. It will return a constant reference to the actual type VT.

◆ operator*() [2/2]

template<typename VT, bool TF>
BLAZE_ALWAYS_INLINE constexpr VT & blaze::Vector< VT, TF >::operator* ( )
constexprnoexceptinherited

CRTP-based conversion operation for non-constant vectors.

Returns
Mutable reference of the actual type of the vector.

This operator performs the CRTP-based type-safe downcast to the actual type VT of the vector. It will return a mutable reference to the actual type VT.

◆ operator~() [1/2]

template<typename VT, bool TF>
BLAZE_ALWAYS_INLINE constexpr const VT & blaze::Vector< VT, TF >::operator~ ( ) const
constexprnoexceptinherited

CRTP-based conversion operation for constant vectors.

Deprecated
Returns
Constant reference of the actual type of the vector.

This operator performs the CRTP-based type-safe downcast to the actual type VT of the vector. It will return a constant reference to the actual type VT.

Deprecated

◆ operator~() [2/2]

template<typename VT, bool TF>
BLAZE_ALWAYS_INLINE constexpr VT & blaze::Vector< VT, TF >::operator~ ( )
constexprnoexceptinherited

CRTP-based conversion operation for non-constant vectors.

Deprecated
Returns
Mutable reference of the actual type of the vector.

This operator performs the CRTP-based type-safe downcast to the actual type VT of the vector. It will return a mutable reference to the actual type VT.

Deprecated

The documentation for this class was generated from the following file: