Use par_loops to implement linear algebra operators

This way, we get on-device linear algebra, rather than necessitating
copies back to the host.