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

Function is_vector

dlib/cuda/tensor.h:227–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225// ----------------------------------------------------------------------------------------
226
227 inline bool is_vector (
228 const tensor& t
229 )
230 {
231 return t.size() == (size_t)t.num_samples() ||
232 t.size() == (size_t)t.k() ||
233 t.size() == (size_t)t.nr() ||
234 t.size() == (size_t)t.nc();
235 }
236
237// ----------------------------------------------------------------------------------------
238

Callers 15

scale_columnsFunction · 0.70
scale_rowsFunction · 0.70
scale_rows2Function · 0.70
solve_least_squaresFunction · 0.50
solve_least_squares_lmFunction · 0.50
add_image_rotationsFunction · 0.50
is_ranking_problemFunction · 0.50

Calls 5

sizeMethod · 0.45
num_samplesMethod · 0.45
kMethod · 0.45
nrMethod · 0.45
ncMethod · 0.45

Tested by

no test coverage detected