Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of stdlib_experimental_stats function mean #119

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ endif()
include(CheckFortranSourceCompiles)
include(CheckFortranSourceRuns)
check_fortran_source_compiles("error stop i; end" f18errorstop SRC_EXT f90)
check_fortran_source_compiles("real, allocatable :: array(:, :, :, :, :, :, :, :, :, :); end" f03rank SRC_EXT f90)
check_fortran_source_runs("use, intrinsic :: iso_fortran_env, only : real128; real(real128) :: x; x = x+1; end" f03real128)

add_subdirectory(src)
8 changes: 8 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ else()
target_sources(fortran_stdlib PRIVATE f08estop.f90)
endif()

if(f03rank)
target_sources(fortran_stdlib PRIVATE f03_stdlib_experimental_stats.f90)
target_sources(fortran_stdlib PRIVATE f03_stdlib_experimental_stats_mean.f90)
else()
target_sources(fortran_stdlib PRIVATE f90_stdlib_experimental_stats.f90)
target_sources(fortran_stdlib PRIVATE f90_stdlib_experimental_stats_mean.f90)
endif()

add_subdirectory(tests)

install(TARGETS fortran_stdlib
Expand Down
8 changes: 7 additions & 1 deletion src/Makefile.manual
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ SRC = stdlib_experimental_ascii.f90 \
stdlib_experimental_io.f90 \
stdlib_experimental_optval.f90 \
stdlib_experimental_kinds.f90 \
f18estop.f90
f18estop.f90 \
f03_stdlib_experimental_stats.f90 \
f03_stdlib_experimental_stats_mean.f90

LIB = libstdlib.a

Expand Down Expand Up @@ -34,3 +36,7 @@ stdlib_experimental_io.o: \
stdlib_experimental_optval.o \
stdlib_experimental_kinds.o
stdlib_experimental_optval.o: stdlib_experimental_kinds.o
f03_stdlib_experimental_stats_mean.o: \
stdlib_experimental_optval.o \
stdlib_experimental_kinds.o \
f03_stdlib_experimental_stats.o
Loading