![]() |
PARALUTION
1.0.0
PARALUTION
|
#include <local_stencil.hpp>
Public Member Functions | |
LocalStencil () | |
LocalStencil (unsigned int type) | |
virtual | ~LocalStencil () |
virtual void | info () const |
Print the object information (properties, backends) More... | |
virtual int | get_ndim (void) const |
virtual int | get_nrow (void) const |
Return the number of rows in the matrix/stencil. More... | |
virtual int | get_ncol (void) const |
Return the number of columns in the matrix/stencil. More... | |
virtual int | get_nnz (void) const |
Return the number of non-zeros in the matrix/stencil. More... | |
virtual void | SetGrid (const int size) |
virtual void | Clear () |
Clear (free all data) the object. More... | |
virtual void | Apply (const LocalVector< ValueType > &in, LocalVector< ValueType > *out) const |
Apply the operator, out = Operator(in), where in, out are local vectors. More... | |
virtual void | ApplyAdd (const LocalVector< ValueType > &in, const ValueType scalar, LocalVector< ValueType > *out) const |
Apply and add the operator, out = out + scalar*Operator(in), where in, out are local vectors. More... | |
virtual void | MoveToAccelerator (void) |
Move the object to the Accelerator backend. More... | |
virtual void | MoveToHost (void) |
Move the object to the Host backend. More... | |
virtual int | get_local_nrow (void) const |
Return the number of rows in the local matrix/stencil. More... | |
virtual int | get_local_ncol (void) const |
Return the number of columns in the local matrix/stencil. More... | |
virtual int | get_local_nnz (void) const |
Return the number of non-zeros in the local matrix/stencil. More... | |
virtual int | get_ghost_nrow (void) const |
Return the number of rows in the ghost matrix/stencil. More... | |
virtual int | get_ghost_ncol (void) const |
Return the number of columns in the ghost matrix/stencil. More... | |
virtual int | get_ghost_nnz (void) const |
Return the number of non-zeros in the ghost matrix/stencil. More... | |
virtual void | MoveToAcceleratorAsync (void) |
Move the object to the Accelerator backend with async move. More... | |
virtual void | MoveToHostAsync (void) |
Move the object to the Host backend with async move. More... | |
virtual void | Sync (void) |
void | CloneBackend (const BaseParalution< ValueType > &src) |
Clone the Backend descriptor from another object. More... | |
template<typename ValueType2 > | |
void | CloneBackend (const BaseParalution< ValueType2 > &src) |
Clone the Backend descriptor from another object with different template ValueType. More... | |
Protected Member Functions | |
virtual bool | is_host (void) const |
Return true if the object is on the host. More... | |
virtual bool | is_accel (void) const |
Return true if the object is on the accelerator. More... | |
Protected Attributes | |
Paralution_Backend_Descriptor | local_backend_ |
Backend descriptor. More... | |
bool | asyncf |
size_t | global_obj_id |
Private Attributes | |
std::string | object_name_ |
BaseStencil< ValueType > * | stencil_ |
HostStencil< ValueType > * | stencil_host_ |
AcceleratorStencil< ValueType > * | stencil_accel_ |
Friends | |
class | LocalVector< ValueType > |
class | GlobalVector< ValueType > |
paralution::LocalStencil< ValueType >::LocalStencil | ( | ) |
paralution::LocalStencil< ValueType >::LocalStencil | ( | unsigned int | type | ) |
|
virtual |
|
virtual |
Apply the operator, out = Operator(in), where in, out are local vectors.
Reimplemented from paralution::Operator< ValueType >.
|
virtual |
Apply and add the operator, out = out + scalar*Operator(in), where in, out are local vectors.
Reimplemented from paralution::Operator< ValueType >.
|
virtual |
Clear (free all data) the object.
Implements paralution::BaseParalution< ValueType >.
|
inherited |
Clone the Backend descriptor from another object.
Referenced by paralution::AMG< OperatorType, VectorType, ValueType >::Aggregate(), paralution::SIRA< OperatorTypeH, VectorTypeH, ValueTypeH, OperatorTypeL, VectorTypeL, ValueTypeL >::Build_(), paralution::MultiColored< OperatorType, VectorType, ValueType >::Decompose_(), main(), paralution::LocalMatrix< ValueType >::MaximalIndependentSet(), paralution::LocalMatrix< ValueType >::MultiColoring(), and paralution::LocalMatrix< ValueType >::UpdateValuesCSR().
|
inherited |
Clone the Backend descriptor from another object with different template ValueType.
|
virtualinherited |
Return the number of columns in the ghost matrix/stencil.
|
virtualinherited |
Return the number of non-zeros in the ghost matrix/stencil.
|
virtualinherited |
Return the number of rows in the ghost matrix/stencil.
|
virtualinherited |
Return the number of columns in the local matrix/stencil.
|
virtualinherited |
Return the number of non-zeros in the local matrix/stencil.
|
virtualinherited |
Return the number of rows in the local matrix/stencil.
|
virtual |
Return the number of columns in the matrix/stencil.
Implements paralution::Operator< ValueType >.
|
virtual |
|
virtual |
Return the number of non-zeros in the matrix/stencil.
Implements paralution::Operator< ValueType >.
|
virtual |
Return the number of rows in the matrix/stencil.
Implements paralution::Operator< ValueType >.
Referenced by main().
|
virtual |
Print the object information (properties, backends)
Implements paralution::BaseParalution< ValueType >.
Referenced by main().
|
inlineprotectedvirtual |
Return true if the object is on the accelerator.
Implements paralution::BaseParalution< ValueType >.
|
inlineprotectedvirtual |
Return true if the object is on the host.
Implements paralution::BaseParalution< ValueType >.
|
virtual |
Move the object to the Accelerator backend.
Implements paralution::BaseParalution< ValueType >.
|
virtualinherited |
Move the object to the Accelerator backend with async move.
Reimplemented in paralution::LocalMatrix< ValueType >, paralution::LocalMatrix< ValueTypeL >, paralution::LocalMatrix< ValueTypeH >, paralution::LocalVector< ValueType >, paralution::LocalVector< ValueTypeL >, paralution::LocalVector< int >, and paralution::LocalVector< ValueTypeH >.
|
virtual |
Move the object to the Host backend.
Implements paralution::BaseParalution< ValueType >.
|
virtualinherited |
Move the object to the Host backend with async move.
Reimplemented in paralution::LocalMatrix< ValueType >, paralution::LocalMatrix< ValueTypeL >, paralution::LocalMatrix< ValueTypeH >, paralution::LocalVector< ValueType >, paralution::LocalVector< ValueTypeL >, paralution::LocalVector< int >, and paralution::LocalVector< ValueTypeH >.
|
virtual |
Referenced by main().
|
virtualinherited |
|
friend |
|
friend |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Backend descriptor.
Referenced by paralution::BaseParalution< ValueType >::CloneBackend(), and paralution::LocalMatrix< ValueType >::CloneFrom().
|
private |
|
private |
|
private |
|
private |