LAMA
|
Common base class for typed LAMAArray. More...
#include <LAMAArray.hpp>
Public Member Functions | |
virtual | ~_LAMAArray () |
virtual Scalar::ScalarType | getValueType () const =0 |
Query the value type of the matrix elements, e.g. | |
IndexType | size () const |
Query the current size of the LAMA array, i.e. | |
virtual void | writeAt (std::ostream &stream) const |
Writes some Information about this to the passed stream. | |
Static Public Member Functions | |
static std::auto_ptr< _LAMAArray > | create (const Scalar::ScalarType) |
Protected Member Functions | |
_LAMAArray (const IndexType n) | |
Protected Attributes | |
IndexType | mSize |
number of entries for the context array, common for all contexts | |
bool | constFlag |
if true the array cannot be written | |
Static Protected Attributes | |
static size_t | nContextIndex |
Common base class for typed LAMAArray.
virtual lama::_LAMAArray::~_LAMAArray | ( | ) | [inline, virtual] |
lama::_LAMAArray::_LAMAArray | ( | const IndexType | n | ) | [inline, explicit, protected] |
std::auto_ptr< _LAMAArray > lama::_LAMAArray::create | ( | const Scalar::ScalarType | valueType | ) | [static] |
References lama::Scalar::DOUBLE, lama::Scalar::FLOAT, and LAMA_THROWEXCEPTION.
virtual Scalar::ScalarType lama::_LAMAArray::getValueType | ( | ) | const [pure virtual] |
Query the value type of the matrix elements, e.g.
DOUBLE or FLOAT.
Implemented in lama::LAMAArray< T >, lama::LAMAArray< IndexType >, and lama::LAMAArray< ValueType >.
Referenced by lama::LAMAArrayUtils::assign(), lama::LAMAArrayUtils::assignImpl1(), lama::CRTPMatrixStorage< CSRStorage< T >, T >::buildCSRData(), lama::DenseMatrix< T >::buildCSRData(), lama::CRTPMatrixStorage< CSRStorage< T >, T >::getDiagonal(), lama::CRTPMatrixStorage< CSRStorage< T >, T >::getRow(), lama::CRTPMatrixStorage< CSRStorage< T >, T >::scale(), lama::CRTPMatrixStorage< CSRStorage< T >, T >::setCSRData(), and lama::CRTPMatrixStorage< CSRStorage< T >, T >::setDiagonal().
IndexType lama::_LAMAArray::size | ( | ) | const [inline] |
Query the current size of the LAMA array, i.e.
number of entries.
References mSize.
Referenced by lama::CommunicationPlan::allocate(), lama::LAMAArrayUtils::assign(), lama::DenseVector< T >::assign(), lama::MatrixStorage< T >::assign(), lama::LAMAArrayUtils::assignImpl2(), lama::MatrixStorage< T >::assignTranspose(), lama::SparseMatrix< T >::assignTransposeImpl(), lama::SparseAssemblyStorage< T >::buildCSR(), lama::_StorageMethods::buildHalo(), lama::MatrixStorage< T >::buildHalo(), lama::MatrixStorage< T >::convertCSR2CSC(), lama::COOStorage< T >::COOStorage(), lama::MatrixStorage< T >::copyTo(), lama::Redistributor::copyV(), lama::DenseStorage< T >::DenseStorage(), lama::DenseStorageView< T >::DenseStorageView(), lama::DenseVector< T >::DenseVector(), lama::Communicator::exchangeByPlan(), lama::Communicator::exchangeByPlanAsync(), lama::MatrixStorage< T >::exchangeHalo(), lama::StorageMethods< T >::exchangeHaloCSR(), lama::LAMAArrayUtils::gather(), lama::Redistributor::gatherV(), lama::_MatrixStorage::getMemoryUsage(), lama::DenseMatrix< T >::invertCyclic(), lama::SpecializedJacobi::iterateTyped(), lama::StorageMethods< T >::joinCSR(), lama::MatrixStorage< T >::joinHalo(), lama::LAMAArrayRef< T >::LAMAArrayRef(), lama::MatrixStorage< T >::localize(), lama::StorageMethods< T >::localizeCSR(), lama::DenseMatrix< T >::matrixTimesVectorImpl(), lama::SparseMatrix< T >::matrixTimesVectorImpl(), lama::_MatrixStorage::offsets2sizes(), lama::MatrixStorage< T >::readFromFile(), lama::Redistributor::redistribute(), lama::MatrixStorage< T >::redistribute(), lama::StorageMethods< T >::redistributeCSR(), lama::Redistributor::redistributeN(), lama::MatrixStorage< T >::replicate(), lama::StorageMethods< T >::replicateCSR(), lama::CRTPMatrixStorage< CSRStorage< T >, T >::scale(), lama::SparseAssemblyStorage< T >::scaleImpl(), lama::CSRStorage< T >::scaleImpl(), lama::Redistributor::scatterV(), lama::DenseMatrix< T >::setCSRDataLocal(), lama::CRTPMatrixStorage< CSRStorage< T >, T >::setDiagonal(), lama::CSRStorage< T >::setDiagonalImpl(), lama::DIAStorage< T >::setDiagonalImpl(), lama::SparseAssemblyStorage< T >::setDiagonalImpl(), lama::MatrixStorage< T >::setRawDenseData(), lama::DenseVector< T >::setValues(), lama::_MatrixStorage::sizes2offsets(), lama::StorageMethods< T >::splitCSR(), lama::MatrixStorage< T >::splitHalo(), lama::CSRStorage< T >::swap(), lama::StorageIO< T >::writeCSRToBinaryFile(), lama::StorageIO< T >::writeCSRToFile(), lama::StorageIO< T >::writeCSRToFormattedFile(), lama::StorageIO< T >::writeCSRToMMFile(), and lama::StorageIO< T >::writeCSRToXDRFile().
void Printable::writeAt | ( | std::ostream & | stream | ) | const [virtual, inherited] |
Writes some Information about this to the passed stream.
If a deriving class does not overrides writeAt, typeid(this).name() is written to stream.
[out] | stream | the stream to write to. |
Reimplemented in lama::LAMAInterface, lama::Communicator, lama::SparseMatrix< T >, lama::SparseMatrix< ValueType >, lama::DenseMatrix< T >, lama::Matrix, lama::Redistributor, lama::DenseVector< T >, lama::Solver, lama::Vector, lama::LAMAArray< T >, lama::LAMAArray< IndexType >, lama::LAMAArray< ValueType >, lama::MPICommunicator, lama::LAMAArrayConstView< T >, lama::LAMAArrayConstView< ValueType >, lama::DIAStorage< T >, lama::PGASCommunicator, lama::JDSStorage< T >, lama::CommunicationPlan, lama::CSRStorage< T >, lama::WriteAccess< T >, lama::Context, lama::ELLStorage< T >, lama::COOStorage< T >, lama::NoCommunicator, lama::Criterion, lama::_MatrixStorage, lama::Distribution, lama::DenseStorageView< T >, lama::Scalar, lama::ResidualStagnation, lama::GenBlockDistribution, lama::Task, lama::PGASInterface, lama::ResidualThreshold, lama::SparseAssemblyStorage< T >, lama::CyclicDistribution, lama::Halo, lama::LAMAArrayView< T >, lama::LAMAArrayView< ValueType >, lama::ReadAccess< T >, lama::SyncToken, lama::GeneralDistribution, lama::IterationCount, lama::CUDAContext, lama::CUDAHostContext, lama::BlockDistribution, lama::MPISyncToken, lama::PGASContext, lama::PGASCheckInterface, lama::ContextAccess, lama::TaskSyncToken, lama::HostContext, lama::DefaultHostContext, lama::PGASSyncToken, lama::NoDistribution, lama::GPIInterface, lama::OpenShMemInterface, lama::BaseAccess, lama::NoSyncToken, and lama::PGASNoInterface.
bool lama::_LAMAArray::constFlag [protected] |
if true the array cannot be written
Referenced by lama::LAMAArrayRef< T >::LAMAArrayRef(), and lama::LAMAArrayView< T >::LAMAArrayView().
IndexType lama::_LAMAArray::mSize [protected] |
number of entries for the context array, common for all contexts
Referenced by lama::LAMAArray< T >::assign(), lama::LAMAArray< T >::LAMAArray(), lama::LAMAArrayRef< T >::LAMAArrayRef(), lama::LAMAArray< T >::operator=(), size(), and lama::LAMAArray< T >::swap().
size_t lama::_LAMAArray::nContextIndex [static, protected] |
Reimplemented in lama::LAMAArray< T >, lama::LAMAArray< IndexType >, and lama::LAMAArray< ValueType >.