TRIQS/nda 1.3.0
Multi-dimensional array library for C++
|
#include <nda/arithmetic.hpp>
Lazy unary expression for nda::Array types.
A lazy unary expression contains a single operand and a unary operation. It fulfills the nda::Array concept and can therefore be used in any other expression or function that expects an nda::Array type.
The only supported unary operation is the negation operation ('-').
OP | Char representing the unary operation. |
A | nda::Array type. |
Definition at line 59 of file arithmetic.hpp.
Public Member Functions | |
template<typename... Args> | |
auto | operator() (Args &&...args) const |
Function call operator. | |
constexpr auto | shape () const |
Get the shape of the nda::Array operand. | |
constexpr long | size () const |
Get the total size of the nda::Array operand. | |
Public Attributes | |
A | a |
nda::Array object. | |
|
inline |
Function call operator.
Forwards the arguments to the nda::Array operand and negates the result.
Args | Types of the arguments. |
args | Function call arguments. |
Definition at line 76 of file arithmetic.hpp.
|
inlinenodiscardconstexpr |
Get the shape of the nda::Array operand.
std::array<long, Rank>
object specifying the shape of the operand. Definition at line 84 of file arithmetic.hpp.
|
inlinenodiscardconstexpr |
Get the total size of the nda::Array operand.
Definition at line 90 of file arithmetic.hpp.