Foundation libs for linear code HW