MP-SPDZ icon indicating copy to clipboard operation
MP-SPDZ copied to clipboard

Error occurs when compiling program with sfix matrix multplication.

Open DeshanKTD opened this issue 9 months ago • 1 comments

I have tested a application whcich has matrix multiplication over the protocols in Dishonest majority. I was successful with prime field and ring based domains . But it does gives an error for binary circuits.

lca = c_vector.direct_trans_mul(agg_lci)

AttributeError: type object 'sbitfixvec' has no attribute 'direct_matrix_mul'. Did you mean: 'row_matrix_mul'?

here lca, c_vector, and agg_lci are initialized as sfix matrices.

I am getting this error when compiling the program with -B. It works with -F and -R.

According to the documentation and previous issues, i understand that, sfix will be converted in to sbitfixvec. I am not sure these matrix multiplication does not implemented for sbitfixvec.

DeshanKTD avatar Apr 13 '25 07:04 DeshanKTD

Thank you for raising this. You should find that 979546f48bf5ffffc8e9939251586ea9d455abcb adds this functionality.

mkskeller avatar Apr 15 '25 01:04 mkskeller