You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is highly inefficient: first the scalar division / creates a new matrix; then the scalar multiplication creates a second new matrix; then the subtraction a - ... creates a third, which is assigned to a.
Instead this could be done with zero allocations (well, assuming the field operations don't require allocations, which is the case for finite field elements). For larger examples this makes a substantial difference.
The text was updated successfully, but these errors were encountered:
Consider code like this in
lib/meataut.gi
:where
a
andnilbase[i]
are square matrices.This is highly inefficient: first the scalar division
/
creates a new matrix; then the scalar multiplication creates a second new matrix; then the subtractiona - ...
creates a third, which is assigned toa
.Instead this could be done with zero allocations (well, assuming the field operations don't require allocations, which is the case for finite field elements). For larger examples this makes a substantial difference.
The text was updated successfully, but these errors were encountered: