Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97009875
script.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jan 1, 14:35
Size
189 B
Mime Type
text/x-python
Expires
Fri, Jan 3, 14:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23311341
Attached To
rLIBMULTISCALE LibMultiScale
script.py
View Options
import
numpy
as
np
def
compute
(
a
):
vec
=
np
.
zeros
(
a
.
shape
)
vec
[:,
0
]
=
1.0e-5
return
vec
if
__name__
==
"__main__"
:
a
=
np
.
array
([[
2
,
2
],
[
3
,
3
]])
print
compute
(
a
)
Event Timeline
Log In to Comment