CAPD::DynSys Library
6.0.0
Macros
PARIConvert.h File Reference
#include <
capd/multiPrec/MpInt.h
>
Macros
#define
INSTANCE_CONVERT_POD
(type)
Detailed Description
Author
Mateusz Juda
mateu
.nosp@m.
sz.j
.nosp@m.
uda@g
.nosp@m.
mail
.nosp@m.
.com
Date
2014-06-17
Macro Definition Documentation
◆
INSTANCE_CONVERT_POD
#define INSTANCE_CONVERT_POD
(
type
)
Value:
template
<> \
struct PARIConvert<type> \
{\
static GEN to(
const
type& v)\
{\
return stoi(v);\
}\
static type from(
const
GEN& v)\
{\
if (is_bigint(v)) {\
throw std::overflow_error(
"PARI requires big int"
);\
}\
return itos(v);\
}\
};
capd
matrixAlgorithms
PARIConvert.h
Generated on Thu Feb 1 2024 09:48:01 for CAPD::DynSys Library by
1.9.1