elementwise_reciprocal
#
Header: <pressio/ops.hpp>
API#
namespace pressio { namespace ops{
template <class T1, class T2>
void elementwise_reciprocal(const T1 & z, T2 & y);
}} // end namespace pressio::ops
Description#
Computes the elementwise reciprocal of
z
and stores it iny
(y = 1/z
)T1
andT2
must be one-dimensional containers with compatible scalar types. They may be:Eigen vectors or Pressio rank-1 expressions built from Eigen containers
Kokkos rank-1 views or Pressio rank-1 expressions built from Kokkos containers
Tpetra vectors or column expressions
Tpetra block vectors or column expressions
Notes#
See the ops homepage for a table of booleans to use when checking that
T1
andT2
have the correct types.