I have a templated sparse matrix class:

and a templated matrix array class:Code:template <index_t, scalar> sparse;

How do I create another matrix array type, specializing only the matrix type, matrix_t? Something like this:Code:template <index_t, scalar, matrix_t> sparse_array

only I know this doesn't work (I tried it), but you get the basic idea, I hope...Code:template<index_t, scalar> typedef sparse_array<index_t, scalar, sparse<index_t, scalar>> sparse arr;