Ginkgo: gko::BlockSizeError< IndexType > Class Template Reference

| Ginkgo Generated from branch based on main. Ginkgo version 1.11.0 A numerical linear algebra library targeting many-core architectures

Loading...
Searching...
No Matches
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.
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

  IndexType | Type 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

  file | The name of the offending source file
  line | The source code line number where the error occurred
  block_size | Size of small dense blocks in a matrix
  size | The size that is not exactly divided by the block size

References gko::Error::Error().

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

- ginkgo/core/base/exception.hpp