set_zero#

Header: <pressio/ops.hpp>

API#

namespace pressio { namespace ops{

template <typename T>
void set_zero(T & o);

}} // end namespace pressio::ops

Description#

  • Sets every entry in o to zero

  • o may be a container of the following types:

    • Eigen (or a Pressio expression acting on an Eigen container)

    • Kokkos (or a Pressio expression acting on a Kokkos container)

    • Teuchos (rank-1 only)

    • Tpetra (or a Pressio expression acting on a Tpetra container)

    • Tpetra Block (or a Pressio expression acting on a Tpetra Block container)

Notes#

  • See the ops homepage for a table of booleans to use when checking for the correct types.