8000 Matmul/generic2 by DavidMertz · Pull Request #18 · pydata/sparse · GitHub
[go: up one dir, main page]

Skip to content

Matmul/generic2 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
change version check to attribute check
  • Loading branch information
David Mertz committed May 4, 2017
commit 48849d624d3710cf93e5f401fba1f885c33ef3a7
4 changes: 3 additions & 1 deletion sparse/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def test_tensordot(a_shape, b_shape, axes):


def test_dot():
import operator
a = random_x((3, 4, 5))
b = random_x((5, 6))

Expand All @@ -141,7 +142,8 @@ def test_dot():
assert_eq(a.dot(b), sa.dot(sb))
assert_eq(np.dot(a, b), sparse.dot(sa, sb))

if sys.version_info >= (3, 5):

if hasattr(operator, 'matmul'):
# Basic equivalences
assert_eq(eval("a @ b"), eval("sa @ sb"))
assert_eq(eval("sa @ sb"), sparse.dot(sa, sb))
Expand Down
0