From 28d04b61cdb78bf63354f270f4a78785b7039089 Mon Sep 17 00:00:00 2001 From: Derek Christ Date: Thu, 18 Apr 2024 18:06:36 +0200 Subject: [PATCH] Fix false row-major comment in doc In the documentation of RawStorage::stride it was falsely claimed that the storage of the matrix happens in a row-major fashion. In fact it is column-major. --- src/base/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/storage.rs b/src/base/storage.rs index b39d0f3d..168253e6 100644 --- a/src/base/storage.rs +++ b/src/base/storage.rs @@ -59,7 +59,7 @@ pub unsafe trait RawStorage: Sized { /// The spacing between consecutive row elements and consecutive column elements. /// - /// For example this returns `(1, 5)` for a row-major matrix with 5 columns. + /// For example this returns `(1, 5)` for a column-major matrix with 5 columns. fn strides(&self) -> (Self::RStride, Self::CStride); /// Compute the index corresponding to the irow-th row and icol-th column of this matrix. The