Improved implementations #618, #601 and #628
Additionally sped up some matrix operations
Authored by: numere 2021-10-26
Parent: [r1027]
Child: [r1029]