Pressio / pressio

core C++ library
Other
45 stars 7 forks source link

ops: tpetra-block: revise `elementwise_multiply` #603

Closed mzuzek closed 1 year ago

mzuzek commented 1 year ago

refs #523

Overloads

Block Tpetra elementwise_multiply has one overload which requires the underlying scalar type to be the same for T, T1 and T2 and to be known integral of floating-point type:

elementwise_multiply(const alpha_t & alpha, const T & x, const T1 & z, const beta_t & beta, T2 & y)
type name requirements
T, T1, T2 ● each must be Tpetra block vector
● all must have the same underlying scalar type
alpha_t, beta_t must be convertible to the scalar type

Tests

Unit tests (in tests/functional_small/ops/):

file name test name tested type
ops_tpetra_block_vector.cc ops_tpetra_block.vector_elementwiseMultiply Tpetra::BlockVector<>