ported over post about linear algebra