← Back to C-Kernel-Engine Docs Doxygen Source Documentation
CKMathBackend Struct Reference

#include <ckernel_engine.h>

Data Fields

void(* sgemm )(int M, int N, int K, const float *A, int lda, const float *B, int ldb, const float *bias, float *C, int ldc)
 

Detailed Description

Core math backend interface for C-Kernel-Engine.

This is intentionally minimal and matches the conventions already used in C-Transformer for GEMM kernels.

Layout assumptions (LLM-style shapes):

  • A: [M x K], row-major, A(i,k) = A[i*K + k]
  • B: [N x K], row-major, B(j,k) = B[j*K + k]
  • C: [M x N], row-major, C(i,j) = C[i*N + j]
  • bias: optional [N], added per output column j

Definition at line 26 of file ckernel_engine.h.

Field Documentation

◆ sgemm

void(* CKMathBackend::sgemm) (int M, int N, int K, const float *A, int lda, const float *B, int ldb, const float *bias, float *C, int ldc)

Definition at line 27 of file ckernel_engine.h.

Referenced by ckernel_backend_native().


The documentation for this struct was generated from the following file: