# estimate covariance of a matrix

Hi, im implementing regularized particle filter. My particle has coordinate x,y,z. All particles would make up a matrix n by 3 matrix . i wonder is there any existing code to find covariance matrix of a matrix in c++ somewhere in ros . This is easily done by matlab but c++ is too complicated