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

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

#include <STK_ReshapeAccessors.h>

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

Public Types

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

 UpperSymmetrizeAccessor (Lhs &lhs)
 Constructor.
 
Lhs constlhs () const
 
RowRange constrowsImpl () const
 
ColRange constcolsImpl () const
 
TypeConst elt2Impl (int i, int j) const
 
Typeelt2Impl (int i, int j)
 
- Public Member Functions inherited from STK::ArrayBase< UpperSymmetrizeAccessor< Lhs > >
void apply (Visitor &visitor)
 Apply the Visitor visitor to the whole coefficients of the array.
 
UpperSymmetrizeAccessor< Lhs > & randUnif ()
 set random values to this using a uniform law.
 
UpperSymmetrizeAccessor< Lhs > & randGauss ()
 set random values to this using a standard gaussian law.
 
UpperSymmetrizeAccessor< Lhs > & rand (Law::IUnivLaw< Type > const &law)
 set random values to this using a distribution law given by the user.
 
UpperSymmetrizeAccessor< Lhs > & setOnes ()
 set one to this using a Visitor.
 
UpperSymmetrizeAccessor< Lhs > & setZeros ()
 set zero to this using a Visitor.
 
UpperSymmetrizeAccessor< Lhs > & ones ()
 set one to this using a Visitor.
 
UpperSymmetrizeAccessor< Lhs > & zeros ()
 set zero to this using a Visitor.
 
UpperSymmetrizeAccessor< 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).
 
UpperSymmetrizeAccessor< Lhs > & assign (ExprBase< Rhs > const &rhs)
 
UpperSymmetrizeAccessor< Lhs > & operator= (Type const &value)
 
UpperSymmetrizeAccessor< Lhs > & operator= (UpperSymmetrizeAccessor< Lhs > const &rhs)
 
UpperSymmetrizeAccessor< Lhs > & operator= (ExprBase< Rhs > const &rhs)
 
UpperSymmetrizeAccessor< Lhs > & operator+= (ExprBase< Rhs > const &other)
 Add Rhs to this.
 
UpperSymmetrizeAccessor< Lhs > & operator+= (Type const &other)
 Adding a constant to this.
 
UpperSymmetrizeAccessor< Lhs > & operator-= (ExprBase< Rhs > const &other)
 subtract a Rhs to this.
 
UpperSymmetrizeAccessor< Lhs > & operator-= (Type const &other)
 Subtract a constant to this.
 
UpperSymmetrizeAccessor< Lhs > & operator/= (ExprBase< Rhs > const &other)
 divide this by Rhs.
 
UpperSymmetrizeAccessor< Lhs > & operator/= (Type const &other)
 dividing this by a constant.
 
UpperSymmetrizeAccessor< Lhs > & operator%= (ExprBase< Rhs > const &other)
 Take modulo of this by Rhs.
 
UpperSymmetrizeAccessor< Lhs > & operator%= (Type const &other)
 take modulo of this by a constant.
 
UpperSymmetrizeAccessor< Lhs > & operator*= (ExprBase< Rhs > const &other)
 multiply this by Rhs.
 
UpperSymmetrizeAccessor< Lhs > & operator*= (Type const &other)
 product of this by a constant.
 
UpperSymmetrizeAccessor< Lhs > & copy (ExprBase< Rhs > const &rhs)
 overwrite this with src.
 
TransposeOperator< UpperSymmetrizeAccessor< Lhs > > const transpose () const
 
TransposeAccessor< UpperSymmetrizeAccessor< Lhs > > transpose ()
 
DiagonalizeOperator< UpperSymmetrizeAccessor< Lhs > > const diagonalize () const
 
DiagonalizeAccessor< UpperSymmetrizeAccessor< Lhs > > diagonalize ()
 
DiagonalGetterOperator< UpperSymmetrizeAccessor< Lhs > > const getDiagonal () const
 
DiagonalGetterAccessor< UpperSymmetrizeAccessor< Lhs > > getDiagonal ()
 
UpperTriangularizeOperator< UpperSymmetrizeAccessor< Lhs > > const upperTriangularize () const
 
UpperTriangularizeAccessor< UpperSymmetrizeAccessor< Lhs > > upperTriangularize ()
 
LowerTriangularizeOperator< UpperSymmetrizeAccessor< Lhs > > const lowerTriangularize () const
 
LowerTriangularizeAccessor< UpperSymmetrizeAccessor< Lhs > > lowerTriangularize ()
 
SymmetrizeOperator< UpperSymmetrizeAccessor< Lhs > > const symmetrize () const
 
SymmetrizeAccessor< UpperSymmetrizeAccessor< Lhs > > symmetrize ()
 
UpperSymmetrizeOperator< UpperSymmetrizeAccessor< Lhs > > const upperSymmetrize () const
 
UpperSymmetrizeAccessor< UpperSymmetrizeAccessor< Lhs > > upperSymmetrize ()
 
LowerSymmetrizeOperator< UpperSymmetrizeAccessor< Lhs > > const lowerSymmetrize () const
 
LowerSymmetrizeAccessor< UpperSymmetrizeAccessor< Lhs > > lowerSymmetrize ()
 
ColOperator< UpperSymmetrizeAccessor< Lhs > > const col (int j) const
 
ColAccessor< UpperSymmetrizeAccessor< Lhs > > col (int j)
 
RowOperator< UpperSymmetrizeAccessor< Lhs > > const row (int i) const
 
RowAccessor< UpperSymmetrizeAccessor< Lhs > > row (int i)
 
SubVectorOperator< UpperSymmetrizeAccessor< Lhs >, Size_ > const sub (TRange< Size_ > const &I) const
 
SubOperator< UpperSymmetrizeAccessor< Lhs >, SizeRows_, SizeCols_ > const sub (TRange< SizeRows_ > const &I, TRange< SizeCols_ > const &J) const
 
SubVectorAccessor< UpperSymmetrizeAccessor< Lhs >, Size_sub (TRange< Size_ > const &I)
 
SubAccessor< UpperSymmetrizeAccessor< Lhs >, SizeRows_, SizeCols_sub (TRange< SizeRows_ > const &I, TRange< SizeCols_ > const &J)
 
TypeConst operator() (int i, int j) const
 
Typeoperator() (int i, int j)
 
TypeConst operator() () const
 
Typeoperator() ()
 
TypeConst operator[] (int i) const
 
Typeoperator[] (int i)
 
ArrayInitializer< UpperSymmetrizeAccessor< Lhs > > operator<< (Type const &s)
 Convenient operator to set the coefficients of a matrix.
 
ArrayInitializer< UpperSymmetrizeAccessor< 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

Lhslhs_
 

Additional Inherited Members

- Static Public Member Functions inherited from STK::TRef< 1 >
static bool isRef ()
 
- Protected Member Functions inherited from STK::ArrayBase< UpperSymmetrizeAccessor< 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::UpperSymmetrizeAccessor< Lhs >

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

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

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

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

Definition at line 606 of file STK_ReshapeAccessors.h.

Member Typedef Documentation

◆ Base

◆ ColRange

Type of the Range for the columns.

Definition at line 624 of file STK_ReshapeAccessors.h.

◆ RowRange

Type of the Range for the rows.

Definition at line 622 of file STK_ReshapeAccessors.h.

◆ Type

◆ TypeConst

Definition at line 611 of file STK_ReshapeAccessors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Lhs >
anonymous enum
Enumerator
structure_ 
orient_ 
sizeRows_ 
sizeCols_ 
storage_ 

Definition at line 613 of file STK_ReshapeAccessors.h.

614 {
615 structure_ = hidden::Traits< UpperSymmetrizeAccessor<Lhs> >::structure_,
616 orient_ = hidden::Traits< UpperSymmetrizeAccessor<Lhs> >::orient_,
617 sizeRows_ = hidden::Traits< UpperSymmetrizeAccessor<Lhs> >::sizeRows_,
618 sizeCols_ = hidden::Traits< UpperSymmetrizeAccessor<Lhs> >::sizeCols_,
619 storage_ = hidden::Traits< UpperSymmetrizeAccessor<Lhs> >::storage_
620 };

Constructor & Destructor Documentation

◆ UpperSymmetrizeAccessor()

template<typename Lhs >
STK::UpperSymmetrizeAccessor< Lhs >::UpperSymmetrizeAccessor ( Lhs lhs)
inline

Constructor.

Definition at line 627 of file STK_ReshapeAccessors.h.

627 : Base(), lhs_(lhs)
#define STK_STATIC_ASSERT_TWO_DIMENSIONS_ONLY(EXPR)
ArrayBase< UpperSymmetrizeAccessor< Lhs > > Base

References STK_STATIC_ASSERT_TWO_DIMENSIONS_ONLY.

Member Function Documentation

◆ colsImpl()

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

Definition at line 634 of file STK_ReshapeAccessors.h.

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

◆ elt2Impl() [1/2]

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

Definition at line 648 of file STK_ReshapeAccessors.h.

649 { return ((j<i) ? lhs_.elt(j, i) : lhs_.elt(i, j));}

◆ elt2Impl() [2/2]

template<typename Lhs >
TypeConst STK::UpperSymmetrizeAccessor< 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 639 of file STK_ReshapeAccessors.h.

640 { return ((j<i) ? lhs_.elt(j, i) : lhs_.elt(i, j));}

◆ lhs()

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

Definition at line 630 of file STK_ReshapeAccessors.h.

630{ return lhs_; }

◆ rowsImpl()

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

Definition at line 632 of file STK_ReshapeAccessors.h.

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

Member Data Documentation

◆ lhs_

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

Definition at line 652 of file STK_ReshapeAccessors.h.


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