1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-17 07:17:06 +01:00

Eigen::Tensor serialisation. Tested on single and double precision builds

This commit is contained in:
Michael Marshall
2019-03-20 22:27:41 +00:00
parent d921a99b1a
commit 12d8bf1ced
11 changed files with 974 additions and 79 deletions

View File

@ -143,6 +143,7 @@ namespace Grid {
typedef vRealD DoublePrecision;
};
template<> struct GridTypeMapper<vRealH> : public GridTypeMapper_Base {
// Fixme this is incomplete until Grid supports fp16 or bfp16 arithmetic types
typedef RealF scalar_type;
typedef vRealH vector_type;
typedef vRealD vector_typeD;
@ -153,6 +154,7 @@ namespace Grid {
typedef vRealD DoublePrecision;
};
template<> struct GridTypeMapper<vComplexH> : public GridTypeMapper_Base {
// Fixme this is incomplete until Grid supports fp16 or bfp16 arithmetic types
typedef ComplexF scalar_type;
typedef vComplexH vector_type;
typedef vComplexD vector_typeD;