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

#include <STK_BinaryImpl.h>

Public Types

enum  {
  structure_ = Arrays::vector_ , binary_op_Kind_ = Arrays::binary_op_1D_ , sizeRows_ = Lhs::sizeRows_ != UnknownSize ? int(Lhs::sizeRows_) : int(Rhs::sizeCols_) , sizeCols_ = 1 ,
  useForRows_ = Lhs::sizeRows_ != UnknownSize ? Arrays::useLhsSize_ : Arrays::useRhsOtherSize_ , useForCols_ = Arrays::useLhsSize_
}
 
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::vector_, Arrays::point_ >

Definition at line 1105 of file STK_BinaryImpl.h.

Member Typedef Documentation

◆ result_type

Definition at line 1107 of file STK_BinaryImpl.h.

Member Enumeration Documentation

◆ anonymous enum

Enumerator
structure_ 
binary_op_Kind_ 
sizeRows_ 
sizeCols_ 
useForRows_ 
useForCols_ 

Definition at line 1108 of file STK_BinaryImpl.h.

1108 { structure_ = Arrays::vector_ // vector + point is vector (somehow an arbitrary choice)
1110 , sizeRows_ = Lhs::sizeRows_ != UnknownSize ? int(Lhs::sizeRows_) : int(Rhs::sizeCols_)
1111 , sizeCols_ = 1
1112 , useForRows_ = Lhs::sizeRows_ != UnknownSize ? Arrays::useLhsSize_ : Arrays::useRhsOtherSize_
1113 , useForCols_ = Arrays::useLhsSize_
1114 };
@ vector_
column oriented vector/array/expression
@ useRhsOtherSize_
if true, use rhs.cols() in order to get rows() and rhs.rows() in order to get cols()
@ useLhsSize_
use lhs.rows() (resp. lhs.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 1117 of file STK_BinaryImpl.h.

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

◆ elt2Impl()

Definition at line 1115 of file STK_BinaryImpl.h.

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

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