scalarInv method
Implementation
S scalarInv(S a, String op) {
final inv = a.invert();
if (inv == null) {
throw CoreErrors.invalidOperationArguments(
op,
name: 'scalar',
reason: 'Zero scalar has no inverse.',
);
}
return inv;
}