[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 8c232b7 1/3: Expunge old implementation
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 8c232b7 1/3: Expunge old implementation |
Date: |
Sun, 14 Mar 2021 19:46:04 -0400 (EDT) |
branch: master
commit 8c232b71ae20195402d462f1c12f0049a0acc35a
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Expunge old implementation
---
i7702.cpp | 45 ---------------------------------------------
1 file changed, 45 deletions(-)
diff --git a/i7702.cpp b/i7702.cpp
index edabb42..4b21ca3 100644
--- a/i7702.cpp
+++ b/i7702.cpp
@@ -361,52 +361,7 @@ i7702::i7702
constexpr double tolerance {0.0000001};
LMI_ASSERT(no_naar_discount || mm < tolerance);
-#if 1 // 7702 !! remove
- // Here begin the dubious calculations that will be replaced.
- std::vector<double> guar_int = Bgen_;
- assign(guar_int, Max(guar_int, Bflr_));
-
- assign
- (gross_
- ,apply_unary
- (i_upper_12_over_12_from_i<double>()
- ,Max(A0_, guar_int)
- )
- );
-
- assign
- (net_glp_
- ,apply_unary
- (i_upper_12_over_12_from_i<double>()
- ,Max(A0_, guar_int) - Dsep_
- )
- );
-
- assign
- (net_gsp_
- ,apply_unary
- (i_upper_12_over_12_from_i<double>()
- ,Max(A1_, guar_int) - Dsep_
- )
- );
-
- std::vector<double> operative_naar_discount(length_);
- operative_naar_discount +=
- Max
- (i_upper_12_over_12_from_i<double>()(A0_)
- ,Max(Em_, theoretical_naar_discount)
- );
- ig_ = no_naar_discount ? zero : operative_naar_discount;
-#endif // 1 // 7702 !! remove
-
initialize();
-#if 1 // 7702 !! remove
- // Test old implementation against new.
- LMI_ASSERT(ic_usual_ == gross_ );
- LMI_ASSERT(ic_glp_ == net_glp_);
- LMI_ASSERT(ic_gsp_ == net_gsp_);
- LMI_ASSERT(ig_usual_ == ig_ );
-#endif // 1 // 7702 !! remove
// 7702 !! Temporarily assign new results to old member variables.
gross_ = ic_usual_;
net_glp_ = ic_glp_ ;