Hi everyone, I need to perform Kronecker products on (sparse) distributed arrays however the kron function is unfortunately not handled. I tried to edit the Matlab function and it appears that only the last line:
K = sparse(ik,jk,bsxfun(@times,sb,sa.'),ma*mb,na*nb);
produces an issue within an spdm loop
Any clue about how to overcome this? The error message is:
Error detected on lab(s) 1 2.Caused by: Error using codistributed/sparse>iCallSparseImpl (line 122) Operands to the || and && operators must be convertible to logical scalar values. Operands to the || and && operators must be convertible to logical scalar values. Error using codistributed/sparse>iCallSparseImpl (line 122) Operands to the || and && operators must be convertible to logical scalar values. Operands to the || and && operators must be convertible to logical scalar values.
—
Thanks in advance
Best Answer