Skip to content

Commit eb01acd

Browse files
committed
Define log2 constant (used for expm).
1 parent c56217c commit eb01acd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stdlib_constants.fypp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ module stdlib_constants
7171
#:for k, t, s in R_KINDS_TYPES
7272
${t}$, parameter, public :: zero_${s}$ = 0._${k}$
7373
${t}$, parameter, public :: one_${s}$ = 1._${k}$
74+
${t}$, parameter, public :: log2_${s}$ = log(2.0_${k}$)
7475
#:endfor
7576
#:for k, t, s in C_KINDS_TYPES
7677
${t}$, parameter, public :: zero_${s}$ = (0._${k}$,0._${k}$)

0 commit comments

Comments
 (0)