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

Method timesSquareMatrix

Regression/DenseVector.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106
107void DenseVector::timesSquareMatrix(DenseVector &v, double **cov) const
108 {
109 v.alloc( this->getSize() );
110 for (int cnt = 0; cnt < getSize(); ++cnt)
111 {
112 double s = 0;
113 for (int cp = 0; cp < getSize(); ++cp)
114 s += getValue(cp) * cov[cp][cnt];
115 v.setAt( cnt, s );
116 }
117}
118
119
120

Callers 1

mieFunction · 0.80

Calls 3

getSizeMethod · 0.95
allocMethod · 0.45
setAtMethod · 0.45

Tested by

no test coverage detected