![]() |
Ginkgo Generated from branch based on main. Ginkgo version 1.10.0
A numerical linear algebra library targeting many-core architectures
|
This factory is a utility which can be used to generate Identity operators. More...
#include <ginkgo/core/matrix/identity.hpp>
Public Types | |
using | value_type = ValueType |
Static Public Member Functions | |
static std::unique_ptr< IdentityFactory > | create (std::shared_ptr< const Executor > exec) |
Creates a new Identity factory. |
Friends | |
class | EnablePolymorphicObject< IdentityFactory, LinOpFactory > |
Additional Inherited Members | |
Public Member Functions inherited from gko::EnableAbstractPolymorphicObject< IdentityFactory< default_precision >, LinOpFactory > | |
std::unique_ptr< IdentityFactory< default_precision > > | create_default (std::shared_ptr< const Executor > exec) const |
std::unique_ptr< IdentityFactory< default_precision > > | clone (std::shared_ptr< const Executor > exec) const |
IdentityFactory< default_precision > * | copy_from (const PolymorphicObject *other) |
IdentityFactory< default_precision > * | move_from (ptr_param< PolymorphicObject > other) |
IdentityFactory< default_precision > * | clear () |
Public Member Functions inherited from gko::LinOpFactory | |
std::unique_ptr< LinOp > | generate (std::shared_ptr< const LinOp > input) const |
Public Member Functions inherited from gko::PolymorphicObject | |
PolymorphicObject & | operator= (const PolymorphicObject &) |
std::unique_ptr< PolymorphicObject > | create_default (std::shared_ptr< const Executor > exec) const |
Creates a new "default" object of the same dynamic type as this object. | |
std::unique_ptr< PolymorphicObject > | create_default () const |
Creates a new "default" object of the same dynamic type as this object. | |
std::unique_ptr< PolymorphicObject > | clone (std::shared_ptr< const Executor > exec) const |
Creates a clone of the object. | |
std::unique_ptr< PolymorphicObject > | clone () const |
Creates a clone of the object. | |
PolymorphicObject * | copy_from (const PolymorphicObject *other) |
Copies another object into this object. | |
template<typename Derived, typename Deleter> | |
std::enable_if_t< std::is_base_of< PolymorphicObject, std::decay_t< Derived > >::value, PolymorphicObject > * | copy_from (std::unique_ptr< Derived, Deleter > &&other) |
Moves another object into this object. | |
template<typename Derived, typename Deleter> | |
std::enable_if_t< std::is_base_of< PolymorphicObject, std::decay_t< Derived > >::value, PolymorphicObject > * | copy_from (const std::unique_ptr< Derived, Deleter > &other) |
Copies another object into this object. | |
PolymorphicObject * | copy_from (const std::shared_ptr< const PolymorphicObject > &other) |
Copies another object into this object. | |
PolymorphicObject * | move_from (ptr_param< PolymorphicObject > other) |
Moves another object into this object. | |
PolymorphicObject * | clear () |
Transforms the object into its default state. | |
std::shared_ptr< const Executor > | get_executor () const noexcept |
Returns the Executor of the object. | |
Public Member Functions inherited from gko::log::EnableLogging< PolymorphicObject > | |
void | add_logger (std::shared_ptr< const Logger > logger) override |
Adds a new logger to the list of subscribed loggers. | |
void | remove_logger (const Logger *logger) override |
Removes a logger from the list of subscribed loggers. | |
const std::vector< std::shared_ptr< const Logger > > & | get_loggers () const override |
Returns the vector containing all loggers registered at this object. | |
void | clear_loggers () override |
Remove all loggers registered at this object. | |
Public Member Functions inherited from gko::log::Loggable | |
void | remove_logger (ptr_param< const Logger > logger) |
This factory is a utility which can be used to generate Identity operators.
The factory will generate the Identity matrix with the same dimension as the passed in operator. It will throw an exception if the operator is not square.
ValueType | precision of matrix elements |
|
inlinestatic |