Skip to content

Commit c182e48

Browse files
committed
minor style fixes
1 parent 2813c17 commit c182e48

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

source/mir/math/sum.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/**
1+
/++
22
This module contains summation algorithms.
33
44
License: $(LINK2 http://boost.org/LICENSE_1_0.txt, Boost License 1.0).
55
66
Authors: Ilya Yaroshenko
77
88
Copyright: Copyright © 2015-, Ilya Yaroshenko
9-
*/
9+
+/
1010
module mir.math.sum;
1111

1212
///

source/mir/ndslice/algorithm.d

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,19 +156,14 @@ unittest
156156
import mir.ndslice.topology : as, iota;
157157
import mir.ndslice.internal : fastmath;
158158

159-
static @fastmath T fmuladd(T)(const T a, const T b, const T c)
160-
{
161-
return a + b * c;
162-
}
163-
164159
//| 0 1 2 |
165160
//| 3 4 5 |
166161
auto a = iota([2, 3], 0).as!double.slice;
167162
//| 1 2 3 |
168163
//| 4 5 6 |
169164
auto b = iota([2, 3], 1).as!double.slice;
170165

171-
alias dot = reduce!fmuladd;
166+
alias dot = reduce!"a + b * c";
172167
auto res = dot(0.0, a, b);
173168

174169
// check the result:

0 commit comments

Comments
 (0)