STK++ 0.9.13
STK::hidden::BinaryEltImpl< FunctorOp, Lhs, Rhs, Arrays::point_, Arrays::diagonal_ > Struct Template Reference

#include <STK_BinaryImpl.h>

Public Types

enum  {
  structure_ = Arrays::diagonal_ , binary_op_Kind_ = Arrays::binary_op_1D_ , sizeRows_ = Rhs::sizeRows_ != UnknownSize ? int(Rhs::sizeRows_) : int(Lhs::sizeCols_) , sizeCols_ = Lhs::sizeCols_ != UnknownSize ? int(Lhs::sizeCols_) : int(Rhs::sizeCols_) ,
  useForRows_ = Rhs::sizeRows_ != UnknownSize ? Arrays::useRhsSize_ : Arrays::useLhsOtherSize_ , useForCols_ = Lhs::sizeCols_ != UnknownSize ? Arrays::useLhsSize_ : Arrays::useRhsSize_
}
 
typedef FunctorOp::result_type result_type
 

Static Public Member Functions

static result_type elt2Impl (FunctorOp const &f, Lhs const &l, Rhs const &r, int i, int j)
 
static result_type elt1Impl (FunctorOp const &f, Lhs const &l, Rhs const &r, int i)
 

Detailed Description

template<typename FunctorOp, typename Lhs, typename Rhs>
struct STK::hidden::BinaryEltImpl< FunctorOp, Lhs, Rhs, Arrays::point_, Arrays::diagonal_ >

Definition at line 1124 of file STK_BinaryImpl.h.

Member Typedef Documentation

◆ result_type

Definition at line 1126 of file STK_BinaryImpl.h.

Member Enumeration Documentation

◆ anonymous enum

Enumerator
structure_ 
binary_op_Kind_ 
sizeRows_ 
sizeCols_ 
useForRows_ 
useForCols_ 

Definition at line 1127 of file STK_BinaryImpl.h.

1127 { structure_ = Arrays::diagonal_ // point_ + diagonal_ is diagonal_
1129 , sizeRows_ = Rhs::sizeRows_ != UnknownSize ? int(Rhs::sizeRows_) : int(Lhs::sizeCols_)
1130 , sizeCols_ = Lhs::sizeCols_ != UnknownSize ? int(Lhs::sizeCols_) : int(Rhs::sizeCols_)
1131 , useForRows_ = Rhs::sizeRows_ != UnknownSize ? Arrays::useRhsSize_ : Arrays::useLhsOtherSize_
1132 , useForCols_ = Lhs::sizeCols_ != UnknownSize ? Arrays::useLhsSize_ : Arrays::useRhsSize_
1133 };
@ diagonal_
diagonal matrix/array/expression
@ useLhsOtherSize_
if true, use lhs.cols() in order to get rows() and lhs.rows() in order to get cols()
@ 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())
@ binary_op_1D_
both operand are vector or point or diagonal
const int UnknownSize
This value means that an integer is not known at compile-time, and that instead the value is stored i...

Member Function Documentation

◆ elt1Impl()

Definition at line 1136 of file STK_BinaryImpl.h.

1137 { return f(l.elt(i), r.elt(i));}

◆ elt2Impl()

Definition at line 1134 of file STK_BinaryImpl.h.

1135 { return f(l.elt(i,j), r.elt(i,j));}

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