determinant

Description

Compute matrix determinant.

Signature

T determinant<T, int N>(matrix<T, N, N> m)
    where T : __BuiltinFloatingPointType;

T determinant<T, int N>(matrix<T, N, N> m)
    where T : __BuiltinIntegerType;

Generic Parameters

T: __BuiltinFloatingPointType

N : int

T: __BuiltinIntegerType

Parameters

m : matrix<T, N, N>

The matrix.

Return value

The determinant of the matrix.

The determinant of the matrix.

Availability and Requirements

Defined for the following targets:

hlsl

Available in all stages.

glsl

Available in all stages.

cpp

Available in all stages.

cuda

Available in all stages.

metal

Available in all stages.

wgsl

Available in all stages.

spirv

Available in all stages.

llvm

Available in all stages.