Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/changkun/pkg
/ functions
Functions
669 in github.com/changkun/pkg
⨍
Functions
669
◇
Types & classes
109
↓ 112 callers
Method
Col
()
mat/interface.go:10
↓ 97 callers
Method
Row
Row of matrix
mat/mat.go:119
↓ 85 callers
Method
Col
Col of matrix
mat/mat.go:124
↓ 79 callers
Method
At
(i, j int)
mat/interface.go:12
↓ 62 callers
Method
At
At access element (i, j)
mat/mat.go:129
↓ 57 callers
Method
Inc
(i, j int, val float64)
mat/interface.go:14
↓ 52 callers
Method
Row
()
mat/interface.go:9
↓ 45 callers
Method
Add
Add given functions
promise/wg.go:55
↓ 45 callers
Method
Wait
Wait until group is done
promise/wg.go:66
↓ 42 callers
Method
Add
(ctx context.Context, in *AddInput, opts ...grpc.CallOption)
benchs/restrpc/rpcs/add.pb.go:143
↓ 37 callers
Method
Run
Run ...
bo/bounds.go:43
↓ 33 callers
Method
Name
Name ...
bo/gp.go:52
↓ 28 callers
Method
Get
()
sched/sched.go:33
↓ 23 callers
Function
Zero
Zero matrix
mat/mat.go:31
↓ 22 callers
Method
Set
(i, j int, val float64)
mat/interface.go:13
↓ 20 callers
Method
Len
Len returns the size of the tree
ds/rbtree.go:73
↓ 20 callers
Method
color
()
ds/rbtree.go:28
↓ 17 callers
Function
newVec
(x, y, z float64)
ray/vector.go:9
↓ 16 callers
Function
f
(x, y float64)
bo/gp_test.go:16
↓ 14 callers
Method
Close
Close closes the semaphore
csp/csp.go:703
↓ 14 callers
Method
mult
(vv float64)
ray/vector.go:77
↓ 13 callers
Method
Equal
Equal A and B?
mat/mat.go:164
↓ 12 callers
Method
grandparent
()
ds/rbtree.go:35
↓ 11 callers
Function
NewDense
NewDense a size by size matrix
mat/mat.go:87
↓ 11 callers
Method
Next
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 callers
Function
Submit
Submit given tasks
sched/sched.go:60
↓ 10 callers
Method
dot
(vv *vec)
ray/vector.go:85
↓ 9 callers
Method
Print
Print the matrix
mat/mat.go:104
↓ 9 callers
Method
add
(vv *vec)
ray/vector.go:56
↓ 9 callers
Method
level
()
ds/skiplist.go:141
↓ 9 callers
Method
set
(orig, dir *vec)
ray/ray.go:15
↓ 9 callers
Method
sub
(vv *vec)
ray/vector.go:65
↓ 8 callers
Function
CheckContext
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 callers
Method
Log
Log adds given x and y to the gaussian process
bo/optimizer.go:267
↓ 8 callers
Function
NewTask
NewTask creates a task
sched/tests/task.go:20
↓ 8 callers
Method
Pow
(i, j int, n float64)
mat/interface.go:16
↓ 7 callers
Function
GoID
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 callers
Function
Stop
Stop stops runtime scheduler gracefully. Note that the call should only be called then application terminates
sched/sched.go:38
↓ 7 callers
Function
loaditem
(p *unsafe.Pointer)
lockfree/common.go:17
↓ 7 callers
Function
newSkipList
()
ds/skiplist_test.go:13
↓ 7 callers
Function
newSphere
(c *vec, r float64, mat material)
ray/sphere.go:13
↓ 6 callers
Method
Clear
Clear the order
sched/tests/order.go:73
↓ 6 callers
Method
Close
()
misc/error-handling-abstraction/main.go:84
↓ 6 callers
Method
Del
Del deletes the stored value by given key
ds/rbtree.go:222
↓ 6 callers
Method
Dequeue
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 callers
Method
Err
Err reports if the goroutine returns error, This call will wait until the goroutine terminates.
g/g.go:70
↓ 6 callers
Method
GP
GP returns the underlying gaussian process. Primary for use with plotting behavior.
bo/optimizer.go:89
↓ 6 callers
Method
GetMax
GetMax returns the maximum value.
bo/param.go:21
↓ 6 callers
Method
GetMin
GetMin returns the minimum value.
bo/param.go:23
↓ 6 callers
Method
Intn
(n int)
ds/rbtree_test.go:19
↓ 6 callers
Function
Wait
Wait waits all tasks to be scheduled.
sched/sched.go:52
↓ 6 callers
Method
addV
(vv *vec)
ray/vector.go:45
↓ 6 callers
Method
getBaseAuthParam
(taskid string)
caption/xfyun/client.go:336
↓ 5 callers
Method
Create
(dst string)
misc/error-handling-abstraction/main.go:66
↓ 5 callers
Method
Enqueue
Enqueue puts the given value v at the tail of the queue.
lockfree/queue.go:30
↓ 5 callers
Method
Get
Get ...
ds/lru.go:27
↓ 5 callers
Method
GetID
GetID must returns a unique ID for all of the scheduled task.
sched/sched.go:21
↓ 5 callers
Function
Go
Go runs a given f concurrently and returns a coresponding goroutine instance.
g/g.go:15
↓ 5 callers
Method
HasNext
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 callers
Method
Length
Length returns the length of the queue.
lockfree/queue.go:76
↓ 5 callers
Function
NewOptimizer
NewOptimizer creates a new optimizer with the specified optimizable parameters and options.
bo/optimizer.go:54
↓ 5 callers
Method
Pop
Pop pops value from the top of the stack.
lockfree/stack.go:24
↓ 5 callers
Method
Put
Put stores the value by given key
ds/rbtree.go:78
↓ 5 callers
Function
Rand
Rand creates a size by size random matrix
mat/mat.go:36
↓ 5 callers
Method
Remove
Remove removes a value from the set. Returns true if the set contained the specified element.
ds/randomized_set.go:30
↓ 5 callers
Method
Size
()
mat/interface.go:11
↓ 5 callers
Method
Start
Start begins a new sequence of attempts for the given strategy.
promise/attempt.go:30
↓ 5 callers
Method
Store
(nevent float64)
rp/random_process.go:47
↓ 5 callers
Method
Wait
Wait wait until the goroutine terminates.
g/g.go:60
↓ 5 callers
Function
casitem
(p *unsafe.Pointer, old, new *directItem)
lockfree/common.go:20
↓ 5 callers
Method
len
()
ray/vector.go:88
↓ 5 callers
Method
path
(x *skiplistitem, update []*skiplistitem, k interface{})
ds/skiplist.go:70
↓ 5 callers
Method
resume
()
sched/sched.go:174
↓ 5 callers
Method
rotateLeft
(n *rbnode)
ds/rbtree.go:176
↓ 5 callers
Method
rotateRight
(n *rbnode)
ds/rbtree.go:186
↓ 5 callers
Method
sibling
()
ds/rbtree.go:46
↓ 4 callers
Function
Call
Call calls f on the main thread and blocks until f finishes.
maint/maint.go:40
↓ 4 callers
Method
Cov
(a, b []float64)
bo/gp.go:204
↓ 4 callers
Method
Dot
Dot matrix multiplication
mat/matmult.go:8
↓ 4 callers
Method
Get
Get returns the stored value by given key
ds/rbtree.go:198
↓ 4 callers
Method
GetExecution
GetExecution returns the time for task execution.
sched/sched.go:23
↓ 4 callers
Function
NewQueue
NewQueue creates a new lock-free queue.
lockfree/queue.go:21
↓ 4 callers
Method
Next
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 callers
Method
Push
Push pushes a value on top of the stack.
lockfree/stack.go:42
↓ 4 callers
Method
RawData
RawData ...
bo/gp.go:71
↓ 4 callers
Method
Stop
Stop stops Optimize.
bo/optimizer.go:390
↓ 4 callers
Method
effectiveMaxLevel
()
ds/skiplist.go:145
↓ 4 callers
Method
httpDo
(url string, body []byte, params url.Values, headers map[string]string)
caption/xfyun/client.go:305
↓ 4 callers
Function
mean
(x []float64)
rp/random_process.go:150
↓ 4 callers
Function
saveAll
SaveAll saves all dimension graphs of the gaussian process to a temp directory and prints their file names.
bo/optimizer_test.go:25
↓ 4 callers
Method
setV
(vv *vec)
ray/vector.go:22
↓ 4 callers
Method
uni
()
ray/vector.go:98
↓ 3 callers
Method
Acceptable
(k float64)
rp/random_process.go:49
↓ 3 callers
Method
Copy
()
misc/error-handling-abstraction/main.go:75
↓ 3 callers
Method
EqualShape
EqualShape check A.Size() == B.Size()
mat/mat.go:154
↓ 3 callers
Method
Estimate
(gp *GP, minimize bool, x []float64)
bo/exploration.go:13
↓ 3 callers
Method
Final
Final runs in any case if it is called.
errors/errors.go:32
↓ 3 callers
Function
HTTPRequest
HTTPRequest create a HTTP request
net/net.go:37
↓ 3 callers
Method
Has
Has searches in the set given n, has receives true if n is found.
csp/csp.go:415
↓ 3 callers
Function
Init
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