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

Function ggml_vec_set_f16

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

Source from the content-addressed store, hash-verified

1136inline static void ggml_vec_set_i32(const int n, int32_t * x, const int32_t v) { for (int i = 0; i < n; ++i) x[i] = v; }
1137
1138inline static void ggml_vec_set_f16(const int n, ggml_fp16_t * x, const int32_t v) { for (int i = 0; i < n; ++i) x[i] = v; }
1139
1140inline static void ggml_vec_add_f32 (const int n, float * z, const float * x, const float * y) { for (int i = 0; i < n; ++i) z[i] = x[i] + y[i]; }
1141inline static void ggml_vec_add1_f32(const int n, float * z, const float * x, const float v) { for (int i = 0; i < n; ++i) z[i] = x[i] + v; }

Callers 2

ggml_set_i32Function · 0.70
ggml_set_f32Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected