Skip to content

Commit 2ce548e

Browse files
committed
chore: remove macos blas
1 parent abe41e1 commit 2ce548e

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ ndarray = { version = "0.16.1", features = [
4242
"blas",
4343
] }
4444
ndarray-linalg = { version = "0.17.0" }
45-
ndarray-npy = "0.9.1"
4645
ndarray-rand = "0.15.0"
4746
ndarray-stats = "0.6.0"
4847
ndrustfft = "0.5.0"
@@ -82,9 +81,6 @@ malliavin = []
8281
mimalloc = ["dep:mimalloc"]
8382
yahoo = ["dep:time", "dep:yahoo_finance_api", "dep:polars"]
8483

85-
[target.'cfg(target_os = "macos")'.dependencies]
86-
ndarray-linalg = { version = "0.17.0", features = ["openblas-static"] }
87-
8884
[lib]
8985
name = "stochastic_rs"
9086
crate-type = ["cdylib", "lib"]

src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::fs::File;
55
use std::io::{BufRead, BufReader};
66
use std::time::Instant;
77
use stochastic_rs::plot_1d;
8+
use stochastic_rs::stochastic::diffusion::ou::OU;
89
use stochastic_rs::stochastic::noise::fgn::FGN;
910
use stochastic_rs::stochastic::SamplingExt;
1011
// use stochastic_rs::stochastic::noise::fgn::FGN;
@@ -17,8 +18,13 @@ use stochastic_rs::stats::fou_estimator::{
1718

1819
// Import your estimator modules and types here
1920
// use your_crate::{FOUParameterEstimationV1, FOUParameterEstimationV2, FilterType};
20-
const N: usize = 10000;
21+
const N: usize = 500_000;
2122
fn main() -> Result<(), Box<dyn Error>> {
23+
let ou = OU::new(1.0, 1.0, 1.0, N, None, None, None);
24+
let start = Instant::now();
25+
ou.sample();
26+
let end = start.elapsed().as_nanos();
27+
println!("OU generated in: {end} ns");
2228
// let fbm = FGN::new(0.7, 10_000, Some(1.0), Some(10000));
2329
// let fgn = fbm.sample_cuda().unwrap();
2430
// let fgn = fgn.row(0);

src/quant/calibration.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pub mod bsm;
22
pub mod heston;
3+
pub mod sabr;

src/quant/calibration/sabr.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub struct SabrCalibrator {
2+
// Define fields here
3+
}

0 commit comments

Comments
 (0)