cuLite v0.3.1
A lite CUDA C++ Interface
Loading...
Searching...
No Matches
ex01a_dense_vector_create.cpp
#include <iostream>
#include <culite/dense.hpp>
int main()
{
/*
* Double precision real empty vector
*/
std::cout << x.info("x");
/*
* Single precision real vector with size 3 (uninitialized values)
*/
std::cout << y.info("y");
/*
* Allocate space for x (size 5, uninitialized values)
*/
std::cout << x.info("x");
return 0;
}
std::string info(const std::string &header="") const
Get information about the device vector.
XxVector< real_t > RdVector
Double precision real device vector.
Definition dense.hpp:31
XxVector< real4_t > RfVector
Single precision real device vector.
Definition dense.hpp:37