A Module For Computing General Matrix Polynomials.
Construct a polynomial.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Polynomial_t), | intent(inout) | :: | this |
The polynomial to construct. |
||
integer, | intent(in) | :: | degree |
The degree of the polynomial. |
Destruct a polynomial object.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Polynomial_t), | intent(inout) | :: | this |
The polynomial to destruct. |
Set coefficient of a polynomial.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Polynomial_t), | intent(inout) | :: | this |
The polynomial to set. |
||
integer, | intent(in) | :: | degree |
Degree for which to set the coefficient. |
||
real(kind=NTREAL), | intent(in) | :: | coefficient |
Coefficient value. |
Compute A Matrix Polynomial Using the method of Horner.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Matrix_ps), | intent(in) | :: | InputMat |
The input matrix |
||
type(Matrix_ps), | intent(inout) | :: | OutputMat |
OutputMat = poly(InputMat) |
||
type(Polynomial_t), | intent(in) | :: | poly |
Polynomial to compute. |
||
type(SolverParameters_t), | intent(in), | optional | :: | solver_parameters_in |
Parameters for the solver. |
Compute A Matrix Polynomial Using The Paterson and Stockmeyer method. This method first factors the polynomial to reduce the number of matrix multiplies required.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Matrix_ps), | intent(in) | :: | InputMat |
The input matrix |
||
type(Matrix_ps), | intent(inout) | :: | OutputMat |
OutputMat = poly(InputMat) |
||
type(Polynomial_t), | intent(in) | :: | poly |
The polynomial to compute. |
||
type(SolverParameters_t), | intent(in), | optional | :: | solver_parameters_in |
Parameters for the solver. |
A datatype that represents a polynomial.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=NTREAL), | public, | DIMENSION(:), ALLOCATABLE | :: | coefficients |
Coefficients of the polynomial. |