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

Function assign_no_blas

dlib/test/matrix3.cpp:72–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71 template <typename T, typename U>
72 void assign_no_blas (
73 const T& a_,
74 const U& b
75 )
76 {
77 T& a = const_cast<T&>(a_);
78 DLIB_TEST(a.nr() == b.nr());
79 DLIB_TEST(a.nc() == b.nc());
80 for (long r = 0; r < a.nr(); ++r)
81 {
82 for (long c = 0; c < a.nc(); ++c)
83 {
84 a(r,c) = b(r,c);
85 }
86 }
87 }
88
89 template <typename type>
90 type rnd_num (dlib::rand& rnd)

Callers 1

test_blasFunction · 0.85

Calls 2

nrMethod · 0.45
ncMethod · 0.45

Tested by

no test coverage detected