Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
python-uga
training-hpc
Commits
c0509157
Commit
c0509157
authored
Sep 24, 2021
by
paugier
Browse files
Fix dtw_cort_dist
parent
24c454b7
Pipeline
#75908
passed with stage
in 49 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pyfiles/dtw_cort_dist/V61_pythran_aot/Makefile
View file @
c0509157
all
:
transonic dtw_cort_dist_mat.py
-
p
f
"-march=native -O3 -DUSE_XSIMD"
transonic dtw_cort_dist_mat.py
-
a
f
"-march=native -O3 -DUSE_XSIMD"
clean
:
rm
-rf
__pythran__
\ No newline at end of file
pyfiles/dtw_cort_dist/V7_numba/dtw_cort_dist_mat.py
View file @
c0509157
...
...
@@ -25,7 +25,7 @@ def serie_pair_index_generator(number):
)
@
jit
(
cache
=
True
)
@
jit
def
dtw_distance
(
s1
,
s2
):
""" Computes the dtw between s1 and s2 with distance the absolute distance
...
...
@@ -37,7 +37,7 @@ def dtw_distance(s1, s2):
len_s1
=
len
(
s1
)
len_s2
=
len
(
s2
)
_dtw_mat
=
np
.
empty
(
[
len_s1
,
len_s2
]
)
_dtw_mat
=
np
.
empty
(
(
len_s1
,
len_s2
)
)
_dtw_mat
[
0
,
0
]
=
abs
(
s1
[
0
]
-
s2
[
0
])
# two special cases : filling first row and columns
...
...
requirements.txt
View file @
c0509157
...
...
@@ -26,7 +26,7 @@ invoke
cffi
# accelerators
cython
numba
==0.43.1
numba
pythran
xsimd
transonic
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment