R/C/C++ library for N-dimensional arrays

I'm looking for a library that is either in R or easily wrappable with R, that can do the following things:

construct and subset N-dimensional arrays
perform operations such as min, max, sum, sd along any dimension
is fast and ideally has a BLAS backend
And (this is important), is able to define multilevel-masks along any dimension (and combinations thereof) where the above operations are summarised. E.g.,

1 3 5
2 4 6 -(rowmask=[1,3])-(colmask=1,2)-(op=sum)-(axis=rows)-> 8 11
7 8 9
or:

1 3 5 3 7 11
2 4 6 -(rowlevels=['a','a','b'])-(op=sum)-(axis=rows)-> 7 8 9
7 8 9
and ideally a combination of the two as well.

I've started coding this in core R but it gets a mess quickly.

Any suggestions?

https://www.omegle.run/
Last edited on
Also a edit post spammer.
Topic archived. No new replies allowed.