ma::maths::MeanOp

Compute the average for each row. More...

Header
#include <openma/maths/unaryop.h>

Module

Public Functions#

MeanOp(const XprBase< Xpr > &x)

Index
rows() const noexcept

auto
values() const noexcept

auto
residuals() const noexcept

Detailed Description#

Member Function Documentation#

ma::maths::MeanOp::MeanOp ( const XprBase < Xpr > & x ) [inline]

Constructor

auto ma::maths::MeanOp::residuals ( ) const noexcept [inline]

Returns the residuals associated with this operation. The residuals is generated based on the input one.

Index ma::maths::MeanOp::rows ( ) const noexcept [inline]

Returns the number of rows that shall have the result of this operation. Internaly, this method relies on the number of rows of the given expresion.

auto ma::maths::MeanOp::values ( ) const noexcept [inline]

Returns a template expression corresponding to the calculation of this operation.