We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9447328 commit 49d863dCopy full SHA for 49d863d
1 file changed
src/impl_methods.rs
@@ -1932,6 +1932,9 @@ where
1932
///
1933
/// **Panics** if shapes are incompatible.
1934
1935
+ /// *This method is obsolete, because it is inflexible in how logical order
1936
+ /// of the array is handled. See [`.to_shape()`].*
1937
+ ///
1938
/// ```
1939
/// use ndarray::{rcarr1, rcarr2};
1940
@@ -1941,6 +1944,7 @@ where
1941
1944
/// [3., 4.]])
1942
1945
/// );
1943
1946
1947
+ #[deprecated(note="Obsolete, use `to_shape` or `into_shape` instead.", since="0.15.2")]
1948
pub fn reshape<E>(&self, shape: E) -> ArrayBase<S, E::Dim>
1949
where
1950
S: DataShared + DataOwned,
0 commit comments