Function trace_angles_between

Function Documentation

arma::fvec trace_angles_between(const arma::fmat &mat)

Compute angles between consecutive row vectors in a matrix.

Given a matrix mat where each row is a vector of float, this function returns a vector of angles (in radians) between consecutive rows.

Parameters:

mat – Input matrix (NxM), each row is a vector.

Returns:

arma::fvec Vector of size N-1 with angles between consecutive rows.