MCPcopy Create free account

hub / github.com/changkun/pkg / functions

Functions669 in github.com/changkun/pkg

↓ 3 callersMethodInsert
Insert inserts given n, done recieves true if n is inserted.
csp/csp.go:427
↓ 3 callersMethodLen
()
sched/sched.go:363
↓ 3 callersFunctionNewRBTree
NewRBTree creates a red-black tree
ds/rbtree.go:68
↓ 3 callersFunctionNewStack
NewStack creates a new lock-free queue.
lockfree/stack.go:19
↓ 3 callersFunctionPause
Pause stops the sched timing
sched/sched.go:70
↓ 3 callersMethodPush
(interface{})
lockfree/stack_test.go:42
↓ 3 callersMethodPut
Put ...
ds/lru.go:46
↓ 3 callersFunctionRandP
RandP creates a size by size random matrix concurrently
mat/mat.go:47
↓ 3 callersMethodRun
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 callersFunctionS33_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 callersFunctionS34_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 callersMethodSample
Sample returns a random point within the bounds. It doesn't have to be uniformly distributed.
bo/param.go:26
↓ 3 callersMethodSignificant
()
rp/random_process.go:48
↓ 3 callersMethodString
()
ds/rbtree.go:332
↓ 3 callersFunctionTry
Try tries a given function and see if it throw any error
errors/errors.go:12
↓ 3 callersFunctionWithMinimize
WithMinimize sets whether or not to minimize. Passing false, maximizes instead.
bo/options.go:41
↓ 3 callersFunctionWithRounds
WithRounds sets the total number of rounds to run.
bo/options.go:26
↓ 3 callersMethodconstrain
(loc *optimize.Location)
bo/bounds.go:21
↓ 3 callersFunctioninterestingGoroutines
interestingGoroutines returns all goroutines we care about for the purpose of leak checking. It excludes testing or runtime ones.
leaktest/leaktest.go:75
↓ 3 callersFunctionnewLambertian
(a *vec)
ray/material.go:16
↓ 3 callersFunctionnewTaskItem
NewTaskItem creates a new queue item
sched/sched.go:340
↓ 3 callersFunctionnewTaskQueue
()
sched/sched.go:260
↓ 3 callersMethodnext
()
ds/skiplist.go:158
↓ 3 callersMethodpause
pause pauses sched without pause tasks from running
sched/sched.go:166
↓ 3 callersMethodreplace
(old, new *rbnode)
ds/rbtree.go:161
↓ 3 callersFunctionsampleParams
(params []Param)
bo/optimizer.go:96
↓ 3 callersMethodsub0
(vv *vec)
ray/vector.go:59
↓ 3 callersFunctiontruncateSample
(p Param, f func() float64)
bo/param.go:125
↓ 3 callersMethodworker
()
sched/sched.go:195
↓ 2 callersFunctionAdd
Add A+B
mat/matadd.go:23
↓ 2 callersFunctionAddFloat64
AddFloat64 add delta to given address atomically
lockfree/arithmetic.go:14
↓ 2 callersMethodCancel
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 callersMethodCatch
Catch catches the error that throwed in Try call.
errors/errors.go:23
↓ 2 callersMethodDims
Dims ...
bo/gp.go:84
↓ 2 callersMethodDotP
DotP matrix multiplication
mat/matmult.go:13
↓ 2 callersMethodExecute
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 callersFunctionFastrand
Fastrand generates a random number by given two seeds
gen/generator.go:27
↓ 2 callersFunctionGet
Get gets goroutine local data
gls/gls.go:30
↓ 2 callersMethodGetExecution
GetExecution get execution time
sched/tests/retry.go:40
↓ 2 callersFunctionGetFuncName
GetFuncName return the function name
rt/func.go:13
↓ 2 callersMethodGetName
GetName returns the name of the parameter.
bo/param.go:19
↓ 2 callersMethodGetProgress
GetProgress ...
caption/xfyun/client.go:229
↓ 2 callersMethodInit
Init ...
bo/bounds.go:38
↓ 2 callersFunctionKolmogorovZurbenko
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 callersMethodLookAll
LookAll reads all elements from ring buffer this method doesn't consume all elements
ds/ring_buffer.go:56
↓ 2 callersMethodMaximum
Maximum returns the maximum value logged.
bo/gp.go:197
↓ 2 callersMethodMinimum
Minimum returns the minimum value logged.
bo/gp.go:191
↓ 2 callersFunctionMovingAverage
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 callersFunctionNewDenseP
NewDenseP a size by size matrix concurrently
mat/mat.go:64
↓ 2 callersFunctionNewGP
NewGP creates a new Gaussian process with the specified covariance function (cov) and noise level (variance).
bo/gp.go:38
↓ 2 callersFunctionNewS43_SmallSetOfIntegers
NewS43_SmallSetOfIntegers returns a S43_SmallSetOfIntegers
csp/csp.go:398
↓ 2 callersMethodOutputName
OutputName ...
bo/gp.go:63
↓ 2 callersMethodRange
Range interates `from` to `to` with `op`.
ds/skiplist.go:109
↓ 2 callersFunctionResume
Resume resumes sched and start executing tasks this is a pair call with Pause(), Resume() must be called second
sched/sched.go:77
↓ 2 callersMethodRounds
Rounds is the number of rounds that have been run.
bo/optimizer.go:400
↓ 2 callersFunctionRunHTTP
RunHTTP ...
benchs/restrpc/ser/server.go:25
↓ 2 callersFunctionRunRPC
RunRPC ...
benchs/restrpc/ser/server.go:56
↓ 2 callersMethodRunning
Running returns whether or not the optimizer is running.
bo/optimizer.go:395
↓ 2 callersFunctionS31_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 callersFunctionS32_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 callersMethodSEARCH
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 callersMethodSearch
Search returns true if k is founded in the skiplist.
ds/skiplist.go:99
↓ 2 callersMethodSend
Send sends a GC complextion signal to the given channel.
rt/gc.go:36
↓ 2 callersMethodSetDrawableSize
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 callersFunctionTrigger
Trigger given tasks immediately
sched/sched.go:65
↓ 2 callersMethodTurn
Turn turns the lights on or off.
hue/lights/lights.go:37
↓ 2 callersMethodadd0
(x, y, z float64)
ray/vector.go:39
↓ 2 callersMethodarrival
(t *task)
sched/sched.go:213
↓ 2 callersMethodcompute
()
bo/gp.go:103
↓ 2 callersMethodcross
(vv *vec)
ray/vector.go:91
↓ 2 callersMethoddelCase1
(n *rbnode)
ds/rbtree.go:256
↓ 2 callersMethodeval
()
bo/optimizer.go:166
↓ 2 callersMethodexecute
(t *task)
sched/sched.go:220
↓ 2 callersFunctionfdToFileConn
(fd int)
benchs/syscall/syscall_test.go:66
↓ 2 callersMethodfind
(key interface{})
ds/rbtree.go:206
↓ 2 callersMethodgetNextSliceID
()
caption/xfyun/client.go:356
↓ 2 callersFunctiongetThreads
getThreads returns the number of running threads Linux:
mkill/mkill.go:81
↓ 2 callersFunctiongpAdd
(gp *bo.GP, x, y float64)
bo/gp_test.go:20
↓ 2 callersMethodhit
(r *ray, tmin, tmax float64, rec *hitRecord)
ray/hit.go:11
↓ 2 callersMethodinsertCase1
(n *rbnode)
ds/rbtree.go:116
↓ 2 callersFunctionisConditionErr
(err error)
bo/gp.go:98
↓ 2 callersFunctionisFatalErr
(err error)
bo/optimizer.go:118
↓ 2 callersFunctionleakedGoroutines
leakedGoroutines returns all goroutines we are considering leaked and the boolean flag indicating if no leaks detected
leaktest/leaktest.go:96
↓ 2 callersMethodmult0
(vv float64)
ray/vector.go:71
↓ 2 callersFunctionnewDielectric
(ri float64)
ray/material.go:50
↓ 2 callersFunctionnewMetal
(a *vec, fuzzy float64)
ray/material.go:32
↓ 2 callersFunctionnewRay
()
ray/ray.go:11
↓ 2 callersMethodnextSleep
(now time.Time)
promise/attempt.go:58
↓ 2 callersMethodpointAt
(t float64)
ray/ray.go:25
↓ 2 callersMethodpostMulti
(uri, filename string, content []byte, params url.Values)
caption/xfyun/client.go:277
↓ 2 callersMethodpush
push item
sched/sched.go:276
↓ 2 callersMethodput
(v interface{})
sched/sched.go:357
↓ 2 callersFunctionrandInUnitSphere
(fuzz float64)
ray/material.go:93
↓ 2 callersMethodreflect
(n *vec)
ray/vector.go:102
↓ 2 callersFunctionrender
()
ray/main.go:69
↓ 2 callersMethodreschedule
(t *task, when time.Time)
sched/sched.go:120
↓ 2 callersFunctionrun
()
metal/hello/main.go:57
↓ 2 callersMethodschedule
(t Task, when time.Time)
sched/sched.go:106
↓ 2 callersFunctionsocketpair
()
benchs/syscall/syscall_test.go:49
↓ 2 callersMethoduncle
()
ds/rbtree.go:39
← previousnext →101–200 of 669, ranked by callers