scale factors (c coefficients) are hopefully correct now
This version fixes a bug that prevented "c" (the scale factor) from being calculated correctly. This bug was caused by a typo introduced in v1.1.0 (commit 91d30b8) when converting the for-loops into compact numpy expressions.
Hopefully scale factors are being calculated correctly now.