![]() |
Ginkgo
Generated from tags/v1.0.0^0 branch based on master. Ginkgo version 1.0.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. More... | |
Friends | |
class | EnablePolymorphicObject< IdentityFactory, LinOpFactory > |
Additional Inherited Members | |
![]() | |
std::unique_ptr< IdentityFactory< ValueType > > | create_default (std::shared_ptr< const Executor > exec) const |
std::unique_ptr< IdentityFactory< ValueType > > | create_default () const |
std::unique_ptr< IdentityFactory< ValueType > > | clone (std::shared_ptr< const Executor > exec) const |
std::unique_ptr< IdentityFactory< ValueType > > | clone () const |
IdentityFactory< ValueType > * | copy_from (const PolymorphicObject *other) |
IdentityFactory< ValueType > * | copy_from (std::unique_ptr< PolymorphicObject > other) |
IdentityFactory< ValueType > * | clear () |
![]() | |
std::unique_ptr< LinOp > | generate (std::shared_ptr< const LinOp > input) const |
![]() | |
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. More... | |
std::unique_ptr< PolymorphicObject > | create_default () const |
Creates a new "default" object of the same dynamic type as this object. More... | |
std::unique_ptr< PolymorphicObject > | clone (std::shared_ptr< const Executor > exec) const |
Creates a clone of the object. More... | |
std::unique_ptr< PolymorphicObject > | clone () const |
Creates a clone of the object. More... | |
PolymorphicObject * | copy_from (const PolymorphicObject *other) |
Copies another object into this object. More... | |
PolymorphicObject * | copy_from (std::unique_ptr< PolymorphicObject > other) |
Moves another object into this object. More... | |
PolymorphicObject * | clear () |
Transforms the object into its default state. More... | |
std::shared_ptr< const Executor > | get_executor () const noexcept |
Returns the Executor of the object. More... | |
![]() | |
void | add_logger (std::shared_ptr< const Logger > logger) override |
Adds a new logger to the list of subscribed loggers. More... | |
void | remove_logger (const Logger *logger) override |
Removes a logger from the list of subscribed loggers. More... | |
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 |