ma::maths::DifferenceOp

Compute difference between given expressions. More...

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

Module

Public Functions#

DifferenceOp(const XprBase< XprOne > &x1, const XprBase< XprTwo > &x2)

Index
rows() const noexcept

auto
values() const noexcept-> decltype(OPENMA_MATHS_DECLVAL_NESTED(XprOne).values()-OPENMA_MATHS_DECLVAL_NESTED(XprTwo).values())

auto
residuals() const noexcept-> decltype(generate_residuals((OPENMA_MATHS_DECLVAL_NESTED(XprOne).residuals() >=0.0)&&(OPENMA_MATHS_DECLVAL_NESTED(XprTwo).residuals() >=0.0)))

Detailed Description#

Member Function Documentation#

ma::maths::DifferenceOp::DifferenceOp ( const XprBase < XprOne > & x1 , const XprBase < XprTwo > & x2 ) [inline]

Constructor

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

Returns the residuals associated with this operation. The residuals is generated based on the ones of each input.

Index ma::maths::DifferenceOp::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 first expresion.

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

Returns the difference of the two expressions as a template expression.