LTL
2.0.x
|
Index an arbitrary subset of elements of an MArray
.
For example, Find all elemets of an MArray
that are zero:
We can now set all of these to 1:
You can use operator()(IndexList&)
instead of operator[](IndexList&)
to obtain the values of the MArry
indexed by the IndexList
as a 1D MArray:
In short: