Get computed transform matrix from a scene node

Is there a way to get the computed matrix? For example, if a scene node is nested 10 groups deep is there a way to get the matrix of all the transforms from all parent scene nodes.

I can loop through and manually add up the total but it seems like there would be a way to do this.

no automatic way afaik