data61/MP-SPDZ

[Ring element] Assgin zero without clear the vector

Closed this issue · 1 comments

Hi @mkskeller
May I ask how I can assign zero to a ring element without clearing it up?
Since in

void Ring_Element::assign_zero()
,
It clear the vector
Is there any way to do it as assign_one:
void Ring_Element::assign_one()
, but fills zeros instead?

Or does running .allocate() will initialize it to all zeros?

Thanks in advance

Calling allocate() when empty should do the trick indeed.