Is there an equivalent of VectorN for matrices?


#1

Is there an equivalent of VectorN for matrices? I’m thinking of something like this:

struct Matrix<C: ArrayLength<GenericArray<u8, R>>, R: ArrayLength<u8>> {
    at: GenericArray<GenericArray<u8, R>, C>,
}

If not, why not?


#2

No, it is not supported yet because the current design does not allow it to be implemented without lots of code duplication. This will be added in the next version (which includes a complete rewrite of the internals of nalgebra) ! Actually, it is already implemented in the nexgen branch of the repository but not released yet.