jwood000 / RcppAlgos

Tool for Solving Problems in Combinatorics and Computational Mathematics
GNU General Public License v2.0
45 stars 5 forks source link

comboGeneral taking matrix as input? #23

Open jaam92 opened 3 years ago

jaam92 commented 3 years ago

I was wondering if this is possible to implement or something you have thought a bit about? For example, say I make a grid and want to constraints to it (e.g. each row must be greater or less than some value).

I have been trying this with expand.grid (because order does matter in my case) and data.table and finding it very time consuming and the required memory is quite large. I really liked the implementation in comboGeneral but it only applies to vectors.

jwood000 commented 2 years ago

@jaam92,

Could you give an example?