Skip to content

Instantly share code, notes, and snippets.

View spinachgui's full-sized avatar

Project maintainer will soon be changing spinachgui

View GitHub Profile
//The Euler - Quaternion converter with tiny driver function
#ifndef __MATHTYPES___H_
#define __MATHTYPES___H_
#include <cstring>
#include <string>
#include <cmath>
#include <iostream>
//Phaw! This certainly needs cleaning up, but it does work.
#include <complex>
#include <iostream>
#include <cmath>
using namespace std;
typedef long double R;
typedef complex<double> cplex;
+ inline void GetTotalInteractionAsMatrixOpt(Interaction::SubType st,
+ Matrix3** mat,
+ energy* xx,energy* yy, energy* zz) const {
+ *mat=mOptList[st].matrix;
+ *xx=mOptList[st].xx;
+ *yy=mOptList[st].yy;
+ *zz=mOptList[st].zz;
+ }
+ inline void GetTotalInteractionAsTraceOpt(Interaction::SubType st, energy* trace) const {
Testing the gist feature....