Skip to content

BLAS 1::rotm

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

KokkosBlas::rotm()

Header File: KokkosBlas1_rotm.hpp

Usage: KokkosBlas::rotm(space, X, Y, param); KokkosBlas::rotm(X, Y, param);

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 ParamView>
void rotm(execution_space const& space, VectorView const& X,
          VectorView const& Y, ParamView const& param)

template <class VectorView, class ParamView>
void rotm(VectorView const& X, VectorView const& Y, ParamView const& param)

Template parameters:

  • execution_space: the backend that will be used to run this kernel
  • VectorView: the type of the input views X and Y
  • ParamView: the type of the param input

Parameters:

  • space: the execution space instance passed to the Kokkos execution policy to run the kernel on
  • X: Vector to rotate
  • Y: Vector to rotate
  • param: Input flag and rotation matrix values store in a rank-1 static view of extent 5

Example

Clone this wiki locally