Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JeroenGar/sparrow
/ functions
Functions
115 in github.com/JeroenGar/sparrow
⨍
Functions
115
◇
Types & classes
35
↓ 32 callers
Method
iter
(&self)
src/eval/specialized_jaguars_pipeline.rs:208
↓ 16 callers
Method
len
(&self)
src/eval/specialized_jaguars_pipeline.rs:204
↓ 10 callers
Method
report
(&mut self, dt: DTransformation, eval: SampleEval)
src/sample/best_samples.rs:26
↓ 9 callers
Method
save
(&self)
src/quantify/tracker.rs:97
↓ 6 callers
Method
get_loss
(&self, pk: PItemKey)
src/quantify/tracker.rs:159
↓ 6 callers
Method
get_total_loss
(&self)
src/quantify/tracker.rs:179
↓ 6 callers
Method
new_timeout
(&mut self, timeout: Duration)
src/util/terminator.rs:38
↓ 5 callers
Method
move_item
(&mut self, pk: PItemKey, d_transf: DTransformation)
src/optimizer/worker.rs:70
↓ 5 callers
Function
quantify_collision_poly_poly
(s1: &SPolygon, s2: &SPolygon)
src/quantify/mod.rs:15
↓ 5 callers
Function
write_svg
(document: &Document, path: &Path, log_lvl: Level)
src/util/io.rs:85
↓ 4 callers
Method
change_strip_width
(&mut self, new_width: f32, split_position: Option<f32>)
src/optimizer/separator.rs:223
↓ 4 callers
Function
convert_sample_to_closest_feasible
Converts a sample transformation to the closest feasible transformation. (for now just mapping rotation to the closest allowed one)
src/sample/uniform_sampler.rs:96
↓ 4 callers
Method
early_terminate
(&mut self, shape: &SPolygon)
src/eval/specialized_jaguars_pipeline.rs:139
↓ 4 callers
Method
evaluate_sample
Evaluates a transformation. An upper bound can be provided to early terminate the process. Algorithm 7 from https://doi.org/10.48550/arXiv.2509.13329
src/eval/sep_evaluator.rs:41
↓ 4 callers
Method
get_weighted_loss
(&self, pk: PItemKey)
src/quantify/tracker.rs:169
↓ 4 callers
Method
is_empty
(&self)
src/eval/specialized_jaguars_pipeline.rs:200
↓ 4 callers
Method
upper_bound
(&self)
src/sample/best_samples.rs:81
↓ 4 callers
Method
weighted_loss
(&self)
src/quantify/tracker.rs:209
↓ 3 callers
Function
calc_shape_penalty
(s1: &SPolygon, s2: &SPolygon)
src/quantify/mod.rs:27
↓ 3 callers
Function
compression_phase
Algorithm 13 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/compress.rs:11
↓ 3 callers
Method
construct
(mut self)
src/optimizer/lbf.rs:38
↓ 3 callers
Function
dtransfs_are_similar
( dt1: DTransformation, dt2: DTransformation, x_threshold: f32, y_threshold: f32, )
src/sample/best_samples.rs:90
↓ 3 callers
Function
exploration_phase
Algorithm 12 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/explore.rs:21
↓ 3 callers
Method
get_total_weighted_loss
(&self)
src/quantify/tracker.rs:189
↓ 3 callers
Method
insert
(&mut self, hkey: HazKey, entity: HazardEntity)
src/eval/specialized_jaguars_pipeline.rs:185
↓ 3 callers
Method
kill
(&self)
src/util/terminator.rs:34
↓ 3 callers
Method
load
(&mut self, sol: &SPSolution, ct: &CollisionTracker)
src/optimizer/worker.rs:27
↓ 3 callers
Method
partial_cmp
(&self, other: &Self)
src/eval/sample_eval.rs:16
↓ 3 callers
Method
place_item
(&mut self, item_id: usize)
src/optimizer/lbf.rs:65
↓ 3 callers
Function
quantify_collision_poly_container
(s: &SPolygon, c_bbox: Rect)
src/quantify/mod.rs:36
↓ 3 callers
Method
random
(rng: &mut impl Rng, rotate: bool)
src/sample/coord_descent.rs:165
↓ 3 callers
Function
read_spp_input
(path: &Path)
src/util/io.rs:114
↓ 3 callers
Method
rollback
(&mut self, sol: &SPSolution, ots: Option<&CTSnapshot>)
src/optimizer/separator.rs:180
↓ 3 callers
Method
sample
(&self, rng: &mut impl Rng)
src/sample/uniform_sampler.rs:76
↓ 3 callers
Method
sum
(iter: I)
src/optimizer/worker.rs:104
↓ 2 callers
Function
calc_idx
(row: usize, col: usize, size: usize)
src/quantify/pair_matrix.rs:36
↓ 2 callers
Method
cmp
(&self, other: &Self)
src/eval/sample_eval.rs:22
↓ 2 callers
Function
init_logger
(level_filter: LevelFilter, log_file_path: &Path)
src/util/io.rs:46
↓ 2 callers
Function
intersect_range
(a: &Range<f32>, b: &Range<f32>)
src/sample/uniform_sampler.rs:89
↓ 2 callers
Method
loss
(&mut self, shape: &SPolygon)
src/eval/specialized_jaguars_pipeline.rs:143
↓ 2 callers
Method
n_evals
(&self)
src/eval/sep_evaluator.rs:74
↓ 2 callers
Function
practically_contained_items
Collects all items which point of inaccessibility (POI) is contained by pk_c's shape.
src/optimizer/explore.rs:219
↓ 2 callers
Method
recompute_loss_for_item
(&mut self, pk: PItemKey, l: &Layout)
src/quantify/tracker.rs:47
↓ 2 callers
Function
refine_coord_desc
Refines an initial 'sample' (transformation and evaluation) into a local minimum using a coordinate descent inspired algorithm.
src/sample/coord_descent.rs:24
↓ 2 callers
Method
register_item_move
(&mut self, l: &Layout, old_pk: PItemKey, new_pk: PItemKey)
src/quantify/tracker.rs:101
↓ 2 callers
Function
search_placement
Algorithm 6 and Figure 7 from https://doi.org/10.48550/arXiv.2509.13329
src/sample/search.rs:20
↓ 2 callers
Method
separate
Algorithm 9 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/separator.rs:72
↓ 1 callers
Method
ask
Generates candidates to be evaluated.
src/sample/coord_descent.rs:87
↓ 1 callers
Function
attempt_to_compress
(sep: &mut Separator, init_sol: &SPSolution, r_shrink: f32, term: &impl Terminator, sol_listener: &mut impl So
src/optimizer/compress.rs:57
↓ 1 callers
Method
best
(&self)
src/sample/best_samples.rs:77
↓ 1 callers
Method
calc_weighted_loss
(&self, haz: &HazardEntity, shape: &SPolygon)
src/eval/specialized_jaguars_pipeline.rs:157
↓ 1 callers
Function
calculate_average
(v: &[f32])
src/bench.rs:202
↓ 1 callers
Function
calculate_percentile
(v: &[f32], pct: f32)
src/bench.rs:168
↓ 1 callers
Function
collect_poly_collisions_in_detector_custom
Functionally identical to [`CDEngine::collect_poly_collisions`], but with early return. Collision collection will stop as soon as the loss exceeds the
src/eval/specialized_jaguars_pipeline.rs:27
↓ 1 callers
Method
contains_key
(&self, hkey: HazKey)
src/eval/specialized_jaguars_pipeline.rs:181
↓ 1 callers
Function
disrupt_solution
(sep: &mut Separator, config: &ExplorationConfig)
src/optimizer/explore.rs:89
↓ 1 callers
Function
final_refine_cd_config
(item: &Item)
src/sample/search.rs:91
↓ 1 callers
Method
find_placement
(&mut self, item_id: usize)
src/optimizer/lbf.rs:80
↓ 1 callers
Method
get_container_loss
(&self, pk: PItemKey)
src/quantify/tracker.rs:154
↓ 1 callers
Method
get_container_weight
(&self, pk: PItemKey)
src/quantify/tracker.rs:142
↓ 1 callers
Method
get_pair_loss
Algorithm 1 from https://doi.org/10.48550/arXiv.2509.13329 Evaluations between item pairs are stored in this data-structure for quick and easy retriev
src/quantify/tracker.rs:149
↓ 1 callers
Method
get_pair_weight
(&self, pk1: PItemKey, pk2: PItemKey)
src/quantify/tracker.rs:137
↓ 1 callers
Method
iter_with_index
(&self)
src/eval/specialized_jaguars_pipeline.rs:135
↓ 1 callers
Method
move_item
(&mut self, pk: PItemKey, d_transf: DTransformation)
src/optimizer/separator.rs:196
↓ 1 callers
Method
move_items
Algorithm 5 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/worker.rs:35
↓ 1 callers
Method
move_items_multi
Algorithm 10 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/separator.rs:146
↓ 1 callers
Function
optimize
Algorithm 11 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/mod.rs:22
↓ 1 callers
Function
overlap_area_proxy
(sp1: &SPSurrogate, sp2: &SPSurrogate, epsilon: f32)
src/quantify/overlap_proxy.rs:8
↓ 1 callers
Function
poles_overlap_area_proxy_simd
(sp1: &SPSurrogate, sp2: &SPSurrogate, epsilon: f32, p2: &CirclesSoA)
src/quantify/simd/overlap_proxy_simd.rs:20
↓ 1 callers
Function
prerefine_cd_config
(item: &Item)
src/sample/search.rs:79
↓ 1 callers
Function
quantify_collision_poly_poly_simd
(s1: &SPolygon, s2: &SPolygon, poles2: &CirclesSoA)
src/quantify/simd/mod.rs:14
↓ 1 callers
Method
reload
(&mut self, loss_bound: f32)
src/eval/specialized_jaguars_pipeline.rs:128
↓ 1 callers
Method
restore_but_keep_weights
(&mut self, cts: &CTSnapshot, layout: &Layout)
src/quantify/tracker.rs:85
↓ 1 callers
Method
tell
Updates the coordinate descent state with the new position and evaluation.
src/sample/coord_descent.rs:115
↓ 1 callers
Method
update_weights
Algorithm 8 from https://doi.org/10.48550/arXiv.2509.13329
src/quantify/tracker.rs:113
↓ 1 callers
Function
write_json
(json: &impl Serialize, path: &Path, log_lvl: Level)
src/util/io.rs:101
Method
add_assign
(&mut self, other: Self)
src/optimizer/worker.rs:118
Function
calculate_median
(v: &[f32])
src/bench.rs:198
Function
calculate_stddev
(v: &[f32])
src/bench.rs:206
Function
custom_pipeline_matches_jaguars
(shape: &SPolygon, det: &SpecializedHazardCollector)
src/util/assertions.rs:138
Method
default
()
src/util/terminator.rs:22
Method
default
()
src/util/ctrlc_terminator.rs:15
Method
evaluate_sample
(&mut self, dt: DTransformation, _upper_bound: Option<SampleEval>)
src/eval/lbf_evaluator.rs:34
Function
get_git_commit_hash
()
src/bench.rs:211
Method
index
(&self, (row, col): (usize, usize))
src/quantify/pair_matrix.rs:25
Method
index_mut
(&mut self, (row, col): (usize, usize))
src/quantify/pair_matrix.rs:31
Method
kill
(&self)
src/util/ctrlc_terminator.rs:39
Method
load
(&mut self, circles: &[Circle])
src/quantify/simd/circles_soa.rs:22
Function
main
()
src/main.rs:26
Function
main
()
src/bench.rs:28
Method
n_evals
(&self)
src/eval/lbf_evaluator.rs:56
Method
new
(sample_bbox: Rect, item: &Item, container_bbox: Rect)
src/sample/uniform_sampler.rs:30
Method
new
(size: usize, unique_thresh: f32)
src/sample/best_samples.rs:18
Method
new
( layout: &'a Layout, ct: &'a CollisionTracker, current_pk: PItemKey, )
src/eval/specialized_jaguars_pipeline.rs:108
Method
new
( layout: &'a Layout, item: &'a Item, current_pk: PItemKey, ct: &'a CollisionT
src/eval/sep_evaluator.rs:20
Method
new
(layout: &'a Layout, item: &'a Item)
src/eval/lbf_evaluator.rs:23
Method
new
(l: &Layout)
src/quantify/tracker.rs:24
Method
new
(size: usize)
src/quantify/pair_matrix.rs:13
Method
new
()
src/quantify/simd/circles_soa.rs:15
Method
new
(n: usize)
src/util/bit_reversal_iterator.rs:13
next →
1–100 of 115, ranked by callers