-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add rank 1 real matrix update / outer product #14
Comments
could adapt the very dumb lacking test program https://github.com/wellposed/hblas/blob/master/testing/Test.hs to test this |
Small mistake : the function signature should be : sger ::( PrimMonad s) =>
Float -> Mvector (PrimState s) Float -> MVector (PrimState s) Float
-> MutDenseMatrix (PrimState m) orient Float -> m () |
good catch! As specced in http://software.intel.com/sites/products/documentation/hpc/mkl/mklman/GUID-BD2E87B3-5FA7-4E0C-88E2-1982AB0773A2.htm |
note that this may not be implemented correctly in terms of certain corner cases, reopening for now and this ticket + associated audit needs to be done before i do the next release |
sger and dger
http://software.intel.com/sites/products/documentation/hpc/mkl/mklman/GUID-BD2E87B3-5FA7-4E0C-88E2-1982AB0773A2.htm
https://github.com/wellposed/hblas/blob/master/src/Numerical/HBLAS/BLAS/FFI.hs#L247-L250
the haskelly high level version would look like (assuming you punt on dealing with modelling the vectors properly because i've not added strided vector support to hblas yet, and you assume inx and incy are set to 1)
note this would actually be done slightly differently once I add strided vector support
a mini explanation of some of the API stuff I do currently is on this other ticket #13
don't hesitate to ask for help
The text was updated successfully, but these errors were encountered: