|
NEML2 2.0.0
|
Derivative wrapper. More...
Derivative wrapper.
#include <Derivative.h>
Public Member Functions | |
| Derivative ()=default | |
| Derivative (const std::array< const VariableBase *, N+1 > &var_and_args, ArrayRef< Size > dep_dims) | |
| bool | operator== (const Derivative< N > &other) const |
| Equality operator (for searching in a container) | |
| const Tensor & | tensor () const |
| Get the derivative. | |
| const Tensor & | get () const |
| Get the derivative in assembly format. | |
| void | set (const Tensor &val) |
| Set the derivative (given in assembly format) | |
| const VariableBase * | var () const |
| Get the variable. | |
| std::array< const VariableBase *, N > | args () const |
| Get the args. | |
| Derivative & | operator= (const Tensor &val) |
| Derivative & | operator= (const VariableBase &val) |
|
default |
| Derivative | ( | const std::array< const VariableBase *, N+1 > & | var_and_args, |
| ArrayRef< Size > | dep_dims ) |
| std::array< const VariableBase *, N > args | ( | ) | const |
Get the args.
| const Tensor & get | ( | ) | const |
Get the derivative in assembly format.
| Derivative< N > & operator= | ( | const Tensor & | val | ) |
Assignment operator
| Derivative< N > & operator= | ( | const VariableBase & | val | ) |
| bool operator== | ( | const Derivative< N > & | other | ) | const |
Equality operator (for searching in a container)
| void set | ( | const Tensor & | val | ) |
Set the derivative (given in assembly format)
|
inline |
Get the derivative.
|
inline |
Get the variable.