Learn R Programming

ggmlR (version 0.8.1)

ggml_tcrossprod: 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")

Value

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

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.