Skip to content

Commit ffe1a6f

Browse files
authored
Merge branch 'master' into generalized_lagtm
2 parents 21a5435 + 1f6e3a0 commit ffe1a6f

22 files changed

+66
-20
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- {compiler: gcc, version: 12}
2727
- {compiler: gcc, version: 13}
2828
- {compiler: gcc, version: 14}
29+
- {compiler: gcc, version: 15}
2930
- {compiler: intel, version: '2024.1'}
3031
build: [cmake]
3132
include:
@@ -43,6 +44,8 @@ jobs:
4344
toolchain: {compiler: intel, version: '2024.1'}
4445
- os: macos-14
4546
toolchain: {compiler: gcc, version: 10}
47+
- os: ubuntu-latest
48+
toolchain: {compiler: gcc, version: 15}
4649
env:
4750
BUILD_DIR: ${{ matrix.build == 'cmake' && 'build' || '.' }}
4851

.github/workflows/ci_modular.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- {compiler: gcc, version: 14}
2525
build: [cmake]
2626
with_bitset: [On, Off]
27+
with_stats: [On, Off]
2728
env:
2829
BUILD_DIR: ${{ matrix.build == 'cmake' && 'build' || '.' }}
2930

@@ -56,6 +57,7 @@ jobs:
5657
-DCMAKE_INSTALL_PREFIX=$PWD/_dist
5758
-DFIND_BLAS:STRING=FALSE
5859
-DSTDLIB_NO_BITSET:STRING=${{ matrix.with_bitset }}
60+
-DSTDLIB_NO_STATS:STRING=${{ matrix.with_stats }}
5961
-S . -B ${{ env.BUILD_DIR }}
6062
6163
- name: Build and compile

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ if(STDLIB_NO_BITSET)
5656
add_compile_definitions(STDLIB_NO_BITSET)
5757
endif()
5858

59+
option(STDLIB_NO_STATS "Does not compile STDLIB STATS" OFF)
60+
61+
if(STDLIB_NO_STATS)
62+
message(STATUS "Disable stdlib stats module")
63+
add_compile_definitions(STDLIB_NO_STATS)
64+
endif()
65+
5966
option(FIND_BLAS "Find external BLAS and LAPACK" ON)
6067

6168
# --- find external BLAS and LAPACK

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The following combinations are tested on the default branch of stdlib:
8888
Name | Version | Platform | Architecture
8989
--- | --- | --- | ---
9090
GCC Fortran | 10, 11, 12, 13, 14 | Ubuntu 24.04.3 LTS | x86_64
91-
GCC Fortran | 11, 12, 13, 14 | macOS 14.8.2 (23J126) | Arm64
91+
GCC Fortran | 11, 12, 13, 14, 15 | macOS 14.8.2 (23J126) | Arm64
9292
GCC Fortran (MSYS) | 13 | Windows Server 2022 (10.0.20348 Build 1547) | x86_64
9393
GCC Fortran (MinGW) | 13 | Windows Server 2022 (10.0.20348 Build 1547) | x86_64
9494
Intel oneAPI LLVM | 2024.1 | Ubuntu 24.04.3 LTS | x86_64

example/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ add_subdirectory(selection)
3838
add_subdirectory(sorting)
3939
add_subdirectory(specialfunctions_gamma)
4040
add_subdirectory(specialmatrices)
41-
add_subdirectory(stats)
42-
add_subdirectory(stats_distribution_exponential)
43-
add_subdirectory(stats_distribution_normal)
44-
add_subdirectory(stats_distribution_uniform)
41+
if (NOT STDLIB_NO_STATS)
42+
add_subdirectory(stats)
43+
add_subdirectory(stats_distribution_exponential)
44+
add_subdirectory(stats_distribution_normal)
45+
add_subdirectory(stats_distribution_uniform)
46+
endif()
4547
add_subdirectory(stringlist_type)
4648
add_subdirectory(strings)
4749
add_subdirectory(string_type)

include/macros.inc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@
55
#else
66
#define STDLIB_BITSET 1
77
#endif
8+
9+
!Default: compile the stats module
10+
#ifdef STDLIB_NO_STATS
11+
#define STDLIB_STATS 0
12+
#else
13+
#define STDLIB_STATS 1
14+
#endif

src/CMakeLists.txt

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ endif()
44
add_subdirectory(blas)
55
add_subdirectory(lapack)
66
add_subdirectory(lapack_extended)
7+
if (NOT STDLIB_NO_STATS)
8+
add_subdirectory(stats)
9+
endif()
710

811
set(fppFiles
912
stdlib_ascii.fypp
@@ -59,19 +62,6 @@ set(fppFiles
5962
stdlib_specialfunctions.fypp
6063
stdlib_specialmatrices.fypp
6164
stdlib_specialmatrices_tridiagonal.fypp
62-
stdlib_stats.fypp
63-
stdlib_stats_corr.fypp
64-
stdlib_stats_cov.fypp
65-
stdlib_stats_mean.fypp
66-
stdlib_stats_median.fypp
67-
stdlib_stats_moment.fypp
68-
stdlib_stats_moment_all.fypp
69-
stdlib_stats_moment_mask.fypp
70-
stdlib_stats_moment_scalar.fypp
71-
stdlib_stats_distribution_uniform.fypp
72-
stdlib_stats_distribution_normal.fypp
73-
stdlib_stats_distribution_exponential.fypp
74-
stdlib_stats_var.fypp
7565
stdlib_quadrature.fypp
7666
stdlib_quadrature_trapz.fypp
7767
stdlib_quadrature_simps.fypp
@@ -125,4 +115,5 @@ configure_stdlib_target(${PROJECT_NAME} f90Files fppFiles cppFiles)
125115

126116
target_link_libraries(${PROJECT_NAME} PUBLIC
127117
$<$<NOT:$<BOOL:${STDLIB_NO_BITSET}>>:bitsets>
128-
blas lapack lapack_extended)
118+
$<$<NOT:$<BOOL:${STDLIB_NO_STATS}>>:stats>
119+
blas lapack lapack_extended)

src/stats/CMakeLists.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
set(stats_cppFiles
2+
../stdlib_linalg_constants.fypp
3+
)
4+
5+
set(stats_fppFiles
6+
../stdlib_ascii.fypp
7+
../stdlib_io.fypp
8+
../stdlib_kinds.fypp
9+
../stdlib_optval.fypp
10+
../stdlib_error.fypp
11+
../stdlib_linalg.fypp
12+
../stdlib_linalg_diag.fypp
13+
../stdlib_linalg_state.fypp
14+
../stdlib_random.fypp
15+
../stdlib_selection.fypp
16+
../stdlib_string_type.fypp
17+
stdlib_stats_corr.fypp
18+
stdlib_stats_cov.fypp
19+
stdlib_stats_distribution_exponential.fypp
20+
stdlib_stats_distribution_normal.fypp
21+
stdlib_stats_distribution_uniform.fypp
22+
stdlib_stats.fypp
23+
stdlib_stats_mean.fypp
24+
stdlib_stats_median.fypp
25+
stdlib_stats_moment_all.fypp
26+
stdlib_stats_moment.fypp
27+
stdlib_stats_moment_mask.fypp
28+
stdlib_stats_moment_scalar.fypp
29+
stdlib_stats_var.fypp
30+
)
31+
32+
configure_stdlib_target(stats "" stats_fppFiles stats_cppFiles)

0 commit comments

Comments
 (0)