MADNESS
0.10.1
|
Traits class to specify support of numeric types. More...
Traits class to specify support of numeric types.
This traits class is used to specify which numeric types are supported by the tensor library and also their unique integer id. Unsupported types will default to an entry supported=false.
To add a new type, append it to the definitions below using TYPEINFO and tensor_type_names, incrementing the id, and set TENSOR_MAX_TYPE_ID accordingly. You might also have to specialize some of the methods in tensor.cc, and will have to add additional instantiations at the end of tensor.cc and tensoriter.cc.