FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
iPython/integration_tests/array_size_01.py at main · BrentMat/iPython · GitHub
BrentMat
/
iPython
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
iPython
/
integration_tests
/
array_size_01.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (18 loc) · 447 Bytes
Breadcrumbs
iPython
/
integration_tests
/
array_size_01.py
Copy path
File metadata and controls
23 lines (18 loc) · 447 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
from
lpython
import
i32
,
f64
,
c32
,
c64
from
numpy
import
empty
def
main0
():
x
:
i32
[
4
,
5
,
2
]
=
empty
([
4
,
5
,
2
])
y
:
f64
[
24
,
100
,
2
,
5
]
=
empty
([
24
,
100
,
2
,
5
])
print
(
x
.
size
)
print
(
y
.
size
)
assert
x
.
size
==
40
assert
y
.
size
==
24000
def
main1
():
a
:
c32
[
12
]
=
empty
([
12
])
b
:
c64
[
15
,
15
,
10
]
=
empty
([
15
,
15
,
10
])
print
(
a
.
size
)
print
(
b
.
size
)
assert
a
.
size
==
12
assert
b
.
size
==
2250
main0
()
main1
()
Back
|
FazBrowse Home
|
New Git URL