Skip to content
Snippets Groups Projects
Commit 1446e0a8 authored by Joseph Weston's avatar Joseph Weston
Browse files

Merge branch 'feature/vectorization' into 'master'

vectorize systems so that value functions may be called once
on a whole vector of sites (for onsite value functions) or a pair of
vectors of sites (for hopping value functions). In this way we avoid
the Python overhead of calling the value functions many times. For systems
with vectorization enabled this can result in a ~100x speedup when evaluating
the Hamiltonian.

See merge request kwant/kwant!323
Closes kwant/kwant#302
parents 963f1e28 1d8db7bb
No related branches found
No related tags found
Loading
Checking pipeline status
Showing
with 2188 additions and 526 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment