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 0c75471 commit e40f0c2Copy full SHA for e40f0c2
src/example7.cpp
@@ -31,15 +31,15 @@ int main() {
31
dr::mp::broadcasted_vector<double> broadcasted_b;
32
std::vector<double> b;
33
if (root == dr::mp::rank()) {
34
- b.resize(matrix.shape().second);
35
- std::iota(b.begin(), b.end(), 1);
+ b.resize(matrix.shape().second);
+ std::iota(b.begin(), b.end(), 1);
36
37
- broadcasted_b.broadcast_data(matrix.shape().second, 0, b,
38
- dr::mp::default_comm());
39
- }
40
- else {
41
- broadcasted_b.broadcast_data(matrix.shape().second, 0, std::ranges::empty_view<V>(),
42
+ broadcasted_b.broadcast_data(matrix.shape().second, 0, b,
+ dr::mp::default_comm());
+ } else {
+ broadcasted_b.broadcast_data(matrix.shape().second, 0,
+ std::ranges::empty_view<V>(),
43
}
44
std::vector<double> res(matrix.shape().first);
45
gemv(root, res, matrix, broadcasted_b);
src/example8.cpp
@@ -49,16 +49,16 @@ int main() {
49
50
51
52
- if (root == dr::mp::rank()) {
53
54
+ if (root == dr::mp::rank()) {
55
56
57
58
59
60
61
62
63
64
0 commit comments