I&#x27;ve found the Armadillo C++ library (<a href="http:&#x2F;&#x2F;arma.sourceforge.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;arma.sourceforge.net&#x2F;</a>) to be a better replacement, when concerned about speed.