eckit::linalg::allocator::StandardContainerAllocator class

In-place allocator for sparse matrices, directly mapping supporting arrays including from another SparseMatrix. It is able to provide a "view".

Base classes

class eckit::linalg::SparseMatrix::Allocator

Public types

using container_type = std::vector<std::map<Size, Scalar>>

Constructors, destructors, conversion operators

StandardContainerAllocator(Size Nr, Size Nc, const container_type&)

Public functions

auto allocate(SparseMatrix::Shape&) -> SparseMatrix::Layout override
void deallocate(SparseMatrix::Layout, SparseMatrix::Shape) override
auto inSharedMemory() const -> bool override
void print(std::ostream&) const override

Function documentation

SparseMatrix::Layout eckit::linalg::allocator::StandardContainerAllocator::allocate(SparseMatrix::Shape&) override

bool eckit::linalg::allocator::StandardContainerAllocator::inSharedMemory() const override

Returns if allocation is in shared memory