tools for packing 2-index and 4-index quantities by exploitinh index symmetry
index for the upper triangular matrix in a packed storage scheme SEE: http://www.netlib.org/lapack/lug/node123.html optimization: use precalculated array sq_half(i)=
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i | |||
integer, | intent(in) | :: | j |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=8), | intent(in) | :: | i | |||
integer(kind=8), | intent(in) | :: | j |
initialize index_packed: precompute index values