From e1305d3d8e626d0d112a30cebbf6aaf17eaa8238 Mon Sep 17 00:00:00 2001 From: geo-ant <54497890+geo-ant@users.noreply.github.com> Date: Sun, 13 Nov 2022 17:01:31 +0100 Subject: [PATCH] fmt --- src/base/mod.rs | 1 - src/base/par_iter.rs | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/base/mod.rs b/src/base/mod.rs index f22a53bf..73fe18c3 100644 --- a/src/base/mod.rs +++ b/src/base/mod.rs @@ -42,7 +42,6 @@ mod min_max; /// Mechanisms for working with values that may not be initialized. pub mod uninit; - #[cfg(feature = "par-iter")] pub mod par_iter; diff --git a/src/base/par_iter.rs b/src/base/par_iter.rs index 1b106e6e..6e1eb53a 100644 --- a/src/base/par_iter.rs +++ b/src/base/par_iter.rs @@ -82,7 +82,7 @@ where /// This iterates over *immutable* references ot the columns of the matrix, /// if *mutable* access to the columns is required, use [`par_column_iter_mut`] /// instead. - /// + /// /// # Example /// Using parallel column iterators to calculate the sum of the maximum /// elements in each column: @@ -90,11 +90,11 @@ where /// use nalgebra::{dmatrix,DMatrix}; /// use rayon::prelude::*; /// - /// let matrix : DMatrix = + /// let matrix : DMatrix = /// nalgebra::dmatrix![1.,0.,5.; /// 2.,4.,1.; /// 3.,2.,2.;]; - /// let sum_of_max :f64 = + /// let sum_of_max :f64 = /// matrix /// .par_column_iter() /// .map(|col|col.max()) @@ -194,10 +194,10 @@ where /// Allows mutable access to the columns in parallel using mutable references. /// If mutable access to the columns is not required rather use [`par_column_iter`] /// instead. - /// - /// # Example + /// + /// # Example /// Normalize each column of a matrix with respect to its own maximum value. - /// + /// /// ``` /// use nalgebra::{dmatrix,DMatrix}; /// use rayon::prelude::*;