-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put everything into namespace cu:: and fix ADL issues
- Loading branch information
1 parent
e129ed0
commit 2c3e194
Showing
28 changed files
with
347 additions
and
255 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
|
||
#include "utils.h" | ||
|
||
using cu::interval; | ||
|
||
template<typename I> | ||
__device__ I f(I x) | ||
|
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
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,25 @@ | ||
#ifndef CUINTERVAL_FORMAT_H | ||
#define CUINTERVAL_FORMAT_H | ||
|
||
#include <cuinterval/interval.h> | ||
|
||
#include <ostream> | ||
|
||
namespace cu | ||
{ | ||
|
||
template<typename T> | ||
std::ostream &operator<<(std::ostream &os, interval<T> x) | ||
{ | ||
return os << "[" << x.lb << ", " << x.ub << "]"; | ||
} | ||
|
||
template<typename T> | ||
std::ostream &operator<<(std::ostream &os, split<T> x) | ||
{ | ||
return os << "[" << x.lower_half << ", " << x.upper_half << "]"; | ||
} | ||
|
||
} // namespace cu | ||
|
||
#endif |
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
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
Oops, something went wrong.