Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jeadie/Go-L
/ functions
Functions
89 in github.com/Jeadie/Go-L
⨍
Functions
89
◇
Types & classes
13
↓ 27 callers
Function
enosys
()
docs/src/wasm_exec.js:8
↓ 13 callers
Function
mod
mod operation that handles negative number properly.
pkg/gol/topology.go:162
↓ 8 callers
Method
Size
Size of the square grid lattice
pkg/gol/lattice.go:28
↓ 3 callers
Method
_resume
()
docs/src/wasm_exec.js:534
↓ 3 callers
Function
runWasmAdd
(x: number, y: number)
docs/src/App.tsx:36
↓ 2 callers
Function
ConstructUintLatticeFromInput
(inputParams InputParameters)
pkg/gol/lattice.go:137
↓ 2 callers
Function
GetTransformation
GetTransformation returns the transformation function for a given Topology.
pkg/gol/topology.go:29
↓ 2 callers
Method
GetValue
GetValue on lattice at coordinate (x, y)
pkg/gol/lattice.go:33
↓ 2 callers
Method
GetValuesAround
GetValuesAround returns all values around a coordinate within an L1 distance of w.
pkg/gol/lattice.go:48
↓ 2 callers
Method
SingleIteration
SingleIteration of applying an update rule to a lattice. Returns true if any coordinate value in the lattice updated in the iteration.
pkg/gol/lattice.go:107
↓ 2 callers
Function
reflectSquareCoordinate
(a, n int)
pkg/gol/topology.go:147
↓ 1 callers
Function
ConstructUintGrid
ConstructUintGrid of binary values on a given square size `n`. Probability of a value of 1 is binaryProb.
pkg/gol/lattice.go:166
↓ 1 callers
Function
ConstructUintLattice
(params LatticeParams, updateRule UpdateRuleFn)
pkg/gol/lattice.go:148
↓ 1 callers
Function
ConstructUpdateRule
(updateRuleNumber uint)
pkg/gol/gameoflife.go:18
↓ 1 callers
Method
Copy
Copy a Lattice struct, and all its references, to a new instance (i.e. deep copy).
pkg/gol/lattice.go:62
↓ 1 callers
Function
CreateUpdateRule
CreateUpdateRule from a 32 bit update rule number. See README.md#2d-implementation for details.
pkg/gol/gameoflife.go:38
↓ 1 callers
Method
GetFormattedValueAt
(x, y int)
pkg/gol/lattice.go:23
↓ 1 callers
Method
GetLatticeCoordinates
GetLatticeCoordinates into a channel of all coordinates on the lattice.
pkg/gol/lattice.go:74
↓ 1 callers
Function
IsValidTopology
Returns true iff x is an allowed Topology.
pkg/gol/topology.go:16
↓ 1 callers
Method
MakeGrid
MakeGrid converts and copies the internal grid representation to the standard 2D representation.
pkg/gol/lattice.go:120
↓ 1 callers
Function
RunCase
(test TopologyTestCase, fn TopologyTransformation)
pkg/gol/topology_test.go:18
↓ 1 callers
Method
SetValue
SetValue on lattice at coordinate (x, y) to v
pkg/gol/lattice.go:42
↓ 1 callers
Method
UpdatePair
UpdatePair value within a lattice at a given co-ordinate. if `readL` is nil, will read from referenced Lattice. This allows for parallel update of lat
pkg/gol/lattice.go:90
↓ 1 callers
Function
close
(fd, callback)
docs/src/wasm_exec.js:37
↓ 1 callers
Function
countOnesAround
(box [][]uint, x, y uint)
pkg/gol/gameoflife.go:61
↓ 1 callers
Function
fetchAndInstantiateTask
()
docs/src/App.tsx:23
↓ 1 callers
Function
getMidpoint
(box [][]uint)
pkg/gol/gameoflife.go:82
↓ 1 callers
Function
parseArguments
()
cmd/golcli/main.go:14
↓ 1 callers
Function
reflectSphere
Reflect point (x,y) across y=n-x
pkg/gol/topology.go:157
↓ 1 callers
Function
reflectSquare
Reflect the point (x,y) back into the square bound by (0, 0), (n, n)
pkg/gol/topology.go:143
↓ 1 callers
Function
reportWebVitals
(onPerfEntry?: ReportHandler)
docs/src/reportWebVitals.ts:3
↓ 1 callers
Method
run
(instance)
docs/src/wasm_exec.js:458
↓ 1 callers
Function
runProcessors
Run a set of read-only processes on a Lattice.
cmd/golcli/main.go:65
↓ 1 callers
Function
wasmBrowserInstantiate
(wasmModuleUrl: string, importObject)
docs/src/App.tsx:10
Function
App
()
docs/src/App.tsx:6
Function
CalculateGOLValue
(box [][]uint)
pkg/gol/gameoflife.go:26
Function
Print
(l *gol.Lattice[uint])
cmd/golcli/main.go:51
Function
Run
Run a cellular automaton simulation. Return type is mapping of iteration index to grid values.
cmd/gojs/main.go:10
Function
TestTopologyTransformation
(t *testing.T)
pkg/gol/topology_test.go:28
Function
TranslateBordered
(x, y int, dx, dy int, n int)
pkg/gol/topology.go:46
Function
TranslateKleinBottle
(x, y int, dx, dy int, n int)
pkg/gol/topology.go:64
Function
TranslateProjectivePlane
(x, y int, dx, dy int, n int)
pkg/gol/topology.go:84
Function
TranslateSphere
(x, y int, dx, dy int, n int)
pkg/gol/topology.go:113
Function
TranslateTorus
(x, y int, dx, dy int, n int)
pkg/gol/topology.go:55
Method
_makeFuncWrapper
(id)
docs/src/wasm_exec.js:544
Function
add
This exports an add function. It takes in two 32-bit integer values And returns a 32-bit integer value. To make this function callable from JavaScript
cmd/gojs/main.go:28
Function
chdir
()
docs/src/wasm_exec.js:72
Function
chmod
(path, mode, callback)
docs/src/wasm_exec.js:35
Function
chown
(path, uid, gid, callback)
docs/src/wasm_exec.js:36
Method
constructor
()
docs/src/wasm_exec.js:96
Function
cwd
()
docs/src/wasm_exec.js:71
Function
fchmod
(fd, mode, callback)
docs/src/wasm_exec.js:38
Function
fchown
(fd, uid, gid, callback)
docs/src/wasm_exec.js:39
Function
fstat
(fd, callback)
docs/src/wasm_exec.js:40
Function
fsync
(fd, callback)
docs/src/wasm_exec.js:41
Function
ftruncate
(fd, length, callback)
docs/src/wasm_exec.js:42
Method
getInt64
(addr)
docs/src/wasm_exec.js:116
Function
getegid
()
docs/src/wasm_exec.js:66
Function
geteuid
()
docs/src/wasm_exec.js:65
Function
getgid
()
docs/src/wasm_exec.js:64
Function
getgroups
()
docs/src/wasm_exec.js:67
Function
getuid
()
docs/src/wasm_exec.js:63
Function
lchown
(path, uid, gid, callback)
docs/src/wasm_exec.js:43
Function
link
(path, link, callback)
docs/src/wasm_exec.js:44
Method
loadSlice
(addr)
docs/src/wasm_exec.js:185
Method
loadSliceOfValues
(addr)
docs/src/wasm_exec.js:191
Method
loadString
(addr)
docs/src/wasm_exec.js:201
Method
loadValue
(addr)
docs/src/wasm_exec.js:122
Function
lstat
(path, callback)
docs/src/wasm_exec.js:45
Function
main
()
cmd/golcli/main.go:31
Function
main
()
cmd/gojs/main.go:33
Function
mkdir
(path, perm, callback)
docs/src/wasm_exec.js:46
Function
open
(path, flags, mode, callback)
docs/src/wasm_exec.js:47
Function
read
(fd, buffer, offset, length, position, callback)
docs/src/wasm_exec.js:48
Function
readdir
(path, callback)
docs/src/wasm_exec.js:49
Function
readlink
(path, callback)
docs/src/wasm_exec.js:50
Function
rename
(from, to, callback)
docs/src/wasm_exec.js:51
Function
rmdir
(path, callback)
docs/src/wasm_exec.js:52
Method
setInt64
(addr, v)
docs/src/wasm_exec.js:111
Function
stat
(path, callback)
docs/src/wasm_exec.js:53
Method
storeValue
(addr, v)
docs/src/wasm_exec.js:135
Method
strPtr
(str)
docs/src/wasm_exec.js:488
Function
symlink
(path, link, callback)
docs/src/wasm_exec.js:54
Function
truncate
(path, length, callback)
docs/src/wasm_exec.js:55
Function
umask
()
docs/src/wasm_exec.js:70
Function
unlink
(path, callback)
docs/src/wasm_exec.js:56
Function
utimes
(path, atime, mtime, callback)
docs/src/wasm_exec.js:57
Function
write
(fd, buf, offset, length, position, callback)
docs/src/wasm_exec.js:27
Function
writeSync
(fd, buf)
docs/src/wasm_exec.js:18