tensor_test is a development/test wrapper for a proposed tensor extension of the GSL. Some of the changes it institutes are fairly serious, although it would be possible to implement it with less impact.

At the moment, the code passes at least one elementary set of tests; the block can be loaded as a straight vector with data elements which can then be successfully referenced by matrix address. In verbose mode, the test code also traces fairly explicitly the memory allocations and freeings (which is still not a guarantee that the code cannot leak or segvec fault). Still, it SEEMS to work out to 8th rank tensors for fairly arbitrary index limits.