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
Essentially, a pair to Neg for multiplication. Anything which can have its reciprocal taken would implement this. Useful in the context of Mul + Recip + One, for example.
The text was updated successfully, but these errors were encountered:
Sure, I could see this applicable to floating point, Complex, and Ratio at least.
It may also be useful for stuff like modular arithmetic and square matrices, although it would more often be called an "inverse" in those settings. Those may also want more control of failure modes, since it's not as simple as division by zero -- maybe with try/checked variants?
@cuviper I agree, and while Inv might be a better name, recip is already used for most numbers and may be best. Also, even though "reciprocal matrix" is weird to say, it's not unheard of.
37: Add Inv and Pow traits. r=cuviper a=clarcharr
This is not a breaking change, and closes#34 and #38.
This doesn't add any impls for the other `num` crates, just floats with `std` enabled. The trait has to be added before those other crates can be updated.
Essentially, a pair to
Neg
for multiplication. Anything which can have its reciprocal taken would implement this. Useful in the context ofMul + Recip + One
, for example.The text was updated successfully, but these errors were encountered: