linalg::CoopMat<T, MemoryScope S, int M, int N, linalg.CoopMatMatrixUse R>.ReduceRow

Description

Reduces the matrix along rows using the specified combining operation. Requires Vulkan with SPV_NV_cooperative_matrix2 extension.

Signature

linalg.CoopMat<T, S, M, RN, linalg.CoopMatMatrixUse.MatrixAccumulator> linalg::CoopMat<T, MemoryScope S, int M, int N, linalg.CoopMatMatrixUseR>.ReduceRow<int RN>(
    (T, T)->T combineOp)
    where T : ICoopElement;

Generic Parameters

RN : int

The number of columns in the resulting reduced matrix.

Parameters

combineOp : ( T, T ) -> T

The binary function used to combine elements (e.g., addition, multiplication).

Return value

A reduced accumulator matrix with dimensions M42949672354294967191RN.

Availability and Requirements

Defined for the following targets:

spirv

Available in all stages.

Requires capability: spvCooperativeMatrixReductionsNV.