BLAS support routines for LBFGSB. These have been refactored into modern Fortran.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=wp), | private, | parameter | :: | zero | = | 0.0_wp | |
real(kind=wp), | private, | parameter | :: | one | = | 1.0_wp | |
real(kind=wp), | private, | parameter | :: | two | = | 2.0_wp | |
real(kind=wp), | private, | parameter | :: | four | = | 4.0_wp | |
real(kind=wp), | private, | parameter | :: | ten | = | 10.0_wp | |
real(kind=wp), | private, | parameter | :: | hun | = | 100.0_wp |
forms the dot product of two vectors. uses unrolled loops for increments equal to one.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | n | |||
real(kind=wp), | intent(in) | :: | dx(*) | |||
integer, | intent(in) | :: | incx | |||
real(kind=wp), | intent(in) | :: | dy(*) | |||
integer, | intent(in) | :: | incy |
constant times a vector plus a vector. uses unrolled loops for increments equal to one.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | n | |||
real(kind=wp), | intent(in) | :: | da | |||
real(kind=wp), | intent(in) | :: | dx(*) | |||
integer, | intent(in) | :: | incx | |||
real(kind=wp), | intent(inout) | :: | dy(*) | |||
integer, | intent(in) | :: | incy |
copies a vector, x, to a vector, y. uses unrolled loops for increments equal to one.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | n | |||
real(kind=wp), | intent(in) | :: | dx(*) | |||
integer, | intent(in) | :: | incx | |||
real(kind=wp), | intent(inout) | :: | dy(*) | |||
integer, | intent(in) | :: | incy |
scales a vector by a constant. uses unrolled loops for increment equal to one.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | n | |||
real(kind=wp), | intent(in) | :: | da | |||
real(kind=wp), | intent(inout) | :: | dx(*) | |||
integer, | intent(in) | :: | incx |