MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::mat::expr::mat_negate_expr< E > Class Template Reference

Lazy unary negation of a matrix expression. More...

#include <mat_negate_expr.hpp>

Public Types

using value_type = typename raw_e::value_type
using size_type = std::size_t

Public Member Functions

template<typename AE>
 mat_negate_expr (AE &&e)
size_type num_rows () const
size_type num_cols () const
size_type size () const
value_type operator() (size_type r, size_type c) const
const raw_e & operand () const
 The operand, for the aliasing check of an assignment (expr_alias.hpp).

Detailed Description

template<typename E>
class mtl::mat::expr::mat_negate_expr< E >

Lazy unary negation of a matrix expression.

E encodes storage: const X& for lvalue, X for rvalue.

Member Typedef Documentation

◆ size_type

template<typename E>
using mtl::mat::expr::mat_negate_expr< E >::size_type = std::size_t

◆ value_type

template<typename E>
using mtl::mat::expr::mat_negate_expr< E >::value_type = typename raw_e::value_type

Constructor & Destructor Documentation

◆ mat_negate_expr()

template<typename E>
template<typename AE>
mtl::mat::expr::mat_negate_expr< E >::mat_negate_expr ( AE && e)
inlineexplicit

Member Function Documentation

◆ num_cols()

template<typename E>
size_type mtl::mat::expr::mat_negate_expr< E >::num_cols ( ) const
inline

◆ num_rows()

template<typename E>
size_type mtl::mat::expr::mat_negate_expr< E >::num_rows ( ) const
inline

◆ operand()

template<typename E>
const raw_e & mtl::mat::expr::mat_negate_expr< E >::operand ( ) const
inline

The operand, for the aliasing check of an assignment (expr_alias.hpp).

◆ operator()()

template<typename E>
value_type mtl::mat::expr::mat_negate_expr< E >::operator() ( size_type r,
size_type c ) const
inline

◆ size()

template<typename E>
size_type mtl::mat::expr::mat_negate_expr< E >::size ( ) const
inline

The documentation for this class was generated from the following file: