.. include:: ../../mydefs.rst ``span`` ======== Header: ```` API --- .. code-block:: cpp namespace pressio { template /*impl defined*/ span(T & operand, std::pair indexRange); } // end namespace pressio Description ----------- * Takes in an ``operand`` and an ``indexRange`` * ``operand`` is either: * an Eigen vector object: ``pressio::is_vector_eigen::value == true`` * a Kokkos rank-1 view, i.e. ``pressio::is_vector_kokkos::value == true`` * ``indexRange`` is a std::pairidentifying an interval ``[a, b)`` where the second index is exclusive * Returns an expression that represents the target span of the ``operand``.