Yes. I think - after a pizza and a beer - just going the marshaler route for each of the concrete types is better and more generally useful.
I'll send a PR.
-s
sent from my droid
With a zero dims check, SetDims would be non-destructive.
You can reshape very cheaply by extracting the underlying data and creating a new dense with different dimensions. In many cases this will break, but in the common case where stride = cols things are fine
In matlab at least it is extremely fast at performing a SetDims (which they call reshape) - but it doesn't allow views. The result is that some operations are very fast in matlab because they can be expressed as a combination of resize and vector operations, and some things which are much less efficient. How this issue gets worked out will have a powerful impact on the use of this package.
--