subspan
Header: <pressio/expressions.hpp>
API
namespace pressio {
template<class T>
/*impl defined*/ subspan(T & operand,
std::pair<std::size_t, std::size_t> rowsRange,
std::pair<std::size_t, std::size_t> colsRange);
} // end namespace pressio
Description
Takes in an
operand, as well as therowsRangeandcolsRangeintervals that will be used in each dimensionoperandis either:an Eigen dense matrix,
pressio::is_dense_matrix_eigen<T>::value == truea Kokkos rank-2 view, i.e.
pressio::is_dense_matrix_kokkos<T>::value == true
Returns an expression object that represents a subspan of the
operand.