Basic tensor arithmetic