the function seems to be running correctly in serial mode, going to try to add blas to this file so I can make sure my answers are right. After that on to kokkos