![]() |
MFEM v4.9.0
Finite element discretization library
|
A sentinel struct for eliding no-op tensor operations. More...
#include <tensor.hpp>
Public Member Functions | |
| MFEM_HOST_DEVICE | operator real_t () |
zero is implicitly convertible to real_t with value 0.0 | |
| template<typename T , int... n> | |
| MFEM_HOST_DEVICE | operator tensor< T, n... > () |
zero is implicitly convertible to a tensor of any shape | |
| template<typename... T> | |
| MFEM_HOST_DEVICE zero | operator() (T...) |
zero can be accessed like a multidimensional array | |
| template<typename T > | |
| MFEM_HOST_DEVICE zero | operator= (T) |
anything assigned to zero does not change its value and returns zero | |
A sentinel struct for eliding no-op tensor operations.
Definition at line 169 of file tensor.hpp.
|
inline |
zero is implicitly convertible to real_t with value 0.0
Definition at line 172 of file tensor.hpp.
|
inline |
zero is implicitly convertible to a tensor of any shape
Definition at line 176 of file tensor.hpp.
|
inline |
zero can be accessed like a multidimensional array
Definition at line 183 of file tensor.hpp.
|
inline |
anything assigned to zero does not change its value and returns zero
Definition at line 190 of file tensor.hpp.