diff --git a/src/base/edition.rs b/src/base/edition.rs index 45ba1846..760b3950 100644 --- a/src/base/edition.rs +++ b/src/base/edition.rs @@ -14,7 +14,7 @@ use crate::base::{DefaultAllocator, Matrix, OMatrix, RowVector, Scalar, Vector}; use crate::{Storage, UninitMatrix}; use std::mem::MaybeUninit; -/// # Rows and columns extraction +/// # Triangular matrix extraction impl> Matrix { /// Extracts the upper triangular part of this matrix (including the diagonal). #[inline] @@ -41,7 +41,10 @@ impl> Matrix { res } +} +/// # Rows and columns extraction +impl> Matrix { /// Creates a new matrix by extracting the given set of rows from `self`. #[cfg(any(feature = "std", feature = "alloc"))] #[must_use] diff --git a/src/base/matrix.rs b/src/base/matrix.rs index 84376cea..652eace1 100644 --- a/src/base/matrix.rs +++ b/src/base/matrix.rs @@ -92,6 +92,7 @@ pub type MatrixCross = /// - [Interpolation `lerp`, `slerp`…](#interpolation) /// - [BLAS functions `gemv`, `gemm`, `syger`…](#blas-functions) /// - [Swizzling `xx`, `yxz`…](#swizzling) +/// - [Triangular matrix extraction `upper_triangle`, `lower_triangle`](#triangular-matrix-extraction) /// /// #### Statistics /// - [Common operations `row_sum`, `column_mean`, `variance`…](#common-statistics-operations)