libMesh::Utility::pow is now templated around both the integer
exponent and the input typename, so pow<3>(3) will give you 3*3*3
rather than 3.0*3.0*3.0, and pow<2>(Complex(0,1)) will give you -1.0
rather than a compiler error.

This shouldn't cause any problems for most code (it didn't cause any
in the rest of the library), but it's not a perfectly
backwards-compatible API change: if you have an expression like
pow<3>(3)/2, previously you would have gotten 13.5, whereas now it
would be doing integer arithmetic and truncate to 13.
---
Roy

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to