Skip to content

Upgrading nalgebra 0.20 to 0.21

Breaking0.20.0 → 0.21.1Breaking3New1Changed1

BreakingUpgrade verdict

3 breaking changes.

  • Negating a unit complex number or unit quaternion directly no longer compiles; negate the result of the multiplication instead.
  • Generic code that used the old alga traits must now use the equivalent simba traits.
  • Code relying on alga trait implementations must enable the `alga` feature.
3 items need code or config changes

Adds simba ^0.1.

Installs 53 packages in all (was 49).

Breaking3
Removes the Neg unary operator implementation for UnitComplex and UnitQuaternion.
NegUnitComplexUnitQuaternion
Replaces alga traits such as alga::general::{RealField, ComplexField} with simba::scalar::{RealField, ComplexField}.
alga::general::RealFieldalga::general::ComplexFieldsimba::scalar::RealFieldsimba::scalar::ComplexField
Omits alga trait implementations and the alga dependency unless the alga cargo feature is enabled.
alga