This example shows how to read in a matrix in a simple way:
#include <fstream>
#include <iostream>
using namespace std;
using namespace SLHAea;
int main()
{
ifstream ifs("slha2.txt");
double rvhmix[5][5];
for (int r = 0; r < 5; ++r)
{
for (int c = 0; c < 5; ++c)
{
rvhmix[r][c] = to<double>(input.
at(
"RVHMIX").
at(r+1, c+1).
at(2));
cout << (r+1) << " " << (c+1) << ": " << rvhmix[r][c] << endl;
}
}
}