blitzpp / blitz

Blitz++ Multi-Dimensional Array Library for C++
https://github.com/blitzpp/blitz/wiki
Other
405 stars 84 forks source link

document "A = ( 0*tensor::i + yscale( tensor::j ) + 0*tensor::k )" trick #75

Open slayoo opened 5 years ago

slayoo commented 5 years ago

Migrated from: https://sourceforge.net/p/blitz/bugs/65/

As pointed out in this mailing list thread: https://sourceforge.net/p/blitz/mailman/message/32742056/

mixing arrays of different dimensionality in the example expression requires a trick employing placeholders like "0*tensor::i" etc - perhaps worth documenting.