The Array Cast cover image

PyTorch and Dex with Adam Paszke

The Array Cast

CHAPTER

Type Classes and Conformability

type classes are a restricted form of ad hoc polymorphism. They still have to be like uniform. It's not, you know, the sort of, I don't know, let's say holy grail of ad hoc,. Ad hoc polymorphism would be closer to like templates in C++. So can you still do broadcasting or what we'd call an array language is, well, conformability or leading access agreement with plus? If you have arrays of different ranks, can it add them together according to some rule? Yeah, that is a very good question. And the answer is no. You have to because the plus is always takes two As and returns something. Both sides have to

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner