Documentation ¶
Index ¶
- Variables
- func InitializeGslSimanParams(params *GslSimanParams)
- func Print(s string)
- func Solve(r *rng.GslRng, x0 interface{}, ef GslSimanEnergyFunctionType, ...)
- type GslSimanArgument
- type GslSimanCopyConstructFunctionType
- type GslSimanCopyFunctionType
- type GslSimanDestroyFunctionType
- type GslSimanEnergyFunctionType
- type GslSimanImplementation
- type GslSimanMetricFunctionType
- type GslSimanParams
- type GslSimanPrintFunctionType
- type GslSimanStepFunctionType
Constants ¶
This section is empty.
Variables ¶
View Source
var GSL_SIMAN_ARGUMENT_SIZE int = int(reflect.TypeOf([]GslSimanArgument{}).Elem().Size())
View Source
var GSL_SIMAN_PARAMS_STRUCT_SIZE uint32 = uint32(C.get_gsl_siman_params_struct_size())
Functions ¶
func InitializeGslSimanParams ¶
func InitializeGslSimanParams(params *GslSimanParams)
func Solve ¶
func Solve(r *rng.GslRng, x0 interface{}, ef GslSimanEnergyFunctionType, takeStep GslSimanStepFunctionType, distance GslSimanMetricFunctionType, printPosition GslSimanPrintFunctionType, copyfunc GslSimanCopyFunctionType, copyConstructor GslSimanCopyConstructFunctionType, destructor GslSimanDestroyFunctionType, params *GslSimanParams)
Types ¶
type GslSimanArgument ¶
type GslSimanArgument struct {
// contains filtered or unexported fields
}
type GslSimanCopyConstructFunctionType ¶
type GslSimanCopyConstructFunctionType func(xp interface{}) interface{}
type GslSimanCopyFunctionType ¶
type GslSimanCopyFunctionType func(src interface{}, dest interface{})
type GslSimanDestroyFunctionType ¶
type GslSimanDestroyFunctionType func(xp interface{})
type GslSimanEnergyFunctionType ¶
type GslSimanEnergyFunctionType func(xp interface{}) float64
type GslSimanImplementation ¶
type GslSimanImplementation struct {
// contains filtered or unexported fields
}
type GslSimanMetricFunctionType ¶
type GslSimanMetricFunctionType func(xp interface{}, yp interface{}) float64
type GslSimanParams ¶
type GslSimanParams struct { NumTries int ItersFixed int StepSize float64 K float64 TInitial float64 Mu float64 TMin float64 CData []byte }
func (*GslSimanParams) CPtr ¶
func (sp *GslSimanParams) CPtr() uintptr
type GslSimanPrintFunctionType ¶
type GslSimanPrintFunctionType func(xp interface{})
Click to show internal directories.
Click to hide internal directories.