tarf_monte_carlo 3.39 → 3.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/tarf_monte_carlo/tarf_monte_carlo.c +3 -1
- data/lib/tarf_monte_carlo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f231f81b4a9ab34e54066bb8ea45ec98a3a61f84380c30efc0d7c8f9f4f53f68
|
4
|
+
data.tar.gz: eb3ca69c30ddbf3fdae6ce5f36a5c5a528e968482e5f21f140913a8b2e582721
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45c17a468210171ec2c7eff76561c0233940ae8567a0429f5659b8cb50b4072de504357913a2dfb983bf1aabc864aaaca05324aa53cf8f2785315d021482befe
|
7
|
+
data.tar.gz: 33abb3608d5f192a993c9262e67375a40050c26bdc204a373eae876f0b457cb1739a35898198f4ba47103e93e2f71bc69f0d184e83002e0d4e02c142d56ee1ce
|
@@ -652,7 +652,9 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) {
|
|
652
652
|
//
|
653
653
|
// free your arrays from memory once you're done using them
|
654
654
|
//
|
655
|
-
|
655
|
+
int dp = (KType == FX_AMERICAN_BARRIER_KNOCKIN_DISCRETE || KType == FX_AMERICAN_BARRIER_KNOCKOUT_DISCRETE) ? 3 : DATAPOINTS;
|
656
|
+
|
657
|
+
for(metric = 0; metric < dp; metric++) {
|
656
658
|
free( metrics[metric] );
|
657
659
|
}
|
658
660
|
free(metrics);
|