MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / timesMatrix

Method timesMatrix

Regression/DenseVector.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92void DenseVector::timesMatrix(DenseVector &v, const DenseVector *w) const {
93
94 const int dim = w[0].getSize();
95 v.alloc( dim );
96 for (int cnt = 0; cnt < dim; ++cnt)
97 {
98 double s = 0;
99 for (int cp = 0; cp < this->getSize(); ++cp)
100 s += this->getValue(cp) * w[cp].getValue(cnt);
101 v.setAt( cnt, s );
102 }
103}
104
105
106

Callers 4

Compute_RSLmLagFunction · 0.80
Compute_RSLmLagRobustFunction · 0.80
Compute_RSLmErrorRobustFunction · 0.80
Compute_RSLmSarmaFunction · 0.80

Calls 5

getSizeMethod · 0.95
getValueMethod · 0.95
getSizeMethod · 0.45
allocMethod · 0.45
setAtMethod · 0.45

Tested by

no test coverage detected