ma::maths::SumOp

Compute the sum of two expressions. More...

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

Module

Public Functions#

SumOp(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#

auto ma::maths::SumOp::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::SumOp::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.

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

Constructor

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

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