cuLite v0.3.1
A lite CUDA C++ Interface
Loading...
Searching...
No Matches
ex06a_sparse_matrix_create.cpp
#include <iostream>
#include <culite/sparse.hpp>
int main()
{
/*
* Double precision real empty matrix
*/
std::cout << A.info("A");
std::cout << B.info("B");
/*
* (3x4) single precision real matrix
*/
std::cout << C.info("C");
/*
* Initialize a (5x2) empty sparse matrix with space for 7 non-zeros
*/
std::cout << B.info("B");
return 0;
}
std::string info(const std::string &header="") const
Get information about the sparse matrix.
std::string info(const std::string &header="") const
Get information about the sparse matrix.
XxMatrix< int_t, real_t > RdMatrix
Double precision real matrix.
Definition sparse.hpp:62
XxMatrix< int_t, real4_t > RfMatrix
Single precision real matrix.
Definition sparse.hpp:38
XxMatrix< int_t, real_t > RdMatrix
Double precision real matrix.
Definition sparse.hpp:32