ggml_crossprod: GPU cross product (drop-in for 'crossprod')

View source: R/gpu_linalg.R

ggml_crossprodR Documentation

GPU cross product (drop-in for crossprod)

Description

Computes t(A) %*% B (or t(A) %*% A when B is NULL) on the Vulkan GPU, returning an R matrix, with a CPU fallback. See ggml_matmul for the precision and dispatch notes.

Usage

ggml_crossprod(A, B = NULL, device = "auto", prec = "f32")

Arguments

A

A numeric matrix.

B

A numeric matrix with nrow(B) == nrow(A), or NULL (default) for t(A) %*% A.

device, prec

See ggml_matmul.

Value

t(A) %*% B as a numeric matrix.


ggmlR documentation built on July 14, 2026, 1:08 a.m.