MCPcopy Create free account

hub / github.com/JeroenGar/sparrow / functions

Functions115 in github.com/JeroenGar/sparrow

↓ 32 callersMethoditer
(&self)
src/eval/specialized_jaguars_pipeline.rs:208
↓ 16 callersMethodlen
(&self)
src/eval/specialized_jaguars_pipeline.rs:204
↓ 10 callersMethodreport
(&mut self, dt: DTransformation, eval: SampleEval)
src/sample/best_samples.rs:26
↓ 9 callersMethodsave
(&self)
src/quantify/tracker.rs:97
↓ 6 callersMethodget_loss
(&self, pk: PItemKey)
src/quantify/tracker.rs:159
↓ 6 callersMethodget_total_loss
(&self)
src/quantify/tracker.rs:179
↓ 6 callersMethodnew_timeout
(&mut self, timeout: Duration)
src/util/terminator.rs:38
↓ 5 callersMethodmove_item
(&mut self, pk: PItemKey, d_transf: DTransformation)
src/optimizer/worker.rs:70
↓ 5 callersFunctionquantify_collision_poly_poly
(s1: &SPolygon, s2: &SPolygon)
src/quantify/mod.rs:15
↓ 5 callersFunctionwrite_svg
(document: &Document, path: &Path, log_lvl: Level)
src/util/io.rs:85
↓ 4 callersMethodchange_strip_width
(&mut self, new_width: f32, split_position: Option<f32>)
src/optimizer/separator.rs:223
↓ 4 callersFunctionconvert_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 callersMethodearly_terminate
(&mut self, shape: &SPolygon)
src/eval/specialized_jaguars_pipeline.rs:139
↓ 4 callersMethodevaluate_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 callersMethodget_weighted_loss
(&self, pk: PItemKey)
src/quantify/tracker.rs:169
↓ 4 callersMethodis_empty
(&self)
src/eval/specialized_jaguars_pipeline.rs:200
↓ 4 callersMethodupper_bound
(&self)
src/sample/best_samples.rs:81
↓ 4 callersMethodweighted_loss
(&self)
src/quantify/tracker.rs:209
↓ 3 callersFunctioncalc_shape_penalty
(s1: &SPolygon, s2: &SPolygon)
src/quantify/mod.rs:27
↓ 3 callersFunctioncompression_phase
Algorithm 13 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/compress.rs:11
↓ 3 callersMethodconstruct
(mut self)
src/optimizer/lbf.rs:38
↓ 3 callersFunctiondtransfs_are_similar
( dt1: DTransformation, dt2: DTransformation, x_threshold: f32, y_threshold: f32, )
src/sample/best_samples.rs:90
↓ 3 callersFunctionexploration_phase
Algorithm 12 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/explore.rs:21
↓ 3 callersMethodget_total_weighted_loss
(&self)
src/quantify/tracker.rs:189
↓ 3 callersMethodinsert
(&mut self, hkey: HazKey, entity: HazardEntity)
src/eval/specialized_jaguars_pipeline.rs:185
↓ 3 callersMethodkill
(&self)
src/util/terminator.rs:34
↓ 3 callersMethodload
(&mut self, sol: &SPSolution, ct: &CollisionTracker)
src/optimizer/worker.rs:27
↓ 3 callersMethodpartial_cmp
(&self, other: &Self)
src/eval/sample_eval.rs:16
↓ 3 callersMethodplace_item
(&mut self, item_id: usize)
src/optimizer/lbf.rs:65
↓ 3 callersFunctionquantify_collision_poly_container
(s: &SPolygon, c_bbox: Rect)
src/quantify/mod.rs:36
↓ 3 callersMethodrandom
(rng: &mut impl Rng, rotate: bool)
src/sample/coord_descent.rs:165
↓ 3 callersFunctionread_spp_input
(path: &Path)
src/util/io.rs:114
↓ 3 callersMethodrollback
(&mut self, sol: &SPSolution, ots: Option<&CTSnapshot>)
src/optimizer/separator.rs:180
↓ 3 callersMethodsample
(&self, rng: &mut impl Rng)
src/sample/uniform_sampler.rs:76
↓ 3 callersMethodsum
(iter: I)
src/optimizer/worker.rs:104
↓ 2 callersFunctioncalc_idx
(row: usize, col: usize, size: usize)
src/quantify/pair_matrix.rs:36
↓ 2 callersMethodcmp
(&self, other: &Self)
src/eval/sample_eval.rs:22
↓ 2 callersFunctioninit_logger
(level_filter: LevelFilter, log_file_path: &Path)
src/util/io.rs:46
↓ 2 callersFunctionintersect_range
(a: &Range<f32>, b: &Range<f32>)
src/sample/uniform_sampler.rs:89
↓ 2 callersMethodloss
(&mut self, shape: &SPolygon)
src/eval/specialized_jaguars_pipeline.rs:143
↓ 2 callersMethodn_evals
(&self)
src/eval/sep_evaluator.rs:74
↓ 2 callersFunctionpractically_contained_items
Collects all items which point of inaccessibility (POI) is contained by pk_c's shape.
src/optimizer/explore.rs:219
↓ 2 callersMethodrecompute_loss_for_item
(&mut self, pk: PItemKey, l: &Layout)
src/quantify/tracker.rs:47
↓ 2 callersFunctionrefine_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 callersMethodregister_item_move
(&mut self, l: &Layout, old_pk: PItemKey, new_pk: PItemKey)
src/quantify/tracker.rs:101
↓ 2 callersFunctionsearch_placement
Algorithm 6 and Figure 7 from https://doi.org/10.48550/arXiv.2509.13329
src/sample/search.rs:20
↓ 2 callersMethodseparate
Algorithm 9 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/separator.rs:72
↓ 1 callersMethodask
Generates candidates to be evaluated.
src/sample/coord_descent.rs:87
↓ 1 callersFunctionattempt_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 callersMethodbest
(&self)
src/sample/best_samples.rs:77
↓ 1 callersMethodcalc_weighted_loss
(&self, haz: &HazardEntity, shape: &SPolygon)
src/eval/specialized_jaguars_pipeline.rs:157
↓ 1 callersFunctioncalculate_average
(v: &[f32])
src/bench.rs:202
↓ 1 callersFunctioncalculate_percentile
(v: &[f32], pct: f32)
src/bench.rs:168
↓ 1 callersFunctioncollect_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 callersMethodcontains_key
(&self, hkey: HazKey)
src/eval/specialized_jaguars_pipeline.rs:181
↓ 1 callersFunctiondisrupt_solution
(sep: &mut Separator, config: &ExplorationConfig)
src/optimizer/explore.rs:89
↓ 1 callersFunctionfinal_refine_cd_config
(item: &Item)
src/sample/search.rs:91
↓ 1 callersMethodfind_placement
(&mut self, item_id: usize)
src/optimizer/lbf.rs:80
↓ 1 callersMethodget_container_loss
(&self, pk: PItemKey)
src/quantify/tracker.rs:154
↓ 1 callersMethodget_container_weight
(&self, pk: PItemKey)
src/quantify/tracker.rs:142
↓ 1 callersMethodget_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 callersMethodget_pair_weight
(&self, pk1: PItemKey, pk2: PItemKey)
src/quantify/tracker.rs:137
↓ 1 callersMethoditer_with_index
(&self)
src/eval/specialized_jaguars_pipeline.rs:135
↓ 1 callersMethodmove_item
(&mut self, pk: PItemKey, d_transf: DTransformation)
src/optimizer/separator.rs:196
↓ 1 callersMethodmove_items
Algorithm 5 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/worker.rs:35
↓ 1 callersMethodmove_items_multi
Algorithm 10 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/separator.rs:146
↓ 1 callersFunctionoptimize
Algorithm 11 from https://doi.org/10.48550/arXiv.2509.13329
src/optimizer/mod.rs:22
↓ 1 callersFunctionoverlap_area_proxy
(sp1: &SPSurrogate, sp2: &SPSurrogate, epsilon: f32)
src/quantify/overlap_proxy.rs:8
↓ 1 callersFunctionpoles_overlap_area_proxy_simd
(sp1: &SPSurrogate, sp2: &SPSurrogate, epsilon: f32, p2: &CirclesSoA)
src/quantify/simd/overlap_proxy_simd.rs:20
↓ 1 callersFunctionprerefine_cd_config
(item: &Item)
src/sample/search.rs:79
↓ 1 callersFunctionquantify_collision_poly_poly_simd
(s1: &SPolygon, s2: &SPolygon, poles2: &CirclesSoA)
src/quantify/simd/mod.rs:14
↓ 1 callersMethodreload
(&mut self, loss_bound: f32)
src/eval/specialized_jaguars_pipeline.rs:128
↓ 1 callersMethodrestore_but_keep_weights
(&mut self, cts: &CTSnapshot, layout: &Layout)
src/quantify/tracker.rs:85
↓ 1 callersMethodtell
Updates the coordinate descent state with the new position and evaluation.
src/sample/coord_descent.rs:115
↓ 1 callersMethodupdate_weights
Algorithm 8 from https://doi.org/10.48550/arXiv.2509.13329
src/quantify/tracker.rs:113
↓ 1 callersFunctionwrite_json
(json: &impl Serialize, path: &Path, log_lvl: Level)
src/util/io.rs:101
Methodadd_assign
(&mut self, other: Self)
src/optimizer/worker.rs:118
Functioncalculate_median
(v: &[f32])
src/bench.rs:198
Functioncalculate_stddev
(v: &[f32])
src/bench.rs:206
Functioncustom_pipeline_matches_jaguars
(shape: &SPolygon, det: &SpecializedHazardCollector)
src/util/assertions.rs:138
Methoddefault
()
src/util/terminator.rs:22
Methoddefault
()
src/util/ctrlc_terminator.rs:15
Methodevaluate_sample
(&mut self, dt: DTransformation, _upper_bound: Option<SampleEval>)
src/eval/lbf_evaluator.rs:34
Functionget_git_commit_hash
()
src/bench.rs:211
Methodindex
(&self, (row, col): (usize, usize))
src/quantify/pair_matrix.rs:25
Methodindex_mut
(&mut self, (row, col): (usize, usize))
src/quantify/pair_matrix.rs:31
Methodkill
(&self)
src/util/ctrlc_terminator.rs:39
Methodload
(&mut self, circles: &[Circle])
src/quantify/simd/circles_soa.rs:22
Functionmain
()
src/main.rs:26
Functionmain
()
src/bench.rs:28
Methodn_evals
(&self)
src/eval/lbf_evaluator.rs:56
Methodnew
(sample_bbox: Rect, item: &Item, container_bbox: Rect)
src/sample/uniform_sampler.rs:30
Methodnew
(size: usize, unique_thresh: f32)
src/sample/best_samples.rs:18
Methodnew
( layout: &'a Layout, ct: &'a CollisionTracker, current_pk: PItemKey, )
src/eval/specialized_jaguars_pipeline.rs:108
Methodnew
( layout: &'a Layout, item: &'a Item, current_pk: PItemKey, ct: &'a CollisionT
src/eval/sep_evaluator.rs:20
Methodnew
(layout: &'a Layout, item: &'a Item)
src/eval/lbf_evaluator.rs:23
Methodnew
(l: &Layout)
src/quantify/tracker.rs:24
Methodnew
(size: usize)
src/quantify/pair_matrix.rs:13
Methodnew
()
src/quantify/simd/circles_soa.rs:15
Methodnew
(n: usize)
src/util/bit_reversal_iterator.rs:13
next →1–100 of 115, ranked by callers