MCPcopy Create free account
hub / github.com/Singular/Singular / getUtility

Method getUtility

kernel/linear_algebra/Minor.cc:926–937  ·  view source on GitHub ↗

this is for generically accessing the rank measure regardless of which strategy has been set */

Source from the content-addressed store, hash-verified

924/* this is for generically accessing the rank measure regardless of
925 which strategy has been set */
926int MinorValue::getUtility () const
927{
928 switch (this->GetRankingStrategy())
929 {
930 case 1: return this->rankMeasure1();
931 case 2: return this->rankMeasure2();
932 case 3: return this->rankMeasure3();
933 case 4: return this->rankMeasure4();
934 case 5: return this->rankMeasure5();
935 default: return this->rankMeasure1();
936 }
937}
938
939/* here are some sensible caching strategies: */
940int MinorValue::rankMeasure1 () const

Callers 2

putMethod · 0.80
toStringMethod · 0.80

Calls 6

GetRankingStrategyMethod · 0.95
rankMeasure1Method · 0.95
rankMeasure2Method · 0.95
rankMeasure3Method · 0.95
rankMeasure4Method · 0.95
rankMeasure5Method · 0.95

Tested by

no test coverage detected