bartorch.nlop.Phase

Contents

bartorch.nlop.Phase#

bartorch.nlop.Phase(shape)#

x / |x|, elementwise: BART’s zphsr, built out of its two pieces.

BART’s own nlop_zphsr_create chains zabs into zdiv and then calls nlop_dup(x, 0, 0), which trips its own a < b assertion, so the constructor aborts and cannot be used. The same operator is these two pieces put together with the indices the algebra checks: the absolute value into the divisor, then the two inputs made one.