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
The macro `@iteratediag` writes a `for` loop over the `diag` field of a `PairwiseListMatrix{T,false}` but avoiding calls to `getfield` inside the loop.
32
-
The first argument of the macro is the `PairwiseListMatrix` that is going to be iterated and the second is the body of the loop.
33
-
In the body `diag` will be the diag field of the `PairwiseListMatrix` and `k` the index over that vector.
33
+
The macro `@iteratediag` writes a `for` loop over the `diag` field of a
34
+
`PairwiseListMatrix{T,false,VT}` but avoiding calls to `getfield` inside the loop. The first
35
+
argument of the macro is the `PairwiseListMatrix` that is going to be iterated and the
36
+
second is the body of the loop. In the body `diag` will be the diag field of the
37
+
`PairwiseListMatrix` and `k` the index over that vector.
34
38
Other variables should be interpolated in a quote. You must not modify the value of `k`.
The macro `@iterateupper` iterates over the upper triangular part of the `PairwiseListMatrix` that is given as first argument.
66
-
The second argument should be `true` if the diagonal need to be included in the iteration or `false` otherwise.
67
-
The last argument is the body of the loop, where `list` is the list and diag fields of the `PairwiseListMatrix` and `k` is the index over that `list`.
68
-
You can also use the respective `i` and `j` indexes for that position `k` in the upper triangular part of the matrix. Other variables should be interpolated in a quote.
69
+
The macro `@iterateupper` iterates over the upper triangular part of the
70
+
`PairwiseListMatrix` that is given as first argument. The second argument should be
71
+
`true` if the diagonal need to be included in the iteration or `false` otherwise.
72
+
The last argument is the body of the loop, where `list` is the list and diag fields of
73
+
the `PairwiseListMatrix` and `k` is the index over that `list`.
74
+
You can also use the respective `i` and `j` indexes for that position `k` in the upper
75
+
triangular part of the matrix. Other variables should be interpolated in a quote.
69
76
You must not modify the values of `i`, `j` or `k`.
0 commit comments