rowwise_max_idx: Row-wise argmax (0-based column indices)

View source: R/RcppExports.R

rowwise_max_idxR Documentation

Row-wise argmax (0-based column indices)

Description

Returns the column index of the maximum element in each row of A. Uses Armadillo's 'index_max()' to avoid deprecated '.max(uword&)'.

Usage

rowwise_max_idx(A)

Arguments

A

Numeric matrix.

Value

A row vector of 0-based column indices of the maxima.


rpm documentation built on Nov. 5, 2025, 6:31 p.m.