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

Cross product and triple scalar product for all vectors (dense, tiny, engine) #22

Open
wants to merge 5 commits into
base: public
Choose a base branch
from

Conversation

tkloczko
Copy link
Contributor

@tkloczko tkloczko commented Nov 30, 2016

First step : modification of type result for vector closure

Before that, the result type was enforced to be DenseVector< Array >.
So, neither TinyVector nor different Engine could have been handled.

The current modification aims at making the result type consistent with the input vector types of the closure.

Second step : extension of blas level1 for tiny vectors

This extension is made for:

  • asum
  • dot
  • iamax
  • nrm2
  • raxpy
  • rot
  • rotm

Of course, in order to ensure good performance, it may be also necessary to add implementations for these functions into tinylevel1.

Last step : Add cross product and triple scalar product.

It consists in adding:

  • OpCross struct
  • copy and axpy closures to eval y=x1%x2 and y+=x1%x2 (temporary done by default)

Before that, the result type was enforced to be DenseVector<Array<T>>.
So, neither TinyVector nor different Engine could habe been handled.

The current modification aims at making the result type consistent with
the input vector types of the closure.
This extension is made for:
- asum
- dot
- iamax
- nrm2
- raxpy
- rot
- rotm

Of course, in order to ensure good performance, it may be also
necessary to add implementations for these functions into tinylevel1.
- add OpCross struct
- add closures to eval y=x1%x2 and y+=x1%x2
- add OpCross struct
- add closures to eval y=x1%x2 and y+=x1%x2
@tkloczko tkloczko changed the title Modifies result type of vector closure. Cross product and triple scalar product for all vectors (dense, tiny, engine) Nov 30, 2016
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.

1 participant