i have always defined matrices of two dimensions as a vector of a vector container as follows
vector< vector <double> > v; // note the distance between the two right angle brakets just before v
however i recently learned that c++0x allows one to get rid of the extra space between the right angle brackets as in the following
vector< vector <double> > v_old_style; vector< vector <double>> v_new_style;
however emacs 23 breaks indentation when faced with this format

i also use 3 and 4 dimensional tensor like objects for which i would much like the following:
vector < vector < vector < vector <double> > > > v1; // don't like it vector<vector<vector<vector<double>>>> v2; // like this a lot
for me at least the saving in horizontal space matters when i am comparing code side by side … also its quite easy to figure out the dimensionality of the tensor at one glance.
i don’t know how to fix this
help me please