[inline]
Function that solves a system of linear equations using LU decomposition.
Returns a vector y such that my =v. Dimensions need to be compatible.