func newGradOptimizer() *gradOptimizer { m := &gradOptimizer{ loc: uni.NewLocation(), obj: uni.NewObjective(), grad: uni.NewGradient(), } return m }
func newUniGradStruct() *uniGradStruct { m := &uniGradStruct{ OptCommon: common.NewOptCommon(), loc: uni.NewLocation(), obj: uni.NewObjective(), grad: uni.NewGradient(), result: &UniGradResult{}, } // TODO: Something about settings return m }