forked from lance-format/lance-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
102 lines (82 loc) · 3.22 KB
/
Copy pathCargo.toml
File metadata and controls
102 lines (82 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[package]
name = "perturbation-sim"
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
description = "Spectral + edge-propagation outage simulator: models the perturbation SHAPE of a cascading grid failure. Weyl/Davis-Kahan eigenvalue-perturbation of the weighted graph Laplacian (a line trip = low-rank perturbation E) composed with a DC-power-flow / LODF cascade. Standalone, zero-dep, deterministic — the applied companion to lance-graph crates/jc (jc::weyl = equidistribution; this crate is the missing eigenvalue-perturbation pillar) and jc::ewa_sandwich (edge propagation)."
# Standalone research crate (excluded from the lance-graph workspace, like jc /
# sigker / helix). Verify with:
# cargo test --manifest-path crates/perturbation-sim/Cargo.toml
# cargo run --manifest-path crates/perturbation-sim/Cargo.toml --example simulate
[features]
# Route the Morton/Walsh pyramid transform through ndarray's SIMD
# (AVX-512 under x86-64-v4) Walsh–Hadamard. AMX is int8/bf16 tile-GEMM and is
# NOT used (this crate's WHT is f32, its field tier f64). Default OFF → stays
# zero-dep with the scalar `fwht` fallback. Build accelerated with:
# RUSTFLAGS='-C target-cpu=x86-64-v4' cargo … --features ndarray-simd
# (or target-cpu=native locally). All SIMD comes from `ndarray::simd` per the
# workspace rule — never raw intrinsics here.
ndarray-simd = ["dep:ndarray"]
[dependencies]
# The AdaWorldAPI fork ("The Foundation"), optional + behind `ndarray-simd`.
# Sourced by GIT (not a local path): an optional *path* dep is read at manifest
# resolution, so a clean checkout without the sibling `../../../ndarray` fails
# even with the feature OFF — breaking the zero-dep default (codex P2 on #504,
# the helix-#460 lesson). A git source resolves remotely and is only fetched/
# built when `ndarray-simd` activates it. Local-dev alternative: swap to
# ndarray = { path = "../../../ndarray", optional = true, default-features = false, features = ["std"] }
ndarray = { git = "https://github.com/AdaWorldAPI/ndarray.git", branch = "master", optional = true, default-features = false, features = ["std"] }
[lib]
name = "perturbation_sim"
path = "src/lib.rs"
[[example]]
name = "simulate"
path = "examples/simulate.rs"
[[example]]
name = "iberian"
path = "examples/iberian.rs"
[[example]]
name = "validate"
path = "examples/validate.rs"
[[example]]
name = "weakest_links"
path = "examples/weakest_links.rs"
[[example]]
name = "hhtl_levels"
path = "examples/hhtl_levels.rs"
[[example]]
name = "reinforce"
path = "examples/reinforce.rs"
[[example]]
name = "hhtl_resident"
path = "examples/hhtl_resident.rs"
[[example]]
name = "meta_hops"
path = "examples/meta_hops.rs"
[[example]]
name = "validate_mediators"
path = "examples/validate_mediators.rs"
[[example]]
name = "rolling_floor"
path = "examples/rolling_floor.rs"
[[example]]
name = "modifier_validity"
path = "examples/modifier_validity.rs"
[[example]]
name = "resilience"
path = "examples/resilience.rs"
[[example]]
name = "buffer"
path = "examples/buffer.rs"
[[example]]
name = "explore"
path = "examples/explore.rs"
[[example]]
name = "scorecard"
path = "examples/scorecard.rs"
[[example]]
name = "calibrate"
path = "examples/calibrate.rs"
[[example]]
name = "hhtl_grid"
path = "examples/hhtl_grid.rs"