Skip to content

Commit

Permalink
protect ctr
Browse files Browse the repository at this point in the history
  • Loading branch information
greole committed Jan 22, 2025
1 parent 2301d19 commit 1435c66
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions include/ginkgo/core/base/combination.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ class Combination : public EnableLinOp<Combination<ValueType>>,
using value_type = ValueType;
using transposed_type = Combination<ValueType>;

/**
* Creates an empty linear combination with given size.
*
* @param exec Executor associated to the linear combination
*/
explicit Combination(std::shared_ptr<const Executor> exec,
const gko::dim<2>& size)
: EnableLinOp<Combination>(exec)
{
this->set_size(size);
}


/**
* Returns a list of coefficients of the combination.
Expand Down Expand Up @@ -134,6 +122,18 @@ class Combination : public EnableLinOp<Combination<ValueType>>,
: EnableLinOp<Combination>(exec)
{}

/**
* Creates an empty linear combination with given size.
*
* @param exec Executor associated to the linear combination
*/
explicit Combination(std::shared_ptr<const Executor> exec,
const gko::dim<2>& size)
: EnableLinOp<Combination>(exec)
{
this->set_size(size);
}

/**
* Creates a linear combination of operators using the specified list of
* coefficients and operators.
Expand Down

0 comments on commit 1435c66

Please sign in to comment.