[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 07c029f 2/8: Improve documentation
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 07c029f 2/8: Improve documentation |
Date: |
Thu, 9 Apr 2020 18:33:04 -0400 (EDT) |
branch: master
commit 07c029f1da983c54f20e6886579e7357d5473e42
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Improve documentation
Obviously what is meant is not
X←(⍴X)↑Y
but rather
X[⍳⍴Y]←Y
---
ledger_invariant.cpp | 2 ++
ledger_variant.cpp | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ledger_invariant.cpp b/ledger_invariant.cpp
index d36c60b..81a1b15 100644
--- a/ledger_invariant.cpp
+++ b/ledger_invariant.cpp
@@ -776,6 +776,8 @@ LedgerInvariant& LedgerInvariant::PlusEq(LedgerInvariant
const& a_Addend)
// answer--e.g., for ratios like 'CorridorFactor', where an
// average weighted by number of lives would be inaccurate,
// and any aggregate value could be misleading.)
+ //
+ // ET !! This is of the form 'x[iota rho y] gets y'.
for(int j = 0; j < a_Addend.Length; ++j)
{
AnnLoanDueRate[j] = a_Addend.AnnLoanDueRate[j];
diff --git a/ledger_variant.cpp b/ledger_variant.cpp
index 645fd0d..f57649a 100644
--- a/ledger_variant.cpp
+++ b/ledger_variant.cpp
@@ -204,7 +204,7 @@ LedgerVariant& LedgerVariant::PlusEq
InitTgtPremHiLoadRate = std::max(InitTgtPremHiLoadRate,
a_Addend.InitTgtPremHiLoadRate);
InitMlyPolFee = std::max(InitMlyPolFee ,
a_Addend.InitMlyPolFee );
InitAnnLoanCredRate = a_Addend.InitAnnLoanCredRate;
- // ET !! This is of the form 'x = (lengthof x) take y'.
+ // ET !! This is of the form 'x[iota rho y] gets y'.
for(int j = 0; j < a_Addend.Length; ++j)
{
MlySAIntRate [j] = a_Addend.MlySAIntRate
[j];
- [lmi-commits] [lmi] master updated (655648d -> dfb045a), Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master 859240e 1/8: Remove unneeded assertion and conditional, Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master 840fd2f 4/8: Treat LedgerInvariant::Salary as forborne, Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master 07c029f 2/8: Improve documentation,
Greg Chicares <=
- [lmi-commits] [lmi] master ce789de 3/8: Treat 'AddonMonthlyFee' as a BOY vector, Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master 9cd8cf7 7/8: Refactor: composite 'OtherVectors' in LedgerBase::PlusEq(), Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master ab9d0d1 6/8: Truncate GPT corridor factors at maturity age [349], Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master 46b9de9 5/8: Regularize compositing of non-additive vectors, Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master dfb045a 8/8: Move a block of code, Greg Chicares, 2020/04/09