@@ -274,11 +274,11 @@ where
274274 N : nalgebra:: Scalar + Element ,
275275 D : Dimension ,
276276{
277- /// Try to convert this array into a [`nalgebra::MatrixSlice `] using the given shape and strides.
277+ /// Try to convert this array into a [`nalgebra::MatrixView `] using the given shape and strides.
278278 #[ doc( alias = "nalgebra" ) ]
279279 pub fn try_as_matrix < R , C , RStride , CStride > (
280280 & self ,
281- ) -> Option < nalgebra:: MatrixSlice < N , R , C , RStride , CStride > >
281+ ) -> Option < nalgebra:: MatrixView < N , R , C , RStride , CStride > >
282282 where
283283 R : nalgebra:: Dim ,
284284 C : nalgebra:: Dim ,
@@ -294,13 +294,13 @@ impl<'py, N> PyReadonlyArray<'py, N, Ix1>
294294where
295295 N : nalgebra:: Scalar + Element ,
296296{
297- /// Convert this one-dimensional array into a [`nalgebra::DMatrixSlice `] using dynamic strides.
297+ /// Convert this one-dimensional array into a [`nalgebra::DMatrixView `] using dynamic strides.
298298 ///
299299 /// # Panics
300300 ///
301301 /// Panics if the array has negative strides.
302302 #[ doc( alias = "nalgebra" ) ]
303- pub fn as_matrix ( & self ) -> nalgebra:: DMatrixSlice < N , nalgebra:: Dynamic , nalgebra:: Dynamic > {
303+ pub fn as_matrix ( & self ) -> nalgebra:: DMatrixView < N , nalgebra:: Dyn , nalgebra:: Dyn > {
304304 self . try_as_matrix ( ) . unwrap ( )
305305 }
306306}
@@ -310,13 +310,13 @@ impl<'py, N> PyReadonlyArray<'py, N, Ix2>
310310where
311311 N : nalgebra:: Scalar + Element ,
312312{
313- /// Convert this two-dimensional array into a [`nalgebra::DMatrixSlice `] using dynamic strides.
313+ /// Convert this two-dimensional array into a [`nalgebra::DMatrixView `] using dynamic strides.
314314 ///
315315 /// # Panics
316316 ///
317317 /// Panics if the array has negative strides.
318318 #[ doc( alias = "nalgebra" ) ]
319- pub fn as_matrix ( & self ) -> nalgebra:: DMatrixSlice < N , nalgebra:: Dynamic , nalgebra:: Dynamic > {
319+ pub fn as_matrix ( & self ) -> nalgebra:: DMatrixView < N , nalgebra:: Dyn , nalgebra:: Dyn > {
320320 self . try_as_matrix ( ) . unwrap ( )
321321 }
322322}
@@ -456,11 +456,11 @@ where
456456 N : nalgebra:: Scalar + Element ,
457457 D : Dimension ,
458458{
459- /// Try to convert this array into a [`nalgebra::MatrixSliceMut `] using the given shape and strides.
459+ /// Try to convert this array into a [`nalgebra::MatrixViewMut `] using the given shape and strides.
460460 #[ doc( alias = "nalgebra" ) ]
461461 pub fn try_as_matrix_mut < R , C , RStride , CStride > (
462462 & self ,
463- ) -> Option < nalgebra:: MatrixSliceMut < N , R , C , RStride , CStride > >
463+ ) -> Option < nalgebra:: MatrixViewMut < N , R , C , RStride , CStride > >
464464 where
465465 R : nalgebra:: Dim ,
466466 C : nalgebra:: Dim ,
@@ -476,15 +476,13 @@ impl<'py, N> PyReadwriteArray<'py, N, Ix1>
476476where
477477 N : nalgebra:: Scalar + Element ,
478478{
479- /// Convert this one-dimensional array into a [`nalgebra::DMatrixSliceMut `] using dynamic strides.
479+ /// Convert this one-dimensional array into a [`nalgebra::DMatrixViewMut `] using dynamic strides.
480480 ///
481481 /// # Panics
482482 ///
483483 /// Panics if the array has negative strides.
484484 #[ doc( alias = "nalgebra" ) ]
485- pub fn as_matrix_mut (
486- & self ,
487- ) -> nalgebra:: DMatrixSliceMut < N , nalgebra:: Dynamic , nalgebra:: Dynamic > {
485+ pub fn as_matrix_mut ( & self ) -> nalgebra:: DMatrixViewMut < N , nalgebra:: Dyn , nalgebra:: Dyn > {
488486 self . try_as_matrix_mut ( ) . unwrap ( )
489487 }
490488}
@@ -494,15 +492,13 @@ impl<'py, N> PyReadwriteArray<'py, N, Ix2>
494492where
495493 N : nalgebra:: Scalar + Element ,
496494{
497- /// Convert this two-dimensional array into a [`nalgebra::DMatrixSliceMut `] using dynamic strides.
495+ /// Convert this two-dimensional array into a [`nalgebra::DMatrixViewMut `] using dynamic strides.
498496 ///
499497 /// # Panics
500498 ///
501499 /// Panics if the array has negative strides.
502500 #[ doc( alias = "nalgebra" ) ]
503- pub fn as_matrix_mut (
504- & self ,
505- ) -> nalgebra:: DMatrixSliceMut < N , nalgebra:: Dynamic , nalgebra:: Dynamic > {
501+ pub fn as_matrix_mut ( & self ) -> nalgebra:: DMatrixViewMut < N , nalgebra:: Dyn , nalgebra:: Dyn > {
506502 self . try_as_matrix_mut ( ) . unwrap ( )
507503 }
508504}
0 commit comments