forked from M-Labs/nalgebra
fmt
This commit is contained in:
parent
8d1f684e45
commit
e1305d3d8e
@ -42,7 +42,6 @@ mod min_max;
|
|||||||
/// Mechanisms for working with values that may not be initialized.
|
/// Mechanisms for working with values that may not be initialized.
|
||||||
pub mod uninit;
|
pub mod uninit;
|
||||||
|
|
||||||
|
|
||||||
#[cfg(feature = "par-iter")]
|
#[cfg(feature = "par-iter")]
|
||||||
pub mod par_iter;
|
pub mod par_iter;
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ where
|
|||||||
/// This iterates over *immutable* references ot the columns of the matrix,
|
/// This iterates over *immutable* references ot the columns of the matrix,
|
||||||
/// if *mutable* access to the columns is required, use [`par_column_iter_mut`]
|
/// if *mutable* access to the columns is required, use [`par_column_iter_mut`]
|
||||||
/// instead.
|
/// instead.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// Using parallel column iterators to calculate the sum of the maximum
|
/// Using parallel column iterators to calculate the sum of the maximum
|
||||||
/// elements in each column:
|
/// elements in each column:
|
||||||
@ -90,11 +90,11 @@ where
|
|||||||
/// use nalgebra::{dmatrix,DMatrix};
|
/// use nalgebra::{dmatrix,DMatrix};
|
||||||
/// use rayon::prelude::*;
|
/// use rayon::prelude::*;
|
||||||
///
|
///
|
||||||
/// let matrix : DMatrix<f64> =
|
/// let matrix : DMatrix<f64> =
|
||||||
/// nalgebra::dmatrix![1.,0.,5.;
|
/// nalgebra::dmatrix![1.,0.,5.;
|
||||||
/// 2.,4.,1.;
|
/// 2.,4.,1.;
|
||||||
/// 3.,2.,2.;];
|
/// 3.,2.,2.;];
|
||||||
/// let sum_of_max :f64 =
|
/// let sum_of_max :f64 =
|
||||||
/// matrix
|
/// matrix
|
||||||
/// .par_column_iter()
|
/// .par_column_iter()
|
||||||
/// .map(|col|col.max())
|
/// .map(|col|col.max())
|
||||||
@ -194,10 +194,10 @@ where
|
|||||||
/// Allows mutable access to the columns in parallel using mutable references.
|
/// 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`]
|
/// If mutable access to the columns is not required rather use [`par_column_iter`]
|
||||||
/// instead.
|
/// instead.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// Normalize each column of a matrix with respect to its own maximum value.
|
/// Normalize each column of a matrix with respect to its own maximum value.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use nalgebra::{dmatrix,DMatrix};
|
/// use nalgebra::{dmatrix,DMatrix};
|
||||||
/// use rayon::prelude::*;
|
/// use rayon::prelude::*;
|
||||||
|
Loading…
Reference in New Issue
Block a user