|
|
|
|
|
by ummonk
2677 days ago
|
|
I haven't dipped into Julia's macro side, but I wonder how much work it would be to just create macros to create syntactic sugar that maps infix Kronecker products to the Kronecker function. There are so many Julia packages that do similar stuff that I imagine it can't be all that hard for people who have become fluent with the macro system. |
|
const ⊗ = kron
A = rand(5,5)
B = rand(3,3)
A ⊗ B
Tada! I'm not sure how MATLAB/Octave's kron(A,B) looks more like math than A⊗B, but everyone can have their own opinion.