From b7a2ae28417b5cafce2f904c235917e6593535ad Mon Sep 17 00:00:00 2001 From: Adrian H Date: Tue, 23 Apr 2024 07:49:06 +0700 Subject: [PATCH] Update matrix_view.rs documentation Fixed a (presumed) typo in documentation in matrix_view.rs. Previously it says fixed_view and fixed_slice returns a matrix with `(RView, CView)` consecutive components. As per-input, and after re-reading the documentation and source code. Seems like RView and CView should be used instead of RView::dim() and CViem::dim(). --- src/base/matrix_view.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/matrix_view.rs b/src/base/matrix_view.rs index 305d4a32..00a4e85c 100644 --- a/src/base/matrix_view.rs +++ b/src/base/matrix_view.rs @@ -546,8 +546,8 @@ macro_rules! matrix_view_impl ( $me.$generic_view_with_steps(start, shape, steps) } - /// Slices this matrix starting at its component `(irow, icol)` and with `(RView::dim(), - /// CView::dim())` consecutive components. + /// Slices this matrix starting at its component `(irow, icol)` and with `(RVIEW,CVIEW)` + /// consecutive components. #[inline] #[deprecated = slice_deprecation_note!($fixed_view)] pub fn $fixed_slice($me: $Me, irow: usize, icol: usize) @@ -555,8 +555,8 @@ macro_rules! matrix_view_impl ( $me.$fixed_view(irow, icol) } - /// Return a view of this matrix starting at its component `(irow, icol)` and with `(RView::dim(), - /// CView::dim())` consecutive components. + /// Return a view of this matrix starting at its component `(irow, icol)` and with + /// `(RVIEW,CVIEW)` consecutive components. #[inline] pub fn $fixed_view($me: $Me, irow: usize, icol: usize) -> $MatrixView<'_, T, Const, Const, S::RStride, S::CStride> {