![]() |
PARALUTION
1.0.0
PARALUTION
|
Base class for all host/accelerator stencils. More...
#include <base_stencil.hpp>
Public Member Functions | |
BaseStencil () | |
virtual | ~BaseStencil () |
int | get_nrow (void) const |
Return the number of rows in the stencil. More... | |
int | get_ncol (void) const |
Return the number of columns in the stencil. More... | |
int | get_ndim (void) const |
Return the dimension of the stencil. More... | |
virtual int | get_nnz (void) const =0 |
Return the nnz per row. More... | |
virtual void | info (void) const =0 |
Shows simple info about the object. More... | |
virtual unsigned int | get_stencil_id (void) const =0 |
Return the stencil format id (see stencil_formats.hpp) More... | |
virtual void | set_backend (const Paralution_Backend_Descriptor local_backend) |
Copy the backend descriptor information. More... | |
virtual void | SetGrid (const int size) |
virtual void | Apply (const BaseVector< ValueType > &in, BaseVector< ValueType > *out) const =0 |
Apply the stencil to vector, out = this*in;. More... | |
virtual void | ApplyAdd (const BaseVector< ValueType > &in, const ValueType scalar, BaseVector< ValueType > *out) const =0 |
Apply and add the stencil to vector, out = out + scalar*this*in;. More... | |
Protected Attributes | |
int | ndim_ |
Number of rows. More... | |
int | size_ |
Number of columns. More... | |
Paralution_Backend_Descriptor | local_backend_ |
Backend descriptor (local copy) More... | |
Friends | |
class | BaseVector< ValueType > |
class | HostVector< ValueType > |
class | AcceleratorVector< ValueType > |
class | GPUAcceleratorVector< ValueType > |
class | OCLAcceleratorVector< ValueType > |
class | MICAcceleratorVector< ValueType > |
Base class for all host/accelerator stencils.
paralution::BaseStencil< ValueType >::BaseStencil | ( | ) |
|
virtual |
|
pure virtual |
Apply the stencil to vector, out = this*in;.
Implemented in paralution::HostStencilLaplace2D< ValueType >.
|
pure virtual |
Apply and add the stencil to vector, out = out + scalar*this*in;.
Implemented in paralution::HostStencilLaplace2D< ValueType >.
int paralution::BaseStencil< ValueType >::get_ncol | ( | void | ) | const |
Return the number of columns in the stencil.
int paralution::BaseStencil< ValueType >::get_ndim | ( | void | ) | const |
Return the dimension of the stencil.
|
pure virtual |
Return the nnz per row.
Implemented in paralution::HostStencilLaplace2D< ValueType >.
int paralution::BaseStencil< ValueType >::get_nrow | ( | void | ) | const |
Return the number of rows in the stencil.
|
pure virtual |
Return the stencil format id (see stencil_formats.hpp)
Implemented in paralution::HostStencilLaplace2D< ValueType >.
|
pure virtual |
Shows simple info about the object.
Implemented in paralution::HostStencilLaplace2D< ValueType >.
|
virtual |
Copy the backend descriptor information.
|
virtual |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
Backend descriptor (local copy)
|
protected |
Number of rows.
|
protected |
Number of columns.