Add a hint to matrix_transpose

Fix #37394

Test plan: Local

Auditors: stephanie