Skip to content

Commit 7333696

Browse files
committed
Move _typing.py from numpy/ to common/
1 parent cf4083a commit 7333696

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from cupy import *
2+
3+
# from cupy import * doesn't overwrite these builtin names
4+
from cupy import abs, max, min, round
5+
6+
# These imports may overwrite names from the import * above.
7+
from ._aliases import *
8+
9+
# Don't know why, but we have to do an absolute import to import linalg. If we
10+
# instead do
11+
#
12+
# from . import linalg
13+
#
14+
# It doesn't overwrite np.linalg from above. The import is generated
15+
# dynamically so that the library can be vendored.
16+
__import__(__package__ + '.linalg')
17+
18+
from .linalg import matrix_transpose, vecdot
19+
20+
from ._helpers import *

0 commit comments

Comments
 (0)