Skip to content

Commit

Permalink
remove unused data and type
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Dec 3, 2024
1 parent 368ea30 commit 4c7c9ef
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/matrix/csr_kernels2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class Csr : public CommonTestFixture {
protected:
using Arr = gko::array<int>;
using Vec = gko::matrix::Dense<value_type>;
using Vec2 = gko::matrix::Dense<gko::next_precision<value_type>>;
using Mtx = gko::matrix::Csr<value_type>;
using ComplexVec = gko::matrix::Dense<std::complex<value_type>>;
using ComplexMtx = gko::matrix::Csr<std::complex<value_type>>;
Expand Down Expand Up @@ -123,27 +122,17 @@ class Csr : public CommonTestFixture {
square_mtx = Mtx::create(ref, strategy);
square_mtx->move_from(gen_mtx<Vec>(mtx_size[0], mtx_size[0], 1));
expected = gen_mtx<Vec>(mtx_size[0], num_vectors, 1);
expected2 = Vec2::create(ref);
expected2->copy_from(expected);
y = gen_mtx<Vec>(mtx_size[1], num_vectors, 1);
y2 = Vec2::create(ref);
y2->copy_from(y);
alpha = gko::initialize<Vec>({2.0}, ref);
alpha2 = gko::initialize<Vec2>({2.0}, ref);
beta = gko::initialize<Vec>({-1.0}, ref);
beta2 = gko::initialize<Vec2>({-1.0}, ref);
dmtx = Mtx::create(exec, strategy);
dmtx->copy_from(mtx);
dsquare_mtx = Mtx::create(exec, strategy);
dsquare_mtx->copy_from(square_mtx);
dresult = gko::clone(exec, expected);
dresult2 = gko::clone(exec, expected2);
dy = gko::clone(exec, y);
dy2 = gko::clone(exec, y2);
dalpha = gko::clone(exec, alpha);
dalpha2 = gko::clone(exec, alpha2);
dbeta = gko::clone(exec, beta);
dbeta2 = gko::clone(exec, beta2);

std::vector<int> tmp(mtx->get_size()[0], 0);
auto rng = std::default_random_engine{};
Expand Down Expand Up @@ -196,26 +185,18 @@ class Csr : public CommonTestFixture {
std::unique_ptr<ComplexMtx> complex_mtx;
std::unique_ptr<Mtx> square_mtx;
std::unique_ptr<Vec> expected;
std::unique_ptr<Vec2> expected2;
std::unique_ptr<Vec> y;
std::unique_ptr<Vec2> y2;
std::unique_ptr<Vec> alpha;
std::unique_ptr<Vec2> alpha2;
std::unique_ptr<Vec> beta;
std::unique_ptr<Vec2> beta2;

std::unique_ptr<Mtx> dmtx;
std::unique_ptr<Mtx> dmtx2;
std::unique_ptr<ComplexMtx> dcomplex_mtx;
std::unique_ptr<Mtx> dsquare_mtx;
std::unique_ptr<Vec> dresult;
std::unique_ptr<Vec2> dresult2;
std::unique_ptr<Vec> dy;
std::unique_ptr<Vec2> dy2;
std::unique_ptr<Vec> dalpha;
std::unique_ptr<Vec2> dalpha2;
std::unique_ptr<Vec> dbeta;
std::unique_ptr<Vec2> dbeta2;
std::unique_ptr<Arr> rpermute_idxs;
std::unique_ptr<Arr> cpermute_idxs;
std::unique_ptr<Perm> rpermutation;
Expand Down

0 comments on commit 4c7c9ef

Please sign in to comment.