Ginkgo  Generated from pipelines/1478841010 branch based on develop. Ginkgo version 1.9.0
A numerical linear algebra library targeting many-core architectures
Public Member Functions | List of all members
gko::BlockSizeError< IndexType > Class Template Reference

Error that denotes issues between block sizes and matrix dimensions. More...

#include <ginkgo/core/base/exception.hpp>

Inheritance diagram for gko::BlockSizeError< IndexType >:
[legend]
Collaboration diagram for gko::BlockSizeError< IndexType >:
[legend]

Public Member Functions

 BlockSizeError (const std::string &file, const int line, const int block_size, const IndexType size)
 
- Public Member Functions inherited from gko::Error
 Error (const std::string &file, int line, const std::string &what)
 Initializes an error. More...
 
virtual const char * what () const noexcept override
 Returns a human-readable string with a more detailed description of the error.
 

Detailed Description

template<typename IndexType>
class gko::BlockSizeError< IndexType >

Error that denotes issues between block sizes and matrix dimensions.

Template Parameters
IndexTypeType of index used by the linear algebra object that is incompatible with the required block size.

Constructor & Destructor Documentation

◆ BlockSizeError()

template<typename IndexType >
gko::BlockSizeError< IndexType >::BlockSizeError ( const std::string &  file,
const int  line,
const int  block_size,
const IndexType  size 
)
inline
Parameters
fileThe name of the offending source file
lineThe source code line number where the error occurred
block_sizeSize of small dense blocks in a matrix
sizeThe size that is not exactly divided by the block size

The documentation for this class was generated from the following file: