x1 %.*% x2 multiplies an object of class objfn or
objlist by a scalar.
Value
For an objfn, an objfn whose value, gradient and Hessian are
scaled by x1. For an objlist, the objlist with every numeric entry
and attribute scaled. Otherwise x1 * x2.
Examples
obj <- constraintL2(mu = c(a = 0, b = 0), sigma = 1)
obj2 <- 2 %.*% obj
obj2(c(a = 1, b = 2))$value
#> [1] 10