Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Calculate the Tracy–Singh product of two matrices
ResourceFunction["TracySinghProduct"][m1,m2,{r1,c1},{r2,c2}] gives the Tracy-Singh product of m1 and m2, where the ri and ci are corresponding integer partitions of the dimensions of the mi. |
The Tracy-Singh product of two partitioned matrices:
In[1]:= |
Out[1]= |
The Tracy-Singh product of two rectangular matrices with symbolic entries:
In[2]:= |
Out[2]= |
The Tracy-Singh product of two sparse matrices:
In[3]:= |
Out[3]= |
The Kronecker product is a special case of the Tracy-Singh product:
In[4]:= |
Out[4]= |
In[5]:= |
Out[5]= |
The Tracy-Singh product is effectively the pairwise Kronecker product for each pair of partitions in the two matrices:
In[6]:= |
Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License