STK++ 0.9.13
STK_SlicingVisitors.h File Reference

This file implement the slicing visitors in the namespace STK. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  STK::hidden::Traits< VisitorByCol< Derived, Visitor > >
 Traits class for the unary operators. More...
 
class  STK::VisitorByCol< Derived, Visitor >
 class allowing to apply a visitor on each columns of an expression. More...
 
struct  STK::hidden::Traits< VisitorByRow< Derived, Visitor > >
 Traits class for the VisitorByRow class. More...
 
class  STK::VisitorByRow< Derived, Visitor >
 class allowing to apply a visitor on each columns of an expression. More...
 
struct  STK::ApplyVisitor< Derived, Visitor >
 class allowing to apply a visitor on a vector or a point. More...
 
struct  STK::hidden::SliceVisitorSelector< Derived, Visitor, true >
 Specialization if the visitor has to be applied by col. More...
 
struct  STK::hidden::SliceVisitorSelector< Derived, Visitor, false >
 Specialization if the visitor has to be applied by row. More...
 

Namespaces

namespace  STK
 The namespace STK is the main domain space of the Statistical ToolKit project.
 
namespace  STK::hidden
 The hidden namespace enclose the classes and methods which are used internally by the STK++ classes.
 

Macros

#define STK_SLICEVISITORS(VISITOR, FUNC)
 

Functions

template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MinVisitor, Arrays::by_col_ >::type_result STK::min (Derived const &A)
 If A is a row-vector or a column-vector then the function will return the usual minimal value of the vector.
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MinVisitor, Arrays::by_col_ >::type_result STK::minByCol (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MinVisitor, Arrays::by_row_ >::type_result STK::minByRow (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MaxVisitor, Arrays::by_col_ >::type_result STK::max (Derived const &A)
 If A is a row-vector or a column-vector then the function will return the usual maximal value of the vector.
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MaxVisitor, Arrays::by_col_ >::type_result STK::maxByCol (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MaxVisitor, Arrays::by_row_ >::type_result STK::maxByRow (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::SumVisitor, Arrays::by_col_ >::type_result STK::sum (Derived const &A)
 If A is a row-vector or a column-vector then the function will return the usual sum value of the vector.
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::SumVisitor, Arrays::by_col_ >::type_result STK::sumByCol (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::SumVisitor, Arrays::by_row_ >::type_result STK::sumByRow (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MeanVisitor, Arrays::by_col_ >::type_result STK::mean (Derived const &A)
 If A is a row-vector or a column-vector then the function will return the usual mean value of the vector.
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MeanVisitor, Arrays::by_col_ >::type_result STK::meanByCol (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MeanVisitor, Arrays::by_row_ >::type_result STK::meanByRow (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::CountVisitor, Arrays::by_col_ >::type_result STK::count (Derived const &A)
 If A is a row-vector or a column-vector then the function will return the usual count value of the vector.
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::CountVisitor, Arrays::by_col_ >::type_result STK::countByCol (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::CountVisitor, Arrays::by_row_ >::type_result STK::countByRow (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::AllVisitor, Arrays::by_col_ >::type_result STK::all (Derived const &A)
 If A is a row-vector or a column-vector then the function will return the usual all value of the vector.
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::AllVisitor, Arrays::by_col_ >::type_result STK::allByCol (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::AllVisitor, Arrays::by_row_ >::type_result STK::allByRow (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::AnyVisitor, Arrays::by_col_ >::type_result STK::any (Derived const &A)
 If A is a row-vector or a column-vector then the function will return the usual visitor value of the vector.
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::AnyVisitor, Arrays::by_col_ >::type_result STK::anyByCol (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::AnyVisitor, Arrays::by_row_ >::type_result STK::anyByRow (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MinSafeVisitor, Arrays::by_col_ >::type_result STK::minSafe (Derived const &A)
 If A is a row-vector or a column-vector then the function will return the usual minimal value of the vector.
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MinSafeVisitor, Arrays::by_col_ >::type_result STK::minSafeByCol (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MinSafeVisitor, Arrays::by_row_ >::type_result STK::minSafeByRow (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MaxSafeVisitor, Arrays::by_col_ >::type_result STK::maxSafe (Derived const &A)
 If A is a row-vector or a column-vector then the function will return the usual maximal value of the vector.
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MaxSafeVisitor, Arrays::by_col_ >::type_result STK::maxSafeByCol (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MaxSafeVisitor, Arrays::by_row_ >::type_result STK::maxSafeByRow (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MeanSafeVisitor, Arrays::by_col_ >::type_result STK::meanSafe (Derived const &A)
 If A is a row-vector or a column-vector then the function will return the usual mean value of the vector.
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MeanSafeVisitor, Arrays::by_col_ >::type_result STK::meanSafeByCol (Derived const &A)
 
template<class Derived >
hidden::SliceVisitorSelector< Derived, hidden::MeanSafeVisitor, Arrays::by_row_ >::type_result STK::meanSafeByRow (Derived const &A)
 

Detailed Description

This file implement the slicing visitors in the namespace STK.

Definition in file STK_SlicingVisitors.h.

Macro Definition Documentation

◆ STK_SLICEVISITORS

#define STK_SLICEVISITORS (   VISITOR,
  FUNC 
)
Value:
template< class Derived> \
typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR, Arrays::by_col_>::type_result \
FUNC(Derived const& A) \
{ return typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR , Arrays::by_col_>::VisitorOp(A);} \
template< class Derived> \
typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR, Arrays::by_col_>::type_result \
FUNC##ByCol(Derived const& A) \
{ return typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR, Arrays::by_col_>::VisitorOp(A);} \
template< class Derived> \
typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR, Arrays::by_row_>::type_result \
FUNC##ByRow(Derived const& A) \
{ return typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR, Arrays::by_row_>::VisitorOp(A);}

Definition at line 54 of file STK_SlicingVisitors.h.

58{ return typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR , Arrays::by_col_>::VisitorOp(A);} \
59template< class Derived> \
60typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR, Arrays::by_col_>::type_result \
61FUNC##ByCol(Derived const& A) \
62{ return typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR, Arrays::by_col_>::VisitorOp(A);} \
63template< class Derived> \
64typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR, Arrays::by_row_>::type_result \
65FUNC##ByRow(Derived const& A) \
66{ return typename hidden::SliceVisitorSelector<Derived, hidden::VISITOR, Arrays::by_row_>::VisitorOp(A);}