linalg.CoopMat<T, S, M, N, R>.lessThanOrEquals

Description

Performs lexicographic comparison to test if this matrix is less than or equal to another.

Signature

bool linalg.CoopMat<T, S, M, N, R>.lessThanOrEquals(
    linalg.CoopMat<T, S, M, N, R> other)
    where T : __BuiltinArithmeticType;

bool linalg.CoopMat<T, S, M, N, R>.lessThanOrEquals(
    linalg.CoopMat<BFloat16, S, M, N, R> other)
    where T == BFloat16;

Parameters

other : linalg.CoopMat<T, S, M, N, R>

The cooperative matrix to compare with.

other : linalg.CoopMat<BFloat16, S, M, N, R>

The cooperative matrix to compare with.

Return value

True if this matrix is lexicographically less than or equal to other, false otherwise.

Availability and Requirements

Defined for the following targets:

hlsl

Available in all stages.

metal

Available in all stages.

spirv

Available in all stages.

Requires capabilities: SPV_KHR_non_semantic_info, SPV_GOOGLE_user_type, spvImageQuery, spvImageGatherExtended, spvSparseResidency, spvMinLod, spvBFloat16KHR, spvCooperativeMatrixKHR.

cuda

Available in all stages.