Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cubic numba proper compilation #4488

Merged
merged 34 commits into from
Jun 7, 2022
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0eb8eef
is it overhead..
zeffii May 13, 2022
36fb17b
cast to nparray
zeffii May 13, 2022
01c47d2
alternative to newaxis
zeffii May 13, 2022
6795475
that's faster..
zeffii May 14, 2022
079c40e
try this
zeffii May 14, 2022
6a1d364
fully njit
zeffii May 14, 2022
1a6a189
remove commented out code, and typo
zeffii May 14, 2022
05c82d1
rm whitespace
zeffii May 14, 2022
540c44d
comment
zeffii May 14, 2022
aaaedfc
adds cyclic mode
zeffii May 14, 2022
36fb7aa
does this introduce slight overhead?
zeffii May 15, 2022
5cfcce2
gofaster works!
zeffii May 15, 2022
fc486c4
make decorators_warpspeed
zeffii May 16, 2022
55ac000
add file
zeffii May 16, 2022
306489c
use cleaner names
zeffii May 16, 2022
32bec4e
rename file
zeffii May 16, 2022
39582b1
rm whitespace
zeffii May 16, 2022
6caf21e
had nothing to do with x or y, so renamed var
zeffii May 16, 2022
36c018b
slightly faster
zeffii May 16, 2022
c7fbcd3
adds cyclic version to numba modification
zeffii May 21, 2022
8633152
add decorator parameters
zeffii May 22, 2022
d8ee16d
literal signature evaluation fails
zeffii May 22, 2022
ad12df0
it's not going to work this way
zeffii May 22, 2022
8a00af3
is fastest
zeffii May 22, 2022
a1e516e
clearup comment, print statements
zeffii May 22, 2022
452fa52
show autogenerated signature
zeffii May 22, 2022
1e5ba74
Merge branch 'master' into cubic_numba_proper_compilation
zeffii May 22, 2022
34904af
fast fast fast
zeffii May 23, 2022
60b21ba
Merge branch 'cubic_numba_proper_compilation' of https://github.com/n…
zeffii May 23, 2022
426d842
compiled node name
zeffii May 23, 2022
10e3ca5
remove unusable code
zeffii May 23, 2022
f2065fe
this is the fastest impl
zeffii May 23, 2022
9626343
makes more sense
zeffii Jun 7, 2022
370733b
newline
zeffii Jun 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rm whitespace
  • Loading branch information
zeffii committed May 14, 2022
commit 05c82d1d6b37f953d0c9b78b41ad6d6fa6ec172a
1 change: 0 additions & 1 deletion utils/geom.py
Original file line number Diff line number Diff line change
@@ -274,7 +274,6 @@ def perform_stage(tknots, n, locs):
b = (locs[1:] - locs[:-1]) / h.reshape((-1, 1)) - h.reshape((-1, 1)) * (c[1:] + 2 * c[:-1]) / 3
d = (c[1:] - c[:-1]) / (3 * h.reshape((-1, 1)))


splines = np.zeros((n - 1, 5, 3))
splines[:, 0] = locs[:-1]
splines[:, 1] = b