From 1435c66d11a674a419fa0494da69f06e013afc16 Mon Sep 17 00:00:00 2001 From: Gregor Olenik Date: Wed, 22 Jan 2025 09:39:50 +0100 Subject: [PATCH] protect ctr --- include/ginkgo/core/base/combination.hpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/ginkgo/core/base/combination.hpp b/include/ginkgo/core/base/combination.hpp index 19ce24896ab..90da1a3e566 100644 --- a/include/ginkgo/core/base/combination.hpp +++ b/include/ginkgo/core/base/combination.hpp @@ -38,18 +38,6 @@ class Combination : public EnableLinOp>, using value_type = ValueType; using transposed_type = Combination; - /** - * Creates an empty linear combination with given size. - * - * @param exec Executor associated to the linear combination - */ - explicit Combination(std::shared_ptr exec, - const gko::dim<2>& size) - : EnableLinOp(exec) - { - this->set_size(size); - } - /** * Returns a list of coefficients of the combination. @@ -134,6 +122,18 @@ class Combination : public EnableLinOp>, : EnableLinOp(exec) {} + /** + * Creates an empty linear combination with given size. + * + * @param exec Executor associated to the linear combination + */ + explicit Combination(std::shared_ptr exec, + const gko::dim<2>& size) + : EnableLinOp(exec) + { + this->set_size(size); + } + /** * Creates a linear combination of operators using the specified list of * coefficients and operators.