Squashed feature branch:
* Added CUDA support * Performance improvements * API improvements * Added "depth" parameter to GEMM * Android cross-compilation
This commit is contained in:
32
include/isaac/tools/make_vector.hpp
Normal file
32
include/isaac/tools/make_vector.hpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef ISAAC_TOOLS_MAKE_VECTOR_HPP
|
||||
#define ISAAC_TOOLD_MAKE_VECTOR_HPP
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace isaac
|
||||
{
|
||||
|
||||
namespace tools
|
||||
{
|
||||
|
||||
template <typename T>
|
||||
class make_vector
|
||||
{
|
||||
public:
|
||||
typedef make_vector<T> my_type;
|
||||
my_type& operator<< (const T& val) {
|
||||
data_.push_back(val);
|
||||
return *this;
|
||||
}
|
||||
operator std::vector<T>() const {
|
||||
return data_;
|
||||
}
|
||||
private:
|
||||
std::vector<T> data_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user