diff options
author | Erik Hallnor <ehallnor@umich.edu> | 2003-10-22 00:23:24 -0400 |
---|---|---|
committer | Erik Hallnor <ehallnor@umich.edu> | 2003-10-22 00:23:24 -0400 |
commit | 4709c41d741736f114a6fc5d34900b9f3b3bd893 (patch) | |
tree | 03b3f08ba70ba19c736cc9426e686065f43e154d | |
parent | 26ababf2f27e75a42a10f3ee54b706d786c37f70 (diff) | |
parent | a7c88ad2aef0ea8e743754ea93a0b4bcaf5bdc97 (diff) | |
download | gem5-4709c41d741736f114a6fc5d34900b9f3b3bd893.tar.xz |
Merge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5
--HG--
extra : convert_revision : c703dff6f52bd994f95597d824997adb125d3194
-rw-r--r-- | base/statistics.hh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/base/statistics.hh b/base/statistics.hh index 07d248294..a5fc5c6b5 100644 --- a/base/statistics.hh +++ b/base/statistics.hh @@ -2578,12 +2578,20 @@ class Formula : public Detail::VectorStat } /** - * Return the vector of values of this formula. + * Return the result of the Fomula in a vector. If there were no Vector + * components to the Formula, then the vector is size 1. If there were, + * like x/y with x being a vector of size 3, then the result returned will + * be x[0]/y, x[1]/y, x[2]/y, respectively. * @return The result vector. */ const rvec_t &val() const { return root->val(); } /** - * Return the total of the result vector. + * Return the total Formula result. If there is a Vector component to this + * Formula, then this is the result of the Formula if the formula is applied + * after summing all the components of the Vector. For example, if Formula + * is x/y where x is size 3, then total() will return (x[1]+x[2]+x[3])/y. If there is no + * Vector component, total() returns the same value as the first entry in the rvec_t + * val() returns. * @return The total of the result vector. */ result_t total() const { return root->total(); } |