MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_vec_norm_f32

Function ggml_vec_norm_f32

ggml.c:1394–1394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1392}
1393
1394inline static void ggml_vec_norm_f32 (const int n, float * s, const float * x) { ggml_vec_dot_f32(n, s, x, x); *s = sqrtf(*s); }
1395inline static void ggml_vec_sqr_f32 (const int n, float * y, const float * x) { for (int i = 0; i < n; ++i) y[i] = x[i]*x[i]; }
1396inline static void ggml_vec_sqrt_f32 (const int n, float * y, const float * x) { for (int i = 0; i < n; ++i) y[i] = sqrtf(x[i]); }
1397inline static void ggml_vec_log_f32 (const int n, float * y, const float * x) { for (int i = 0; i < n; ++i) y[i] = logf(x[i]); }

Callers 2

ggml_vec_norm_inv_f32Function · 0.70
ggml_opt_lbfgsFunction · 0.70

Calls 1

ggml_vec_dot_f32Function · 0.70

Tested by

no test coverage detected