Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Adam-Vandervorst/PyBHV
/ functions
Functions
786 in github.com/Adam-Vandervorst/PyBHV
⨍
Functions
786
◇
Types & classes
81
↓ 4 callers
Method
mutual_information
(self, other: Self, distance=False)
bhv/abstract.py:271
↓ 4 callers
Function
next_state
(state, input)
examples/state_machine.py:27
↓ 4 callers
Method
preorder
(self, p=lambda x: True)
bhv/symbolic.py:184
↓ 4 callers
Method
random
(cls, active: float)
bhv/abstract.py:544
↓ 4 callers
Method
random
(cls)
bhv/abstract.py:717
↓ 4 callers
Method
rehash
(self)
bhv/slice.py:27
↓ 4 callers
Method
repack8
(self)
bhv/np.py:424
↓ 4 callers
Method
shred
(self, **kwargs)
bhv/symbolic.py:178
↓ 4 callers
Function
smallest_power2_larger
(x)
tests/representative_equivalent.py:12
↓ 4 callers
Function
step
(hv: BHV)
examples/gol.py:115
↓ 4 callers
Method
vars
(self)
bhv/symbolic.py:28
↓ 3 callers
Function
L
(vs)
tests/representative_equivalent.py:8
↓ 3 callers
Method
_ite_window
(cls, vs: list[Self], b: int, t: int)
bhv/abstract.py:643
↓ 3 callers
Method
check_rv_input
Assert that the input values ``number_successes`` are OK. The input values ``number_successes`` for the random variable have to be in
bhv/poibin.py:244
↓ 3 callers
Method
closest
(self, vs: list[Self])
bhv/abstract.py:92
↓ 3 callers
Function
complement
(m, f, z)
tests/sym_laws.py:32
↓ 3 callers
Function
complement
(m, f, z)
tests/laws.py:48
↓ 3 callers
Function
embed
(im)
examples/embed_image.py:50
↓ 3 callers
Method
expected_error
Gives expected bit error rate between an expression that contains only representative operators and random hypervectors, and a given
bhv/symbolic.py:650
↓ 3 callers
Function
extensionality
(f, g)
tests/laws.py:32
↓ 3 callers
Function
format_list
(xs, **kwargs)
bhv/shared.py:115
↓ 3 callers
Function
format_multiple
(xs, start="", sep="", end="", indent="", aindent="", newline_threshold=40)
bhv/shared.py:106
↓ 3 callers
Function
grid_to_viz
(g: list[list[bool]])
examples/gol.py:101
↓ 3 callers
Function
hv_to_grid
(hv: BHV)
examples/gol.py:109
↓ 3 callers
Method
invert
(self, x: 'HV', one: 'HV.ONE', zero: 'HV.ZERO')
bhv/variants.py:78
↓ 3 callers
Method
level
(cls, active_fraction: float)
bhv/np.py:94
↓ 3 callers
Method
normal
(mean=0., af=.5)
bhv/abstract.py:147
↓ 3 callers
Method
optimal_sharing
Merge branches that are the same. Commutativity is not taken into account.
bhv/symbolic.py:122
↓ 3 callers
Function
propagate2
(f, m)
tests/laws.py:27
↓ 3 callers
Method
repack64
(self)
bhv/np.py:273
↓ 3 callers
Method
representative
(cls, vs: list['NumPyBoolBHV'])
bhv/np.py:117
↓ 3 callers
Method
select_rand2
(self, other: Self, power_left: int)
bhv/abstract.py:231
↓ 3 callers
Method
shortname
(cls, i: int, letters=ascii_uppercase)
bhv/symbolic.py:482
↓ 3 callers
Method
swap_even_odd
(self)
bhv/abstract.py:569
↓ 3 callers
Function
test
(gen, on)
tests/representative_equivalent.py:233
↓ 3 callers
Method
threshold
(cls, vs: list['NumPyBoolBHV'], t: int)
bhv/np.py:67
↓ 3 callers
Function
transport2
(law, l, r)
tests/laws.py:51
↓ 3 callers
Function
unify
(t1: Symbolic, t2: Symbolic, knowledge: Optional[Knowledge] = None)
bhv/unification.py:8
↓ 3 callers
Method
within_std
(self, vs: list[Self], d: float, relative: bool = False)
bhv/abstract.py:101
↓ 2 callers
Method
_get_singular
(cls, permutation_id: int)
bhv/abstract.py:742
↓ 2 callers
Method
_logic_representative
(cls, vs: list[Self])
bhv/abstract.py:333
↓ 2 callers
Method
_logic_threshold
(cls, vs: list[Self], t: int)
bhv/abstract.py:609
↓ 2 callers
Method
_majority5_via_3
(cls, a: Self, b: Self, c: Self, d: Self, e: Self)
bhv/abstract.py:177
↓ 2 callers
Method
_majority7_via_3
(cls, a: Self, b: Self, c: Self, d: Self, e: Self, f: Self, g: Self)
bhv/abstract.py:181
↓ 2 callers
Method
_majority9_via_3
(cls, a: Self, b: Self, c: Self, d: Self, e: Self, f: Self, g: Self, h: Self, i: Self)
bhv/abstract.py:187
↓ 2 callers
Function
absorptive
(m, w)
tests/sym_laws.py:28
↓ 2 callers
Function
absorptive
(m, w)
tests/laws.py:21
↓ 2 callers
Function
angle_to_index
(a)
examples/pdm.py:12
↓ 2 callers
Function
assume2
(law, p)
tests/laws.py:53
↓ 2 callers
Function
assume3
(law, p)
tests/laws.py:54
↓ 2 callers
Method
best_division_window_bounds
(n: int, f: float = .5, af=.5)
bhv/abstract.py:693
↓ 2 callers
Function
bhv_conv_metrics
(under)
tests/laws.py:153
↓ 2 callers
Function
bitconfigs
(n)
tests/lsynthesis.py:8
↓ 2 callers
Function
bounded_lattice
(join, top, bot)
tests/sym_laws.py:57
↓ 2 callers
Function
bounded_lattice
(join, top, bot)
tests/laws.py:57
↓ 2 callers
Method
constant
(self)
bhv/symbolic.py:51
↓ 2 callers
Function
decode_person
(hv: BHV)
examples/records.py:44
↓ 2 callers
Function
demorgan
(f, m, w)
tests/sym_laws.py:30
↓ 2 callers
Function
demorgan
(f, m, w)
tests/laws.py:24
↓ 2 callers
Method
draw_children
(self, **kwargs)
bhv/symbolic.py:61
↓ 2 callers
Method
draw_edges
(self, **kwargs)
bhv/symbolic.py:57
↓ 2 callers
Method
draw_node
(self, **kwargs)
bhv/symbolic.py:54
↓ 2 callers
Function
encode_decode
(enc, dec)
tests/laws.py:41
↓ 2 callers
Function
encode_person
(p: Person)
examples/records.py:29
↓ 2 callers
Function
equals
(f, a, b)
tests/sym_laws.py:25
↓ 2 callers
Function
equals
(f, a, b)
tests/laws.py:18
↓ 2 callers
Function
extensionality5
(f, g)
tests/laws.py:36
↓ 2 callers
Method
feistal
(self, k: Self, inv=False)
bhv/abstract.py:585
↓ 2 callers
Method
fix
Calculates and returns the fix-point of operator `f` on self. Recursively applies until no change was made. If `f` returns No
bhv/symbolic.py:155
↓ 2 callers
Method
from_bitstring
(cls, s: str)
bhv/np.py:167
↓ 2 callers
Method
from_bytes
(cls, bs: bytes)
bhv/abstract.py:19
↓ 2 callers
Method
from_scope
(cls, local_dict)
bhv/visualization.py:6
↓ 2 callers
Function
greedy
(initial, iters=100)
tests/sym_laws.py:161
↓ 2 callers
Function
idempotent
(m)
tests/sym_laws.py:22
↓ 2 callers
Function
idempotent
(m)
tests/laws.py:15
↓ 2 callers
Function
invariant_under
(f, p)
tests/laws.py:42
↓ 2 callers
Method
load_pbm
(cls, file: 'IO[Any]', bhv: 'AbstractBHV', binary=False)
bhv/visualization.py:26
↓ 2 callers
Method
majority
(cls, vs: list[Self])
bhv/abstract.py:60
↓ 2 callers
Method
permute_bits
(self, permutation: TorchBoolPermutation)
bhv/pytorch.py:87
↓ 2 callers
Method
permute_bits
(self, permutation: 'NumPyBoolPermutation')
bhv/np.py:60
↓ 2 callers
Method
permute_bytes
(self, permutation: 'NumPyBytePermutation')
bhv/np.py:223
↓ 2 callers
Method
permute_bytes
(self, permutation: 'VanillaPermutation')
bhv/vanilla.py:65
↓ 2 callers
Method
permute_words
(self, permutation: TorchWordPermutation)
bhv/pytorch.py:176
↓ 2 callers
Method
permute_words
(self, permutation: 'NumPyWordPermutation')
bhv/np.py:393
↓ 2 callers
Function
propagate3
(f, m)
tests/laws.py:28
↓ 2 callers
Method
rand
(cls)
bhv/pytorch.py:61
↓ 2 callers
Method
rand
(cls)
bhv/np.py:36
↓ 2 callers
Method
rand2
(cls, power: int)
bhv/symbolic.py:399
↓ 2 callers
Method
random
(cls, active: float)
bhv/symbolic.py:404
↓ 2 callers
Method
random
(cls, active: float)
bhv/np.py:40
↓ 2 callers
Function
rec
(p, pn, depth)
tests/representative_equivalent.py:59
↓ 2 callers
Method
reconstruct
(self, l, r)
bhv/symbolic.py:741
↓ 2 callers
Method
roll_bits
(self, n: int)
bhv/pytorch.py:84
↓ 2 callers
Method
roll_bits
(self, n: int)
bhv/vanilla.py:57
↓ 2 callers
Function
search
(e)
tests/sym_laws.py:132
↓ 2 callers
Method
select
(self, when1: Self, when0: Self)
bhv/symbolic.py:433
↓ 2 callers
Function
self_inverse
(m, u)
tests/sym_laws.py:23
↓ 2 callers
Function
self_inverse
(m, u)
tests/laws.py:16
↓ 2 callers
Method
show_program
(self, name="f", indent=" ", **kwargs)
bhv/symbolic.py:77
↓ 2 callers
Method
spawn
(self, one: 'HV.ONE', zero: 'HV.ZERO')
bhv/variants.py:13
← previous
next →
101–200 of 786, ranked by callers