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

Description

Negates all elements in the cooperative matrix.

Signature

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

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

Return value

A new cooperative matrix with all elements negated.

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.