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

Function zero_matrix

dlib/matrix/matrix_assign.h:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31 template <typename T>
32 void zero_matrix (
33 T& m
34 )
35 {
36 for (long r = 0; r < m.nr(); ++r)
37 {
38 for (long c = 0; c < m.nc(); ++c)
39 {
40 m(r,c) = 0;
41 }
42 }
43 }
44
45 // ------------------------------------------------------------------------------------
46

Callers 3

DLIB_ADD_BLAS_BINDINGFunction · 0.85
assignMethod · 0.85

Calls 2

nrMethod · 0.45
ncMethod · 0.45

Tested by

no test coverage detected