Skip to content

BLAS 1::rot

Luc Berger edited this page Apr 23, 2024 · 1 revision

KokkosBlas::rot()

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.

Interface

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)

Template parameters:

  • execution_space: the backend that will be used to run this kernel
  • VectorView: the type of the input views X and Y
  • ScalarView: the type of the scalar inputs c and s

Parameters:

  • 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

Example

Clone this wiki locally