Skip to contents

Computes x %*% t(y). If y is missing, computes x %*% t(x).

Usage

nv_tcrossprod(x, y = NULL)

# S3 method for class 'AnvlBox'
tcrossprod(x, y = NULL, ...)

Arguments

x

(arrayish)
An array with at least 2 dimensions.

y

(arrayish | NULL)
Optional second array. If NULL, uses x.

...

Unused.

Value

arrayish

Examples

x <- nv_array(matrix(1:6, nrow = 2), dtype = "f32")
nv_tcrossprod(x)
#> AnvlArray
#>  35 44
#>  44 56
#> [ CPUf32{2,2} ]