enable complex type for PIMathVectorT and PIMathMatrixT
TODO: add precision to invert and test vector
This commit is contained in:
@@ -36,6 +36,12 @@
|
||||
|
||||
using std::complex;
|
||||
|
||||
template<typename T>
|
||||
struct is_complex: std::false_type {};
|
||||
|
||||
template<typename T>
|
||||
struct is_complex<std::complex<T>>: std::true_type {};
|
||||
|
||||
typedef complex<int> complexi;
|
||||
typedef complex<short> complexs;
|
||||
typedef complex<float> complexf;
|
||||
|
||||
Reference in New Issue
Block a user