-
Notifications
You must be signed in to change notification settings - Fork 99
BLAS 1::rot
Luc Berger edited this page Apr 23, 2024
·
1 revision
Header File: KokkosBlas1_rot.hpp
Usage: KokkosBlas::rot(space, X, Y, c, s);
KokkosBlas::rot(X, Y, c, s);
Applies a rotation of angle alpha
defined by c=cos(alpha)
and s=sin(alpha)
to the vectors X
and Y
in the x-y plane.
template <class execution_space, class VectorView, class ScalarView>
void rot(execution_space const& space, VectorView const& X, VectorView const& Y,
ScalarView const& c, ScalarView const& s)
template <class VectorView, class ScalarView>
void rot(VectorView const& X, VectorView const& Y, ScalarView const& c, ScalarView const& s)
- execution_space: the backend that will be used to run this kernel
- VectorView: the type of the input views
X
andY
- ScalarView: the type of the scalar inputs
c
ands
- space: the execution space instance passed to the Kokkos execution policy to run the kernel on
- X: Input vector to rotate
- Y: Input vector to rotate
- c: cosine of the rotation matrix
- s: sine of the rotation matrix