KokkosBatched::Householder ########################## Defined in header: :code:`KokkosBatched_Householder_Decl.hpp` .. code:: c++ template struct SerialHouseholder { template KOKKOS_INLINE_FUNCTION static int invoke(const aViewType &a, const tauViewType &tau); }; template struct TeamVectorHouseholder { template KOKKOS_INLINE_FUNCTION static int invoke(const MemberType &member, const aViewType &a, const tauViewType &tau); }; Computes the Householder reflector associated with vector :math:`a` and stores the result in-place using the LAPACK format. .. note:: that the scaling factor :math:`tau` is computed as the inverse of the corresponding LAPACK scaling factor. 1. Compute the Householder reflector in serial at the inner most parallel level. 2. Compute the Householder reflector using parallelism exposed with the `member` handle. Parameters ========== :member: Kokkos team member handle :a: On input a vector, on output stores the signed norm of :math:`a` in the first entry and a scaled Householder reflector in the remaining entries. :tau: A vector containing the scaling factor for the reflector on output. Type Requirements ----------------- - ``MemberType`` must be a Kokkos team member handle. - ``AViewType`` must be a Kokkos `View `_ of rank 2 that satisfies ``std::is_same_v`` - ``tauViewType`` must be a Kokkos `View `_ of rank 1 that satisfies ``std::is_same_v`` Example ======= .. .. literalinclude:: ../../../../../example/householder.cpp :language: c++ output: .. code:: ger works correctly!