linalg.CoopMat<T, S, M, N, R>.add¶
Description¶
Performs element-wise addition of two cooperative matrices.
Signature¶
linalg.CoopMat<T, S, M, N, R> linalg.CoopMat<T, S, M, N, R>.add(linalg.CoopMat<T, S, M, N, R> other) where T : __BuiltinArithmeticType; linalg.CoopMat<BFloat16, S, M, N, R> linalg.CoopMat<T, S, M, N, R>.add(linalg.CoopMat<BFloat16, S, M, N, R> other) where T == BFloat16;
Parameters¶
other : linalg.CoopMat<T, S, M, N, R>¶
The cooperative matrix to add.
other : linalg.CoopMat<BFloat16, S, M, N, R>¶
The cooperative matrix to add.
Return value¶
A new cooperative matrix containing the element-wise sum.
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.