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

View source: R/RcppExports.R

rowwise_imax_idxR Documentation

Row-wise argmax (0-based column indices)

Description

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

Usage

rowwise_imax_idx(A)

Arguments

A

Integer matrix.

Value

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


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