Skip to content

Upgrading nalgebra 0.29 to 0.30

Breaking0.29.0 → 0.30.1Breaking4New13Changed4Fixed6

BreakingUpgrade verdict

4 breaking changes.

  • Unbounded number types can now implement the real-number trait.
  • Code that implements or uses the dimension trait must now treat it as unsafe.
  • Raising a matrix to a negative power no longer works directly; invert the matrix first.
  • The complex-number trait again requires conversion from primitive types.
Top 3 of 4 that need code or config changes

Adds cust ^0.2.

Installs 131 packages in all (was 123).

Breaking4
Removes the Bounded requirement from RealField, replacing it with methods returning Option<Self>.
RealFieldBounded
The Dim trait is now marked as unsafe.
Dim
Matrix::pow and Matrix::pow_mut now only accept positive integer exponents.
Matrix::powMatrix::pow_mut
ComplexField derives from FromPrimitive again.
ComplexFieldFromPrimitive