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

#include <STK_BinaryImpl.h>

Public Types

enum  {
  structure_ = Arrays::upper_symmetric_ , binary_op_Kind_ = Arrays::binary_op_UpSym_Diag_ , sizeRows_ = Lhs::sizeRows_ != UnknownSize ? int(Lhs::sizeRows_) : int(Rhs::sizeRows_) , sizeCols_ = Lhs::sizeCols_ != UnknownSize ? int(Lhs::sizeCols_) : int(Rhs::sizeCols_) ,
  useForRows_ = Lhs::sizeRows_ != UnknownSize ? Arrays::useLhsSize_ : Arrays::useRhsSize_ , useForCols_ = Lhs::sizeCols_ != UnknownSize ? Arrays::useLhsSize_ : Arrays::useRhsSize_
}
 
typedef FunctorOp::result_type result_type
 
typedef Rhs::Type RType
 

Static Public Member Functions

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

Detailed Description

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

Definition at line 807 of file STK_BinaryImpl.h.

Member Typedef Documentation

◆ result_type

Definition at line 809 of file STK_BinaryImpl.h.

◆ RType

Member Enumeration Documentation

◆ anonymous enum

Enumerator
structure_ 
binary_op_Kind_ 
sizeRows_ 
sizeCols_ 
useForRows_ 
useForCols_ 

Definition at line 811 of file STK_BinaryImpl.h.

813 , sizeRows_ = Lhs::sizeRows_ != UnknownSize ? int(Lhs::sizeRows_) : int(Rhs::sizeRows_)
814 , sizeCols_ = Lhs::sizeCols_ != UnknownSize ? int(Lhs::sizeCols_) : int(Rhs::sizeCols_)
815 , useForRows_ = Lhs::sizeRows_ != UnknownSize ? Arrays::useLhsSize_ : Arrays::useRhsSize_
816 , useForCols_ = Lhs::sizeCols_ != UnknownSize ? Arrays::useLhsSize_ : Arrays::useRhsSize_
817 };
@ upper_symmetric_
upper symmetric 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...

Member Function Documentation

◆ elt2Impl()

Definition at line 818 of file STK_BinaryImpl.h.

819 { return (i==j) ? f(l.elt(i,j), r.elt(i,j)) : (i<j) ? f(l.elt(i,j), RType()) : f(l.elt(j,i), RType());}

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