Comment on Highly efficient matrix transpose in MojoparentComments−hogepodge1yYou're right that a good graph compiler will do this for you. There still may be times, like if you're interfacing with another library, where you'll need to switch a matrix between row major or column major layouts.−meindnoch1ySerious linear algebra libraries expect a flag that tells if elements are column-major or row-major.
Comments
You're right that a good graph compiler will do this for you. There still may be times, like if you're interfacing with another library, where you'll need to switch a matrix between row major or column major layouts.
Serious linear algebra libraries expect a flag that tells if elements are column-major or row-major.