Like matrix multiplication! That's N^3 naively. If you take N to be the size of each dimension.