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
↓ 3 callers
Method
Insert
Insert inserts given n, done recieves true if n is inserted.
csp/csp.go:427
↓ 3 callers
Method
Len
()
sched/sched.go:363
↓ 3 callers
Function
NewRBTree
NewRBTree creates a red-black tree
ds/rbtree.go:68
↓ 3 callers
Function
NewStack
NewStack creates a new lock-free queue.
lockfree/stack.go:19
↓ 3 callers
Function
Pause
Pause stops the sched timing
sched/sched.go:70
↓ 3 callers
Method
Push
(interface{})
lockfree/stack_test.go:42
↓ 3 callers
Method
Put
Put ...
ds/lru.go:46
↓ 3 callers
Function
RandP
RandP creates a size by size random matrix concurrently
mat/mat.go:47
↓ 3 callers
Method
Run
Run will call f the fewest times as possible while trying to maximize the output value. It blocks until all rounds have elapsed, or Stop is called.
bo/optimizer.go:336
↓ 3 callers
Function
S33_DISASSEMBLE
S33_DISASSEMBLE implements Section 3.3 DISASSEMBLE problem: "to read cards from a cardfile and output to process X the stream of characters they conta
csp/csp.go:199
↓ 3 callers
Function
S34_ASSEMBLE
S34_ASSEMBLE implements Section 3.4 ASSEMBLE problem: "To read a stream of characters from process X and print them in lines of 125 characters on a li
csp/csp.go:243
↓ 3 callers
Method
Sample
Sample returns a random point within the bounds. It doesn't have to be uniformly distributed.
bo/param.go:26
↓ 3 callers
Method
Significant
()
rp/random_process.go:48
↓ 3 callers
Method
String
()
ds/rbtree.go:332
↓ 3 callers
Function
Try
Try tries a given function and see if it throw any error
errors/errors.go:12
↓ 3 callers
Function
WithMinimize
WithMinimize sets whether or not to minimize. Passing false, maximizes instead.
bo/options.go:41
↓ 3 callers
Function
WithRounds
WithRounds sets the total number of rounds to run.
bo/options.go:26
↓ 3 callers
Method
constrain
(loc *optimize.Location)
bo/bounds.go:21
↓ 3 callers
Function
interestingGoroutines
interestingGoroutines returns all goroutines we care about for the purpose of leak checking. It excludes testing or runtime ones.
leaktest/leaktest.go:75
↓ 3 callers
Function
newLambertian
(a *vec)
ray/material.go:16
↓ 3 callers
Function
newTaskItem
NewTaskItem creates a new queue item
sched/sched.go:340
↓ 3 callers
Function
newTaskQueue
()
sched/sched.go:260
↓ 3 callers
Method
next
()
ds/skiplist.go:158
↓ 3 callers
Method
pause
pause pauses sched without pause tasks from running
sched/sched.go:166
↓ 3 callers
Method
replace
(old, new *rbnode)
ds/rbtree.go:161
↓ 3 callers
Function
sampleParams
(params []Param)
bo/optimizer.go:96
↓ 3 callers
Method
sub0
(vv *vec)
ray/vector.go:59
↓ 3 callers
Function
truncateSample
(p Param, f func() float64)
bo/param.go:125
↓ 3 callers
Method
worker
()
sched/sched.go:195
↓ 2 callers
Function
Add
Add A+B
mat/matadd.go:23
↓ 2 callers
Function
AddFloat64
AddFloat64 add delta to given address atomically
lockfree/arithmetic.go:14
↓ 2 callers
Method
Cancel
Cancel cancels the goroutine. Note that the goroutine does not get stopped and a good practice is to use Cancel with WithUndo function: g := g.Go(fun
g/g.go:54
↓ 2 callers
Method
Catch
Catch catches the error that throwed in Try call.
errors/errors.go:23
↓ 2 callers
Method
Dims
Dims ...
bo/gp.go:84
↓ 2 callers
Method
DotP
DotP matrix multiplication
mat/matmult.go:13
↓ 2 callers
Method
Execute
Execute executes the actual task, it can return a result, or if the task need a retry, or it was failed in this execution.
sched/sched.go:28
↓ 2 callers
Function
Fastrand
Fastrand generates a random number by given two seeds
gen/generator.go:27
↓ 2 callers
Function
Get
Get gets goroutine local data
gls/gls.go:30
↓ 2 callers
Method
GetExecution
GetExecution get execution time
sched/tests/retry.go:40
↓ 2 callers
Function
GetFuncName
GetFuncName return the function name
rt/func.go:13
↓ 2 callers
Method
GetName
GetName returns the name of the parameter.
bo/param.go:19
↓ 2 callers
Method
GetProgress
GetProgress ...
caption/xfyun/client.go:229
↓ 2 callers
Method
Init
Init ...
bo/bounds.go:38
↓ 2 callers
Function
KolmogorovZurbenko
KolmogorovZurbenko performs a Kolmogorov-Zurbenko (KZ) filter of xs with window size m and k iterations. m must be a positive odd integer. k must be p
detect/change.go:35
↓ 2 callers
Method
LookAll
LookAll reads all elements from ring buffer this method doesn't consume all elements
ds/ring_buffer.go:56
↓ 2 callers
Method
Maximum
Maximum returns the maximum value logged.
bo/gp.go:197
↓ 2 callers
Method
Minimum
Minimum returns the minimum value logged.
bo/gp.go:191
↓ 2 callers
Function
MovingAverage
MovingAverage performs a moving average (MA) filter of xs with window size m. m must be a positive odd integer. Note that this is filter is often des
detect/change.go:10
↓ 2 callers
Function
NewDenseP
NewDenseP a size by size matrix concurrently
mat/mat.go:64
↓ 2 callers
Function
NewGP
NewGP creates a new Gaussian process with the specified covariance function (cov) and noise level (variance).
bo/gp.go:38
↓ 2 callers
Function
NewS43_SmallSetOfIntegers
NewS43_SmallSetOfIntegers returns a S43_SmallSetOfIntegers
csp/csp.go:398
↓ 2 callers
Method
OutputName
OutputName ...
bo/gp.go:63
↓ 2 callers
Method
Range
Range interates `from` to `to` with `op`.
ds/skiplist.go:109
↓ 2 callers
Function
Resume
Resume resumes sched and start executing tasks this is a pair call with Pause(), Resume() must be called second
sched/sched.go:77
↓ 2 callers
Method
Rounds
Rounds is the number of rounds that have been run.
bo/optimizer.go:400
↓ 2 callers
Function
RunHTTP
RunHTTP ...
benchs/restrpc/ser/server.go:25
↓ 2 callers
Function
RunRPC
RunRPC ...
benchs/restrpc/ser/server.go:56
↓ 2 callers
Method
Running
Running returns whether or not the optimizer is running.
bo/optimizer.go:395
↓ 2 callers
Function
S31_COPY
S31_COPY implements Section 3.1 COPY problem: "Write a process X to copy characters output by process west to process, east." Solution: X :: *[c:cha
csp/csp.go:101
↓ 2 callers
Function
S32_SQUASH_EX
S32_SQUASH_EX implements Section 3.2 SQUASH exercise: "(2) As an exercise, adapt this process to deal sensibly with input which ends with an odd numbe
csp/csp.go:160
↓ 2 callers
Method
SEARCH
SEARCH returns the index of n if it is found in the set, otherwise returns the size of the set.
csp/csp.go:404
↓ 2 callers
Method
Search
Search returns true if k is founded in the skiplist.
ds/skiplist.go:99
↓ 2 callers
Method
Send
Send sends a GC complextion signal to the given channel.
rt/gc.go:36
↓ 2 callers
Method
SetDrawableSize
SetDrawableSize sets the size, in pixels, of textures for rendering layer content. Reference: https://developer.apple.com/documentation/quartzcore/ca
metal/moving/coreanim/coreanim.go:103
↓ 2 callers
Function
Trigger
Trigger given tasks immediately
sched/sched.go:65
↓ 2 callers
Method
Turn
Turn turns the lights on or off.
hue/lights/lights.go:37
↓ 2 callers
Method
add0
(x, y, z float64)
ray/vector.go:39
↓ 2 callers
Method
arrival
(t *task)
sched/sched.go:213
↓ 2 callers
Method
compute
()
bo/gp.go:103
↓ 2 callers
Method
cross
(vv *vec)
ray/vector.go:91
↓ 2 callers
Method
delCase1
(n *rbnode)
ds/rbtree.go:256
↓ 2 callers
Method
eval
()
bo/optimizer.go:166
↓ 2 callers
Method
execute
(t *task)
sched/sched.go:220
↓ 2 callers
Function
fdToFileConn
(fd int)
benchs/syscall/syscall_test.go:66
↓ 2 callers
Method
find
(key interface{})
ds/rbtree.go:206
↓ 2 callers
Method
getNextSliceID
()
caption/xfyun/client.go:356
↓ 2 callers
Function
getThreads
getThreads returns the number of running threads Linux:
mkill/mkill.go:81
↓ 2 callers
Function
gpAdd
(gp *bo.GP, x, y float64)
bo/gp_test.go:20
↓ 2 callers
Method
hit
(r *ray, tmin, tmax float64, rec *hitRecord)
ray/hit.go:11
↓ 2 callers
Method
insertCase1
(n *rbnode)
ds/rbtree.go:116
↓ 2 callers
Function
isConditionErr
(err error)
bo/gp.go:98
↓ 2 callers
Function
isFatalErr
(err error)
bo/optimizer.go:118
↓ 2 callers
Function
leakedGoroutines
leakedGoroutines returns all goroutines we are considering leaked and the boolean flag indicating if no leaks detected
leaktest/leaktest.go:96
↓ 2 callers
Method
mult0
(vv float64)
ray/vector.go:71
↓ 2 callers
Function
newDielectric
(ri float64)
ray/material.go:50
↓ 2 callers
Function
newMetal
(a *vec, fuzzy float64)
ray/material.go:32
↓ 2 callers
Function
newRay
()
ray/ray.go:11
↓ 2 callers
Method
nextSleep
(now time.Time)
promise/attempt.go:58
↓ 2 callers
Method
pointAt
(t float64)
ray/ray.go:25
↓ 2 callers
Method
postMulti
(uri, filename string, content []byte, params url.Values)
caption/xfyun/client.go:277
↓ 2 callers
Method
push
push item
sched/sched.go:276
↓ 2 callers
Method
put
(v interface{})
sched/sched.go:357
↓ 2 callers
Function
randInUnitSphere
(fuzz float64)
ray/material.go:93
↓ 2 callers
Method
reflect
(n *vec)
ray/vector.go:102
↓ 2 callers
Function
render
()
ray/main.go:69
↓ 2 callers
Method
reschedule
(t *task, when time.Time)
sched/sched.go:120
↓ 2 callers
Function
run
()
metal/hello/main.go:57
↓ 2 callers
Method
schedule
(t Task, when time.Time)
sched/sched.go:106
↓ 2 callers
Function
socketpair
()
benchs/syscall/syscall_test.go:49
↓ 2 callers
Method
uncle
()
ds/rbtree.go:39
← previous
next →
101–200 of 669, ranked by callers