Magnum now has compile-time matrix/vector library. With full C++14 support in Clang 3.4 you can throw out nearly all manual precomputations, just slap constexpr
on the result and be done with it:
#include <Magnum/Magnum.h>
#include <Magnum/Math/Matrix4.h>
using namespace Magnum;
int main() {
constexpr auto a = Matrix4::scaling(Vector3::xScale(3.0f))*