#include #include #include #include #include #include #include #include namespace ublas = boost::numeric::ublas; using namespace std; int main(int argc, char** argv) { //const int numNodes = 196; //const int numTetrahedrons = 617; const int numNodes = 920; const int numTetrahedrons = 4196; //ublas::generalized_vector_of_vector > > K(numNodes*3, numNodes*3); ublas::matrix ke[numTetrahedrons];//array of element stiffness matrices (12x12) ublas::matrix K(numNodes*3, numNodes*3);//global stiffness matrix ublas::vector index(numTetrahedrons*12);//mapping from local element index to global index, 12 for each element boost::mt19937 mtrand; //fill index vector with random integers in [0, numNodes-1] and fill element stiffness matrix with random stuff for(int i=0; i