Taking Vector Transposes Seriously | Jiahao Chen | JuliaCon 2017

Channel:The Julia Programming Language · Length:19:12 · Published:2017-07-17 · Views:7387

Watch on YouTube

Summary

Jiahao Chen's JuliaCon 2017 talk argues that vector transposes should be taken seriously in type systems and linear algebra libraries. It explains why treating vectors as matrices causes trouble in languages.

Why HN recommends it

Strongly recommended for anyone working with vectors for its clear take on how they should be treated in types.

but seriously take the time to watch this, it's fantastic — HN, 2020

Programming language design · Pure mathematics

Subtitles (excerpt)

my name is Jal Chan U until about four months ago I was at mitc cell uh with the Julia Labs uh I currently work at Capital One in New York uh but the disclaimer here is that this is all work that was done before I went to Capital One so they don't get to tell me what I can't say about this topic so some of you may remember this issue taking back the transposer seriously how many of you how many of you have read this issue oh my goodness okay all right three qus of you guys rais your hands okay so I the punch line here is that we were wrong on at least four counts on this issue and I will explain as much as possible within half an hour why we were wrong um as you know 4774 is quite possibly one of the most hotly debated issues of our time and I went to sample some luminaries of our community to ask about their opinions so here's one oh sorry thank you uh so here's one opinion here's another opinion from another luminary and here's yet another uh opinion from that another luminary uh who unfortunately could not be here and thus was born this issue uh surprisingly it's not just us so uh turns out that the python people had also thought about this and they had what is it 381 comments on this particular

On Hacker News

> Purist test The short answer is. Yes, but if your PL treats it that way you will wind up in trouble [0]. The long answer is: [VIDEO] (but seriously take the time to watch this, it's fantastic). [0] Separately C- and often C-derived languages/frameworks like numpy also treat them as 1xN matrices, but that's a nearly tabs-vs-spaces level religious war, with actual consequences. I think a lot of p… — dnautics, 2020-10
Addendum: Also really good is this video about how one should treat vectors and matrices in a type system. Has good lessons for python, R, and Matlab. Seriously anyone who does anything with vectors should watch this. [VIDEO] — dnautics, 2018-03
If you want a great video on the topic, see [VIDEO] Or equivalently [LINK] There are basically two self-consistent choices for the design of linear algebra libraries. — gugagore, 2022-04
If you will do a lot of matrix stuff you might want to listen to [VIDEO] taking Vector Transpose Seriously — freemint, 2021-07
I happened to be the other way, I learned first that matrices were linear transformations and, being thick-headed, it took me a really long time to understand that matrices could also be used as "dumb excel spreadsheets". there's a fantastic historiography of linear algebra and why we're stuck in this situation here: [VIDEO] — dnautics, 2020-06

Related videos