[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 9695e9e 112/156: Create InitAnnLoanDueRate ve
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 9695e9e 112/156: Create InitAnnLoanDueRate vector in addition to the scalar |
Date: |
Tue, 30 Jan 2018 17:22:23 -0500 (EST) |
branch: master
commit 9695e9e09b861495275182cff59c9db1959fa990
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>
Create InitAnnLoanDueRate vector in addition to the scalar
This variable is used for some columns in PDF illustrations and it seems
to be simpler and better to create a vector duplicating the value of the
existing scalar rather than handling both scalars and vectors in the
illustration generation code.
---
ledger_evaluator.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ledger_evaluator.cpp b/ledger_evaluator.cpp
index b3fa6c0..dbc1347 100644
--- a/ledger_evaluator.cpp
+++ b/ledger_evaluator.cpp
@@ -607,6 +607,14 @@ ledger_evaluator Ledger::make_evaluator() const
vectors["AttainedAge"] = &AttainedAge;
vectors["PolicyYear" ] = &PolicyYear ;
+ std::vector<double> InitAnnLoanDueRate(max_duration);
+ std::fill
+ (InitAnnLoanDueRate.begin()
+ ,InitAnnLoanDueRate.end()
+ ,ledger_invariant_->GetInitAnnLoanDueRate()
+ );
+ vectors["InitAnnLoanDueRate"] = &InitAnnLoanDueRate;
+
vectors["InforceLives"] = &ledger_invariant_->InforceLives;
vectors["FundNumbers" ] = &ledger_invariant_->FundNumbers ;
- [lmi-commits] [lmi] master bbada54 084/156: Add image to the columns headings page too, (continued)
- [lmi-commits] [lmi] master bbada54 084/156: Add image to the columns headings page too, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 3cf5a1c 056/156: Add wx_table_generator::output_super_header(), Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 95e616e 105/156: Add wx_table_generator::columns_count() accessor, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 3f1d437 088/156: Add add_abbreviated_variable() helper, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 118a249 097/156: Add "Column Definitions and Key Terms" page to NASD illustrations, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 1ab47c0 063/156: Fix definition of integer-valued variable in PDF illustrations, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master bb21f4d 077/156: Fix header for composite illustrations, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master d2b2cae 038/156: Change column_headings page to use external template, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 2bb1c91 041/156: Remove unnecessary outer html and body tags, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 1afd45c 040/156: Avoid spurious coding style violation, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 9695e9e 112/156: Create InitAnnLoanDueRate vector in addition to the scalar,
Greg Chicares <=
- [lmi-commits] [lmi] master 5f6dc89 131/156: Use string objects for illustration_table_column fields, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master fb01571 035/156: Pass what is being expanded to interpolation function, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master fc6d8b7 034/156: Implement the "Columns Headings" page, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 46788b8 119/156: Start implementing individual private placement illustration kind, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 1287474 114/156: Start private group placement illustration class implementation, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 0f78daf 050/156: Compute the footer size in page_with_footer::pre_render(), Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 6b3b5b2 054/156: Factor out illustration_table_generator from tabular_detail2_page, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 23d26f8 055/156: Factor out reusable page_with_tabular_report class, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master f484622 044/156: Only show numeric summary if not in force, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 67db94b 042/156: Implement more of numeric summary page, Greg Chicares, 2018/01/30