Jim Turner
Jim Turner
### Discussed in https://github.com/rust-ndarray/ndarray/discussions/1036 Originally posted by **hombit** June 18, 2021 Is there any reason why CowArray doesn't implement all `From` which is implemented by both `Array` and `ArrayView`? My...
See #1027 regarding the `A: Clone` bound for `into_shared`. I've marked this PR as a draft because it would be good to add some tests using `CowArray` for methods with...
- Move `into_shared` from `DataOwned` to `Data`, add an `A: Clone` bound, and drop the "without any copying" guarantee. (See the discussion in #1021.) - Implement `From` for more combinations...
- `ArrayViewMut::from_shape_ptr` should make sure that elements don't alias (with at least a debug assertion). - `ArrayView::from_shape` should not check aliasing.
This adds a method to get the offset from the start of the allocation to the first element. Without this method, correctly reinterpreting the results of `.into_raw_vec()` as an n-D...
The `.remove_axis()`, `.insert_axis()`, `.into_subview()`, and `.slice_move()` methods do not currently have in-place variants that change the number of dimensions, because for fixed-dimensionality arrays the type changes when changing the number...
The [`.into_shape()`](https://docs.rs/ndarray/0.10.13/ndarray/struct.ArrayBase.html#method.into_shape) method works in some cases, but compared to NumPy's [`reshape()`](https://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html#numpy.reshape) has the following limitations: 1. It only works for arrays with contiguous memory layout. 2. The result depends...
This example ```rust use approx::assert_abs_diff_eq; use ndarray::*; use ndarray_linalg::*; fn main() { let arr = array![[1., 3.], [3., 1.]]; assert_abs_diff_eq!( arr.invh_into().unwrap(), array![[-0.125, 0.375], [0.375, -0.125]], epsilon = 1e-9, ); }...
For the methods in the `lax` crate which call LAPACK, we need to either add bounds checks (i.e. checking that the provided layout will not cause an out-of-bounds read for...
This adds tests for: - various ways to call `.solveh()`/`.solveh_into()` - 32-bit element types - complex element types - varying array sizes The tests show that the current implementation is...