This function creates a list of basis matrices and the corresponding parameters. It is used in online() to create the basis matrices for basis smoothing.
idx: make_basis_mats() will create a grid containing all combinations of the parameters. If idx is set, this grid will be subsetted to the rows specified by idx.
params: Instead of the arguments above, a grid (data.frame or named matrix) of parameters can be passed directly.