Skip to content

Commit

Permalink
Remove unused test helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
dsharlet committed Jan 8, 2024
1 parent fbebd7c commit 1a64c9c
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions test/funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,6 @@ index_t add_1(const buffer<const T>& in, const buffer<T>& out) {
return 0;
}

template <typename T>
index_t add(const buffer<const T>& a, const buffer<const T>& b, const buffer<T>& out) {
assert(a.rank == out.rank);
assert(b.rank == out.rank);
for_each_index(out, [&](auto i) { out(i) = a(i) + b(i); });
return 0;
}

template <typename T>
index_t multiply(const buffer<const T>& a, const buffer<const T>& b, const buffer<T>& out) {
assert(a.rank == out.rank);
assert(b.rank == out.rank);
for_each_index(out, [&](auto i) { out(i) = a(i) * b(i); });
return 0;
}

template <typename T>
index_t max_0(const buffer<const T>& a, const buffer<T>& out) {
assert(a.rank == out.rank);
for_each_index(out, [&](auto i) { out(i) = std::max(a(i), 0); });
return 0;
}

template <typename T, std::size_t N>
void init_random(buffer<T, N>& x) {
x.allocate();
Expand Down

0 comments on commit 1a64c9c

Please sign in to comment.