Re:HPTT: A High-Performance Tensor Transposition C++ Library
by Eliezer on Monday April 24, 2017 @12:41PM
(#14185730)
Quietly raising my hand that this bugged me too.
[ Parent
| on HN ]
Re:HPTT: A High-Performance Tensor Transposition C++ Library
by tgb on Monday April 24, 2017 @01:42PM
(#14186305)
Mathematics also uses tensor to refer to elements of a tensor product of two vector spaces. A tensor product of an n dimensional and an m dimensional space gives an n x m dimensional space. So to the extent that an array is a vector, a higher dimensional array is in a tensor product of vector spaces, and so we call it a tensor. Or, there's a correspondence between k-dimensional arrays an a tensor product of k vector spaces determined by a choice of bases of the vector spaces. And we're quite comfortable picking a "standard" basis for R^k, so we conflate the two ideas.
Now the part that always bugged me was that, at least in C++, a vector is an array that can change length, which is a very non-vectorial thing to do.