Ginkgo  Generated from pipelines/1330831941 branch based on master. Ginkgo version 1.8.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: