Input rows exceeds numRows

Hello, I have encountered the same error in running logistic regression example github after several different tries,

Error: input matrix # rows exceeds numRows

It appears to have been from CT Mat2CtMRM() in utils.cpp: 247. I have been inputting a matrix of 1024x47 – which I thought should’ve comply in size with 1 << 17 of ring dimension. I’m using
openfhe v1.2.0. And I don’t change batch size as I hope it should still be half of ring dimension.

uint32_t batchSize = params.ringDimension / 2;

Generally speaking, 1024 x 47 should be supported as long as all relevant input files are updated from the default configuration of 1024 x 10 to 1024 x 47. In this case, 47 should padded to 64, and then numRows should be set to 1024 and numCols to 64. I suggest setting OPENFHE_DEBUG_FLAG to true in Mat2CtMRM and examining the output (feel free to paste it here, too, if you are not able to resolve the issue on your own).

Although we did not exhaustively test various configurations for the logreg examples, your configuration should work (i.e., it can be handled with single ciphertexts). I suggest carefully checking the input data files and examining the computed dimensions.