MCPcopy Create free account
hub / github.com/bab2min/tomotopy / getHash

Method getHash

src/TopicModel/TopicModel.hpp:949–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947 }
948
949 std::array<uint64_t, 2> getHash() const override
950 {
951 std::array<uint64_t, 2> ret;
952 ret[0] = dict.computeHash(0);
953 const std::string s = static_cast<const _Derived*>(this)->tmid().str() + static_cast<const _Derived*>(this)->twid().str();
954 ret[0] = serializer::computeHashMany(ret[0], s, realV, globalStep, docs.size());
955 ret[1] = globalState.computeHash(0);
956 ret[1] = static_cast<const _Derived*>(this)->computeHash(ret[1]);
957 return ret;
958 }
959 };
960
961}

Callers

nothing calls this directly

Calls 6

computeHashManyFunction · 0.85
strMethod · 0.80
computeHashMethod · 0.45
tmidMethod · 0.45
twidMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected