ma::maths::NormalizedOp

Normalize the data. More...

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

Module

Public Functions#

NormalizedOp(const XprBase< Xpr > &x)

Index
rows() const noexcept

auto
values() const noexcept-> decltype(OPENMA_MATHS_DECLVAL_NESTED(Xpr).values().cwiseQuotient((OPENMA_MATHS_DECLVAL_NESTED(Xpr).values().square().rowwise().sum() >=std::numeric_limits< double >::epsilon()).select(OPENMA_MATHS_DECLVAL_NESTED(Xpr).values().square().rowwise().sum().sqrt(), 1.0).replicate(1, 3)))

auto
residuals() const noexcept-> decltype(OPENMA_MATHS_DECLVAL_NESTED(Xpr).residuals())

Detailed Description#

Member Function Documentation#

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

Constructor

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

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

Index ma::maths::NormalizedOp::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::NormalizedOp::values ( ) const noexcept [inline]

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