STK++ 0.9.13
STK::ArrayByArrayProduct< Lhs, Rhs > Class Template Reference

Generic expression where a product operator is applied to two expressions. More...

#include <STK_ProductOperators.h>

Inheritance diagram for STK::ArrayByArrayProduct< Lhs, Rhs >:
Inheritance graph

Public Types

enum  {
  isValid_ , lhs_structure_ = hidden::Traits< ArrayByArrayProduct >::lhs_structure_ , rhs_structure_ = hidden::Traits< ArrayByArrayProduct >::rhs_structure_ , structure_ = hidden::Traits< ArrayByArrayProduct >::structure_ ,
  orient_ = hidden::Traits< ArrayByArrayProduct >::orient_ , sizeRows_ = hidden::Traits< ArrayByArrayProduct >::sizeRows_ , sizeCols_ = hidden::Traits< ArrayByArrayProduct >::sizeCols_ , storage_ = hidden::Traits< ArrayByArrayProduct >::storage_ ,
  useForRows_ = hidden::Traits< ArrayByArrayProduct >::useForRows_ , useForCols_ = hidden::Traits< ArrayByArrayProduct >::useForCols_
}
 
typedef ExprBase< ArrayByArrayProduct< Lhs, Rhs > > Base
 
typedef hidden::Traits< ArrayByArrayProduct >::Type Type
 
typedef hidden::Traits< ArrayByArrayProduct >::TypeConst TypeConst
 
typedef hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Allocator Allocator
 
typedef hidden::ProductDispatcher< Lhs, Rhs, Allocator, lhs_structure_, rhs_structure_Dispatcher
 
typedef hidden::BinaryRowsImpl< Lhs, Rhs, sizeRows_, useForRows_RowsImpl
 
typedef hidden::BinaryColsImpl< Lhs, Rhs, sizeCols_, useForCols_ColsImpl
 
typedef TRange< sizeRows_RowRange
 Type of the Range for the rows.
 
typedef TRange< sizeCols_ColRange
 Type of the Range for the columns.
 
- Public Types inherited from STK::ExprBase< ArrayByArrayProduct< Lhs, Rhs > >
enum  
 
typedef ITContainer< ArrayByArrayProduct< Lhs, Rhs >, structure_ > Base
 
typedef hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type Type
 
typedef hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::TypeConst TypeConst
 

Public Member Functions

 ArrayByArrayProduct (Lhs const &lhs, Rhs const &rhs)
 Constructor.
 
RowRange constrowsImpl () const
 
ColRange constcolsImpl () const
 
Lhs constlhs () const
 
Rhs constrhs () const
 
Allocator constresult () const
 
TypeConst elt2Impl (int i, int j) const
 
TypeConst elt1Impl (int i) const
 
TypeConst elt0Impl () const
 
- Public Member Functions inherited from STK::ExprBase< ArrayByArrayProduct< Lhs, Rhs > >
Visitor::TypeConst visit (Visitor &visitor) const
 Visit the container using a constant visitor.
 
int count () const
 compute the value of non-zero element in an expression.
 
bool const any () const
 check if there is any non-zero element in an expression.
 
bool const all () const
 check if all the elements in an expression are not zero.
 
int nbAvailableValues () const
 
Type const minElt (int &row, int &col) const
 
Type const minElt (int &pos) const
 
Type const minElt () const
 
Type const minEltSafe (int &row, int &col) const
 
Type const minEltSafe (int &pos) const
 
Type const minEltSafe () const
 
Type const maxElt (int &row, int &col) const
 
Type const maxElt (int &pos) const
 
Type const maxElt () const
 
Type const maxEltSafe (int &row, int &col) const
 
Type const maxEltSafe (int &pos) const
 
Type const maxEltSafe () const
 
Type const sum () const
 
Type const sumSafe () const
 
Type const norm () const
 
Type const normSafe () const
 
Type const norm2 () const
 
Type const norm2Safe () const
 
Type const normInf () const
 
Type const mean () const
 
Type const meanSafe () const
 
Type const variance () const
 
Type const variance (Type const &mean) const
 
Type const varianceSafe () const
 
Type const varianceSafe (Type const &mean) const
 
Type const wsum (ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wsum (ExprBase< Rhs > const &weights) const
 
Type const wsumSafe (ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wsumSafe (ExprBase< Rhs > const &weights) const
 
Type const wnorm (ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wnorm (ExprBase< Rhs > const &weights) const
 
Type const wnormSafe (ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wnormSafe (ExprBase< Rhs > const &weights) const
 
Type const wnorm2 (ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wnorm2 (ExprBase< Rhs > const &weights) const
 
Type const wnorm2Safe (ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wnorm2Safe (ExprBase< Rhs > const &weights) const
 
Type const wmean (ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wmean (ExprBase< Rhs > const &weights) const
 
Type const wmeanSafe (ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wmeanSafe (ExprBase< Rhs > const &weights) const
 
Type const wvariance (ExprBase< Rhs > const &weights) const
 
Type const wvariance (Type const &mean, ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wvariance (ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wvariance (Type const &mean, ExprBase< Rhs > const &weights) const
 
Type const wvarianceSafe (ExprBase< Rhs > const &weights) const
 
Type const wvarianceSafe (Type const &mean, ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wvarianceSafe (ExprBase< Rhs > const &weights) const
 
hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::Type const wvarianceSafe (Type const &mean, ExprBase< Rhs > const &weights) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::equalOp_ >::Result const operator== (ExprBase< Rhs > const &other) const
 
UnaryOperator< EqualWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator== (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::notEqualOp_ >::Result const operator!= (ExprBase< Rhs > const &other) const
 
UnaryOperator< NotEqualWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator!= (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::greaterThanOp_ >::Result const operator> (ExprBase< Rhs > const &other) const
 
UnaryOperator< GreaterThanOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator> (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::lessThanOp_ >::Result const operator< (ExprBase< Rhs > const &other) const
 
UnaryOperator< LessThanOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator< (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::greaterThanOrEqualOp_ >::Result const operator>= (ExprBase< Rhs > const &other) const
 
UnaryOperator< GeqThanOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator>= (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::lessThanOrEqualOp_ >::Result const operator<= (ExprBase< Rhs > const &other) const
 
UnaryOperator< LeqThanOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator<= (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::sumOp_ >::Result const operator+ (ExprBase< Rhs > const &other) const
 
UnaryOperator< SumWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator+ (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::differenceOp_ >::Result const operator- (ExprBase< Rhs > const &other) const
 
UnaryOperator< OppositeOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator- () const
 
UnaryOperator< DifferenceWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator- (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::productOp_ >::Result const prod (ExprBase< Rhs > const &other) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::divisionOp_ >::Result const operator/ (ExprBase< Rhs > const &other) const
 
UnaryOperator< DivisionWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator/ (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::moduloOp_ >::Result const operator% (ExprBase< Rhs > const &other) const
 
UnaryOperator< ModuloWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator% (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::minOp_ >::Result const min (ExprBase< Rhs > const &other) const
 
UnaryOperator< MinWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > min (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::maxOp_ >::Result const max (ExprBase< Rhs > const &other) const
 
UnaryOperator< MaxWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > max (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::logicalAndOp_ >::Result const operator&& (ExprBase< Rhs > const &other) const
 
UnaryOperator< LogicalAndWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator&& (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::logicalOrOp_ >::Result const operator|| (ExprBase< Rhs > const &other) const
 
UnaryOperator< LogicalOrWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator|| (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::bitwiseAndOp_ >::Result const operator& (ExprBase< Rhs > const &other) const
 
UnaryOperator< BitwiseAndWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator& (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::bitwiseOrOp_ >::Result const operator| (ExprBase< Rhs > const &other) const
 
UnaryOperator< BitwiseOrWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator| (Type const &value) const
 
hidden::OperatorSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, Arrays::bitwiseXorOp_ >::Result const operator^ (ExprBase< Rhs > const &other) const
 
UnaryOperator< BitwiseXorWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator^ (Type const &value) const
 
UnaryOperator< IsNaOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > isNA () const
 
UnaryOperator< NegOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > neg () const
 
UnaryOperator< IsFiniteOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > isFinite () const
 
UnaryOperator< IsInfiniteOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > isInfinite () const
 
UnaryOperator< AbsOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > abs () const
 
UnaryOperator< ExpOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > exp () const
 
UnaryOperator< LogOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > log () const
 
UnaryOperator< SqrtOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > sqrt () const
 
UnaryOperator< CosOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > cos () const
 
UnaryOperator< SinOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > sin () const
 
UnaryOperator< AcosOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > acos () const
 
UnaryOperator< AsinOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > asin () const
 
UnaryOperator< TanOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > tan () const
 
UnaryOperator< InverseOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > inverse () const
 
UnaryOperator< SquareOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > square () const
 
UnaryOperator< CubeOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > cube () const
 
UnaryOperator< ProductWithOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > operator* (Type const &value) const
 
hidden::ProductSelector< ArrayByArrayProduct< Lhs, Rhs >, Rhs, hidden::Traits< ArrayByArrayProduct< Lhs, Rhs > >::structure_, hidden::Traits< Rhs >::structure_ >::ProductType const operator* (ExprBase< Rhs > const &other) const
 
UnaryOperator< PowOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > pow (Type const &value) const
 
UnaryOperator< SafeInverseOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > safeInverse (Type const &value) const
 
UnaryOperator< SafeOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > const safe (Type const value=Type()) const
 
UnaryOperator< CastOp< Type, OtherType >, ArrayByArrayProduct< Lhs, Rhs > > const cast () const
 
UnaryOperator< Law::PdfOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > pdf (Law::IUnivLaw< Type > const &law) const
 compute pdf values to this using distribution law given by user
 
UnaryOperator< Law::LogPdfOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > lpdf (Law::IUnivLaw< Type > const &law) const
 compute log-pdf values to this using distribution law given by user
 
UnaryOperator< Law::CdfOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > cdf (Law::IUnivLaw< Type > const &law) const
 compute cumulative distribution function of this using distribution law given by user
 
UnaryOperator< Law::LogCdfOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > lcdf (Law::IUnivLaw< Type > const &law) const
 compute log-cumulative distribution function of this using distribution law given by user
 
UnaryOperator< Law::CdfcOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > cdfc (Law::IUnivLaw< Type > const &law) const
 compute complementary cumulative distribution function of this using distribution law given by user
 
UnaryOperator< Law::LogCdfcOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > lcdfc (Law::IUnivLaw< Type > const &law) const
 compute complementary cumulative distribution function of this using distribution law given by user
 
UnaryOperator< Law::IcdfOp< Type >, ArrayByArrayProduct< Lhs, Rhs > > icdf (Law::IUnivLaw< Type > const &law) const
 compute inverse cumulative distribution function using distribution law given by user
 
UnaryOperator< OtherOperator< Type >, ArrayByArrayProduct< Lhs, Rhs > > const funct0 () const
 
UnaryOperator< OtherOperator< Type >, ArrayByArrayProduct< Lhs, Rhs > > const funct1 (Type const value) const
 
TransposeOperator< ArrayByArrayProduct< Lhs, Rhs > > const transpose () const
 
DiagonalizeOperator< ArrayByArrayProduct< Lhs, Rhs > > const diagonalize () const
 
DiagonalGetterOperator< ArrayByArrayProduct< Lhs, Rhs > > const getDiagonal () const
 
UpperTriangularizeOperator< ArrayByArrayProduct< Lhs, Rhs > > const upperTriangularize () const
 
LowerTriangularizeOperator< ArrayByArrayProduct< Lhs, Rhs > > const lowerTriangularize () const
 
SymmetrizeOperator< ArrayByArrayProduct< Lhs, Rhs > > const symmetrize () const
 
UpperSymmetrizeOperator< ArrayByArrayProduct< Lhs, Rhs > > const upperSymmetrize () const
 
LowerSymmetrizeOperator< ArrayByArrayProduct< Lhs, Rhs > > const lowerSymmetrize () const
 
SubVectorOperator< ArrayByArrayProduct< Lhs, Rhs >, Size_ > const sub (TRange< Size_ > const &I) const
 
SubOperator< ArrayByArrayProduct< Lhs, Rhs >, SizeRows_, SizeCols_ > const sub (TRange< SizeRows_ > const &I, TRange< SizeCols_ > const &J) const
 
ColOperator< ArrayByArrayProduct< Lhs, Rhs > > const col (int j) const
 
SubOperator< ArrayByArrayProduct< Lhs, Rhs >, sizeRows_, Size_ > const col (TRange< Size_ > const &J) const
 
RowOperator< ArrayByArrayProduct< Lhs, Rhs > > const row (int i) const
 
SubOperator< ArrayByArrayProduct< Lhs, Rhs >, Size_, sizeCols_ > const row (TRange< Size_ > const &I) const
 
hidden::Promote< Type, typenameRhs::Type >::result_type const dot (ExprBase< Rhs > const &other) const
 
hidden::Promote< Type, typenameRhs::Type >::result_type const dotSafe (ExprBase< Rhs > const &other) const
 

Protected Attributes

Lhs constlhs_
 
Rhs constrhs_
 

Private Attributes

Allocator result_
 

Additional Inherited Members

- Static Public Member Functions inherited from STK::TRef< 1 >
static bool isRef ()
 
- Protected Member Functions inherited from STK::ExprBase< ArrayByArrayProduct< Lhs, Rhs > >
 ExprBase ()
 Default constructor.
 
 ~ExprBase ()
 destructor
 

Detailed Description

template<typename Lhs, typename Rhs>
class STK::ArrayByArrayProduct< Lhs, Rhs >

Generic expression where a product operator is applied to two expressions.

Template Parameters
Lhsleft-hand side type
Rhsright-hand side type

This class represents an expression where a product operator is applied to two expressions.

It is the return type of product operator when the left hand side expression is an array and the right and side expression is an array.

Most of the time, this is the only way that it is used, so you typically don't have to name ArrayByArrayProduct types explicitly.

Template Parameters
Lhsthe type of the left-hand side
Rhsthe type of the right-hand side

This class represents an expression where a product operator is applied to two expressions. It is the return type of product operators, by which we mean only those product operators where both the left-hand side and the right-hand side are expressions. For example, the return type of matrix1*matrix2 is a ArrayByArrayProduct.

Most of the time, this is the only way that it is used, so you typically don't have to name ArrayByArrayProduct types explicitly.

Definition at line 652 of file STK_ProductOperators.h.

Member Typedef Documentation

◆ Allocator

Definition at line 682 of file STK_ProductOperators.h.

◆ Base

◆ ColRange

Type of the Range for the columns.

Definition at line 691 of file STK_ProductOperators.h.

◆ ColsImpl

◆ Dispatcher

◆ RowRange

Type of the Range for the rows.

Definition at line 689 of file STK_ProductOperators.h.

◆ RowsImpl

◆ Type

◆ TypeConst

Definition at line 680 of file STK_ProductOperators.h.

Member Enumeration Documentation

◆ anonymous enum

Enumerator
isValid_ 
lhs_structure_ 
rhs_structure_ 
structure_ 
orient_ 
sizeRows_ 
sizeCols_ 
storage_ 
useForRows_ 
useForCols_ 

Definition at line 655 of file STK_ProductOperators.h.

656 {
657 // All the valid cases for ArrayByArray operator
658 isValid_ = ( EGAL(Lhs,array2D_)||EGAL(Lhs,square_)
659 ||EGAL(Lhs,lower_triangular_)||EGAL(Lhs,upper_triangular_)
660 ||EGAL(Lhs,symmetric_)||EGAL(Lhs,lower_symmetric_)||EGAL(Lhs,upper_symmetric_)
661 )
662 &&
663 ( EGAL(Rhs,array2D_)||EGAL(Rhs,square_)
664 ||EGAL(Rhs,lower_triangular_)||EGAL(Rhs,upper_triangular_)
665 ||EGAL(Rhs,symmetric_)||EGAL(Rhs,lower_symmetric_)||EGAL(Rhs,upper_symmetric_)
666 ),
667 lhs_structure_ = hidden::Traits< ArrayByArrayProduct >::lhs_structure_,
668 rhs_structure_ = hidden::Traits< ArrayByArrayProduct >::rhs_structure_,
669 structure_ = hidden::Traits< ArrayByArrayProduct >::structure_,
670 orient_ = hidden::Traits< ArrayByArrayProduct >::orient_,
671 sizeRows_ = hidden::Traits< ArrayByArrayProduct >::sizeRows_,
672 sizeCols_ = hidden::Traits< ArrayByArrayProduct >::sizeCols_,
673 storage_ = hidden::Traits< ArrayByArrayProduct >::storage_,
674 useForRows_ = hidden::Traits< ArrayByArrayProduct >::useForRows_,
675 useForCols_ = hidden::Traits< ArrayByArrayProduct >::useForCols_
676 };
#define EGAL(arg1, arg2)

Constructor & Destructor Documentation

◆ ArrayByArrayProduct()

template<typename Lhs , typename Rhs >
STK::ArrayByArrayProduct< Lhs, Rhs >::ArrayByArrayProduct ( Lhs const lhs,
Rhs const rhs 
)

Constructor.

Compute the result of the product and store it for further use in result_

Definition at line 723 of file STK_ProductOperators.h.

724 : Base(), lhs_(lhs), rhs_(rhs)
725 , result_(lhs.sizeRows(), rhs.sizeCols(), Type(0))
726{
728 if (lhs.cols() != rhs.rows())
729 { STKRUNTIME_ERROR_NO_ARG(ArrayByArrayProduct,sizes mismatch for 2D array);}
730 result_.shift(lhs_.beginRows(), rhs_.beginCols());
731 // general sizes
733}
#define STKRUNTIME_ERROR_NO_ARG(Where, Error)
Definition STK_Macros.h:138
#define STK_STATIC_ASSERT_PRODUCT_OPERATOR_MISMATCH(COND)
ExprBase< ArrayByArrayProduct< Lhs, Rhs > > Base
hidden::Traits< ArrayByArrayProduct >::Type Type
static void run(Lhs const &lhs, Rhs const &rhs, Result &res)
loop over the columns of rhs first

References STK::ArrayByArrayProduct< Lhs, Rhs >::isValid_, STK::ArrayByArrayProduct< Lhs, Rhs >::lhs(), STK::ArrayByArrayProduct< Lhs, Rhs >::lhs_, STK::ArrayByArrayProduct< Lhs, Rhs >::result_, STK::ArrayByArrayProduct< Lhs, Rhs >::rhs(), STK::ArrayByArrayProduct< Lhs, Rhs >::rhs_, STK::hidden::ProductDispatcher< Lhs, Rhs, Result, lhsStructure_, RhsStructure_ >::run(), STK_STATIC_ASSERT_PRODUCT_OPERATOR_MISMATCH, and STKRUNTIME_ERROR_NO_ARG.

Member Function Documentation

◆ colsImpl()

template<typename Lhs , typename Rhs >
ColRange const & STK::ArrayByArrayProduct< Lhs, Rhs >::colsImpl ( ) const
inline
Returns
range of the columns

Definition at line 698 of file STK_ProductOperators.h.

698{ return ColsImpl::colsImpl(lhs_, rhs_);}

References STK::ArrayByArrayProduct< Lhs, Rhs >::lhs_, and STK::ArrayByArrayProduct< Lhs, Rhs >::rhs_.

◆ elt0Impl()

template<typename Lhs , typename Rhs >
TypeConst STK::ArrayByArrayProduct< Lhs, Rhs >::elt0Impl ( ) const
inline
Returns
number

Definition at line 712 of file STK_ProductOperators.h.

712{ return result_.elt();}

References STK::ArrayByArrayProduct< Lhs, Rhs >::result_.

◆ elt1Impl()

template<typename Lhs , typename Rhs >
TypeConst STK::ArrayByArrayProduct< Lhs, Rhs >::elt1Impl ( int  i) const
inline
Returns
ith element

Definition at line 710 of file STK_ProductOperators.h.

710{ return result_.elt(i);}

References STK::ArrayByArrayProduct< Lhs, Rhs >::result_.

◆ elt2Impl()

template<typename Lhs , typename Rhs >
TypeConst STK::ArrayByArrayProduct< Lhs, Rhs >::elt2Impl ( int  i,
int  j 
) const
inline
Returns
element (i,j)

Definition at line 708 of file STK_ProductOperators.h.

708{ return result_.elt(i,j);}

References STK::ArrayByArrayProduct< Lhs, Rhs >::result_.

◆ lhs()

template<typename Lhs , typename Rhs >
Lhs const & STK::ArrayByArrayProduct< Lhs, Rhs >::lhs ( ) const
inline
Returns
the left hand side expression

Definition at line 701 of file STK_ProductOperators.h.

701{ return lhs_; }

References STK::ArrayByArrayProduct< Lhs, Rhs >::lhs_.

Referenced by STK::ArrayByArrayProduct< Lhs, Rhs >::ArrayByArrayProduct().

◆ result()

template<typename Lhs , typename Rhs >
Allocator const & STK::ArrayByArrayProduct< Lhs, Rhs >::result ( ) const
inline
Returns
the result

Definition at line 705 of file STK_ProductOperators.h.

705{ return result_; }

References STK::ArrayByArrayProduct< Lhs, Rhs >::result_.

◆ rhs()

template<typename Lhs , typename Rhs >
Rhs const & STK::ArrayByArrayProduct< Lhs, Rhs >::rhs ( ) const
inline
Returns
the right hand side nested expression

Definition at line 703 of file STK_ProductOperators.h.

703{ return rhs_; }

References STK::ArrayByArrayProduct< Lhs, Rhs >::rhs_.

Referenced by STK::ArrayByArrayProduct< Lhs, Rhs >::ArrayByArrayProduct().

◆ rowsImpl()

template<typename Lhs , typename Rhs >
RowRange const & STK::ArrayByArrayProduct< Lhs, Rhs >::rowsImpl ( ) const
inline
Returns
range of the rows

Definition at line 696 of file STK_ProductOperators.h.

696{ return RowsImpl::rowsImpl(lhs_, rhs_);}

References STK::ArrayByArrayProduct< Lhs, Rhs >::lhs_, and STK::ArrayByArrayProduct< Lhs, Rhs >::rhs_.

Member Data Documentation

◆ lhs_

◆ result_

◆ rhs_


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