I think this is not really needed as eigen3 will check, but it probably doesnt hurt