Skip to content

Commit

Permalink
add scalar with k test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Mar 22, 2018
1 parent ab7bf00 commit cf6547b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/cupy_tests/creation_tests/test_matrix.py
Expand Up @@ -41,3 +41,11 @@ def test_diagflat3(self, xp):
@testing.numpy_cupy_array_equal()
def test_diagflat_from_scalar(self, xp):
return xp.diagflat(3)

@testing.numpy_cupy_array_equal()
def test_diagflat_from_scalar_with_k0(self, xp):
return xp.diagflat(3, 0)

@testing.numpy_cupy_array_equal()
def test_diagflat_from_scalar_with_k1(self, xp):
return xp.diagflat(3, 1)

0 comments on commit cf6547b

Please sign in to comment.