trW function

Spatial weights matrix powers traces