Skip to contents

Computes the determinant of a square matrix via nv_determinant().

Usage

nv_det(operand)

Arguments

operand

(arrayish)
Square matrix of floating-point data type.

Value

Scalar arrayish with the same dtype as operand.

Examples

a <- nv_matrix(c(4, 3, 6, 3), nrow = 2, dtype = "f64")
nv_det(a)
#> AnvlArray
#>  -6
#> [ CPUf64{} ]