Pressio / pressio

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

ops: kokkos: revise `scale` #558

Closed mzuzek closed 1 year ago

mzuzek commented 1 year ago

refs #445

Overloads

Kokkos overloads of pressio::ops::scale:

function input remarks
scale Kokkos view (rank-1 or rank-2)
or Kokkos expression
requires underlying scalar type
to be known integral of floating-point type

Tests

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

file name test name tested type
ops_kokkos_vector.cc ops_kokkos.vector_scale Kokkos::View<double*>
ops_kokkos_matrix.cc ops_kokkos.dense_matrix_scale Kokkos::View<double**>
ops_kokkos_diag.cc ops_kokkos.diag_scale pressio::diag( Kokkos::View<double**> )
ops_kokkos_span.cc ops_kokkos.span_scale pressio::span( Kokkos::View<double*> )
ops_kokkos_subspan.cc ops_kokkos.subspan_scale pressio::subspan( Kokkos::View<double**> )
mzuzek commented 1 year ago

@fnrizzi thank you for the review!