Charles Greathouse on Wed, 21 Oct 2015 22:42:27 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Using forvec as fordiv


Given a vectors u and v with #v == #u, what's the easiest way to extract the elements of v for which the corresponding element of u is nonzero? (All elements from u will be 0 or 1.)

This is for constructing divisors of factorback(v) in their factored form.

Charles Greathouse
Analyst/Programmer
Case Western Reserve University