MCPcopy Create free account
hub / github.com/davisking/dlib / dense_to_sparse

Method dense_to_sparse

dlib/test/statistics.cpp:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 }
176
177 std::map<unsigned long,double> dense_to_sparse (
178 const matrix<double,0,1>& x
179 )
180 {
181 std::map<unsigned long,double> temp;
182 for (long i = 0; i < x.size(); ++i)
183 temp[i] = x(i);
184 return temp;
185 }
186
187 void test_running_cross_covariance_sparse()
188 {

Callers

nothing calls this directly

Calls 2

xFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected