mfasiolo / gamFactory

Tools for building new GAM models in mgcv
14 stars 2 forks source link

mgks memory usage #17

Open mfasiolo opened 7 months ago

mfasiolo commented 7 months ago

At the moment we call

List mgks(NumericMatrix y, arma::field<arma::mat> dist, NumericVector beta, int deriv)

where the list of matrices of distances dist gets copied at every call...it should be possible to do something to pass this list of matrices by reference.