bug: fixed wrong variable usage in sparsity_handling
This could only have affected certain corner case calculations of tbtrans, but those should have resulted in seg-faults. None that I have found, seen or heard of. Added interfaces to make them easier to extend.
Showing with 41 additions and 25 deletions