You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Kronecker product %O% produces an error for bbs with small number of knots, which happens as Cholesky() is called but XtXis not a sparse matrix, see the following MWE
The Kronecker product
%O%
produces an error forbbs
with small number of knots, which happens asCholesky()
is called butXtX
is not a sparse matrix, see the following MWEI think that the problem can be solved by changing line
if (is(XtX, "Matrix") && !extends(class(XtX), "dgeMatrix")) {
https://github.com/boost-R/mboost/blob/master/pkg/mboostPatch/R/bkronecker.R#L80
to
if (is(XtX, "Matrix") && !extends(class(XtX), "dgeMatrix") && !extends(class(XtX), "dsyMatrix")) {
which simply excludes the corresponding Matrix-class.
But I don´t know whether there is a nicer or more general way to fix this.
The text was updated successfully, but these errors were encountered: