mschubert / ebits

R bioinformatics toolkit incubator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

array/map should support multiple objects

mschubert opened this issue · comments

analogous to mapply

this needs array/split() to first support multiple axes in along

reason: we want to (1) split all arrays by all axes we don't apply on, (2) call the function for each subset, and (3) re-assemble the array

should also test if we want to add functionality to map or provide a separate mmap function - first develop using mmap, then see if that causes a performance penalty and whether we can tolerate to incur this if only one object (by using what's in mmap every time)

this is provided by the lambda function in narray: https://github.com/mschubert/narray#mapping-functions-on-arrays