STK++ 0.9.13
STK::hidden::ProductTraits< Lhs, Rhs, Arrays::array2D_, Arrays::square_ > Struct Template Reference

specialization for lhs is array2D More...

#include <STK_ProductDispatcher.h>

Public Types

enum  { structure_ = Arrays::array2D_ , sizeRows_ = Traits<Lhs>::sizeRows_ , sizeCols_ }
 
typedef hidden::Promote< typenameLhs::Type, typenameRhs::Type >::result_type Type
 
typedef RemoveConst< Type >::Type constTypeConst
 
typedef If< storage_==int(Arrays::dense_), CAllocator< Type, sizeRows_, sizeCols_, orient_ >, SArray2D< Type > >::Result Allocator
 

Detailed Description

template<typename Lhs, typename Rhs>
struct STK::hidden::ProductTraits< Lhs, Rhs, Arrays::array2D_, Arrays::square_ >

specialization for lhs is array2D

Definition at line 92 of file STK_ProductDispatcher.h.

Member Typedef Documentation

◆ Allocator

◆ Type

template<typename Lhs , typename Rhs >
typedef hidden::Promote<typenameLhs::Type,typenameRhs::Type>::result_type STK::hidden::ProductTraits< Lhs, Rhs, Arrays::array2D_, Arrays::square_ >::Type

Definition at line 111 of file STK_ProductDispatcher.h.

◆ TypeConst

Member Enumeration Documentation

◆ anonymous enum

Enumerator
structure_ 
sizeRows_ 
sizeCols_ 

Definition at line 94 of file STK_ProductDispatcher.h.

95 {
97 sizeRows_ = Traits<Lhs>::sizeRows_,
98 sizeCols_ = Traits<Lhs>::sizeCols_ != UnknownSize ?
99 int(Traits<Lhs>::sizeCols_) : int(Traits<Rhs>::sizeCols_),
100 // use rhs orientation by default, otherwise orientation of the panel size
101 orient_ = ( Traits<Lhs>::sizeRows_ == UnknownSize || Traits<Rhs>::sizeCols_ == UnknownSize)
102 ? Traits<Rhs>::orient_
103 : int(Traits<Lhs>::sizeRows_) > int(Traits<Rhs>::sizeCols_)
104 ? int(Traits<Lhs>::orient_) : int(Traits<Rhs>::orient_),
105 storage_ = ( Traits<Lhs>::storage_ == int(Arrays::dense_)) || (Traits<Rhs>::storage_ == int(Arrays::dense_))
106 ? int(Arrays::dense_) : int(Arrays::sparse_)
107 , useForRows_ = Arrays::useLhsSize_
108 , useForCols_ = Traits<Lhs>::sizeCols_ != UnknownSize ? Arrays::useLhsSize_ : Arrays::useRhsSize_
109 };
@ sparse_
sparse matrix/vector/array/expression
@ dense_
dense matrix/vector/array/expression
@ array2D_
general matrix/array/expression
@ useLhsSize_
use lhs.rows() (resp. lhs.cols()) in order to get rows() (resp. cols())
@ useRhsSize_
use rhs.rows() (resp. rhs.cols()) in order to get rows() (resp. cols())
const int UnknownSize
This value means that an integer is not known at compile-time, and that instead the value is stored i...

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