The paper and the cheat sheet has the lie algebra of the R^n group as R^n.
However in the code the lie algebra of the R^n group is an (n+1)x(n+1) matrix, and the hat() operator of RnTangentBase creates this matrix with the vector coefficients in the top right corner.
I'm wondering which is correct and why there is a difference?