I'm trying to use the QVM and ODEINT library. I'm using the qvm::vec<double,n>
through a typedef as my state_type. I would like to use the subscript operator for ´state_type´. (To my knowledge ODEINT requires the subscript operator.) My problem is that QVM access operator is ´A(v)´ and doesn't implement the subscript operator. How would you overload the operator or solve this problem?
#include<bits/stdc++.h>
#include <boost/numeric/odeint.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <boost/qvm.hpp>
using namespace std;
typedef boost::multiprecision::cpp_dec_float_50 value_type;
typedef boost::qvm::vec<value_type,3> triple;
int main()
{
\\some code
}