MFEM v4.9.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::future::zero Struct Reference

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
 

Detailed Description

A sentinel struct for eliding no-op tensor operations.

Definition at line 169 of file tensor.hpp.

Member Function Documentation

◆ operator real_t()

MFEM_HOST_DEVICE mfem::future::zero::operator real_t ( )
inline

zero is implicitly convertible to real_t with value 0.0

Definition at line 172 of file tensor.hpp.

◆ operator tensor< T, n... >()

template<typename T , int... n>
MFEM_HOST_DEVICE mfem::future::zero::operator tensor< T, n... > ( )
inline

zero is implicitly convertible to a tensor of any shape

Definition at line 176 of file tensor.hpp.

◆ operator()()

template<typename... T>
MFEM_HOST_DEVICE zero mfem::future::zero::operator() ( T... )
inline

zero can be accessed like a multidimensional array

Definition at line 183 of file tensor.hpp.

◆ operator=()

template<typename T >
MFEM_HOST_DEVICE zero mfem::future::zero::operator= ( T )
inline

anything assigned to zero does not change its value and returns zero

Definition at line 190 of file tensor.hpp.


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