mirror of
https://github.com/xythrez/RustMP.git
synced 2025-09-04 21:52:36 +00:00
Merge branch 'alex' into jack
This commit is contained in:
commit
438622d8f1
2 changed files with 21 additions and 4 deletions
|
@ -18,6 +18,15 @@ impl Student {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn min(x: i32, y: &i32) -> i32 {
|
||||
if x < *y {
|
||||
x
|
||||
} else {
|
||||
*y
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let numbers: Vec<Student> = vec![];
|
||||
|
||||
|
@ -49,7 +58,7 @@ fn main() {
|
|||
let mut x = 0;
|
||||
par_for! {
|
||||
for k in 0..n, read a b, reduction x#+, {
|
||||
x += a[i][k]*b[k][j];
|
||||
x += (a[i][k]*b[k][j]);
|
||||
}
|
||||
}
|
||||
c[i][j] = x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue