File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ wheels/
24
24
.installed.cfg
25
25
* .egg
26
26
MANIFEST
27
+ _version.py
27
28
28
29
# PyInstaller
29
30
# Usually these files are written by a python script from a template
@@ -102,3 +103,6 @@ venv.bak/
102
103
103
104
# mypy
104
105
.mypy_cache /
106
+
107
+ # IDE
108
+ .vscode /
Original file line number Diff line number Diff line change 2
2
AUTORAY - backend agnostic array operations.
3
3
4
4
5
- Copyright 2019-2021 Johnnie Gray
5
+ Copyright 2019-2023 Johnnie Gray
6
6
7
7
Licensed under the Apache License, Version 2.0 (the "License");
8
8
you may not use this file except in compliance with the License.
@@ -889,7 +889,7 @@ def builtins_get_dtype_name(x):
889
889
890
890
891
891
_FUNCS ["builtins" , "get_dtype_name" ] = builtins_get_dtype_name
892
-
892
+ _FUNCS [ "builtins" , "complex" ] = complex
893
893
894
894
# ---------------------------------- numpy ---------------------------------- #
895
895
Original file line number Diff line number Diff line change @@ -716,3 +716,11 @@ def f(x):
716
716
assert y == 2
717
717
y = mycomposedfn (x )
718
718
assert y == 2
719
+
720
+
721
+ def test_builtins_complex ():
722
+ re = 1.0
723
+ im = 2.0
724
+ z = ar .do ('complex' , re , im )
725
+ assert z == 1.0 + 2.0j
726
+ assert ar .infer_backend (z ) == "builtins"
You can’t perform that action at this time.
0 commit comments