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

Use CBLAS optimized vector multiplication inside SGVector::vec1_plus_scalar_times_vec2 #652

Merged
merged 1 commit into from Jul 17, 2012

Conversation

koenvandesande
Copy link
Contributor

The function SGVector::vec1_plus_scalar_times_vec2 maps nicely onto
cblas_saxpy and cblas_daxpy, which are significantly faster.
The generic template for vec1_plus_scalar_times_vec2 is commented out, but it is not used anyway. Other (unoptimized) instantiations are trivial to write based on the commented out version, should they be needed in the future.

The function SGVector::vec1_plus_scalar_times_vec2 maps nicely onto
cblas_saxpy and cblas_daxpy, which are significantly faster. Had to
disable generic template for vec1_plus_scalar_times_vec2, but it is not
used anyway.
lisitsyn added a commit that referenced this pull request Jul 17, 2012
Use CBLAS optimized vector multiplication inside SGVector::vec1_plus_scalar_times_vec2
@lisitsyn lisitsyn merged commit 48873ae into shogun-toolbox:master Jul 17, 2012
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

Successfully merging this pull request may close these issues.

None yet

2 participants