STK++ 0.9.13
STK::UpperTriangularizeAccessor< Lhs > Class Template Reference

Generic expression when we want to get the upper-part of a two-dimensional expression. More...

#include <STK_ReshapeAccessors.h>

Inheritance diagram for STK::UpperTriangularizeAccessor< Lhs >:
Inheritance graph

Public Types

enum  {
  structure_ = hidden::Traits< UpperTriangularizeAccessor<Lhs> >::structure_ , orient_ = hidden::Traits< UpperTriangularizeAccessor<Lhs> >::orient_ , sizeRows_ = hidden::Traits< UpperTriangularizeAccessor<Lhs> >::sizeRows_ , sizeCols_ = hidden::Traits< UpperTriangularizeAccessor<Lhs> >::sizeCols_ ,
  storage_ = hidden::Traits< UpperTriangularizeAccessor<Lhs> >::storage_
}
typedef ArrayBase< UpperTriangularizeAccessor< Lhs > > Base
typedef hidden::Traits< UpperTriangularizeAccessor< Lhs > >::Type Type
typedef hidden::Traits< UpperTriangularizeAccessor< Lhs > >::TypeConst TypeConst
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::ArrayBase< UpperTriangularizeAccessor< Lhs > >
typedef ExprBase< UpperTriangularizeAccessor< Lhs > > Base
typedef hidden::Traits< UpperTriangularizeAccessor< Lhs > >::Type Type
typedef hidden::Traits< UpperTriangularizeAccessor< Lhs > >::TypeConst TypeConst
enum  
Public Types inherited from STK::ExprBase< Derived >
enum  {
  structure_ = hidden::Traits<Derived>::structure_ , orient_ = hidden::Traits<Derived>::orient_ , sizeRows_ = hidden::Traits<Derived>::sizeRows_ , sizeCols_ = hidden::Traits<Derived>::sizeCols_ ,
  storage_ = hidden::Traits<Derived>::storage_
}
typedef ITContainer< Derived, structure_ > Base
typedef hidden::Traits< Derived >::Type Type
typedef hidden::Traits< Derived >::TypeConst TypeConst

Public Member Functions

 UpperTriangularizeAccessor (Lhs &lhs)
 Constructor.
Lhs const & lhs () const
RowRange const & rowsImpl () const
ColRange const & colsImpl () const
TypeConst elt2Impl (int i, int j) const
Type & elt2Impl (int i, int j)
Public Member Functions inherited from STK::ArrayBase< UpperTriangularizeAccessor< Lhs > >
void apply (Visitor &visitor)
 Apply the Visitor visitor to the whole coefficients of the array.
UpperTriangularizeAccessor< Lhs > & randUnif ()
 set random values to this using a uniform law.
UpperTriangularizeAccessor< Lhs > & randGauss ()
 set random values to this using a standard gaussian law.
UpperTriangularizeAccessor< Lhs > & rand (Law::IUnivLaw< Type > const &law)
 set random values to this using a distribution law given by the user.
UpperTriangularizeAccessor< Lhs > & setOnes ()
 set one to this using a Visitor.
UpperTriangularizeAccessor< Lhs > & setZeros ()
 set zero to this using a Visitor.
UpperTriangularizeAccessor< Lhs > & ones ()
 set one to this using a Visitor.
UpperTriangularizeAccessor< Lhs > & zeros ()
 set zero to this using a Visitor.
UpperTriangularizeAccessor< Lhs > & setValue (TypeConst value)
 set a value to this container.
void setValue (int i, TypeConst value)
 set a value to this container at index i.
void setValue (int i, int j, TypeConst value)
 set a value to this container at position (i,j).
UpperTriangularizeAccessor< Lhs > & assign (ExprBase< Rhs > const &rhs)
UpperTriangularizeAccessor< Lhs > & operator= (Type const &value)
UpperTriangularizeAccessor< Lhs > & operator= (UpperTriangularizeAccessor< Lhs > const &rhs)
UpperTriangularizeAccessor< Lhs > & operator= (ExprBase< Rhs > const &rhs)
UpperTriangularizeAccessor< Lhs > & operator+= (ExprBase< Rhs > const &other)
 Add Rhs to this.
UpperTriangularizeAccessor< Lhs > & operator-= (ExprBase< Rhs > const &other)
 subtract a Rhs to this.
UpperTriangularizeAccessor< Lhs > & operator/= (ExprBase< Rhs > const &other)
 divide this by Rhs.
UpperTriangularizeAccessor< Lhs > & operator%= (ExprBase< Rhs > const &other)
 Take modulo of this by Rhs.
UpperTriangularizeAccessor< Lhs > & operator*= (ExprBase< Rhs > const &other)
 multiply this by Rhs.
UpperTriangularizeAccessor< Lhs > & operator+= (Type const &other)
 Adding a constant to this.
UpperTriangularizeAccessor< Lhs > & operator-= (Type const &other)
 Subtract a constant to this.
UpperTriangularizeAccessor< Lhs > & operator*= (Type const &other)
 product of this by a constant.
UpperTriangularizeAccessor< Lhs > & operator/= (Type const &other)
 dividing this by a constant.
UpperTriangularizeAccessor< Lhs > & operator%= (Type const &other)
 take modulo of this by a constant.
UpperTriangularizeAccessor< Lhs > & copy (ExprBase< Rhs > const &rhs)
 overwrite this with src.
TransposeOperator< UpperTriangularizeAccessor< Lhs > > const transpose () const
TransposeAccessor< UpperTriangularizeAccessor< Lhs > > transpose ()
DiagonalizeOperator< UpperTriangularizeAccessor< Lhs > > const diagonalize () const
DiagonalizeAccessor< UpperTriangularizeAccessor< Lhs > > diagonalize ()
DiagonalGetterOperator< UpperTriangularizeAccessor< Lhs > > const getDiagonal () const
DiagonalGetterAccessor< UpperTriangularizeAccessor< Lhs > > getDiagonal ()
UpperTriangularizeOperator< UpperTriangularizeAccessor< Lhs > > const upperTriangularize () const
UpperTriangularizeAccessor< Derived > upperTriangularize ()
LowerTriangularizeOperator< UpperTriangularizeAccessor< Lhs > > const lowerTriangularize () const
LowerTriangularizeAccessor< UpperTriangularizeAccessor< Lhs > > lowerTriangularize ()
SymmetrizeOperator< UpperTriangularizeAccessor< Lhs > > const symmetrize () const
SymmetrizeAccessor< UpperTriangularizeAccessor< Lhs > > symmetrize ()
UpperSymmetrizeOperator< UpperTriangularizeAccessor< Lhs > > const upperSymmetrize () const
UpperSymmetrizeAccessor< UpperTriangularizeAccessor< Lhs > > upperSymmetrize ()
LowerSymmetrizeOperator< UpperTriangularizeAccessor< Lhs > > const lowerSymmetrize () const
LowerSymmetrizeAccessor< UpperTriangularizeAccessor< Lhs > > lowerSymmetrize ()
ColOperator< UpperTriangularizeAccessor< Lhs > > const col (int j) const
RowOperator< UpperTriangularizeAccessor< Lhs > > const row (int i) const
SubVectorOperator< UpperTriangularizeAccessor< Lhs >, Size_ > const sub (TRange< Size_ > const &I) const
SubOperator< UpperTriangularizeAccessor< Lhs >, SizeRows_, SizeCols_ > const sub (TRange< SizeRows_ > const &I, TRange< SizeCols_ > const &J) const
ColAccessor< UpperTriangularizeAccessor< Lhs > > col (int j)
RowAccessor< UpperTriangularizeAccessor< Lhs > > row (int i)
SubVectorAccessor< UpperTriangularizeAccessor< Lhs >, Size_ > sub (TRange< Size_ > const &I)
SubAccessor< UpperTriangularizeAccessor< Lhs >, SizeRows_, SizeCols_ > sub (TRange< SizeRows_ > const &I, TRange< SizeCols_ > const &J)
TypeConst operator() (int i, int j) const
Type & operator() (int i, int j)
TypeConst operator[] (int i) const
Type & operator[] (int i)
TypeConst operator() () const
Type & operator() ()
ArrayInitializer< UpperTriangularizeAccessor< Lhs > > operator<< (Type const &s)
 Convenient operator to set the coefficients of a matrix.
ArrayInitializer< UpperTriangularizeAccessor< Lhs > > operator<< (ArrayBase< Rhs > const &other)
Public Member Functions inherited from STK::ExprBase< Derived >
template<typename Visitor>
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 minEltSafe (int &row, int &col) const
Type const maxElt (int &row, int &col) const
Type const maxEltSafe (int &row, int &col) const
Type const minElt (int &pos) const
Type const minEltSafe (int &pos) const
Type const maxElt (int &pos) const
Type const maxEltSafe (int &pos) const
Type const minElt () const
Type const minEltSafe () const
Type const maxElt () 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 varianceSafe () const
Type const variance (Type const &mean) const
Type const varianceSafe (Type const &mean) const
template<typename Rhs>
Type const wsum (ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wsumSafe (ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wnorm (ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wnormSafe (ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wnorm2 (ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wnorm2Safe (ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wmean (ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wmeanSafe (ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wvariance (ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wvarianceSafe (ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wvariance (Type const &mean, ExprBase< Rhs > const &weights) const
template<typename Rhs>
Type const wvarianceSafe (Type const &mean, ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::equalOp_ >::Result const operator== (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::notEqualOp_ >::Result const operator!= (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::greaterThanOp_ >::Result const operator> (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::lessThanOp_ >::Result const operator< (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::greaterThanOrEqualOp_ >::Result const operator>= (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::lessThanOrEqualOp_ >::Result const operator<= (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::sumOp_ >::Result const operator+ (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::differenceOp_ >::Result const operator- (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::productOp_ >::Result const prod (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::divisionOp_ >::Result const operator/ (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::moduloOp_ >::Result const operator% (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::minOp_ >::Result const min (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::maxOp_ >::Result const max (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::logicalAndOp_ >::Result const operator&& (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::logicalOrOp_ >::Result const operator|| (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::bitwiseAndOp_ >::Result const operator& (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::bitwiseOrOp_ >::Result const operator| (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::OperatorSelector< Derived, Rhs, Arrays::bitwiseXorOp_ >::Result const operator^ (ExprBase< Rhs > const &other) const
UnaryOperator< OppositeOp< Type >, Derived > operator- () const
UnaryOperator< IsNaOp< Type >, Derived > isNA () const
UnaryOperator< NegOp< Type >, Derived > neg () const
UnaryOperator< IsFiniteOp< Type >, Derived > isFinite () const
UnaryOperator< IsInfiniteOp< Type >, Derived > isInfinite () const
UnaryOperator< AbsOp< Type >, Derived > abs () const
UnaryOperator< ExpOp< Type >, Derived > exp () const
UnaryOperator< LogOp< Type >, Derived > log () const
UnaryOperator< SqrtOp< Type >, Derived > sqrt () const
UnaryOperator< CosOp< Type >, Derived > cos () const
UnaryOperator< SinOp< Type >, Derived > sin () const
UnaryOperator< AcosOp< Type >, Derived > acos () const
UnaryOperator< AsinOp< Type >, Derived > asin () const
UnaryOperator< TanOp< Type >, Derived > tan () const
UnaryOperator< InverseOp< Type >, Derived > inverse () const
UnaryOperator< SquareOp< Type >, Derived > square () const
UnaryOperator< CubeOp< Type >, Derived > cube () const
UnaryOperator< EqualWithOp< Type >, Derived > operator== (Type const &value) const
UnaryOperator< NotEqualWithOp< Type >, Derived > operator!= (Type const &value) const
UnaryOperator< GreaterThanOp< Type >, Derived > operator> (Type const &value) const
UnaryOperator< LessThanOp< Type >, Derived > operator< (Type const &value) const
UnaryOperator< LeqThanOp< Type >, Derived > operator<= (Type const &value) const
UnaryOperator< GeqThanOp< Type >, Derived > operator>= (Type const &value) const
UnaryOperator< MinWithOp< Type >, Derived > min (Type const &value) const
UnaryOperator< MaxWithOp< Type >, Derived > max (Type const &value) const
UnaryOperator< SumWithOp< Type >, Derived > operator+ (Type const &value) const
UnaryOperator< DifferenceWithOp< Type >, Derived > operator- (Type const &value) const
UnaryOperator< ProductWithOp< Type >, Derived > operator* (Type const &value) const
UnaryOperator< DivisionWithOp< Type >, Derived > operator/ (Type const &value) const
UnaryOperator< ModuloWithOp< Type >, Derived > operator% (Type const &value) const
UnaryOperator< LogicalAndWithOp< Type >, Derived > operator&& (Type const &value) const
UnaryOperator< LogicalOrWithOp< Type >, Derived > operator|| (Type const &value) const
UnaryOperator< BitwiseAndWithOp< Type >, Derived > operator& (Type const &value) const
UnaryOperator< BitwiseOrWithOp< Type >, Derived > operator| (Type const &value) const
UnaryOperator< BitwiseXorWithOp< Type >, Derived > operator^ (Type const &value) const
UnaryOperator< PowOp< Type >, Derived > pow (Type const &value) const
UnaryOperator< SafeInverseOp< Type >, Derived > safeInverse (Type const &value) const
UnaryOperator< SafeOp< Type >, Derived > const safe (Type const value=Type()) const
template<typename OtherType>
UnaryOperator< CastOp< Type, OtherType >, Derived > const cast () const
UnaryOperator< Law::PdfOp< Type >, Derived > pdf (Law::IUnivLaw< Type > const &law) const
 compute pdf values to this using distribution law given by user
UnaryOperator< Law::LogPdfOp< Type >, Derived > lpdf (Law::IUnivLaw< Type > const &law) const
 compute log-pdf values to this using distribution law given by user
UnaryOperator< Law::CdfOp< Type >, Derived > cdf (Law::IUnivLaw< Type > const &law) const
 compute cumulative distribution function of this using distribution law given by user
UnaryOperator< Law::LogCdfOp< Type >, Derived > lcdf (Law::IUnivLaw< Type > const &law) const
 compute log-cumulative distribution function of this using distribution law given by user
UnaryOperator< Law::CdfcOp< Type >, Derived > cdfc (Law::IUnivLaw< Type > const &law) const
 compute complementary cumulative distribution function of this using distribution law given by user
UnaryOperator< Law::LogCdfcOp< Type >, Derived > lcdfc (Law::IUnivLaw< Type > const &law) const
 compute complementary cumulative distribution function of this using distribution law given by user
UnaryOperator< Law::IcdfOp< Type >, Derived > icdf (Law::IUnivLaw< Type > const &law) const
 compute inverse cumulative distribution function using distribution law given by user
template<template< typename > class OtherOperator>
UnaryOperator< OtherOperator< Type >, Derived > const funct0 () const
template<template< typename > class OtherOperator>
UnaryOperator< OtherOperator< Type >, Derived > const funct1 (Type const value) const
TransposeOperator< Derived > const transpose () const
DiagonalizeOperator< Derived > const diagonalize () const
DiagonalGetterOperator< Derived > const getDiagonal () const
UpperTriangularizeOperator< Derived > const upperTriangularize () const
LowerTriangularizeOperator< Derived > const lowerTriangularize () const
SymmetrizeOperator< Derived > const symmetrize () const
UpperSymmetrizeOperator< Derived > const upperSymmetrize () const
LowerSymmetrizeOperator< Derived > const lowerSymmetrize () const
template<int Size_>
SubVectorOperator< Derived, Size_ > const sub (TRange< Size_ > const &I) const
ColOperator< Derived > const col (int j) const
RowOperator< Derived > const row (int i) const
template<int Size_>
SubOperator< Derived, sizeRows_, Size_ > const col (TRange< Size_ > const &J) const
template<int Size_>
SubOperator< Derived, Size_, sizeCols_ > const row (TRange< Size_ > const &I) const
template<int SizeRows_, int SizeCols_>
SubOperator< Derived, SizeRows_, SizeCols_ > const sub (TRange< SizeRows_ > const &I, TRange< SizeCols_ > const &J) const
template<class Rhs>
hidden::Promote< Type, typenameRhs::Type >::result_type const dot (ExprBase< Rhs > const &other) const
template<class Rhs>
hidden::Promote< Type, typenameRhs::Type >::result_type const dotSafe (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::ProductSelector< Derived, Rhs, hidden::Traits< Derived >::structure_, hidden::Traits< Rhs >::structure_ >::ProductType const operator* (ExprBase< Rhs > const &other) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wsum (ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wsumSafe (ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wnorm (ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wnormSafe (ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wnorm2 (ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wnorm2Safe (ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wmean (ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wmeanSafe (ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wvariance (ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wvarianceSafe (ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wvariance (Type const &mean, ExprBase< Rhs > const &weights) const
template<typename Rhs>
hidden::Traits< Derived >::Type const wvarianceSafe (Type const &mean, ExprBase< Rhs > const &weights) const

Protected Attributes

Lhs & lhs_

Additional Inherited Members

Static Public Member Functions inherited from STK::TRef< 1 >
static bool isRef ()
Protected Member Functions inherited from STK::ArrayBase< UpperTriangularizeAccessor< Lhs > >
 ArrayBase ()
 Default constructor.
 ~ArrayBase ()
 destructor
Protected Member Functions inherited from STK::ExprBase< Derived >
 ExprBase ()
 Default constructor.
 ~ExprBase ()
 destructor

Detailed Description

template<typename Lhs>
class STK::UpperTriangularizeAccessor< Lhs >

Generic expression when we want to get the upper-part of a two-dimensional expression.

Template Parameters
Lhsthe type of the expression to which we are applying the UpperTriangularizeAccessor operator.

This class represents an expression where an UpperTriangularizeOperator operator is applied to an expression. It is the return type of the upperTriangularize operation.

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

Definition at line 325 of file STK_ReshapeAccessors.h.

Member Typedef Documentation

◆ Base

template<typename Lhs>
typedef ArrayBase< UpperTriangularizeAccessor< Lhs> > STK::UpperTriangularizeAccessor< Lhs >::Base

Definition at line 328 of file STK_ReshapeAccessors.h.

◆ ColRange

template<typename Lhs>
typedef TRange<sizeCols_> STK::UpperTriangularizeAccessor< Lhs >::ColRange

Type of the Range for the columns.

Definition at line 343 of file STK_ReshapeAccessors.h.

◆ RowRange

template<typename Lhs>
typedef TRange<sizeRows_> STK::UpperTriangularizeAccessor< Lhs >::RowRange

Type of the Range for the rows.

Definition at line 341 of file STK_ReshapeAccessors.h.

◆ Type

template<typename Lhs>
typedef hidden::Traits<UpperTriangularizeAccessor<Lhs>>::Type STK::UpperTriangularizeAccessor< Lhs >::Type

Definition at line 329 of file STK_ReshapeAccessors.h.

◆ TypeConst

template<typename Lhs>
typedef hidden::Traits<UpperTriangularizeAccessor<Lhs>>::TypeConst STK::UpperTriangularizeAccessor< Lhs >::TypeConst

Definition at line 330 of file STK_ReshapeAccessors.h.

Member Enumeration Documentation

◆ anonymous enum

Constructor & Destructor Documentation

◆ UpperTriangularizeAccessor()

template<typename Lhs>
STK::UpperTriangularizeAccessor< Lhs >::UpperTriangularizeAccessor ( Lhs & lhs)
inline

Constructor.

Definition at line 346 of file STK_ReshapeAccessors.h.

346: Base(), lhs_(lhs) {}
ArrayBase< UpperTriangularizeAccessor< Lhs > > Base

References lhs(), and lhs_.

Member Function Documentation

◆ colsImpl()

template<typename Lhs>
ColRange const & STK::UpperTriangularizeAccessor< Lhs >::colsImpl ( ) const
inline
Returns
the range of the Columns

Definition at line 352 of file STK_ReshapeAccessors.h.

352{ return lhs().cols();}

References lhs().

◆ elt2Impl() [1/2]

template<typename Lhs>
Type & STK::UpperTriangularizeAccessor< Lhs >::elt2Impl ( int i,
int j )
inline
Returns
a reference on the (i,j) element of the expression.
Parameters
i,jindexes of the element to get

Definition at line 369 of file STK_ReshapeAccessors.h.

369 {
370#ifdef STK_BOUNDS_CHECK
371 if (i>j)
373#endif
374 return (lhs_.elt(i, j));
375 }
#define STKRUNTIME_ERROR_2ARG(Where, Arg1, Arg2, Error)
Definition STK_Macros.h:120

References elt2Impl(), lhs_, and STKRUNTIME_ERROR_2ARG.

◆ elt2Impl() [2/2]

template<typename Lhs>
TypeConst STK::UpperTriangularizeAccessor< Lhs >::elt2Impl ( int i,
int j ) const
inline
Returns
a constant reference on the (i,j) element of the expression.
Parameters
i,jindex of the row and of the column

Definition at line 357 of file STK_ReshapeAccessors.h.

358 {
359#ifdef STK_BOUNDS_CHECK
360 if (j<i)
362#endif
363 return (lhs_.elt(i, j));
364 }

References elt2Impl(), lhs_, and STKRUNTIME_ERROR_2ARG.

Referenced by elt2Impl(), and elt2Impl().

◆ lhs()

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

Definition at line 348 of file STK_ReshapeAccessors.h.

348{ return lhs_; }

References lhs_.

Referenced by colsImpl(), rowsImpl(), and UpperTriangularizeAccessor().

◆ rowsImpl()

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

Definition at line 350 of file STK_ReshapeAccessors.h.

350{ return lhs().rows();}

References lhs().

Member Data Documentation

◆ lhs_

template<typename Lhs>
Lhs& STK::UpperTriangularizeAccessor< Lhs >::lhs_
protected

Definition at line 378 of file STK_ReshapeAccessors.h.

Referenced by elt2Impl(), elt2Impl(), lhs(), and UpperTriangularizeAccessor().


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