Hi Stefan,
This is a bug, sorry for that. You can use another way to get matrix object, such as
MatrixLayer ml("[TofData]TofData!"); // get the matrix layer
MatrixObject mo = ml.MatrixObjects(100); // get the 101st matrix object
Matrix& matA = mo.GetDataObject(); // please make sure the data type in matrix object is double type
// or use matrixbase for any data type
// matrixbase& matA = mo.GetDataObject();
matrix mat1(matA);
Penn