Thanks for the reply. What you suggest sounds reasonable. I shall try that.
Hello, bit of a newbie here I'm afraid! I have a matrix. I want to calculate the mean of each column and place these values into a vector. Is there a standard, simple way to do this? In fact, is there a way, generally, to run a function column-wise on a matrix? For example using Eigen I can calculate the mean of each column of MatrixXd m using this: VectorXd means = m.colwise().mean(); Also, mean() can be replaced by other functions that operate on a vector and return a single value. I'd love there...