Table of Contents

Delegate DirectILKernelGenerator.GramKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Computes the symmetric Gram matrix G = A @ B^T for row-major A, B each shaped (m, k), into the (m, m) buffer g. The result is symmetric (g[i,j] == g[j,i]); the upper triangle is computed and mirrored. For the unweighted covariance a == b (the same buffer); the weighted form passes b = Xc*w.

public delegate void DirectILKernelGenerator.GramKernel(void* a, void* b, void* g, int m, long k)

Parameters

a void*
Computes the symmetric Gram matrix G = A @ B^T for row-major A, B each shaped (m, k), into the (m, m) buffer g. The result is symmetric (g[i,j] == g[j,i]); the upper triangle is computed and mirrored. For the unweighted covariance a == b (the same buffer); the weighted form passes b = Xc*w.
b void*
Computes the symmetric Gram matrix G = A @ B^T for row-major A, B each shaped (m, k), into the (m, m) buffer g. The result is symmetric (g[i,j] == g[j,i]); the upper triangle is computed and mirrored. For the unweighted covariance a == b (the same buffer); the weighted form passes b = Xc*w.
g void*
Computes the symmetric Gram matrix G = A @ B^T for row-major A, B each shaped (m, k), into the (m, m) buffer g. The result is symmetric (g[i,j] == g[j,i]); the upper triangle is computed and mirrored. For the unweighted covariance a == b (the same buffer); the weighted form passes b = Xc*w.
m int
Computes the symmetric Gram matrix G = A @ B^T for row-major A, B each shaped (m, k), into the (m, m) buffer g. The result is symmetric (g[i,j] == g[j,i]); the upper triangle is computed and mirrored. For the unweighted covariance a == b (the same buffer); the weighted form passes b = Xc*w.
k long
Computes the symmetric Gram matrix G = A @ B^T for row-major A, B each shaped (m, k), into the (m, m) buffer g. The result is symmetric (g[i,j] == g[j,i]); the upper triangle is computed and mirrored. For the unweighted covariance a == b (the same buffer); the weighted form passes b = Xc*w.