SGSolve
sgutilities.hpp File Reference
#include "sgcommon.hpp"
Include dependency graph for sgutilities.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int indexToVector (int index, vector< int > &v, const vector< int > &sizes)
 Maps a linear index into a multi-index over an array with the given dimension.
 
int vectorToIndex (const vector< int > &v, const vector< int > &sizes)
 Maps a multi-index into a linear index over an array with the given dimension.