ma::maths::UnaryOp

Base class for unary operations. More...

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

Module

Public Functions#

UnaryOp(const XprBase< Xpr > &x)

Index
rows() const noexcept

Index
cols() const noexcept

const Derived &
derived() const noexcept

Detailed Description#

Member Function Documentation#

Index ma::maths::UnaryOp::cols ( ) const noexcept [inline]

Returns the number of columns that shall have the result of the binary operation. Internaly, this method relies on the template arguments of given expression.

const Derived & ma::maths::UnaryOp::derived ( ) const noexcept [inline]

Cast this object as a const reference of the Derived class.

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

Returns the number of rows that shall have the result of the unary operation. Internaly, this method relies on the rows() method of the Derived class.

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

Store the expression x as plain object or reference depending of their type.