Strassen's algorithm: Difference between revisions

m
Line 298:
const F = [[1, 0, 0, 0] [0, 1, 0, 0] [0, 0, 1, 0] [0, 0, 0, 1]]
 
""" intprintFor changespretty aprinting: change matrix itto integer if it is within 0.00000001 of an integer """
const intprint(s, mat) = println(s, map(x -> Int(round(x, digits=8)), mat)')
 
4,105

edits