Skip to content

Commit

Permalink
Apply review comments
Browse files Browse the repository at this point in the history
    Co-authored-by: Tobias Ribizel <ribizel@kit.edu>
    Co-authored-by: Marcel Koch <marcel.koch@kit.edu>
  • Loading branch information
greole committed Jul 2, 2024
1 parent d08eb66 commit 6c0da56
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions reference/matrix/dense_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,6 @@ void compute_mean(std::shared_ptr<const ReferenceExecutor> exec,
const matrix::Dense<ValueType>* x,
matrix::Dense<ValueType>* result, array<char>&)
{
GKO_ASSERT_EQ(result->get_size()[0], 1);

using ValueType_nc = gko::remove_complex<ValueType>;
for (size_type j = 0; j < x->get_size()[1]; ++j) {
result->at(0, j) = zero<ValueType>();
Expand Down
8 changes: 0 additions & 8 deletions reference/test/matrix/dense_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,6 @@ TYPED_TEST(Dense, ComputesMean)
GKO_EXPECT_NEAR(result->at(0, 2), T{1.0}, r<T>::value * 10);
}

TYPED_TEST(Dense, ComputesMeanFailsOnZeroRowResults)
{
using Mtx = typename TestFixture::Mtx;
using T = typename TestFixture::value_type;
auto result = Mtx::create(this->exec, gko::dim<2>{0, 1});

ASSERT_THROW(this->mtx4->compute_mean(result), gko::ValueMismatch);
}

TYPED_TEST(Dense, ComputesMeanFailsOnWrongResultSize)
{
Expand Down

0 comments on commit 6c0da56

Please sign in to comment.