--- layout: stdlib-reference --- # linalg::CoopMat\\.ReduceRowAndColumn ## Description Reduces the matrix along both rows and columns using the specified combining operation. Requires Vulkan with SPV_NV_cooperative_matrix2 extension. ## Signature
linalg.CoopMat<T, S, RM, RN, linalg.CoopMatMatrixUse.MatrixAccumulator> linalg::CoopMat<T, MemoryScope S, int M, int N, linalg.CoopMatMatrixUseR>.ReduceRowAndColumn<int RM, int RN>(
    (T, T)->T combineOp)
    where T : ICoopElement;

## Generic Parameters #### RM : int The number of rows in the resulting reduced matrix. #### RN : int The number of columns in the resulting reduced matrix. ## Parameters #### combineOp : \( [T](index.html#typeparam-T), [T](index.html#typeparam-T) \) -\> [T](index.html#typeparam-T) The binary function used to combine elements (e.g., addition, multiplication). ## Return value A reduced accumulator matrix with dimensions RM42949672354294967191RN. ## Availability and Requirements Defined for the following targets: #### spirv Available in all stages. Requires capability: `spvCooperativeMatrixReductionsNV`.