Skip to content

Commit 86ef286

Browse files
committed
Bugfix
1 parent 9561a65 commit 86ef286

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

markdown/multiply.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ multiply(A&& a,
2121

2222
template <MatrixRange A,
2323
MatrixRange B,
24-
BinaryOperator<grb::matrix_scalar_t<A>, grb::matrix_scalar_t<B>> Combine,
24+
BinaryOperator<grb::matrix_scalar_t<A>, grb::matrix_scalar_t<B>> Combine = grb::multiplies<>,
2525
BinaryOperator<grb::combine_result_t<A, B, Combine>,
2626
grb::combine_result_t<A, B, Combine>,
27-
grb::combine_result_t<A, B, Combine>> Reduce,
27+
grb::combine_result_t<A, B, Combine>> Reduce = grb::plus<>,
2828
MaskMatrixRange M = grb::full_matrix_mask<>,
29+
MutableMatrixRange<grb::combine_result_t<A, B, Combine>> C,
2930
BinaryOperator<grb::matrix_scalar_t<C>,
3031
grb::combine_result_t<A, B, Combine>> Accumulate = grb::take_right,
31-
MutableMatrixRange<grb::combine_result_t<A, B, Combine>> C
3232
>
3333
void multiply(C&& c, (2)
3434
A&& a,
@@ -97,16 +97,17 @@ multiply(A&& a,
9797
Combine&& combine = Combine{},
9898
M&& mask = M{});
9999
100+
100101
template <MatrixRange A,
101102
VectorRange B,
102-
BinaryOperator<grb::matrix_scalar_t<A>, grb::vector_scalar_t<B>> Combine,
103+
BinaryOperator<grb::matrix_scalar_t<A>, grb::vector_scalar_t<B>> Combine = grb::multiplies<>,
103104
BinaryOperator<grb::combine_result_t<A, B, Combine>,
104105
grb::combine_result_t<A, B, Combine>,
105-
grb::combine_result_t<A, B, Combine>> Reduce,
106+
grb::combine_result_t<A, B, Combine>> Reduce = grb::plus<>,
106107
MaskVectorRange M = grb::full_vector_mask<>,
107-
BinaryOperator<grb::matrix_scalar_t<C>,
108-
grb::combine_result_t<A, B, Combine>> Accumulate = grb::take_right,
109-
MutableVectorRange<grb::combine_result_t<A, B, Combine>> C
108+
MutableVectorRange<grb::combine_result_t<A, B, Combine>> C,
109+
BinaryOperator<grb::vector_scalar_t<C>,
110+
grb::combine_result_t<A, B, Combine>> Accumulate = grb::take_right<>
110111
>
111112
void multiply(C&& c, (6)
112113
A&& a,
@@ -245,14 +246,14 @@ multiply(A&& a,
245246
246247
template <VectorRange A,
247248
MatrixRange B,
248-
BinaryOperator<grb::vector_scalar_t<A>, grb::matrix_scalar_t<B>> Combine,
249+
BinaryOperator<grb::vector_scalar_t<A>, grb::matrix_scalar_t<B>> Combine = grb::multiplies<>,
249250
BinaryOperator<grb::combine_result_t<A, B, Combine>,
250251
grb::combine_result_t<A, B, Combine>,
251-
grb::combine_result_t<A, B, Combine>> Reduce,
252+
grb::combine_result_t<A, B, Combine>> Reduce = grb::plus<>,
252253
MaskVectorRange M = grb::full_vector_mask<>,
254+
MutableVectorRange<grb::combine_result_t<A, B, Combine>> C,
253255
BinaryOperator<grb::vector_scalar_t<C>,
254256
grb::combine_result_t<A, B, Combine>> Accumulate = grb::take_right,
255-
MutableVectorRange<grb::combine_result_t<A, B, Combine>> C
256257
>
257258
void multiply(C&& c, (14)
258259
A&& a,

0 commit comments

Comments
 (0)