Skip to content

build(deps): update nalgebra requirement from 0.23.0 to 0.26.2 - #98

Merged
morenol merged 4 commits into
developmentfrom
dependabot/cargo/nalgebra-0.26.2
May 11, 2022
Merged

morenol merged 4 commits into
developmentfrom
dependabot/cargo/nalgebra-0.26.2

Conversation

@dependabot-preview

@dependabot-preview dependabot-preview Bot commented Apr 28, 2021 •

Copy link
Copy Markdown
Contributor

Updates the requirements on nalgebra to permit the latest version.

Changelog

Sourced from nalgebra's changelog.

[0.26.2]

Added

  • Conversion from an array [T; D] to an isometry Isometry<T, _, D> (as a translation).
  • Conversion from a static vector SVector<T; D> to an isometry Isometry<T, _, D> (as a translation).
  • Conversion from a point Point<T; D> to an isometry Isometry<T, _, D> (as a translation).
  • Conversion of an array [T; D] from/to a translation Translation<T, D>.
  • Conversion of a point Point<T, D> to a translation Translation<T, D>.
  • Conversion of the tuple of glam types (Vec3, Quat) from/to an Isometry2 or Isometry3.
  • Conversion of a glam type Vec2/3/4 from/to a Translation2/3/4.

[0.26.1]

Fix a regression introduced in 0.26.0 preventing DVector from being serialized with serde.

[0.26.0]

This releases integrates min-const-generics to nalgebra. See our blog post for details about this release.

Added

  • Add type aliases for unit vector, e.g., UnitVector3.
  • Add a pow and pow_mut function to square matrices.
  • Add Cholesky::determinant to compute the determinant of a matrix decomposed with Cholesky.
  • Add the serde-serialize-no-std feature to enable serialization of static matrices/vectors with serde, but without requiring std.

Modified

  • The serde crate isn't enabled by default now. Enable the serde-serialize or the serde-serialize-no-std features instead.
  • The Const<const D: usize> type has been introduced to represent dimensions known at compile-time. This replaces the type-level integers from typenum as well as the U1, U2, ..., U127 types from nalgebra. These U1, U2, ..., U127 are now just aliases for Const<D>, e.g., type U2 = Const<2>.
  • The ArrayStorage now uses a standard array [[T; R]; C] instead of a GenericArray.
  • Many trait bounds were changed to accommodate const-generics. Most of these changes should be transparent wrt. non-generic code.
  • The MatrixMN alias has been deprecated. Use OMatrix or SMatrix instead.
  • The MatrixN<T, D> alias has been deprecated. Use OMatrix<T, D, D> or SMatrix instead.
  • The VectorN<T, D> alias has been deprecated. Use OVector or SVector instead.
  • The Point, Translation, Isometry, Similarity, and Transformation types now take an integer for their dimension (instead of a type-level integer).
  • The type parameter order of Isometry, Similarity, Transformation changed to put the integer dimensions in the last position (this is required by the compiler).
  • The ::new constructors of translations, points, matrices, and vectors of dimensions <= 6 are now const fn, making them usable to define constant globals. The Quaternion::new constructor is also a const fn now.

[0.25.4]

Fixed

... (truncated)

Commits
  • 58bea21 Release v0.26.2
  • fb21476 Merge pull request #874 from dimforge/more_conversions
  • 0745384 Update changelog.
  • d59d438 Add more conversion for glam types
  • 65b94cc Add more conversions for translations
  • db27a08 Cleanup conversions between points and static vectors.
  • 09be376 Add more conversion for Isometry
  • 43cf22a Cleanup conversion between static arrays and static matrices.
  • 984bb1a Fix const-generics blog post url in the changelog.
  • 28bfb4a Update Changelog.
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview Bot added the dependencies Pull requests that update a dependency file label Apr 28, 2021
@morenol

morenol commented Apr 28, 2021 •

Copy link
Copy Markdown
Collaborator

This requires rand=0.8.0 and also we probably need to enable the rand feature in algebra.

Also the serde-serialize serialize should be enabled for compatibiility with serde -> Update: I think that this has to be enabled in the libraries that are using smartcore and not in smartcore itself.

MatrixMN will be deprecated.

@dependabot-preview
dependabot-preview Bot force-pushed the dependabot/cargo/nalgebra-0.26.2 branch 3 times, most recently from d6ab8be to e6d5e7f Compare April 28, 2021 22:04
fn pow_mut() {
let mut a = DMatrix::from_row_slice(1, 3, &[1., 2., 3.]);
a.pow_mut(3.);
BaseMatrix::pow_mut(&mut a, 3.);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BaseVector::pow_mut now conflicts with pow_mut from nalgebra

https://github.com/dimforge/nalgebra/blob/984bb1a63943aa68b6f26ff4a6acf8f68b833b70/src/linalg/pow.rs#L24

It has different arguments (integer) and it returns a Result<_> in nalgebra.

@dependabot-preview

Copy link
Copy Markdown
Contributor Author

This pull request will no longer be automatically closed when a new version is found as this pull request was created by Dependabot Preview and this repo is using a version: 2 config file. You can close this pull request and let Dependabot re-create it the next time it checks for updates.

@morenol
morenol force-pushed the dependabot/cargo/nalgebra-0.26.2 branch from 826dd4d to 54c2fba Compare May 10, 2022 13:05
@morenol
morenol merged commit 322610c into development May 11, 2022
@morenol
morenol deleted the dependabot/cargo/nalgebra-0.26.2 branch May 11, 2022 17:04
morenol added a commit that referenced this pull request Nov 8, 2022
* build(deps): update nalgebra requirement from 0.23.0 to 0.26.2

Updates the requirements on [nalgebra](https://github.com/dimforge/nalgebra) to permit the latest version.
- [Release notes](https://github.com/dimforge/nalgebra/releases)
- [Changelog](https://github.com/dimforge/nalgebra/blob/dev/CHANGELOG.md)
- [Commits](dimforge/nalgebra@v0.23.0...v0.26.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* fix: updates for nalgebre

* test: explicitly call pow_mut from BaseVector since now it conflicts with nalgebra implementation

* Don't be strict with dependencies

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant