-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
This is not technically a real matrix operation, but it is commonly needed, particularly for scaling. Right now, the approach commonly used is:
const inverse = ops.getMultiplicativeInverse(scaleFactor);
if (inverse === undefined) return someDefault;
return vector.scalarMultiply(inverse);But this introduces a little bit of numerical error - 10 * (1/3) is less accurate than 10 / 3. We will need to re-implement NumberOperations.divide to get this to work correctly.
In particular, this will make the gauss-jordan equation solver more accurate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request