STK++ 0.9.13
STK::SubAccessor< Lhs, SizeRows_, SizeCols_ > Class Template Reference

Generic expression when the sub-part of an expression is accessed. More...

#include <STK_SlicingAccessors.h>

Inheritance diagram for STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >:
Inheritance graph

Public Types

enum  {
  structure_ = hidden::Traits< SubAccessor<Lhs, SizeRows_, SizeCols_> >::structure_ , orient_ = hidden::Traits< SubAccessor<Lhs, SizeRows_, SizeCols_> >::orient_ , sizeRows_ = hidden::Traits< SubAccessor<Lhs, SizeRows_, SizeCols_> >::sizeRows_ , sizeCols_ = hidden::Traits< SubAccessor<Lhs, SizeRows_, SizeCols_> >::sizeCols_ ,
  storage_ = hidden::Traits< SubAccessor<Lhs, SizeRows_, SizeCols_> >::storage_
}
 
typedef hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type Type
 
typedef hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::TypeConst TypeConst
 
typedef ExprBase< SubAccessor< Lhs, SizeRows_, SizeCols_ > > Base
 
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< SubAccessor< Lhs, SizeRows_, SizeCols_ > >
enum  
 
typedef ITContainer< SubAccessor< Lhs, SizeRows_, SizeCols_ >, structure_ > Base
 
typedef hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type Type
 
typedef hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::TypeConst TypeConst
 

Public Member Functions

 SubAccessor (Lhs &lhs, RowRange const &I, ColRange const &J)
 constructor
 
RowRange constrowsImpl () const
 
ColRange constcolsImpl () const
 
Lhs constlhs () const
 
TypeConst elt2Impl (int i, int j) const
 
TypeConst elt1Impl (int i) const
 
TypeConst elt0Impl () const
 accesses to the element
 
Typeelt2Impl (int i, int j)
 
Typeelt1Impl (int i)
 
Typeelt0Impl ()
 accesses to the element
 
- Public Member Functions inherited from STK::ExprBase< SubAccessor< Lhs, SizeRows_, SizeCols_ > >
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< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type const wsum (ExprBase< Rhs > const &weights) const
 
Type const wsumSafe (ExprBase< Rhs > const &weights) const
 
hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type const wsumSafe (ExprBase< Rhs > const &weights) const
 
Type const wnorm (ExprBase< Rhs > const &weights) const
 
hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type const wnorm (ExprBase< Rhs > const &weights) const
 
Type const wnormSafe (ExprBase< Rhs > const &weights) const
 
hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type const wnormSafe (ExprBase< Rhs > const &weights) const
 
Type const wnorm2 (ExprBase< Rhs > const &weights) const
 
hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type const wnorm2 (ExprBase< Rhs > const &weights) const
 
Type const wnorm2Safe (ExprBase< Rhs > const &weights) const
 
hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type const wnorm2Safe (ExprBase< Rhs > const &weights) const
 
Type const wmean (ExprBase< Rhs > const &weights) const
 
hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type const wmean (ExprBase< Rhs > const &weights) const
 
Type const wmeanSafe (ExprBase< Rhs > const &weights) const
 
hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::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< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type const wvariance (ExprBase< Rhs > const &weights) const
 
hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::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< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type const wvarianceSafe (ExprBase< Rhs > const &weights) const
 
hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::Type const wvarianceSafe (Type const &mean, ExprBase< Rhs > const &weights) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::equalOp_ >::Result const operator== (ExprBase< Rhs > const &other) const
 
UnaryOperator< EqualWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator== (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::notEqualOp_ >::Result const operator!= (ExprBase< Rhs > const &other) const
 
UnaryOperator< NotEqualWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator!= (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::greaterThanOp_ >::Result const operator> (ExprBase< Rhs > const &other) const
 
UnaryOperator< GreaterThanOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator> (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::lessThanOp_ >::Result const operator< (ExprBase< Rhs > const &other) const
 
UnaryOperator< LessThanOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator< (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::greaterThanOrEqualOp_ >::Result const operator>= (ExprBase< Rhs > const &other) const
 
UnaryOperator< GeqThanOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator>= (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::lessThanOrEqualOp_ >::Result const operator<= (ExprBase< Rhs > const &other) const
 
UnaryOperator< LeqThanOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator<= (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::sumOp_ >::Result const operator+ (ExprBase< Rhs > const &other) const
 
UnaryOperator< SumWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator+ (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::differenceOp_ >::Result const operator- (ExprBase< Rhs > const &other) const
 
UnaryOperator< OppositeOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator- () const
 
UnaryOperator< DifferenceWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator- (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::productOp_ >::Result const prod (ExprBase< Rhs > const &other) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::divisionOp_ >::Result const operator/ (ExprBase< Rhs > const &other) const
 
UnaryOperator< DivisionWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator/ (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::moduloOp_ >::Result const operator% (ExprBase< Rhs > const &other) const
 
UnaryOperator< ModuloWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator% (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::minOp_ >::Result const min (ExprBase< Rhs > const &other) const
 
UnaryOperator< MinWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > min (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::maxOp_ >::Result const max (ExprBase< Rhs > const &other) const
 
UnaryOperator< MaxWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > max (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::logicalAndOp_ >::Result const operator&& (ExprBase< Rhs > const &other) const
 
UnaryOperator< LogicalAndWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator&& (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::logicalOrOp_ >::Result const operator|| (ExprBase< Rhs > const &other) const
 
UnaryOperator< LogicalOrWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator|| (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::bitwiseAndOp_ >::Result const operator& (ExprBase< Rhs > const &other) const
 
UnaryOperator< BitwiseAndWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator& (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::bitwiseOrOp_ >::Result const operator| (ExprBase< Rhs > const &other) const
 
UnaryOperator< BitwiseOrWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator| (Type const &value) const
 
hidden::OperatorSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, Arrays::bitwiseXorOp_ >::Result const operator^ (ExprBase< Rhs > const &other) const
 
UnaryOperator< BitwiseXorWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator^ (Type const &value) const
 
UnaryOperator< IsNaOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > isNA () const
 
UnaryOperator< NegOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > neg () const
 
UnaryOperator< IsFiniteOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > isFinite () const
 
UnaryOperator< IsInfiniteOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > isInfinite () const
 
UnaryOperator< AbsOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > abs () const
 
UnaryOperator< ExpOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > exp () const
 
UnaryOperator< LogOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > log () const
 
UnaryOperator< SqrtOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > sqrt () const
 
UnaryOperator< CosOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > cos () const
 
UnaryOperator< SinOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > sin () const
 
UnaryOperator< AcosOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > acos () const
 
UnaryOperator< AsinOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > asin () const
 
UnaryOperator< TanOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > tan () const
 
UnaryOperator< InverseOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > inverse () const
 
UnaryOperator< SquareOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > square () const
 
UnaryOperator< CubeOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > cube () const
 
UnaryOperator< ProductWithOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > operator* (Type const &value) const
 
hidden::ProductSelector< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Rhs, hidden::Traits< SubAccessor< Lhs, SizeRows_, SizeCols_ > >::structure_, hidden::Traits< Rhs >::structure_ >::ProductType const operator* (ExprBase< Rhs > const &other) const
 
UnaryOperator< PowOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > pow (Type const &value) const
 
UnaryOperator< SafeInverseOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > safeInverse (Type const &value) const
 
UnaryOperator< SafeOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > const safe (Type const value=Type()) const
 
UnaryOperator< CastOp< Type, OtherType >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > const cast () const
 
UnaryOperator< Law::PdfOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > pdf (Law::IUnivLaw< Type > const &law) const
 compute pdf values to this using distribution law given by user
 
UnaryOperator< Law::LogPdfOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > lpdf (Law::IUnivLaw< Type > const &law) const
 compute log-pdf values to this using distribution law given by user
 
UnaryOperator< Law::CdfOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > cdf (Law::IUnivLaw< Type > const &law) const
 compute cumulative distribution function of this using distribution law given by user
 
UnaryOperator< Law::LogCdfOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > lcdf (Law::IUnivLaw< Type > const &law) const
 compute log-cumulative distribution function of this using distribution law given by user
 
UnaryOperator< Law::CdfcOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > cdfc (Law::IUnivLaw< Type > const &law) const
 compute complementary cumulative distribution function of this using distribution law given by user
 
UnaryOperator< Law::LogCdfcOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > lcdfc (Law::IUnivLaw< Type > const &law) const
 compute complementary cumulative distribution function of this using distribution law given by user
 
UnaryOperator< Law::IcdfOp< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > icdf (Law::IUnivLaw< Type > const &law) const
 compute inverse cumulative distribution function using distribution law given by user
 
UnaryOperator< OtherOperator< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > const funct0 () const
 
UnaryOperator< OtherOperator< Type >, SubAccessor< Lhs, SizeRows_, SizeCols_ > > const funct1 (Type const value) const
 
TransposeOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ > > const transpose () const
 
DiagonalizeOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ > > const diagonalize () const
 
DiagonalGetterOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ > > const getDiagonal () const
 
UpperTriangularizeOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ > > const upperTriangularize () const
 
LowerTriangularizeOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ > > const lowerTriangularize () const
 
SymmetrizeOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ > > const symmetrize () const
 
UpperSymmetrizeOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ > > const upperSymmetrize () const
 
LowerSymmetrizeOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ > > const lowerSymmetrize () const
 
SubVectorOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ >, Size_ > const sub (TRange< Size_ > const &I) const
 
SubOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ >, SizeRows_, SizeCols_ > const sub (TRange< SizeRows_ > const &I, TRange< SizeCols_ > const &J) const
 
ColOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ > > const col (int j) const
 
SubOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ >, sizeRows_, Size_ > const col (TRange< Size_ > const &J) const
 
RowOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ > > const row (int i) const
 
SubOperator< SubAccessor< Lhs, SizeRows_, SizeCols_ >, 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

Lhslhs_
 
RowRange rows_
 
ColRange cols_
 

Additional Inherited Members

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

Detailed Description

template<typename Lhs, int SizeRows_, int SizeCols_>
class STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >

Generic expression when the sub-part of an expression is accessed.

Template Parameters
Lhsthe type of the array or expression to which we are applying the sub operator.

This class represents an expression where a subVectorOperator is applied to an array expression. It is the return type of the sub(I, J) operation.

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

Definition at line 501 of file STK_SlicingAccessors.h.

Member Typedef Documentation

◆ Base

Definition at line 515 of file STK_SlicingAccessors.h.

◆ ColRange

template<typename Lhs , int SizeRows_, int SizeCols_>
typedef TRange<sizeCols_> STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::ColRange

Type of the Range for the columns.

Definition at line 520 of file STK_SlicingAccessors.h.

◆ RowRange

template<typename Lhs , int SizeRows_, int SizeCols_>
typedef TRange<sizeRows_> STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::RowRange

Type of the Range for the rows.

Definition at line 518 of file STK_SlicingAccessors.h.

◆ Type

Definition at line 505 of file STK_SlicingAccessors.h.

◆ TypeConst

template<typename Lhs , int SizeRows_, int SizeCols_>
typedef hidden::Traits<SubAccessor<Lhs,SizeRows_,SizeCols_>>::TypeConst STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::TypeConst

Definition at line 506 of file STK_SlicingAccessors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Lhs , int SizeRows_, int SizeCols_>
anonymous enum
Enumerator
structure_ 
orient_ 
sizeRows_ 
sizeCols_ 
storage_ 

Definition at line 507 of file STK_SlicingAccessors.h.

508 {
509 structure_ = hidden::Traits< SubAccessor<Lhs, SizeRows_, SizeCols_> >::structure_,
510 orient_ = hidden::Traits< SubAccessor<Lhs, SizeRows_, SizeCols_> >::orient_,
511 sizeRows_ = hidden::Traits< SubAccessor<Lhs, SizeRows_, SizeCols_> >::sizeRows_,
512 sizeCols_ = hidden::Traits< SubAccessor<Lhs, SizeRows_, SizeCols_> >::sizeCols_,
513 storage_ = hidden::Traits< SubAccessor<Lhs, SizeRows_, SizeCols_> >::storage_
514 };

Constructor & Destructor Documentation

◆ SubAccessor()

template<typename Lhs , int SizeRows_, int SizeCols_>
STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::SubAccessor ( Lhs lhs,
RowRange const I,
ColRange const J 
)
inline

constructor

Definition at line 523 of file STK_SlicingAccessors.h.

524 : Base(), lhs_(lhs), rows_(I), cols_(J) {}
ExprBase< SubAccessor< Lhs, SizeRows_, SizeCols_ > > Base
Lhs const & lhs() const

Member Function Documentation

◆ colsImpl()

template<typename Lhs , int SizeRows_, int SizeCols_>
ColRange const & STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::colsImpl ( ) const
inline
Returns
the range of the Columns

Definition at line 528 of file STK_SlicingAccessors.h.

528{ return cols_;}

◆ elt0Impl() [1/2]

template<typename Lhs , int SizeRows_, int SizeCols_>
Type & STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::elt0Impl ( )
inline

accesses to the element

Definition at line 552 of file STK_SlicingAccessors.h.

552{ return (lhs_.elt());}

◆ elt0Impl() [2/2]

template<typename Lhs , int SizeRows_, int SizeCols_>
TypeConst STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::elt0Impl ( ) const
inline

accesses to the element

Definition at line 541 of file STK_SlicingAccessors.h.

541{ return (lhs_.elt());}

◆ elt1Impl() [1/2]

template<typename Lhs , int SizeRows_, int SizeCols_>
Type & STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::elt1Impl ( int  i)
inline
Returns
i-th element
Parameters
ielement index

Definition at line 550 of file STK_SlicingAccessors.h.

550{ return (lhs_.elt1Impl(i));}

◆ elt1Impl() [2/2]

template<typename Lhs , int SizeRows_, int SizeCols_>
TypeConst STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::elt1Impl ( int  i) const
inline
Returns
i-th element
Parameters
ielement index

Definition at line 539 of file STK_SlicingAccessors.h.

539{ return (lhs_.elt1Impl(i));}

◆ elt2Impl() [1/2]

template<typename Lhs , int SizeRows_, int SizeCols_>
Type & STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::elt2Impl ( int  i,
int  j 
)
inline
Returns
element (i,j)
Parameters
i,jrow and column indexes

Definition at line 546 of file STK_SlicingAccessors.h.

546{ return (lhs_.elt2Impl(i, j));}

◆ elt2Impl() [2/2]

template<typename Lhs , int SizeRows_, int SizeCols_>
TypeConst STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::elt2Impl ( int  i,
int  j 
) const
inline
Returns
element (i,j)
Parameters
i,jrow and column indexes

Definition at line 535 of file STK_SlicingAccessors.h.

535{ return (lhs_.elt2Impl(i, j));}

◆ lhs()

template<typename Lhs , int SizeRows_, int SizeCols_>
Lhs const & STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::lhs ( ) const
inline
Returns
the left hand side expression

Definition at line 530 of file STK_SlicingAccessors.h.

530{ return lhs_;}

◆ rowsImpl()

template<typename Lhs , int SizeRows_, int SizeCols_>
RowRange const & STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::rowsImpl ( ) const
inline
Returns
the range of the rows

Definition at line 526 of file STK_SlicingAccessors.h.

526{ return rows_;}

Member Data Documentation

◆ cols_

template<typename Lhs , int SizeRows_, int SizeCols_>
ColRange STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::cols_
protected

Definition at line 557 of file STK_SlicingAccessors.h.

◆ lhs_

template<typename Lhs , int SizeRows_, int SizeCols_>
Lhs& STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::lhs_
protected

Definition at line 555 of file STK_SlicingAccessors.h.

◆ rows_

template<typename Lhs , int SizeRows_, int SizeCols_>
RowRange STK::SubAccessor< Lhs, SizeRows_, SizeCols_ >::rows_
protected

Definition at line 556 of file STK_SlicingAccessors.h.


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