ggml_tcrossprod: GPU transposed cross product (drop-in for 'tcrossprod')

View source: R/gpu_linalg.R

ggml_tcrossprodR Documentation

GPU transposed cross product (drop-in for tcrossprod)

Description

Computes A %*% t(B) (or A %*% t(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_tcrossprod(A, B = NULL, device = "auto", prec = "f32")

Arguments

A

A numeric matrix.

B

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

device, prec

See ggml_matmul.

Value

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


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