We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f39c2c commit a75921bCopy full SHA for a75921b
src/cpu_math.rs
@@ -14,12 +14,27 @@ use crate::{
14
pub struct CpuMath<F: CpuLogpFunc> {
15
logp_func: F,
16
arch: pulp::Arch,
17
+ parallel: faer::Parallelism<'static>,
18
}
19
20
impl<F: CpuLogpFunc> CpuMath<F> {
21
pub fn new(logp_func: F) -> Self {
22
let arch = pulp::Arch::new();
- Self { logp_func, arch }
23
+ let parallel = faer::Parallelism::None;
24
+ Self {
25
+ logp_func,
26
+ arch,
27
+ parallel,
28
+ }
29
30
+
31
+ pub fn with_parallel(logp_func: F, parallel: faer::Parallelism<'static>) -> Self {
32
+ let arch = pulp::Arch::new();
33
34
35
36
37
38
39
40
0 commit comments