MCPcopy Create free account

hub / github.com/changkun/pkg / functions

Functions669 in github.com/changkun/pkg

↓ 112 callersMethodCol
()
mat/interface.go:10
↓ 97 callersMethodRow
Row of matrix
mat/mat.go:119
↓ 85 callersMethodCol
Col of matrix
mat/mat.go:124
↓ 79 callersMethodAt
(i, j int)
mat/interface.go:12
↓ 62 callersMethodAt
At access element (i, j)
mat/mat.go:129
↓ 57 callersMethodInc
(i, j int, val float64)
mat/interface.go:14
↓ 52 callersMethodRow
()
mat/interface.go:9
↓ 45 callersMethodAdd
Add given functions
promise/wg.go:55
↓ 45 callersMethodWait
Wait until group is done
promise/wg.go:66
↓ 42 callersMethodAdd
(ctx context.Context, in *AddInput, opts ...grpc.CallOption)
benchs/restrpc/rpcs/add.pb.go:143
↓ 37 callersMethodRun
Run ...
bo/bounds.go:43
↓ 33 callersMethodName
Name ...
bo/gp.go:52
↓ 28 callersMethodGet
()
sched/sched.go:33
↓ 23 callersFunctionZero
Zero matrix
mat/mat.go:31
↓ 22 callersMethodSet
(i, j int, val float64)
mat/interface.go:13
↓ 20 callersMethodLen
Len returns the size of the tree
ds/rbtree.go:73
↓ 20 callersMethodcolor
()
ds/rbtree.go:28
↓ 17 callersFunctionnewVec
(x, y, z float64)
ray/vector.go:9
↓ 16 callersFunctionf
(x, y float64)
bo/gp_test.go:16
↓ 14 callersMethodClose
Close closes the semaphore
csp/csp.go:703
↓ 14 callersMethodmult
(vv float64)
ray/vector.go:77
↓ 13 callersMethodEqual
Equal A and B?
mat/mat.go:164
↓ 12 callersMethodgrandparent
()
ds/rbtree.go:35
↓ 11 callersFunctionNewDense
NewDense a size by size matrix
mat/mat.go:87
↓ 11 callersMethodNext
Next waits until it is time to perform the next attempt or returns false if it is time to stop trying.
promise/attempt.go:42
↓ 10 callersFunctionSubmit
Submit given tasks
sched/sched.go:60
↓ 10 callersMethoddot
(vv *vec)
ray/vector.go:85
↓ 9 callersMethodPrint
Print the matrix
mat/mat.go:104
↓ 9 callersMethodadd
(vv *vec)
ray/vector.go:56
↓ 9 callersMethodlevel
()
ds/skiplist.go:141
↓ 9 callersMethodset
(orig, dir *vec)
ray/ray.go:15
↓ 9 callersMethodsub
(vv *vec)
ray/vector.go:65
↓ 8 callersFunctionCheckContext
CheckContext snapshots the currently-running goroutines and returns a function to be run at the end of tests to see whether any goroutines leaked.
leaktest/leaktest.go:111
↓ 8 callersMethodLog
Log adds given x and y to the gaussian process
bo/optimizer.go:267
↓ 8 callersFunctionNewTask
NewTask creates a task
sched/tests/task.go:20
↓ 8 callersMethodPow
(i, j int, n float64)
mat/interface.go:16
↓ 7 callersFunctionGoID
GoID returns the ID of current goroutine. This implementation based on the facts that runtime.Stack gives information like: goroutine 18446744073709
rt/goid.go:23
↓ 7 callersFunctionStop
Stop stops runtime scheduler gracefully. Note that the call should only be called then application terminates
sched/sched.go:38
↓ 7 callersFunctionloaditem
(p *unsafe.Pointer)
lockfree/common.go:17
↓ 7 callersFunctionnewSkipList
()
ds/skiplist_test.go:13
↓ 7 callersFunctionnewSphere
(c *vec, r float64, mat material)
ray/sphere.go:13
↓ 6 callersMethodClear
Clear the order
sched/tests/order.go:73
↓ 6 callersMethodClose
()
misc/error-handling-abstraction/main.go:84
↓ 6 callersMethodDel
Del deletes the stored value by given key
ds/rbtree.go:222
↓ 6 callersMethodDequeue
Dequeue removes and returns the value at the head of the queue. It returns nil if the queue is empty.
lockfree/queue.go:52
↓ 6 callersMethodErr
Err reports if the goroutine returns error, This call will wait until the goroutine terminates.
g/g.go:70
↓ 6 callersMethodGP
GP returns the underlying gaussian process. Primary for use with plotting behavior.
bo/optimizer.go:89
↓ 6 callersMethodGetMax
GetMax returns the maximum value.
bo/param.go:21
↓ 6 callersMethodGetMin
GetMin returns the minimum value.
bo/param.go:23
↓ 6 callersMethodIntn
(n int)
ds/rbtree_test.go:19
↓ 6 callersFunctionWait
Wait waits all tasks to be scheduled.
sched/sched.go:52
↓ 6 callersMethodaddV
(vv *vec)
ray/vector.go:45
↓ 6 callersMethodgetBaseAuthParam
(taskid string)
caption/xfyun/client.go:336
↓ 5 callersMethodCreate
(dst string)
misc/error-handling-abstraction/main.go:66
↓ 5 callersMethodEnqueue
Enqueue puts the given value v at the tail of the queue.
lockfree/queue.go:30
↓ 5 callersMethodGet
Get ...
ds/lru.go:27
↓ 5 callersMethodGetID
GetID must returns a unique ID for all of the scheduled task.
sched/sched.go:21
↓ 5 callersFunctionGo
Go runs a given f concurrently and returns a coresponding goroutine instance.
g/g.go:15
↓ 5 callersMethodHasNext
HasNext returns whether another attempt will be made if the current one fails. If it returns true, the following call to Next is guaranteed to return
promise/attempt.go:69
↓ 5 callersMethodLength
Length returns the length of the queue.
lockfree/queue.go:76
↓ 5 callersFunctionNewOptimizer
NewOptimizer creates a new optimizer with the specified optimizable parameters and options.
bo/optimizer.go:54
↓ 5 callersMethodPop
Pop pops value from the top of the stack.
lockfree/stack.go:24
↓ 5 callersMethodPut
Put stores the value by given key
ds/rbtree.go:78
↓ 5 callersFunctionRand
Rand creates a size by size random matrix
mat/mat.go:36
↓ 5 callersMethodRemove
Remove removes a value from the set. Returns true if the set contained the specified element.
ds/randomized_set.go:30
↓ 5 callersMethodSize
()
mat/interface.go:11
↓ 5 callersMethodStart
Start begins a new sequence of attempts for the given strategy.
promise/attempt.go:30
↓ 5 callersMethodStore
(nevent float64)
rp/random_process.go:47
↓ 5 callersMethodWait
Wait wait until the goroutine terminates.
g/g.go:60
↓ 5 callersFunctioncasitem
(p *unsafe.Pointer, old, new *directItem)
lockfree/common.go:20
↓ 5 callersMethodlen
()
ray/vector.go:88
↓ 5 callersMethodpath
(x *skiplistitem, update []*skiplistitem, k interface{})
ds/skiplist.go:70
↓ 5 callersMethodresume
()
sched/sched.go:174
↓ 5 callersMethodrotateLeft
(n *rbnode)
ds/rbtree.go:176
↓ 5 callersMethodrotateRight
(n *rbnode)
ds/rbtree.go:186
↓ 5 callersMethodsibling
()
ds/rbtree.go:46
↓ 4 callersFunctionCall
Call calls f on the main thread and blocks until f finishes.
maint/maint.go:40
↓ 4 callersMethodCov
(a, b []float64)
bo/gp.go:204
↓ 4 callersMethodDot
Dot matrix multiplication
mat/matmult.go:8
↓ 4 callersMethodGet
Get returns the stored value by given key
ds/rbtree.go:198
↓ 4 callersMethodGetExecution
GetExecution returns the time for task execution.
sched/sched.go:23
↓ 4 callersFunctionNewQueue
NewQueue creates a new lock-free queue.
lockfree/queue.go:21
↓ 4 callersMethodNext
Next returns the next best x values to explore. If more than rounds have elapsed, nil is returned. If parallel is true, that round can happen in paral
bo/optimizer.go:146
↓ 4 callersMethodPush
Push pushes a value on top of the stack.
lockfree/stack.go:42
↓ 4 callersMethodRawData
RawData ...
bo/gp.go:71
↓ 4 callersMethodStop
Stop stops Optimize.
bo/optimizer.go:390
↓ 4 callersMethodeffectiveMaxLevel
()
ds/skiplist.go:145
↓ 4 callersMethodhttpDo
(url string, body []byte, params url.Values, headers map[string]string)
caption/xfyun/client.go:305
↓ 4 callersFunctionmean
(x []float64)
rp/random_process.go:150
↓ 4 callersFunctionsaveAll
SaveAll saves all dimension graphs of the gaussian process to a temp directory and prints their file names.
bo/optimizer_test.go:25
↓ 4 callersMethodsetV
(vv *vec)
ray/vector.go:22
↓ 4 callersMethoduni
()
ray/vector.go:98
↓ 3 callersMethodAcceptable
(k float64)
rp/random_process.go:49
↓ 3 callersMethodCopy
()
misc/error-handling-abstraction/main.go:75
↓ 3 callersMethodEqualShape
EqualShape check A.Size() == B.Size()
mat/mat.go:154
↓ 3 callersMethodEstimate
(gp *GP, minimize bool, x []float64)
bo/exploration.go:13
↓ 3 callersMethodFinal
Final runs in any case if it is called.
errors/errors.go:32
↓ 3 callersFunctionHTTPRequest
HTTPRequest create a HTTP request
net/net.go:37
↓ 3 callersMethodHas
Has searches in the set given n, has receives true if n is found.
csp/csp.go:415
↓ 3 callersFunctionInit
Init initializes the functionality for running arbitrary subsequent functions on the main system thread. Init must be called in the main package.
maint/maint.go:20
next →1–100 of 669, ranked by callers