MADNESS  version 0.9
Public Types | List of all members
madness::TensorTypeData< T > Class Template Reference

Traits class to specify support of numeric types. More...

#include <type_data.h>

Public Types

enum  { id = -1 }
 
enum  { supported = false }
 
enum  { iscomplex = false }
 
enum  { memcopyok = false }
 
typedef T type
 

Detailed Description

template<class T>
class madness::TensorTypeData< T >

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.

Member Typedef Documentation

template<class T >
typedef T madness::TensorTypeData< T >::type

Member Enumeration Documentation

template<class T >
anonymous enum
Enumerator
id 
template<class T >
anonymous enum
Enumerator
supported 
template<class T >
anonymous enum
Enumerator
iscomplex 
template<class T >
anonymous enum
Enumerator
memcopyok 

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