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

Function assign

dlib/svm/sparse_vector.h:155–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154 template <typename T, typename EXP>
155 typename enable_if<is_matrix<T> >::type assign (
156 T& dest,
157 const matrix_exp<EXP>& src
158 )
159 {
160 // make sure requires clause is not broken
161 DLIB_ASSERT(is_vector(src),
162 "\t void assign(dest,src)"
163 << "\n\t the src matrix must be a row or column vector"
164 );
165
166 dest = src;
167 }
168
169 template <typename T, typename EXP>
170 typename disable_if<is_matrix<T> >::type assign (

Callers 7

separation_oracleMethod · 0.70
do_trainMethod · 0.70
trainMethod · 0.70
do_trainMethod · 0.70
trainMethod · 0.70
assignMethod · 0.50

Calls 7

is_vectorFunction · 0.50
clearMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
assignMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected