예제 #1
0
func newGradOptimizer() *gradOptimizer {
	m := &gradOptimizer{
		loc:  uni.NewLocation(),
		obj:  uni.NewObjective(),
		grad: uni.NewGradient(),
	}
	return m
}
예제 #2
0
func newGradOptimizer() *gradOptimizer {
	m := &gradOptimizer{
		loc:  multi.NewLocation(),
		obj:  uni.NewObjective(),
		grad: multi.NewGradient(),
	}
	// TODO: Something about settings
	return m
}
예제 #3
0
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
}