No definition found for a function "sacprelude_p::zero"
Code below gives the error "No definition found for a function "sacprelude_p::zero" that accepts an argument of type "ComplexBasics::complex" as parameter no 1. Full argument types are "( ComplexBasics::complex)"." Cannot seem to use the zero in Structures to use it in tensor comprehensions.
Occurs with and without -check tc
module ComplexTensorBug;
use Structures: {complex, toc, sel};
// This does not work because the zero element is not correctly implemented for tensor comprehensions.
complex[*] complex_equal(double[*] a)
{
return {iv -> toc(a[iv])};
}
sac2c 1.3.3-MijasCosta-1187-gd6b95 build-type: RELEASE built-by: "rubenhensen" at 2024-04-06T22:46:02