Support two-sided broadcasting in arithmetic operations with arrays by [@SparrowLii]
This now allows, for example, addition of a 3 x 1 with a 1 x 3 array; the
operands are in this case broadcast to 3 x 3 which is the shape of the result.
Note that this means that a new trait bound is required in some places when
mixing dimensionality types of arrays in arithmetic operations.
New methods .cell_view() and ArrayViewMut::into_cell_view that enable
new ways of working with array elements as if they were in Cells - setting
elements through shared views and broadcast views, by [@bluss].
New method a.assign_to(b) with the inverse argument order compared to the
existing b.assign(a) and some extra features like assigning into
uninitialized arrays, By [@bluss].
You can trigger a rebase of this PR by commenting @dependabot rebase.
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 show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@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)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Updates the requirements on ndarray-rand to permit the latest version.
Changelog
Sourced from ndarray-rand's changelog.
... (truncated)
Commits
84fe611
Merge pull request #1414 from rust-ndarray/release-0.16b592995
Bump to ndarray 0.16 and ndarray-rand 0.15825e80b
Update changelog for ndarray 0.16 and ndarray-rand 0.15b03953a
Check for aliasing in RawViewMut::from_shape_ptr9873c0a
Merge pull request #1411 from rust-ndarray/ci3de33e4
ci: Require rustfmt check98c2f25
ci: Require nostd build8cbc348
ci: Remove duplicated test in cargo-carefule9e8c9d
Merge pull request #1410 from rust-ndarray/aliasing-checks516a504
Allow aliasing in ArrayView::from_shapeYou can trigger a rebase of this PR by commenting
@dependabot rebase
.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 show