Re: [eigen] On a flexible API for submatrices, slicing, indexing, masking, etc. |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
Dude I don't know... This is a bit too fancy for me. So now A(3 * any_mat + 4) actually means A(1), A(4), A(7) ...?To write A(seq(4, 10, 3)), you cannot just write A(4 + 3 * any_mat <= 10), but you need to write A(4<= 4 + 3 * any_mat <= 10).
And yes, a<=any_nat does not return a boolean or a vector of booleans, but once put using this new wording, how could it be?gaelA(2*iota(5) ) // even numbers up to 8A(3+2*iota(all-2) ) // 3,5,7,… up to N-2A(all - iota(5) ) // N-1,N-2,..,N-5...where bound checking is meant to follow Eigen habits ( eg. hard error if compile time, assert on runtime )
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |