Skip to content

Comment on Highly efficient matrix transpose in Mojoparent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.