Fixed runtime error: Resolved an issue where a negative value (-1) was incorrectly assigned to an unsigned int, leading to a runtime error: “-1 is outside the range of representable values of type ‘unsigned int’”.
The fix involved replacing arma::uvec with arma::ivec to correctly handle signed integers in relevant functions.