address review

This commit is contained in:
geo-ant 2022-11-12 17:54:01 +01:00 committed by Sébastien Crozet
parent e40687d8e6
commit e9a5705e1a
5 changed files with 8 additions and 8 deletions

View File

@ -33,7 +33,7 @@ libm = [ "simba/libm" ]
libm-force = [ "simba/libm_force" ]
macros = [ "nalgebra-macros" ]
cuda = [ "cust_core", "simba/cuda" ]
rayon-par = [ "std", "rayon" ]
rayon = [ "std", "dep:rayon" ]
# Conversion
convert-mint = [ "mint" ]

View File

@ -447,7 +447,7 @@ mod parallel {
impl<'a, T, R: Dim, Cols: Dim, S: RawStorage<T, R, Cols>> Producer for ColumnIter<'a, T, R, Cols, S>
where
T: Send + Sync + Scalar,
T: Send + Sync + Scalar,
S: Sync,
{
type Item = MatrixSlice<'a, T, R, U1, S::RStride, S::CStride>;

View File

@ -1,9 +1,9 @@
//! this module implements parallelators to make matrices work with
//! the rayon crate seamlessly
//! Parallel iterators for matrices compatible with rayon.
use crate::{
iter::{ColumnIter, ColumnIterMut},
Dim, Matrix, MatrixSlice, MatrixSliceMut, RawStorage, RawStorageMut, U1, Scalar,};
Dim, Matrix, MatrixSlice, MatrixSliceMut, RawStorage, RawStorageMut, Scalar, U1,
};
use rayon::{iter::plumbing::bridge, prelude::*};
/// A rayon parallel iterator over the colums of a matrix

View File

@ -1223,7 +1223,7 @@ fn parallel_column_iteration() {
#[test]
#[cfg(feature = "rayon")]
fn colum_iteration_mut_double_ended() {
fn column_iteration_mut_double_ended() {
let dmat = nalgebra::dmatrix![
13,14,15,16,17;
23,24,25,26,27;

View File

@ -10,8 +10,8 @@ compile_error!(
);
// make sure to test the parallel iterators for all builds that do not require no_std
#[cfg(all(feature = "std", not(feature = "rayon-par")))]
compile_error!("Please additionally enable the `rayon-par` feature to compile and run the tests");
#[cfg(all(feature = "std", not(feature = "rayon")))]
compile_error!("Please additionally enable the `rayon` feature to compile and run the tests");
#[cfg(all(feature = "debug", feature = "compare", feature = "rand"))]
#[macro_use]