| ▲ | foxglacier 5 days ago | |||||||||||||||||||||||||||||||
Yea, Fortran is nice to use for so-called "scientific" computing. It has high performance as well as some handy intrinsic functions like DOT_PRODUCT and TRANSPOSE but the best features to me are colon array slicing syntax like Python/Numpy and arrays being indexed from 1 which makes converting math equations into code more natural without constantly worrying about off-by-one errors. I wouldn't call multi-dimensional arrays tensors though. That's a bit of a bastardization of the term that seemed to be introduced by ML guys. It wasn't until I started using Fortran that I realized how similar it is to BASIC which must have been a poor-man's Fortran. | ||||||||||||||||||||||||||||||||
| ▲ | PaulHoule 5 days ago | parent [-] | |||||||||||||||||||||||||||||||
e.g. "tensors" are like "vectors" in they transform in a specific way when the coordinate system changes; what felt so magic about vectors as an undergrad was that they embody "the shape of space" and thus simplify calculations. If you didn't have vectors, Maxwell's equations would spill all over the place. Tensors on the other hand are used in places like continuum mechanics and general relativity where something more than vectors are called for but you're living in the same space(/time) with the same symmetries. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||