sum of embedding
sum(e) % sum along the first non singular dimension sum(e,d) % sum along dimension d