MCPcopy Create free account
hub / github.com/MegEngine/MegCC / init_inter_tab_1d

Function init_inter_tab_1d

compiler/script/tool/cv_remap_table.cpp:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 coeffs[1] = x;
33}
34static inline void init_inter_tab_1d(float* tab, int tabsz) {
35 float scale = 1.f / tabsz;
36 for (int i = 0; i < tabsz; ++i, tab += 2)
37 interpolate_linear(i * scale, tab);
38}
39
40static short* get_table() {
41 const int ksize = 2;

Callers 1

get_tableFunction · 0.85

Calls 1

interpolate_linearFunction · 0.85

Tested by

no test coverage detected