You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
Computes the matrix-vector product sqrt(M)·v using a recursive algorithm.
3
3
For that, it requires a functor in which the () operator takes an output real* array and an input real* (both in device memory if compiled in CUDA mode or host memory otherwise) as:
4
4
```c++
5
-
inlineoperator()(real*out_Mv, real * a_v);
5
+
inlineoperator()(real*in_v, real * out_Mv);
6
6
```
7
7
This function must fill "out" with the result of performing the M·v dot product- > out = M·a_v.
8
8
If M has size NxN and the cost of the dot product is O(M). The total cost of the algorithm is O(m·M). Where m << N.
@@ -24,10 +24,11 @@ Create the module:
24
24
```
25
25
Write a functor that computes the product between the original matrix and a given vector, "v":
26
26
```c++
27
-
//A functor that will return the result of multiplying a certain matrix times a given vector
28
-
structMatrixDot{
27
+
//A functor that will return the result of multiplying a certain matrix times a given vector.
0 commit comments