All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
blaze::DVecTransExpr< VT, TF > Class Template Reference

Expression object for dense vector transpositions.The DVecTransExpr class represents the compile time expression for transpositions of dense vectors. More...

#include <DVecTransExpr.h>

Inherits blaze::DenseVector< DVecTransExpr< VT, TF >, TF >, blaze::Expression, and Type< IsComputation< VT >::value, Computation, EmptyType >.

Public Types

enum  { vectorizable = VT::vectorizable }
 Compilation switch for the expression template evaluation strategy.
 
enum  { canAlias = CanAlias<VT>::value }
 Compilation flag for the detection of aliasing effects.
 
typedef DVecTransExpr< VT, TF > This
 Type of this DVecTransExpr instance.
 
typedef VT::TransposeType ResultType
 Result type for expression template evaluations.
 
typedef VT::ResultType TransposeType
 Transpose type for expression template evaluations.
 
typedef VT::ElementType ElementType
 Resulting element type.
 
typedef VT::ReturnType ReturnType
 Return type for expression template evaluations.
 
typedef IntrinsicTrait
< ElementType >::Type 
IntrinsicType
 Resulting intrinsic element type.
 
typedef SelectType< useAssign,
const ResultType, const
DVecTransExpr & >::Type 
CompositeType
 Data type for composite expression templates.
 
typedef SelectType
< IsExpression< VT >::value,
const VT, const VT & >::Type 
Operand
 Composite data type of the dense vector expression.
 
typedef VT VectorType
 Type of the vector.
 

Public Member Functions

 DVecTransExpr (const VT &dv)
 Constructor for the DVecTransExpr class.
 
ReturnType operator[] (size_t index) const
 Subscript operator for the direct access to the vector elements.
 
IntrinsicType get (size_t index) const
 Access to the intrinsic elements of the vector.
 
const ElementTypedata () const
 Low-level data access to the vector elements.
 
size_t size () const
 Returns the current size/dimension of the vector.
 
Operand operand () const
 Returns the dense vector operand.
 
template<typename T >
bool isAliased (const T *alias) const
 Returns whether the expression is aliased with the given address alias.
 
VectorTypeoperator~ ()
 Conversion operator for non-constant vectors.
 
const VectorTypeoperator~ () const
 Conversion operator for constant vectors.
 

Private Types

enum  { useAssign = RequiresEvaluation<VT>::value }
 Compilation switch for the evaluation strategy of the transposition expression. More...
 
typedef VT::CompositeType CT
 Composite type of the dense vector expression.
 

Private Attributes

Operand dv_
 Dense vector of the transposition expression.
 

Detailed Description

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

Expression object for dense vector transpositions.

The DVecTransExpr class represents the compile time expression for transpositions of dense vectors.

Member Enumeration Documentation

template<typename VT , bool TF>
anonymous enum
private

Compilation switch for the evaluation strategy of the transposition expression.

The useAssign compile time constant expression represents a compilation switch for the evaluation strategy of the transposition expression. In case the given dense vector expression of type VT requires an intermediate evaluation, useAssign will be set to 1 and the transposition expression will be evaluated via the assign function family. Otherwise useAssign will be set to 0 and the expression will be evaluated via the subscript operator.

Constructor & Destructor Documentation

template<typename VT , bool TF>
blaze::DVecTransExpr< VT, TF >::DVecTransExpr ( const VT &  dv)
inlineexplicit

Constructor for the DVecTransExpr class.

Parameters
dvThe dense vector operand of the transposition expression.

Member Function Documentation

template<typename VT , bool TF>
const ElementType* blaze::DVecTransExpr< VT, TF >::data ( ) const
inline

Low-level data access to the vector elements.

Returns
Pointer to the internal element storage.
template<typename VT , bool TF>
IntrinsicType blaze::DVecTransExpr< VT, TF >::get ( size_t  index) const
inline

Access to the intrinsic elements of the vector.

Parameters
indexAccess index. The index has to be in the range $[0..N-1]$.
Returns
Reference to the accessed values.
template<typename VT , bool TF>
template<typename T >
bool blaze::DVecTransExpr< VT, TF >::isAliased ( const T *  alias) const
inline

Returns whether the expression is aliased with the given address alias.

Parameters
aliasThe alias to be checked.
Returns
true in case an alias effect is detected, false otherwise.
template<typename VT , bool TF>
Operand blaze::DVecTransExpr< VT, TF >::operand ( ) const
inline

Returns the dense vector operand.

Returns
The dense vector operand.
template<typename VT , bool TF>
ReturnType blaze::DVecTransExpr< VT, TF >::operator[] ( size_t  index) const
inline

Subscript operator for the direct access to the vector elements.

Parameters
indexAccess index. The index has to be in the range $[0..N-1]$.
Returns
The resulting value.
template<typename VT, bool TF>
VectorType& blaze::Vector< VT, TF >::operator~ ( )
inlineinherited

Conversion operator for non-constant vectors.

Returns
Reference of the actual type of the vector.
template<typename VT, bool TF>
const VectorType& blaze::Vector< VT, TF >::operator~ ( ) const
inlineinherited

Conversion operator for constant vectors.

Returns
Const reference of the actual type of the vector.
template<typename VT , bool TF>
size_t blaze::DVecTransExpr< VT, TF >::size ( ) const
inline

Returns the current size/dimension of the vector.

Returns
The size of the vector.

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