Skip to content

Commit

Permalink
Use CommonTestFixture value_type
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikvn committed Oct 6, 2023
1 parent 887a6f7 commit fb25d3c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/matrix/batch_dense_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

class Dense : public CommonTestFixture {
protected:
using vtype = double;
using Mtx = gko::batch::matrix::Dense<vtype>;
using MVec = gko::batch::MultiVector<vtype>;
using Mtx = gko::batch::matrix::Dense<value_type>;
using MVec = gko::batch::MultiVector<value_type>;

Dense() : rand_engine(15) {}

Expand Down Expand Up @@ -87,7 +86,7 @@ class Dense : public CommonTestFixture {
expected = MVec::create(
ref,
gko::batch_dim<2>(batch_size, gko::dim<2>{num_rows, num_vecs}));
expected->fill(gko::one<vtype>());
expected->fill(gko::one<value_type>());
dresult = gko::clone(exec, expected);
}

Expand Down

0 comments on commit fb25d3c

Please sign in to comment.