I am wondering if using expand_as is efficient in this case ? does it store only the original value and the repetitions across each axis or something similar ?  it would be cheaper to divide each matrix element by the same value without having to create the whole matrix containing the same values.