FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lpython/integration_tests/bindpy_03_module.py at main · jschueller/lpython · GitHub
jschueller
/
lpython
Public
forked from
lcompilers/lpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lpython
/
integration_tests
/
bindpy_03_module.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (24 loc) · 682 Bytes
Breadcrumbs
lpython
/
integration_tests
/
bindpy_03_module.py
Copy path
File metadata and controls
31 lines (24 loc) · 682 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import
numpy
as
np
def
get_cpython_version
():
import
platform
return
platform
.
python_version
()
def
get_int_array_sum
(
n
,
a
,
b
):
return
np
.
add
(
a
,
b
)
def
get_int_array_product
(
n
,
a
,
b
):
return
np
.
multiply
(
a
,
b
)
def
get_float_array_sum
(
n
,
m
,
a
,
b
):
return
np
.
add
(
a
,
b
)
def
get_float_array_product
(
n
,
m
,
a
,
b
):
return
np
.
multiply
(
a
,
b
)
def
get_array_dot_product
(
m
,
a
,
b
):
print
(
a
,
b
)
c
=
a
@
b
print
(
c
)
return
c
def
get_multidim_array_i64
(
p
,
q
,
r
):
a
=
np
.
empty
([
p
,
q
,
r
],
dtype
=
np
.
int64
)
for
i
in
range
(
p
):
for
j
in
range
(
q
):
for
k
in
range
(
r
):
a
[
i
,
j
,
k
]
=
i
*
2
+
j
*
3
+
k
*
4
return
a
Back
|
FazBrowse Home
|
New Git URL