fix(deps): update rust crate ndarray to 0.15.6 #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.14.0
->0.15.6
Release Notes
rust-ndarray/ndarray
v0.15.6
Compare Source
===========================
New features
Add
get_ptr
andget_mut_ptr
methods for getting an element's pointer froman index, by [@adamreichold].
https://github.com/rust-ndarray/ndarray/pull/1151
Other changes
Various fixes to resolve compiler and Clippy warnings/errors, by [@aganders3]
and [@jturner314].
https://github.com/rust-ndarray/ndarray/pull/1171
Fix description of
stack!
in quick start docs, by [@jturner314]. Thanks to[@HyeokSuLee] for pointing out the issue.
https://github.com/rust-ndarray/ndarray/pull/1156
Add MSRV to
Cargo.toml
.https://github.com/rust-ndarray/ndarray/pull/1191
v0.15.5
Compare Source
===========================
Enhancements
The
s!
macro now works inno_std
environments, by [@makotokato].https://github.com/rust-ndarray/ndarray/pull/1154
Other changes
Improve docs and fix typos, by [@steffahn] and [@Rikorose].
https://github.com/rust-ndarray/ndarray/pull/1134
https://github.com/rust-ndarray/ndarray/pull/11641164
v0.15.4
Compare Source
===========================
The Dr. Turner release 🚀
New features
Complex matrix multiplication now uses BLAS
cgemm
/zgemm
whenenabled (and matrix layout allows), by [@ethanhs].
https://github.com/rust-ndarray/ndarray/pull/1106
Use
matrixmultiply
as fallback for complex matrix multiplicationwhen BLAS is not available or the matrix layout requires it by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/1118
Add
into/to_slice_memory_order
methods for views, lifetime-preservingversions of existing similar methods by [@jturner314]
https://github.com/rust-ndarray/ndarray/pull/1015
kron
function for Kronecker product by [@ethanhs].https://github.com/rust-ndarray/ndarray/pull/1105
split_complex
method for splitting complex arrays into separatereal and imag view parts by [@jturner314] and [@ethanhs].
https://github.com/rust-ndarray/ndarray/pull/1107
New method
try_into_owned_nocopy
by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/1022
New producer and iterable
axis_windows
by [@VasanthakumarV]and [@jturner314].
https://github.com/rust-ndarray/ndarray/pull/1022
New method
Zip::par_fold
by [@adamreichold]https://github.com/rust-ndarray/ndarray/pull/1095
New constructor
from_diag_elem
by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/1076
Parallel::with_min_len
method for parallel iterators by [@adamreichold]https://github.com/rust-ndarray/ndarray/pull/1081
Allocation-preserving map function
.mapv_into_any()
added by [@benkay86]Enhancements
Improve performance of
.sum_axis()
for some cases by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/1061
Bug fixes
Fix error in calling dgemv (matrix-vector multiplication) with BLAS and
broadcasted arrays, by [@jturner314].
https://github.com/rust-ndarray/ndarray/pull/1088
API changes
Support approx 0.5 partially alongside the already existing approx 0.4 support.
New feature flag is
approx-0_5
, by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/1025
Slice and reference-to-array conversions to CowArray added for by [@jturner314].
https://github.com/rust-ndarray/ndarray/pull/1038
Allow trailing comma in stack and concatenate macros by [@jturner314]
https://github.com/rust-ndarray/ndarray/pull/1044
Zip
now has amust_use
marker to help users by [@adamreichold]https://github.com/rust-ndarray/ndarray/pull/1082
Other changes
Fixing the crates.io badge on github by [@atouchet]
https://github.com/rust-ndarray/ndarray/pull/1104
Use intra-doc links in docs by [@LeSeulArtichaut]
https://github.com/rust-ndarray/ndarray/pull/1033
Clippy fixes by [@adamreichold]
https://github.com/rust-ndarray/ndarray/pull/1092
https://github.com/rust-ndarray/ndarray/pull/10911091
Minor fixes in links and punctuation in docs by [@jimblandy]
https://github.com/rust-ndarray/ndarray/pull/1056
Minor fixes in docs by [@chohner]
https://github.com/rust-ndarray/ndarray/pull/1119
Update tests to quickcheck 1.0 by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/1114
v0.15.3
Compare Source
===========================
New features
New methods
.last/_mut()
for arrays and array views by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/1013
Bug fixes
Fix
as_slice_memory_order_mut()
so that it never changes strides (thememory layout) of the array when called.
This was a bug that impacted
ArcArray
(and for example notArray
orArrayView/Mut
),and multiple methods on
ArcArray
that useas_slice_memory_order_mut
(for examplemap_mut
).Fix by [@jturner314].
https://github.com/rust-ndarray/ndarray/pull/1019
API changes
Array1 now implements
From<Box<[T]>>
by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/1016
ArcArray now implements
From<Array<...>>
by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/1021
CowArray now implements RawDataSubst by [@jturner314]
https://github.com/rust-ndarray/ndarray/pull/1020
Other changes
Mention unsharing in
.as_mut_ptr
docs by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/1017
Clarify and fix minor errors in push/append method docs by [@bluss]
f21c668
Fix several warnings in doc example code by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/1009
v0.15.2
Compare Source
================================
New features
New methods for growing/appending to owned
Array
s. These methods allowbuilding an array efficiently chunk by chunk. By [@bluss].
.push_row()
,.push_column()
.push(axis, array)
,.append(axis, array)
stack
,concatenate
and.select()
now support allClone
-able elementsas a result.
https://github.com/rust-ndarray/ndarray/pull/932
https://github.com/rust-ndarray/ndarray/pull/990/990
New reshaping method
.to_shape(...)
, called with new shape and optionalordering parameter, this is the first improvement for reshaping in terms of
added features and increased consistency, with more to come. By [@bluss].
https://github.com/rust-ndarray/ndarray/pull/982
Array
now implements a by-value iterator, by [@bluss].https://github.com/rust-ndarray/ndarray/pull/986
New methods
.move_into()
and.move_into_uninit()
which allow assigninginto an array by moving values from an array into another, by [@bluss].
https://github.com/rust-ndarray/ndarray/pull/932
https://github.com/rust-ndarray/ndarray/pull/997/997
New method
.remove_index()
for owned arrays by [@bluss]https://github.com/rust-ndarray/ndarray/pull/967
New constructor
build_uninit
which makes it easier to initializeuninitialized arrays in a way that's generic over all owned array kinds.
By [@bluss].
https://github.com/rust-ndarray/ndarray/pull/1001
Enhancements
Preserve the allocation of the input array in some more cases for arithmetic ops by [@SparrowLii]
https://github.com/rust-ndarray/ndarray/pull/963
Improve broadcasting performance for &array + &array arithmetic ops by [@SparrowLii]
https://github.com/rust-ndarray/ndarray/pull/965
Bug fixes
Fix an error in construction of empty array with negative strides, by [@jturner314].
https://github.com/rust-ndarray/ndarray/pull/998
Fix minor performance bug with loop order selection in Zip by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/977
API changes
Add dimension getters to
Shape
andStrideShape
by [@stokhos]https://github.com/rust-ndarray/ndarray/pull/978
Other changes
Rustdoc now uses the ndarray logo that [@jturner314] created previously
https://github.com/rust-ndarray/ndarray/pull/981
Minor doc changes by [@stokhos], [@cassiersg] and [@jturner314]
https://github.com/rust-ndarray/ndarray/pull/968
https://github.com/rust-ndarray/ndarray/pull/971/971
https://github.com/rust-ndarray/ndarray/pull/974/974
A little refactoring to reduce generics bloat in a few places by [@bluss].
https://github.com/rust-ndarray/ndarray/pull/1004
v0.15.1
Compare Source
===========================
Enhancements
Arrays and views now have additional PartialEq impls so that it's possible to
compare arrays with references to arrays and vice versa by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/958
Bug fixes
Fix panic in creation of
.windows()
producer from negative stride array by[@bluss]
https://github.com/rust-ndarray/ndarray/pull/957
Other changes
Update BLAS documentation further by @bluss
https://github.com/rust-ndarray/ndarray/pull/955
https://github.com/rust-ndarray/ndarray/pull/959/959
v0.15.0
Compare Source
===========================
New features
Support inserting new axes while slicing by [@jturner314]. This is an example:
https://github.com/rust-ndarray/ndarray/pull/570
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.
https://github.com/rust-ndarray/ndarray/pull/898
Support for compiling ndarray as
no_std
(using core and alloc) by[@xd009642] and [@bluss]
https://github.com/rust-ndarray/ndarray/pull/861
https://github.com/rust-ndarray/ndarray/pull/889/889
New methods
.cell_view()
andArrayViewMut::into_cell_view
that enablenew ways of working with array elements as if they were in Cells - setting
elements through shared views and broadcast views, by [@bluss].
https://github.com/rust-ndarray/ndarray/pull/877
New methods
slice_each_axis/_mut/_inplace
that make it easier to slicea dynamic number of axes in some situations, by [@jturner314]
https://github.com/rust-ndarray/ndarray/pull/913
New method
a.assign_to(b)
with the inverse argument order compared to theexisting
b.assign(a)
and some extra features like assigning intouninitialized arrays, By [@bluss].
https://github.com/rust-ndarray/ndarray/pull/947
New methods
.std()
and.var()
for standard deviation and variance by[@kdubovikov]
https://github.com/rust-ndarray/ndarray/pull/790
Enhancements
Ndarray can now correctly determine that arrays can be contiguous, even if
they have negative strides, by [@SparrowLii]
https://github.com/rust-ndarray/ndarray/pull/885
https://github.com/rust-ndarray/ndarray/pull/948/948
Improvements to
map_inplace
by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/911
.into_dimensionality
performance was improved for theIxDyn
toIxDyn
case by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/906
Improved performance for scalar + &array and &array + scalar operations by
[@jturner314]
https://github.com/rust-ndarray/ndarray/pull/890
API changes
New constructors
Array::from_iter
andArray::from_vec
by [@bluss].No new functionality, just that these constructors are available without trait
imports.
https://github.com/rust-ndarray/ndarray/pull/921
NdProducer::raw_dim
is now a documented method by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/918
AxisDescription
is now a struct with field names, not a tuple struct by[@jturner314]. Its accessor methods are now deprecated.
https://github.com/rust-ndarray/ndarray/pull/915
Methods for array comparison
abs_diff_eq
andrelative_eq
are nowexposed as inherent methods too (no trait import needed), still under the approx
feature flag by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/946
Changes to the slicing-related types and macro by [@jturner314] and [@bluss]:
Dimension::SliceArg
associated type, and add a newSliceArg
trait for this purpose.
s![]
macro to an ownedSliceInfo
ratherthan a reference.
SliceOrIndex
enum withSliceInfoElem
, which has anadditional
NewAxis
variant and does not have astep_by
method.SliceInfo
in order to support theNewAxis
functionality and remove some tricky
unsafe
code.SliceInfo::new
method asunsafe
. The new implementations ofTryFrom
can be used as a safe alternative.AsRef<SliceInfo<[SliceOrIndex], D>> for SliceInfo<T, D>
implementation. Add the similar
From<&'a SliceInfo<T, Din, Dout>> for SliceInfo<&'a [SliceInfoElem], Din, Dout>
conversion as an alternative.;
step case in thes![]
macro to error at compiletime if an unsupported type for expr is used, instead of panicking at
runtime.
https://github.com/rust-ndarray/ndarray/pull/570
https://github.com/rust-ndarray/ndarray/pull/940/940
https://github.com/rust-ndarray/ndarray/pull/943/943
https://github.com/rust-ndarray/ndarray/pull/945/945
Removed already deprecated methods by [@bluss]:
.all_close()
- use approx feature and methods like.abs_diff_eq
instead.scalar_sum()
as deprecated - use.sum()
insteadDataClone
- useData + RawDataClone
insteadArrayView::into_slice
- useto_slice()
instead.https://github.com/rust-ndarray/ndarray/pull/874
Remove already deprecated methods: rows, cols (for row and column count; the
new names are nrows and ncols) by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/872
Renamed
Zip
methods by [@bluss] and [@SparrowLii]:apply
->for_each
apply_collect
->map_collect
apply_collect_into
->map_collect_into
par_
prefixed methods renamed accordingly)https://github.com/rust-ndarray/ndarray/pull/894
https://github.com/rust-ndarray/ndarray/pull/904/904
Deprecate
Array::uninitialized
and revamped its replacement by [@bluss]Please use new new
Array::uninit
which is based onMaybeUninit
(renamedfrom
Array::maybe_uninit
, the old name is also deprecated).https://github.com/rust-ndarray/ndarray/pull/902
https://github.com/rust-ndarray/ndarray/pull/876/876
Renamed methods (old names are now deprecated) by [@bluss] and [@jturner314]
genrows/_mut
->rows/_mut
gencolumns/_mut
->columns/_mut
stack_new_axis
->stack
(the new name already existed)visit
->for_each
https://github.com/rust-ndarray/ndarray/pull/872
https://github.com/rust-ndarray/ndarray/pull/937/937
https://github.com/rust-ndarray/ndarray/pull/907/907
Updated
matrixmultiply
dependency to 0.3.0 by [@bluss]and adding new feature flag
matrixmultiply-threading
to enable its threadinghttps://github.com/rust-ndarray/ndarray/pull/888
https://github.com/rust-ndarray/ndarray/pull/938/938
Updated
num-complex
dependency to 0.4.0 by [@bluss]https://github.com/rust-ndarray/ndarray/pull/952
Bug fixes
Fix
Zip::indexed
for the 0-dimensional case by [@jturner314]https://github.com/rust-ndarray/ndarray/pull/862
Fix bug in layout computation that broke parallel collect to f-order
array in some circumstances by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/900
Fix an unwanted panic in shape overflow checking by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/855
Mark the
SliceInfo::new
method asunsafe
due to the requirement thatindices.as_ref()
always return the same value when called multiple times,by [@bluss] and [@jturner314]
https://github.com/rust-ndarray/ndarray/pull/570
Other changes
It was changed how we integrate with BLAS and
blas-src
. Users of BLAS needto read the README for the updated instructions. Ndarray itself no longer
has public dependency on
blas-src
. Changes by [@bluss].https://github.com/rust-ndarray/ndarray/pull/891
https://github.com/rust-ndarray/ndarray/pull/951/951
Various improvements to tests and CI by [@jturner314]
https://github.com/rust-ndarray/ndarray/pull/934
https://github.com/rust-ndarray/ndarray/pull/924/924
The
sort-axis.rs
example file's implementation of sort was bugfixed and nowhas tests, by [@dam5h] and [@bluss]
https://github.com/rust-ndarray/ndarray/pull/916
https://github.com/rust-ndarray/ndarray/pull/930/930
We now link to the #rust-sci room on matrix in the readme by [@jturner314]
https://github.com/rust-ndarray/ndarray/pull/619
Internal cleanup with builder-like methods for creating arrays by [@bluss]
https://github.com/rust-ndarray/ndarray/pull/908
Implementation fix of
.swap(i, j)
by [@bluss]https://github.com/rust-ndarray/ndarray/pull/903
Minimum supported Rust version (MSRV) is Rust 1.49.
https://github.com/rust-ndarray/ndarray/pull/902
Minor improvements to docs by [@insideoutclub]
https://github.com/rust-ndarray/ndarray/pull/887
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.