Skip to content

Implementation of simba traits for DualVec#38

Open
afossa wants to merge 1 commit intoEntrolution:mainfrom
afossa:feature/simba-impls-dual-vec
Open

Implementation of simba traits for DualVec#38
afossa wants to merge 1 commit intoEntrolution:mainfrom
afossa:feature/simba-impls-dual-vec

Conversation

@afossa
Copy link

@afossa afossa commented Mar 15, 2026

Summary

Implemented simba traits in simba_impls.rs for DualVec<F, N>. This allows to use DualVec<F, N> as scalar type in nalgebra matrices.

Changes

  • Implemented traits SimdValue, PrimitiveSimdValue, SubsetOf, AbsDiffEq, RelativeEq, UlpsEq, Field, ComplexField, RealField for DualVec<F, N>. Implementations are modeled after those for Dual<F>, e.g. comparisons are based on the real part of the dual number.

Test Plan

  • Implemented unit tests for dot product, vector norm, matrix-vector product and matrix inverse in nalgebra_integrations.rs.

Checklist

  • Tests pass (cargo test)
  • No clippy warnings (cargo clippy -- -D warnings)
  • Code formatted (cargo fmt --check)
  • Documentation updated if needed
  • CHANGELOG.md updated for user-facing changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant