Skip to content

Commit

Permalink
Modify implementation to match proposal
Browse files Browse the repository at this point in the history
Specifically dealing with constraints and mandates.
See kokkos#66.
  • Loading branch information
amklinv-nnl committed Jul 16, 2021
1 parent 3359cca commit 29c9b60
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ template<class ElementType_A,
extents<>::size_type ext_y,
class Layout_y,
class Accessor_y>
requires (Layout_A::is_always_unique())
requires (Layout_A::template mapping<extents<numRows_A, numCols_A> >::is_always_unique())
void matrix_vector_product(
std::experimental::mdspan<ElementType_A, std::experimental::extents<numRows_A, numCols_A>, Layout_A, Accessor_A> A,
std::experimental::mdspan<ElementType_x, std::experimental::extents<ext_x>, Layout_x, Accessor_x> x,
Expand Down Expand Up @@ -124,7 +124,7 @@ template<class ElementType_A,
extents<>::size_type ext_z,
class Layout_z,
class Accessor_z>
requires (Layout_A::is_always_unique())
requires (Layout_A::template mapping<std::experimental::extents<numRows_A, numCols_A>>::is_always_unique())
void matrix_vector_product(
std::experimental::mdspan<ElementType_A, std::experimental::extents<numRows_A, numCols_A>, Layout_A, Accessor_A> A,
std::experimental::mdspan<ElementType_x, std::experimental::extents<ext_x>, Layout_x, Accessor_x> x,
Expand Down Expand Up @@ -185,7 +185,7 @@ template<class ElementType_A,
extents<>::size_type ext_y,
class Layout_y,
class Accessor_y>
requires (Layout_A::is_always_unique())
requires (Layout_A::template mapping<std::experimental::extents<numRows_A, numCols_A>>::is_always_unique())
void symmetric_matrix_vector_product(
std::experimental::mdspan<ElementType_A, std::experimental::extents<numRows_A, numCols_A>, Layout_A, Accessor_A> A,
Triangle t,
Expand Down Expand Up @@ -263,7 +263,7 @@ template<class ElementType_A,
extents<>::size_type ext_z,
class Layout_z,
class Accessor_z>
requires (Layout_A::is_always_unique())
requires (Layout_A::template mapping<std::experimental::extents<numRows_A, numCols_A>>::is_always_unique())
void symmetric_matrix_vector_product(
std::experimental::mdspan<ElementType_A, std::experimental::extents<numRows_A, numCols_A>, Layout_A, Accessor_A> A,
Triangle t,
Expand Down Expand Up @@ -343,7 +343,7 @@ template<class ElementType_A,
extents<>::size_type ext_y,
class Layout_y,
class Accessor_y>
requires (Layout_A::is_always_unique())
requires (Layout_A::template mapping<std::experimental::extents<numRows_A, numCols_A>>::is_always_unique())
void hermitian_matrix_vector_product(
std::experimental::mdspan<ElementType_A, std::experimental::extents<numRows_A, numCols_A>, Layout_A, Accessor_A> A,
Triangle t,
Expand Down Expand Up @@ -392,7 +392,7 @@ template<class ExecutionPolicy,
extents<>::size_type ext_y,
class Layout_y,
class Accessor_y>
requires (Layout_A::is_always_unique())
requires (Layout_A::template mapping<std::experimental::extents<numRows_A, numCols_A>>::is_always_unique())
void hermitian_matrix_vector_product(
ExecutionPolicy&& /* exec */,
std::experimental::mdspan<ElementType_A, std::experimental::extents<numRows_A, numCols_A>, Layout_A, Accessor_A> A,
Expand Down Expand Up @@ -423,7 +423,7 @@ template<class ElementType_A,
extents<>::size_type ext_z,
class Layout_z,
class Accessor_z>
requires (Layout_A::is_always_unique())
requires (Layout_A::template mapping<std::experimental::extents<numRows_A, numCols_A>>::is_always_unique())
void hermitian_matrix_vector_product(
std::experimental::mdspan<ElementType_A, std::experimental::extents<numRows_A, numCols_A>, Layout_A, Accessor_A> A,
Triangle t,
Expand Down Expand Up @@ -505,7 +505,7 @@ template<class ElementType_A,
extents<>::size_type ext_y,
class Layout_y,
class Accessor_y>
requires (Layout_A::is_always_unique())
requires (Layout_A::template mapping<std::experimental::extents<numRows_A, numCols_A>>::is_always_unique())
void triangular_matrix_vector_product(
std::experimental::mdspan<ElementType_A, std::experimental::extents<numRows_A, numCols_A>, Layout_A, Accessor_A> A,
Triangle t,
Expand Down Expand Up @@ -593,7 +593,7 @@ template<class ElementType_A,
extents<>::size_type ext_z,
class Layout_z,
class Accessor_z>
requires (Layout_A::is_always_unique())
requires (Layout_A::template mapping<std::experimental::extents<numRows_A, numCols_A>>::is_always_unique())
void triangular_matrix_vector_product(
std::experimental::mdspan<ElementType_A, std::experimental::extents<numRows_A, numCols_A>, Layout_A, Accessor_A> A,
Triangle t,
Expand Down

0 comments on commit 29c9b60

Please sign in to comment.