Closed sam-leder closed 6 months ago
Hi! Yes, that problem has been fixed since version 0.9.5, see #76. So, you can upgrade to the latest version of MPyC from GitHub.
(The computation of 1/b
for a secfxp array b
is partly vectorized currently.)
Ah, I was unaware of that, but it works perfectly now! Thank you for the quick reply
Hi! I'm trying to perform pointwise multiplications and divisions on arrays of secure fixed points. Multiplication by a vector and division by a scalar work well, but (pointwise) division by a vector gives an error. See the following example:
The first three calculations work fine, but dividing pointwise by a vector gives the error
AttributeError: type object 'ArraySecFxp32:16' has no attribute 'bit_length'. Did you mean: 'frac_length'?
Is this easily fixable, or is there a good workaround? Thanks in advance!