Batchsize from cryptocontext

Hello,

Is there a way to get the batchsize from the cryptocontext, similar to cc->GetEncodingParams()?

I am aware that one may get batchsize from the parameters using parameters.GetBatchSize(), but I don’t know of any methods to get the parameters from the crypto context.

Thank you in advance!

I think the following should help you achieve what you want.

cc->GetCryptoParameters()->GetEncodingParams()->GetBatchSize()

Thanks! That works great!