KokkosBlas::scal ################ Defined in header: :code:`KokkosBlas1_scal.hpp` .. code:: c++ template void scal(const execution_space& space, const RMV& R, const AV& a, const XMV& X); template void scal(const RMV& R, const AV& a, const XMV& X); Scales the vector(s) in `X` by `a` and stores the result(s) in `R`. 1. store X scaled by a in R and fences the ``space`` instance 2. store X scaled by a in R and fences the default instance of ``typename RMV::execution_space`` The function will throw a runtime exception if ``X.extent(0) != R.extent(0) || X.extent(1) != R.extent(1)`` Parameters ========== :space: execution space instance :R: scaled version of the vector(s) of ``X`` :a: scaling factor(s) for the vector(s) of ``X`` :X: vector(s) to scale Type Requirements ----------------- - `execution_space` must be a Kokkos `execution space `_ - `XMV` must be a Kokkos `View `_ of rank 1 or 2 that satisfies - ``Kokkos::SpaceAccessibility::accessible == true`` - ``RMV::rank == XMV::rank`` - `RMV` must be a Kokkos `View `_ of rank 1 or 2 that satisfies - ``Kokkos::SpaceAccessibility::accessible == true`` - ``RMV::rank == XMV::rank``