SpMV employing different Matrix formats#
|
Reference API
|
A module dedicated to the implementation and usage of the various Matrix Formats in Ginkgo. More...
Functions | |
| template<typename Matrix , typename... TArgs> | |
| std::unique_ptr< Matrix > | gko::initialize (size_type stride, std::initializer_list< typename Matrix::value_type > vals, std::shared_ptr< const Executor > exec, TArgs &&... create_args) |
| template<typename Matrix , typename... TArgs> | |
| std::unique_ptr< Matrix > | gko::initialize (std::initializer_list< typename Matrix::value_type > vals, std::shared_ptr< const Executor > exec, TArgs &&... create_args) |
| template<typename Matrix , typename... TArgs> | |
| std::unique_ptr< Matrix > | gko::initialize (size_type stride, std::initializer_list< std::initializer_list< typename Matrix::value_type > > vals, std::shared_ptr< const Executor > exec, TArgs &&... create_args) |
| template<typename Matrix , typename... TArgs> | |
| std::unique_ptr< Matrix > | gko::initialize (std::initializer_list< std::initializer_list< typename Matrix::value_type > > vals, std::shared_ptr< const Executor > exec, TArgs &&... create_args) |
Detailed Description
A module dedicated to the implementation and usage of the various Matrix Formats in Ginkgo.
Function Documentation
◆ initialize() [1/4]
| std::unique_ptr< Matrix > gko::initialize | ( | size_type | stride, |
| std::initializer_list< std::initializer_list< typename Matrix::value_type > > | vals, | ||
| std::shared_ptr< const Executor > | exec, | ||
| TArgs &&... | create_args | ||
| ) |
Creates and initializes a matrix.
This function first creates a temporary Dense matrix, fills it with passed in values, and then converts the matrix to the requested type.
- Template Parameters
-
Matrix matrix type to initialize (Dense has to implement the ConvertibleTo<Matrix> interface) TArgs argument types for Matrix::create method (not including the implied Executor as the first argument)
◆ initialize() [2/4]
| std::unique_ptr< Matrix > gko::initialize | ( | size_type | stride, |
| std::initializer_list< typename Matrix::value_type > | vals, | ||
| std::shared_ptr< const Executor > | exec, | ||
| TArgs &&... | create_args | ||
| ) |
Creates and initializes a column-vector.
This function first creates a temporary Dense matrix, fills it with passed in values, and then converts the matrix to the requested type.
- Template Parameters
-
Matrix matrix type to initialize (Dense has to implement the ConvertibleTo<Matrix> interface) TArgs argument types for Matrix::create method (not including the implied Executor as the first argument)
◆ initialize() [3/4]
| std::unique_ptr< Matrix > gko::initialize | ( | std::initializer_list< std::initializer_list< typename Matrix::value_type > > | vals, |
| std::shared_ptr< const Executor > | exec, | ||
| TArgs &&... | create_args | ||
| ) |
Creates and initializes a matrix.
This function first creates a temporary Dense matrix, fills it with passed in values, and then converts the matrix to the requested type. The stride of the intermediate Dense matrix is set to the number of columns of the initializer list.
- Template Parameters
-
Matrix matrix type to initialize (Dense has to implement the ConvertibleTo<Matrix> interface) TArgs argument types for Matrix::create method (not including the implied Executor as the first argument)
◆ initialize() [4/4]
| std::unique_ptr< Matrix > gko::initialize | ( | std::initializer_list< typename Matrix::value_type > | vals, |
| std::shared_ptr< const Executor > | exec, | ||
| TArgs &&... | create_args | ||
| ) |
Creates and initializes a column-vector.
This function first creates a temporary Dense matrix, fills it with passed in values, and then converts the matrix to the requested type. The stride of the intermediate Dense matrix is set to 1.
- Template Parameters
-
Matrix matrix type to initialize (Dense has to implement the ConvertibleTo<Matrix> interface) TArgs argument types for Matrix::create method (not including the implied Executor as the first argument)
Generated by