Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Discrepancy in Armadillo Multiplication
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Jerome

Posts: 48
Registered: 12/9/11
Discrepancy in Armadillo Multiplication
Posted: Nov 25, 2012 5:55 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am using the armadillo c++ linear library and am having difficulty with acquiring consistent results. When I print the vector, freq, those are the correct values, but when I multiply it with a scalar value, it is wrong. Even with freq * 1.0! Any suggestions would be great. The values are different from MATLAB.

mat::fixed<621,1>freq;
value = 2.0 * arma::datum::pi * freq;



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.