Skip to content

Commit 1435c66

Browse files
committed
protect ctr
1 parent 2301d19 commit 1435c66

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

include/ginkgo/core/base/combination.hpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,6 @@ class Combination : public EnableLinOp<Combination<ValueType>>,
3838
using value_type = ValueType;
3939
using transposed_type = Combination<ValueType>;
4040

41-
/**
42-
* Creates an empty linear combination with given size.
43-
*
44-
* @param exec Executor associated to the linear combination
45-
*/
46-
explicit Combination(std::shared_ptr<const Executor> exec,
47-
const gko::dim<2>& size)
48-
: EnableLinOp<Combination>(exec)
49-
{
50-
this->set_size(size);
51-
}
52-
5341

5442
/**
5543
* Returns a list of coefficients of the combination.
@@ -134,6 +122,18 @@ class Combination : public EnableLinOp<Combination<ValueType>>,
134122
: EnableLinOp<Combination>(exec)
135123
{}
136124

125+
/**
126+
* Creates an empty linear combination with given size.
127+
*
128+
* @param exec Executor associated to the linear combination
129+
*/
130+
explicit Combination(std::shared_ptr<const Executor> exec,
131+
const gko::dim<2>& size)
132+
: EnableLinOp<Combination>(exec)
133+
{
134+
this->set_size(size);
135+
}
136+
137137
/**
138138
* Creates a linear combination of operators using the specified list of
139139
* coefficients and operators.

0 commit comments

Comments
 (0)