Disappointing update below. On Tuesday, February 10, 2015 at 7:33:36 AM UTC-8, Seth wrote: > > I'm happy to do this, but consider my specific use case for a moment: a >> graph adjacency matrix A of boolean values. Right now, I can call int(A) to >> turn this into an array where true = 1 and false = 0, which is ideal for >> determining the Laplacian matrix. >> >> > If int() isn't the right way to do this, what is? round(), trunc(), >> parseint() don't work, and creating a separate function that iterates over >> A and converts the true values to 1 seems redundant. >> >> > Thank you all for the alternatives. Here's feedback on each :) > > 1) map(Int, array) works perfectly (UPDATE: only on 0.4. Errors on 0.3.) >
>
