forked from M-Labs/nalgebra
Bench closure should return the result
This commit is contained in:
parent
b1616e236c
commit
1f3bbce33c
@ -192,7 +192,7 @@ fn mat100_from_fn(bench: &mut Bencher) {
|
|||||||
bench.iter(|| {
|
bench.iter(|| {
|
||||||
DMatrix::from_fn(100, 100, |a, b| {
|
DMatrix::from_fn(100, 100, |a, b| {
|
||||||
a + b
|
a + b
|
||||||
});
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,6 +201,6 @@ fn mat500_from_fn(bench: &mut Bencher) {
|
|||||||
bench.iter(|| {
|
bench.iter(|| {
|
||||||
DMatrix::from_fn(500, 500, |a, b| {
|
DMatrix::from_fn(500, 500, |a, b| {
|
||||||
a + b
|
a + b
|
||||||
});
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user