.. include:: ../../mydefs.rst ``dot`` ======= Header: ```` API --- .. code-block:: cpp namespace pressio { namespace ops{ template void dot(const T1 & vecA, const T2 & vecB, DotResult & result); template scalar_type dot(const T1 & vecA, const T2 & vecB); }} // end namespace pressio::ops Description ----------- * Computes the dot product of two compatible vectors (``vecA`` and ``vecB``) * Stores the result in ``result`` if provided; otherwise, returns the result * ``T1`` and ``T2`` must be one-dimensional containers with compatible scalar types: * an Eigen vector * a Kokkos rank-1 view * a Tpetra vector * a Tpetra block vector * a pressio expression, i.e. ``pressio::diag``, ``pressio::span``, ``pressio::subspan``, based on Eigen or Kokkos container