Serac  0.1
Serac is an implicit thermal strucural mechanics simulation code.
Public Member Functions | List of all members
serac::zero Struct Reference

A sentinel struct for eliding no-op tensor operations. More...

#include <tensor.hpp>

Public Member Functions

SERAC_HOST_DEVICE operator double ()
 zero is implicitly convertible to double with value 0.0
 
template<typename T , int... n>
SERAC_HOST_DEVICE operator tensor< T, n... > ()
 zero is implicitly convertible to a tensor of any shape
 
template<typename... T>
SERAC_HOST_DEVICE auto operator() (T...) const
 zero can be accessed like a multidimensional array
 
template<typename T >
SERAC_HOST_DEVICE auto 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 123 of file tensor.hpp.


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