Get Started
Examples
Mailing List
Get Cusp
Main Page
Modules
Classes
Files
All
Classes
Files
Functions
Variables
Groups
Pages
poisson.cu
#include <
cusp/gallery/poisson.h
>
#include <
cusp/coo_matrix.h
>
#include <
cusp/print.h
>
int
main(
void
)
{
cusp::coo_matrix<int, float, cusp::device_memory>
A;
// create a matrix for a Poisson problem on a 4x4 grid
cusp::gallery::poisson5pt
(A, 4, 4);
// print matrix
cusp::print
(A);
return
0;
}
Generated for CUSP by
1.8.6
© 2014 NVIDIA Corporation