LA traits for Quaternion class

This commit is contained in:
Jiri Pittner 2022-07-08 14:50:10 +02:00
parent ad9e32ea98
commit 0ff3dbba54

View File

@ -30,8 +30,31 @@
#include <complex>
#include <math.h>
namespace LA_Quaternion {
#ifndef AVOID_LA
#include "la.h"
#endif
#ifndef AVOID_LA
namespace LA_Quaternion {
template <typename T>
class Quaternion; //forward declaration
}
template <typename T>
class LA::LA_traits<LA_Quaternion::Quaternion<T> > {
public:
static bool is_plaindata() {return true;};
static void copyonwrite(LA_Quaternion::Quaternion<T>& x) {};
typedef T normtype;
};
#endif
namespace LA_Quaternion {
template <typename T>
class Quaternion
{