-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3f1029
commit 126e170
Showing
7 changed files
with
558 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
//====================================================================================================================== | ||
/* | ||
KIWAKU - Containers Well Made | ||
Copyright : KIWAKU Contributors & Maintainers | ||
SPDX-License-Identifier: BSL-1.0 | ||
*/ | ||
//====================================================================================================================== | ||
#include <kwk/algorithm/algos/for_each.hpp> | ||
#include <kwk/algorithm/algos/reduce.hpp> | ||
#include <kwk/container.hpp> | ||
#include "test.hpp" | ||
#include "../generic/reduce.hpp" | ||
|
||
// TODO: update these tests | ||
|
||
TTS_CASE("Check for kwk::reduce(in) 1D") | ||
{ | ||
kwk::test::reduce_in_1D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in) 1D - larger") | ||
{ | ||
kwk::test::reduce_in_1D_larger(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in) 2D") | ||
{ | ||
kwk::test::reduce_in_2D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in) 3D") | ||
{ | ||
kwk::test::reduce_in_3D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in) 4D") | ||
{ | ||
kwk::test::reduce_in_4D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in, func) 1D") | ||
{ | ||
kwk::test::reduce_in_func_1D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in, func) 2D") | ||
{ | ||
kwk::test::reduce_in_func_1D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in, func) 3D") | ||
{ | ||
kwk::test::reduce_in_func_3D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in, func) 4D") | ||
{ | ||
kwk::test::reduce_in_func_4D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for float kwk::reduce(in, func)") | ||
{ | ||
kwk::test::reduce_in_func_float(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in, func, init) 1D") | ||
{ | ||
kwk::test::reduce_in_func_init_1D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in, func, init) 2D") | ||
{ | ||
kwk::test::reduce_in_func_init_2D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in, func, init) 3D") | ||
{ | ||
kwk::test::reduce_in_func_init_3D(kwk::cpu); | ||
}; | ||
|
||
TTS_CASE("Check for kwk::reduce(in, func, init) 4D") | ||
{ | ||
kwk::test::reduce_in_func_init_4D(kwk::cpu); | ||
}; |
Oops, something went wrong.