Meanwhile, I figured that M in my last email is not positive semidefinite, and so it is not a Gram matrix as required in the manual. But since many other non-semidefinite matrices do work, one should at least change the error message. Best, Benjamin