cyclops-community / ctf

Cyclops Tensor Framework: parallel arithmetic on multidimensional arrays
Other
199 stars 53 forks source link

Add support Hadamard indices in contractions with sparse tensors #23

Closed solomonik closed 6 years ago

solomonik commented 8 years ago

Currently cannot do something like B["ij"]=A["ij"]B["ij"] with sparse A, B, consider instead using summation with a special operator, i.e Transform<>([](double a, double b){ b=a; })(A,B);. However, there is no such simple workaround for computations like C["ijk"]=A["ijl"]*B["ljk"], so this is a high priority enhancement. For now please do this as dense and expect a fix for the sparse case soon.