Symmetric array class.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=rk), | public, | allocatable | :: | ap(:) |
vector with array values in packed storage format |
||
integer, | public | :: | n |
number of rows or columns |
|||
character(len=1), | public | :: | uplo | = | "u" |
flag to specify whether the (u)pper or (l)ower triangle is supplied |
Performs the matrix-vector operation:
y:= A*x
where x is an n element vector and A is a n*n symmetric matrix. Source: Lapack
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spmatrix), | intent(in) | :: | self |
symmetric array(n,n) |
||
real(kind=rk), | intent(in) | :: | x(:) |
vector(n) |
Get value of .
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spmatrix), | intent(in) | :: | self |
object |
||
integer, | intent(in) | :: | i |
index |
||
integer, | intent(in) | :: | j |
index |
Set value of .
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spmatrix), | intent(inout) | :: | self |
object |
||
integer, | intent(in) | :: | i |
index |
||
integer, | intent(in) | :: | j |
index |
||
real(kind=rk), | intent(in) | :: | x |
value |
type :: spmatrix !! Symmetric array class. real(rk), allocatable :: ap(:) !! vector with array values in packed storage format integer :: n !! number of rows or columns character(1) :: uplo = "u" !! flag to specify whether the (u)pper or (l)ower triangle is supplied contains procedure, pass(self) :: multvec => spmatrix_multvec procedure, pass(self) :: get => spmatrix_get procedure, pass(self) :: set => spmatrix_set end type spmatrix