All notable changes to Spatex are documented here. The format follows Keep a Changelog and the project adheres to Semantic Versioning. Versions before 0.2.1 were not publicly released; their entries are kept as the project's history.
Unreleased
0.2.1 - 2026-11-26
First public release, and the first one published to Hex. The library code and its API are the same as in 0.2.0; this release changes packaging, dependency metadata and documentation.
Changed
- Spatex is installed from Hex (
{:spatex, "~> 0.2"}) and downloads a precompiled NIF for its six targets (NIF versions 2.16 and 2.17), so those targets need no Rust toolchain.SPATEX_BUILD=1still builds the NIF from source. rustleris an optional dependency, asrustler_precompiledrecommends: projects that use the precompiled NIF no longer fetch it. A source build, which includes using Spatex as a GitHub or path dependency, needs{:rustler, "~> 0.38", runtime: false}in the project's own dependencies; the notebooks'Mix.installlists it.jasonis an optional dependency. The library never used it (only the oracle-test helper and the benchmarks do), so projects no longer fetch it through Spatex.- The NIF checksum file is generated from the release artifacts when a release is published and ships only inside the Hex package; it is git-ignored, so a git checkout always builds the NIF from source.
- The Hex package also ships
.cargo/config.toml(the target-specific link settings a source build needs on macOS and musl) and the third-party license texts inLICENSES/. - The documentation links the sources of the release tag instead of
main. - The release workflow attaches the NIF artifacts from a separate job that runs on tag pushes
only and is the only one with write access to the repository contents. It attaches all 12
artifacts, including the Windows ones, which are named without the
libprefix, and fails instead of publishing an empty release. Every workflow action is pinned to a commit SHA.
Fixed
NOTICEsaid that Spatex contains no PySAL code and reimplements everything from the literature. It now lists the files that port or adapt upstream code (mapclassify, esda, SciPy, scikit-learn, the Pythonheapqmodule, spopt, fast_hdbscan, mgwr, spglm, spreg, libpysal and NumPy), separates them from the implementations validated against upstream output, names the published algorithms the special functions follow, and states that the test fixtures embed libpysal example datasets as well as upstream output. The upstream license texts are inLICENSES/.- The README, the
Spatex.GeoFramedocumentation and the roadmap describe the public release: installation from Hex, the source-build opt-in, the optional dependencies and the stability of the 0.x API. The README and the notebooks say that the notebooks run from a git checkout.
[0.2.0] - 2026-11-13
Milestone v0.2.0 of the PySAL features deferred from 0.1.x: simulations as Nx tensors,
Graph.to_sparse, GWR extras, fuzzy contiguity, spatial regimes, spatial SUR and 3SLS, panel
random-effects errors, more inequality indices and Kullback, point processes, alpha shapes,
random regions, Spenc and SA3. The Rust crates stay at 0.1.0.
Added
Spatex.Regression.gm_kkp/4ports spreg'sGM_ErrorRE(GM_KKPin the deprecatedsp_panels.pyis the same estimator): the Kapoor-Kelejian-Prucha GM estimator of the spatial error panel with random effects, withtime_effectsandfull_weights, returning the coefficients,lam,sigma2_v,sigma2_1,vmand the feasible GLS residuals. The formulas match spreg at 1e-9 at spreg's own optimizer results (NCOVR Kansas / Missouri / Oklahoma / Arkansas, a Columbus panel and a binary rook lattice); the two minimizations find the exact minimum instead of stopping early like L-BFGS-B (lambdawithin 1e-5 of spreg's).regimesandslx_lagsare not supported.Spatex.Regression.ml_error_re/4ports spreg'sML_ErrorRE: the spatial error panel with random effects, withtime_effects, coefficients,lam, the variance ratiophiandsigma2_u,vmwith spreg'slam/phiinformation block, log-likelihood, AIC and Schwarz. The formulas match spreg at 1e-9 at a given(lam, phi)(NCOVR Kansas / Missouri / Oklahoma / Arkansas, a symmetric rook lattice and a non-symmetric Columbus panel); the optimum comes from a nested bounded search instead of L-BFGS-B. The old parity note was wrong: spreg's likelihood does not depend on LAPACK's eigenvector signs. A symmetricWwith repeated eigenvalues uses the orthonormal eigenvectors (spreg'snumpy.linalg.eigbasis is then non-orthogonal and its objective is not a likelihood); a non-symmetricWwith repeated or complex eigenvalues raisesArgumentError.Spatex.Region.spenc/3ports spopt'sSpenc: spatially encouraged spectral clustering with thepairwise_kernelsaffinities,nearest_neighborsandprecomputed, andassign_labels: :discretize | :kmeans | :hierarchical. The affinity matrix, normalized Laplacian eigenvalues and embedding (up to eigenvector sign) match spopt, with a dense symmetric eigensolver in place of ARPACK; the randomized assignment uses seeded ChaCha8 and is validated statistically,:hierarchicalis exact (spopt 0.8.0 itself raisesTypeErrorthere). The result exposes the embedding and eigenvalues, optionally asNxtensors.Spatex.Regression.sur_lag_iv/4ports spreg'sSURlagIV: seemingly unrelated regressions with a spatial lag of the dependent variable in every equation, estimated by three-stage least squares withW X...W^p X(:w_lags) and, with:lag_q, the lags of the user instruments as instruments, plus optional user endogenous variables per equation. It reports the coefficients (rhoper equation),varb, standard errors and z statistics, the cross-equation covariance and correlation, the Chow tests and, withspat_diag: true, the Wald test that the spatial coefficients are jointly zero. Everything matches spreg at 1e-9. spreg computes no spatial impacts for this class.regimesis not ported, which completes the spatial SUR family.Spatex.Regression.sur_error_ml/4ports spreg'sSURerrorML: seemingly unrelated regressions with a spatial error parameter per equation, estimated by maximum likelihood (per-equation ML error starts, iterated SUR residuals, then SUR GLS steps alternated with a joint search of the lambdas), withvm, standard errors and z statistics, the likelihood-ratio tests of a diagonal covariance and of the spatial parameters, the asymptotic covariance of the lambdas and the error covariance, the Wald tests of equal and of jointly zero lambdas, and the cross-equation Chow tests. Everything matches spreg at 1e-9 given its lambda path; the lambdas are the tighter optimum (within 5e-5 of spreg's L-BFGS-B).regimesis not ported.Spatex.Regression.sur_error_gm/4ports spreg'sSURerrorGM: seemingly unrelated regressions with a spatial error parameter per equation, estimated by the Kelejian-Prucha moments of each equation's OLS residuals and one SUR GLS step on the spatially filtered variables, withvm, standard errors, z statistics, the lambdas, the error covariance and correlation and the cross-equation Chow tests. Everything but lambda matches spreg at 1e-9 given its lambdas; lambda is the exact moment minimizer (within ~5e-6 of spreg's L-BFGS-B).regimesis not ported.Spatex.Regression.three_sls/5ports spreg'sThreeSLS: three-stage least squares for a system of equations with per-equation endogenous variables and instruments (2SLS per equation, cross-equation covariance, one GLS step on the instrumented system), withvm, standard errors, z statistics, the error covariance and correlation and the cross-equation Chow tests, matching spreg at 1e-9.regimesis not ported.Spatex.Region.sa3/3ports spopt'sSA3: spatially constrained Ward clustering per connected component whose merge tree is cut with HDBSCAN-style extraction (:min_cluster_size,extraction: :eom | :leaf), returning contiguous multiscale clusters and noise (-1). Labels equal spopt's and the per-component linkage matrices (exposed incomponents) agree to 1e-12;min_cluster_sizebelow 2 raises (spopt returns non-contiguous clusters). The extraction is a Rust port offast_hdbscan's condensed-tree functions with itsfloat32arithmetic.Spatex.Regression.ml_lag_regimes/5ports spreg'sML_Lag_Regimes: the maximum-likelihood spatial lag model with coefficients by regime (constant_regi,cols2regi), onerhoon the regime design or, withregime_lag_sep, oneml_lag/4fit per regime on its subgraph;method: :full | :ord | :lu,epsilon,spat_impacts,pr2_eand Chow tests. Matches spreg on 29 committed fixture cases (at spreg'srhoto 1e-9; the Brent search to itsxatol); the Chow restrictions need nospreg_compatibleswitch becauserhonever precedes regime-specific columns.slx_lags,coresandvmare not ported and spreg's shape error for columns constant within a regime is replaced by dropping them with a warning.Spatex.Regression.ml_error_regimes/5ports spreg'sML_Error_Regimes(the last of the regimes models): the maximum-likelihood spatial error model with coefficients by regime (constant_regi,cols2regi), onelambdaon the regime design or, withregime_err_sep, oneml_error/4fit per regime on its subgraph;method: :full | :ord | :lu,epsilonand Chow tests. Matches spreg on 27 committed fixture cases (at spreg'slambdato 1e-9; the Brent search to itsxatol), including spreg's construction of the pooled lagged design (regimes(W X), notW regimes(X)), for which the native ML error fit gained an entry point taking the lagged design.slx_lags,coresandvmare not ported and spreg's shape error for columns constant within a regime is replaced by dropping them with a warning.Spatex.Region.random_region/2andrandom_regions/2port spopt'sRandomRegionandRandomRegions: random partitions of the areas with optional:num_regions,:cardinality, contiguity (pass aSpatex.Graph),:compact,:maxiterand:max_swaps, and:permutationsfor the plural, seeded with ChaCha8 (:seed, recorded; permutationiuses streami, so results are independent of the thread count). Infeasible requests returnfeasible: falseas in spopt. numpy's generator is not reproduced: tests check structure and compare summary distributions with spopt references. spopt's endless loops (num_regionsaboven - 1, no possible swap) raise or are bounded by:max_swaps.Spatex.PointPats.alpha_shape/2portslibpysal.cg.alpha_shape: the alpha shape of a point set as a list of WKB polygons (shells clockwise, holes counter-clockwise), assembled from the Delaunay boundary edges without GEOS. Polygon and hole counts, ring vertices and areas equal libpysal on committed fixtures (uniform, clustered, annulus, island-in-hole, two-blob and C-shaped sets);alpha = 0is the convex hull and degenerate input raisesArgumentError(documented deviations).Spatex.PointPats.alpha_shape_auto/2portslibpysal.cg.alpha_shape_auto: the tightest alpha shape that is one polygon containing every point, with:step,:return_radiusand:return_circles(bounding-circle centres). It follows libpysal's float comparison literally, so the oracle accepts any of libpysal's results under the six vertex orders of a triangle.Spatex.Graph.build_fuzzy_contiguity/2ports libpysal's fuzzy contiguity onPolygon/MultiPolygonWKB::tolerance(share of half the shorter side of the total bounds) or:buffer, and:predicate(:intersects,nilfor bounding boxes, and without a buffer:touches,:overlaps,:within,:contains,:covers,:covered_by,:contains_properly,:crosses). Without GEOS, a buffer is handled as an exact polygon-to-polygon distance test (distance <= 2 * buffer); neighbor sets match libpysal on columbus, sids2 and synthetic fixtures, except pairs within about 0.15 % below2 * buffer, where GEOS's chord-approximated buffers are smaller (documented deviation).Spatex.PointPats.normal/2andcluster_normal/2port pointpats'random.normalandrandom.cluster_normal: bivariate normal points truncated to a box or convex window (:center,:covas a variance or a 2 x 2 matrix,:size,:n_seeds,:seed), with seeded ChaCha8 streams per(seed, replication)independent of the thread count. pointpats is unseeded, so parity is statistical (sample moments and nearest-neighbour distances against summaries of pointpats realizations).Spatex.PointPats.strauss/2ports pointpats'random.strauss: the birth-death Metropolis-Hastings sampler with:gamma,:r,:n_iterand:max_iter,:size,:intensityand:seed, ChaCha8 streams per(seed, replication). Parity is statistical: close-pair counts and nearest-neighbour distances match summaries of pointpats realizations.Spatex.Regression.tsls_regimes/6ports spreg'sTSLS_Regimes: two-stage least squares with coefficients that vary by regime (constant_regi,cols2regiover the exogenous then endogenous columns, instruments always by regime,regime_err_sepwith one 2SLS per regime, White and HAC errors,sig2n_k) and the global and per-variable Chow tests, returned asSpatex.Regression.TSLSRegimes. It matches spreg to 1e-9 on committed Columbus fixtures;spat_diag,robust: 'ogmm',slx_lagsandTSLS_Endog_Regimesare not ported. spreg's Chow restrictions assume global columns come last and compare the wrong coefficients when exogenous columns are global and endogenous ones vary by regime; Spatex tests the right ones by default andspreg_compatible: truereproduces spreg's values.Spatex.Regression.gm_lag_regimes/5ports spreg'sGM_Lag_Regimes: the spatial lag model with coefficients that vary by regime (yend/q,w_lags,lag_q,constant_regi,cols2regi,regime_lag_sepwith one lag model per regime on the regime's subgraph or the pooled fit on the union of the subgraphs, White (default) and HAC errors,sig2n_k, Anselin-Kelejian test,pr2_e,spat_impacts, global and per-variable Chow tests), returned asSpatex.Regression.GMLagRegimes. It matches spreg to 1e-9 on 33 committed Columbus fixture cases;slx_lags,robust: 'ogmm'andGM_Lag_Endog_Regimesare not ported. The Chow layout defect oftsls_regimes/6also applies (global exogenous columns with a regime-specificW y); the samespreg_compatibleflag reproduces spreg.Spatex.Regression.gm_error_regimes/5andgm_combo_regimes/5port spreg'sGM_Error_Regimes,GM_Endog_Error_Regimes(withyend/q) andGM_Combo_Regimesfor the KP98 estimator: the spatial error and combo models with coefficients that vary by regime (constant_regi,cols2regi,regime_err_sepwith one error model per regime on the regime's subgraph,w_lags,lag_q,regime_lag_sep,pr2_e, global and per-variable Chow tests), returned asSpatex.Regression.GMErrorRegimesandGMComboRegimes. Lambda is the exact minimizer of the KP98 moment objective, so fits agree with spreg to ~1e-3 on 36 of 43 committed Columbus fixture cases; on seven, where spreg's L-BFGS-B stops away from its own minimizer (flat objective with binary weights), lambda is checked against the minimizer.slx_lagsandGMM_Error_Regimesare not ported. The Chow layout defect oftsls_regimes/6also applies to the endogenous and combo models (samespreg_compatibleflag); spreg fails with a shape error when a column is constant within a regime underregime_err_sep, Spatex drops it with a warning.gm_error_regimes/5andgm_combo_regimes/5acceptestimator: :hetand:hom, porting spreg'sGM_Error_Het_Regimes,GM_Endog_Error_Het_Regimes,GM_Combo_Het_Regimesand the three_Hom_classes with:max_iter,:epsilon,:step1c(:het) and:a1(:hom, default:hetas in spreg's regimes classes). The pooled fits reuse the base Het / Hom estimators on the regime design (second stage on the filtered base columns, spreg's iteration order and first-step-lambda quirks included) and the separate regressions fitgm_error/4/gm_combo/4per regime; covariances includelambda, which the separate Chow tests treat as one more coefficient. 108 Columbus fixture fits agree with spreg at 1e-8 when fed spreg's lambdas and at 1e-3 with the optimizer; spreg's +-0.9 clamp of the separateGM_Endog_Error_Hetfits (a defect) and its<r>lambdacoefficient names are not reproduced.Spatex.GWR.bandwidth_intervals/2ports mgwr'sget_bws_intervals(Akaike-weight confidence intervals for the selected bandwidth) for GWR (Bandwidth) and MGWR (MGWRResult, which now carriessel_hist, the history of every backfitting search); andSpatex.GWR.spatial_variability/4ports the Monte Carlo test of spatial variability (:permutations,:seed,:keep_simulationswithtrue,falseor:tensor). Intervals match mgwr to 1e-9 on committed fixtures (fixed bounds to the 0.005 rounding step); the observed statistic matches exactly and p-values agree within Monte Carlo bands (ChaCha8 streams). This completes the remaining mgwr features.Spatex.Inequality.atkinson/2,schutz/1,wolfson/1andlorenz_curve/1port the inequality package'sAtkinson,Schutz,wolfsonandlorenz_curve.atkinson/2andschutz/1returnSpatex.Inequality.Atkinson(a,ede,epsilon) andSpatex.Inequality.Schutz(distance,intersection_point,coefficient) structs. All match PySAL to 1e-9 on committed fixtures;penandpengram(matplotlib charts) are not ported.Spatex.Inequality.polarization/3ports the spatial polarization indexinequality.polarization.S: quantile (:k) or explicit (:bins) groups, the number of connected same-group components of the graph, and a seeded permutation null (:permutations, default 999,:seed,:keep_simulationswithtrue,falseor:tensor, defaulttrue). The statistic, component counts and labels match PySAL exactly; the p-value is statistical (ChaCha8 streams).Spatex.Dynamics.kullback/2ports giddy's Kullback information test of Markov homogeneity. It takes a list ofr x rcount matrices, a rank-3 tensor or aSpatialMarkovresult. giddy sums one term over the wrong axis, so its value is wrong unless every stratum has equal row and column totals; Spatex computes Kullback's formula andgiddy_compatible: truereproduces giddy's value.Spatex.GWR.predict/6predicts at new locations (mgwrGWR.predict): local coefficients, standard errors, t-values, predictions and, for the Gaussian family, local R-squared, for the Gaussian, Poisson and binomial families, with the calibration scale and residuals taken from a fit or passed asexog_scale/exog_resid. It supports more prediction points than observations, which mgwr does not.Spatex.GWR.local_collinearity/3returns the local correlations, variance inflation factors, condition numbers and variance-decomposition proportions of the geographically weighted design (GWRResults.local_collinearity), and withbws:the condition numbers and proportions of an MGWR design (MGWRResults.local_collinearity). mgwr has no local condition-number warning, so none is added.Spatex.GWR.fit/4takeshat_matrix: trueor:tensorto keep the fulln x nhat matrixSinresult.hat_matrix(GWR(hat_matrix=True)), guarded bymax_cells(default 4,000,000). It matches mgwr to 1e-8 for the Gaussian, Poisson and binomial families and is off by default, so a normal fit keeps itsO(n k)memory.Spatex.GWR.select_bandwidth/4takessearch: :scipy, mgwr'ssearch_method='scipy'(SciPy's bounded Brent minimizer, a literal port shared with the spreg ML models); the result carries SciPy's floatbw,nfevandconverged. mgwr 2.2.1 crashes with NumPy 2.5 for the AICc, AIC and BIC criteria here; Spatex follows mgwr's algorithm.Spatex.GWR.select_bandwidth/4takesx_glob:, mgwr'sSel_BW(X_glob=...): its columns only raise the default adaptive lower bound40 + 2 * (columns + 1), as in mgwr, which has no semi-parametric fit.Spatex.Graph.to_sparse/1exports the graph as the CSR structure of libpysal'sGraph.sparse:%{indptr: _, indices: _, data: _, shape: {n, n}}withNxtensors (indptr{:s, 64},indices{:u, 32},data{:f, 64}). It stores exactly libpysal's entries (island self-loops and explicit zero weights are explicit zeros, indices sorted within rows) and reflects the current transform. Needs the optional:nxdependency and raises anArgumentErrornaming{:nx, "~> 0.10"}without it.keep_simulations: :tensorreturns the kept simulations as anNx.Tensorof type{:f, 64}built straight from the native binary, with no list decoding and the same shape as the list form. It is accepted wherever:keep_simulationswas: theSpatex.ESDAglobal and local statistics,Spatex.Dynamicslocal and regional tau,Spatex.Inequality.spatial_gini/3and theSpatex.PointPatsdistance tests.trueandfalseand the defaults are unchanged. At n=10,000 with 999 permutations, local Moran with:tensortakes 134 ms against 3.03 s fortrue. Needs the optional:nxdependency.
[0.1.1] - 2026-11-12
Release-tooling fix. The library code is the same as in 0.1.0.
Fixed
- The "Release NIFs" workflow now builds every precompiled NIF artifact (six targets, NIF 2.16 and
2.17) and attaches it to the GitHub release. The 0.1.0 release has no NIF artifacts because the
workflow failed on its first run:
spatex_nativenow declares thenif_version_2_15,nif_version_2_16andnif_version_2_17features, whichrustler_precompiledhas needed since Rustler 0.30;- non-cross jobs no longer pass
use-crossas the string"false", which made the action install the Linuxcrossbinary on Windows and macOS; - macOS jobs moved from the retired
macos-13andmacos-14images tomacos-15-intelandmacos-15.
Changed
- The release workflow also runs as a dry run, without touching a release, on pull requests that
change the build inputs and on demand (
workflow_dispatch).
[0.1.0] - 2026-11-12
First release: a PySAL-style spatial analysis toolbox for Elixir with a pure-Rust core
(spatex_core) behind a thin Rustler NIF layer. Statistics are verified against PySAL fixtures
(to 1e-9 where deterministic; permutation inference statistically); permutations are seeded and
identical at any thread count. See docs/parity.md for the function-level mapping
and every known deviation, and docs/benchmarks.md for timings.
Added
- Spatial graphs (
Spatex.Graph, libpysal): construction from arrays and adjacency lists, R/B/D/V transforms, spatial lag, cardinalities, isolates, S0-S2, symmetry checks; queen/rook and block contiguity from WKB polygons, k-nearest neighbors, distance bands, kernel weights, Delaunay/Gabriel/relative-neighborhood triangulation; haversine (great-circle, km) KNN and distance bands; seeded jitter for coincident points; Voronoi weights (bounding-box, convex-hull or extended clipping); strict (exact-predicate) and perimeter-weighted contiguity; vertex contiguity for lines; GAL and GWT read and write. - Global ESDA (
Spatex.ESDA, esda): Moran's I (univariate, bivariate, rates), Geary's C, Getis-Ord G and join counts with analytic and seeded permutation inference. - Local ESDA: local Moran (univariate and bivariate, cluster labels), local Geary, G and G*,
local join counts (univariate, bivariate and multivariate), multivariate local Geary, LOSH,
island_weightfor islands in conditional permutations and false discovery rate cut-offs. - Map classification (
Spatex.Classify, mapclassify): equal interval, quantiles, box plot, standard deviation, percentiles, maximum breaks, head/tail breaks, user defined, Fisher-Jenks (exact and sampled), Jenks-Caspall variants, natural breaks, Max-P (numpy's MT19937 reproduced) and pretty breaks, plusgadf/2andk_classifiers/2. - Point patterns (
Spatex.PointPats, pointpats): centrography, G/F/J/K/L functions with seeded simulation envelopes, Poisson and cluster Poisson processes, quadrat tests. - Spatial regression (
Spatex.Regression, spreg): OLS with non-spatial and spatial diagnostics, White and HAC robust errors, LM tests; maximum-likelihood spatial lag and error models (full and Ord log-determinant methods, spatial impacts); GM estimators (gm_lag,gm_errorwith KP98, heteroskedastic and homoskedastic variants,gm_combo, 2SLS with endogenous regressors); SLX / spatial Durbin terms (slx_lags,slx_vars); OLS with regimes and Chow tests; panel ML lag and error models with fixed effects and the lag model with random effects; seemingly unrelated regressions (SUR) with LR, Breusch-Pagan LM, Chow (Wald) and spatial LM tests. - Geographically weighted regression (
Spatex.GWR, mgwr): Gaussian, Poisson and binomial GWR and MGWR with bandwidth selection (bisquare, Gaussian, exponential kernels; fixed or adaptive; AICc, AIC, BIC, CV). - Regionalization (
Spatex.Region, spopt): SKATER, spatial Ward, Region-K-Means, AZP (basic, tabu and simulated annealing) and Max-p, with objective and contiguity helpers. - Dynamics and inequality (
Spatex.Dynamics,Spatex.Inequality, giddy, inequality): Markov chains, spatial Markov with homogeneity tests, LISA Markov, steady state and first passage times, full-rank and geographic-rank Markov, Kendall (O(n log n)), spatial, local, neighbor, neighborhood and regional tau, LISA spillover, theta, Gini, Theil with decomposition, spatial Gini. - Integration: optional
Spatex.GeoFrameadapter,Spatex.Explorer.to_dataframe/2, Nx and Explorer inputs (series, label series and data frames for panels), and Livebook notebooks (notebooks/). - API conventions (see docs/architecture.md): every
entry point takes an optional keyword list with unknown keys rejected;
seed: nildraws a seed that is recorded in the result;:permutationsis the one simulation-count name; local ESDA defaults tokeep_simulations: false. - Native guards:
max_cells/max_edgeslimits on dense and graph allocations, and long-running NIFs scheduled on dirty CPU schedulers. - Release tooling: Benchee benchmarks against PySAL (
bench/, results in docs/benchmarks.md),rustler_precompiledscaffolding with a tag-triggered release workflow, and a Hex package definition. Spatex compiles the NIF from source until a checksum file for the release artifacts is published (Rust toolchain required).
Requirements
Elixir ~> 1.17, Erlang/OTP 27+, and (until precompiled NIFs are usable) Rust 1.91 or newer.
Known limitations
- Local ESDA with
keep_simulations: truedecodes the full simulation matrix into nested Elixir lists, which is slow and memory-heavy for large n (about 3 s at n=10,000 with 999 permutations). The default iskeep_simulations: false. - Precompiled NIFs could not be downloaded yet, so a Rust toolchain was still required. Spatex was not published to Hex.
Not included yet
Fuzzy contiguity, regimes for the spatial regression models, ML_ErrorRE, spatial SUR and three-stage least squares, reactive tabu AZP, and the other PySAL variants listed as planned or not ported in the parity matrix.