Skip to content
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

What is the purpose of an extra Int argument in ScalFun? #41

Open
twesterhout opened this issue Jun 9, 2018 · 1 comment
Open

What is the purpose of an extra Int argument in ScalFun? #41

twesterhout opened this issue Jun 9, 2018 · 1 comment

Comments

@twesterhout
Copy link

The first argument to ScalFun is an Int:
https://github.com/wellposed/hblas/blob/master/src/Numerical/HBLAS/BLAS/Internal/Level1.hs#L66
I'm wondering what its purpose is, because it could, I think, be easily extracted from the passed vector. And if one wants to scale only a part of the vector, it's easy enough to create a slice and scale it instead. Am I missing something here?

@cartazio
Copy link
Member

woops, i lost track of old tickets :)))
i'll need to reload this stuff in my head, but i believe this was all to model out very precisly the semantics of the C ffi for blas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants