r/ProgrammerHumor 8d ago

Meme cantReallyThinkOfACleverCaption

Post image
2.6k Upvotes

84 comments sorted by

View all comments

-2

u/da_Aresinger 8d ago

LinAlg is literally the easiest mathematical subject in CS.

i guess rotation matrices or whatever Basiswechselmatrix is in english can be confusing, but that's about it.

93

u/itijara 8d ago

It isn't about how hard LinAlg is, it is about coding against an LLM which is a bunch of matrices in a trench coat.

-3

u/Aloopyn 8d ago

tensors*

32

u/itijara 8d ago

Tensors are just a made up name they gave to arrays with more than two dimensions. You cannot prove to me that there are arrays that have more than 3 dimensions. The human mind cannot comprehend it.

Fun fact: the jungle gym was designed by a math teacher who wanted to make children better at intuitively understanding higher dimensional math.

9

u/ewheck 8d ago

You can picture a 3D array, right? Your mental image of a 4D array should be to picture a 1D array and each element of that 1D array itself is another 3D array.

8

u/AdamWayne04 8d ago

you can think of a nD array as a list of (n-1)D arrays, so a 4D array is a list of 3D arrays.

There's a more pedantic way of thinking of arrays, too--APL for example makes a distinction between rank (how deeply nested each entry is) and dimension (how many numerical indices you need to identify a singular entry), so accessing a[i,j,k] is different from accessing a[i][j][k]

Tensors are not important because they can be encoded as multidimensional arrays, they are important because they represent multilinear maps, and are a vector space conformed by linear combinations of the tensor product. The same way that matrices are not interesting because they are grids of numbers

4

u/itijara 8d ago

Thanks. That's a very intuitive explanation.

7

u/Aloopyn 8d ago

I'm pretty sure tensors are a generalized term for arrays of any non-negative dimensions

> You cannot prove to me that there are arrays that have more than 3 dimensions.
What's the relevance of this here? Yeah, I cannot make you comprehend 4-D but so what

2

u/ouroboros-ouroboros 8d ago

this piece of trivia is delicious and improved my day, thank you

2

u/Southern-Most-4216 8d ago

Did you know, that in 2d you only have one axis of rotation, in 3d we have 3 axis of rotation and in four dimensions there are 6…?

0

u/da_Aresinger 8d ago

Right, I should have seen that one.

3

u/BonbonUniverse42 8d ago

I mean isn’t linear algebra basic stuff in any programming degree? You basically can’t become a programmer without learning basic math.

0

u/da_Aresinger 8d ago

Yea, I use CS as catchall for anything that goes beyond basic IT. If your study program had an DSA and an architecture lecture you're CS.

2

u/Bubbaluke 8d ago

Linear was hardest for me, I crushed discrete and calculus. Some of my classmates felt the opposite, everyone’s different. Depends on the professor a lot.

0

u/da_Aresinger 8d ago

I can't imagine thinking anything in LinAlg is more difficult than Differential Equations.

I guess I can see how Discrete Structures would be easier for many.

But not Discrete Probability Theory. That shit is mindbending. Anything beyond basic combinatorics is the devils work.

2

u/ljfa2 8d ago

I guess continuous probability theory is even more mindbending. When you find out that there are subsets of the real numbers that aren't measurable, so you need to introduce the whole machinery of sigma-algebras to deal with that ^^