Skip to content

Commit 6d45582

Browse files
committed
Fix broken documentation links
1 parent 4ee058e commit 6d45582

File tree

7 files changed

+36
-37
lines changed

7 files changed

+36
-37
lines changed

pineappl/src/boc.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//! Module containing structures for the 3 dimensions of a [`Grid`]: bins, [`Order`] and channels
2-
//! (`boc`).
1+
//! Module containing structures for the 3 dimensions of a [`Grid`]: [`Bin`], [`Order`] and
2+
//! channels (`boc`).
33
//!
44
//! [`Grid`]: super::grid::Grid
55
@@ -734,13 +734,13 @@ impl Order {
734734
}
735735

736736
/// Return a mask suitable to pass as the `order_mask` parameter of [`Grid::convolve`],
737-
/// [`Grid::evolve_with_slice_iter`] or [`Grid::evolve_info`]. The selection of `orders` is
738-
/// controlled using the `max_as` and `max_al` parameters, for instance setting `max_as = 1`
739-
/// and `max_al = 0` selects the LO QCD only, `max_as = 2` and `max_al = 0` the NLO QCD;
740-
/// setting `max_as = 3` and `max_al = 2` would select all NLOs, and the NNLO QCD.
737+
/// [`Grid::evolve`] or [`Grid::evolve_info`]. The selection of `orders` is controlled using
738+
/// the `max_as` and `max_al` parameters, for instance setting `max_as = 1` and `max_al = 0`
739+
/// selects the LO QCD only, `max_as = 2` and `max_al = 0` the NLO QCD; setting `max_as = 3`
740+
/// and `max_al = 2` would select all NLOs, and the NNLO QCD.
741741
///
742742
/// [`Grid::convolve`]: super::grid::Grid::convolve
743-
/// [`Grid::evolve_with_slice_iter`]: super::grid::Grid::evolve_with_slice_iter
743+
/// [`Grid::evolve`]: super::grid::Grid::evolve
744744
/// [`Grid::evolve_info`]: super::grid::Grid::evolve_info
745745
///
746746
/// # Example

pineappl/src/evolution.rs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Supporting classes and functions for [`Grid::evolve_with_slice_iter`].
1+
//! Supporting classes and functions for [`Grid::evolve`].
22
33
use super::boc::{Channel, Kinematics, Order};
44
use super::convolutions::ConvType;
@@ -33,21 +33,22 @@ pub struct EvolveInfo {
3333
pub ren1: Vec<f64>,
3434
}
3535

36-
/// Information about the evolution kernel operator slice (EKO) passed to
37-
/// [`Grid::evolve_with_slice_iter`](super::grid::Grid::evolve_with_slice_iter) as `operator`,
38-
/// which is used to convert a [`Grid`] into an [`FkTable`](super::fk_table::FkTable). The
39-
/// dimensions of the EKO must correspond to the values given in [`fac1`](Self::fac1),
36+
/// Information about the evolution kernel operator slice (EKO) passed to [`Grid::evolve`] as
37+
/// `operator`, which is used to convert a [`Grid`] into an [`FkTable`](super::fk_table::FkTable).
38+
/// The dimensions of the EKO must correspond to the values given in [`fac1`](Self::fac1),
4039
/// [`pids0`](Self::pids0), [`x0`](Self::x0), [`pids1`](Self::pids1) and [`x1`](Self::x1), exactly
4140
/// in this order. Members with a `1` are defined at the squared factorization scale given as
42-
/// `fac1` (often called process scale) and are found in the [`Grid`] that
43-
/// `Grid::evolve_with_slice_iter` is called with. Members with a `0` are defined at the squared
44-
/// factorization scale [`fac0`](Self::fac0) (often called fitting scale or starting scale) and are
45-
/// found in the `FkTable` resulting from [`Grid::evolve_with_slice_iter`].
41+
/// `fac1` (often called process scale) and are found in the [`Grid`] that [`Grid::evolve`] is
42+
/// called with. Members with a `0` are defined at the squared factorization scale
43+
/// [`fac0`](Self::fac0) (often called fitting scale or starting scale) and are found in the
44+
/// `FkTable` resulting from [`Grid::evolve`].
4645
///
4746
/// The EKO slice may convert a `Grid` from a basis given by the particle identifiers `pids1` to a
4847
/// possibly different basis given by `pids0`. This basis must also be identified using
4948
/// [`pid_basis`](Self::pid_basis), which tells
5049
/// [`FkTable::convolve`](super::fk_table::FkTable::convolve) how to perform a convolution.
50+
///
51+
/// [`Grid::evolve`]: super::grid::Grid::evolve
5152
#[derive(Clone)]
5253
pub struct OperatorSliceInfo {
5354
/// Squared factorization/fragmentation scale of the `FkTable`.
@@ -66,9 +67,10 @@ pub struct OperatorSliceInfo {
6667

6768
/// Particle ID basis for `FkTable`.
6869
pub pid_basis: PidBasis,
69-
/// Type of convolution which this operator evolves. This also determines whether [`fac0`]
70-
/// and [`fac1`] is a factorization ([`ConvType::UnpolPDF`] or [`ConvType::PolPDF`]) or a
71-
/// fragmentation ([`ConvType::UnpolFF`] or [`ConvType::PolFF`]) scale.
70+
/// Type of convolution which this operator evolves. This also determines whether
71+
/// [`Self::fac0`] and [`Self::fac1`] is a factorization ([`ConvType::UnpolPDF`] or
72+
/// [`ConvType::PolPDF`]) or a fragmentation ([`ConvType::UnpolFF`] or [`ConvType::PolFF`])
73+
/// scale.
7274
pub conv_type: ConvType,
7375
}
7476

pineappl/src/fk_table.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ use std::str::FromStr;
1616
/// Structure implementing FK tables. These are special [`Grid`]s, for which the following
1717
/// additional guarantees are given:
1818
///
19-
/// - all subgrids of the grid evaluate the PDFs at a single factorization scale given by
20-
/// [`FkTable::muf2`].
21-
/// - all subgrids, for both hadronic initial states (if both initial states are hadronic), share
22-
/// the same `x` grid. See [`FkTable::x_grid`].
23-
/// - the channel definitions are *simple*, meaning that every entry consists of a single pair of
19+
/// - all subgrids of the grid evaluate the convolution functions at a single factorization and
20+
/// fragmentation scale given by [`FkTable::fac0`] and [`FkTable::frg0`], respectively.
21+
/// - all subgrids share the same `x` grid. See [`FkTable::x_grid`].
22+
/// - the channel definitions are *simple*, meaning that every entry consists of a single tuple of
2423
/// partons with trivial factor `1.0`, and all tuples are distinct from each other. See
2524
/// [`Grid::channels`].
2625
/// - the FK table's grid contains only a single [`Order`], whose exponents are all zero.

pineappl/src/grid.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,9 +1089,8 @@ impl Grid {
10891089
///
10901090
/// # Errors
10911091
///
1092-
/// Returns a [`GridError::EvolutionFailure`] if either the `operator` or its `info` is
1093-
/// incompatible with this `Grid`. Returns a [`GridError::Other`] if the iterator from `slices`
1094-
/// return an error.
1092+
/// Returns an error if either the `operator` or its `info` is incompatible with this `Grid`,
1093+
/// or if the iterator from `slices` return an error.
10951094
///
10961095
/// # Panics
10971096
///

pineappl/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
//! The main type of this crate is [`Grid`], which represents the interpolation grids that
66
//! `PineAPPL` implements. Roughly speaking, a `Grid` is a three-dimensional array of [`Subgrid`]
77
//! objects together with metadata. The three dimensions are
8-
//! 1. (perturbative) orders, represented by the type [`Order`] and accessible by
8+
//! 1. bins, whose limits can be accessed by [`Grid::bwfl()`], and
9+
//! 2. (perturbative) orders, represented by the type [`Order`] and accessible by
910
//! [`Grid::orders()`],
10-
//! 2. bins, whose limits can be accessed by [`Grid::bin_info()`], and
1111
//! 3. channels, whose definition is returned by [`Grid::channels()`].
1212
//!
1313
//! `Subgrid` is a `trait` and objects that implement it are of the type [`SubgridEnum`]. The
1414
//! latter is an `enum` of different types that are optimized to different scenarios: fast event
1515
//! filling, small storage profile, etc.
1616
//!
1717
//! [`Grid`]: grid::Grid
18-
//! [`Grid::bin_info()`]: grid::Grid::bin_info
18+
//! [`Grid::bwfl()`]: grid::Grid::bwfl
1919
//! [`Grid::channels()`]: grid::Grid::channels
2020
//! [`Grid::orders()`]: grid::Grid::orders
2121
//! [`Subgrid`]: subgrid::Subgrid

pineappl/src/pids.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl PidBasis {
170170
}
171171
}
172172

173-
/// Return type of [`PidBasis::optimization_rules`].
173+
/// Return type of [`PidBasis::opt_rules`].
174174
pub struct OptRules(pub Vec<(i32, i32)>, pub Vec<i32>);
175175

176176
/// Translates IDs from the evolution basis into IDs using PDG Monte Carlo IDs.
@@ -444,9 +444,9 @@ pub const fn charge_conjugate_pdg_pid(pid: i32) -> i32 {
444444
}
445445
}
446446

447-
/// Given `tuples` represting a linear combination of PDG MC IDs, return a PID for the `evol`
448-
/// basis. The order of each tuple in `tuples` is not relevant. This function inverts
449-
/// [`evol_to_pdg_mc_ids`]. If the inversion is not possible, `None` is returned.
447+
/// Given `tuples` representing a linear combination of PDG MC IDs, return a PID for the
448+
/// [`PidBasis::Evol`] basis. The order of each tuple in `tuples` is not relevant. If the inversion
449+
/// is not possible, `None` is returned.
450450
#[must_use]
451451
pub fn pdg_mc_ids_to_evol(tuples: &[(i32, f64)]) -> Option<i32> {
452452
let mut tuples = tuples.to_vec();

pineappl/src/subgrid.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ impl SubgridEnum {
5555
#[derive(Debug, Eq, PartialEq)]
5656
pub struct Stats {
5757
/// Number of possible total entries for a subgrid. This number is the product of the lengths
58-
/// of the slices returned by [`Subgrid::mu2_grid`], [`Subgrid::x1_grid`] and
59-
/// [`Subgrid::x2_grid`].
58+
/// of the containers returned by [`Subgrid::node_values`].
6059
pub total: usize,
6160
/// Number of allocated entries for a subgrid. This number is always smaller or equal than
6261
/// [`Self::total`].
@@ -79,7 +78,7 @@ pub trait Subgrid {
7978

8079
/// Fill the subgrid with `weight` that is being interpolated with `interps` using the
8180
/// kinematic information in `ntuple`. The parameter `ntuple` assumes the same ordering given
82-
/// by `kinematics` in [`Grid::new`] that was used to create the grid.
81+
/// by `kinematics` in [`Grid::new`](super::grid::Grid::new) that was used to create the grid.
8382
fn fill(&mut self, interps: &[Interp], ntuple: &[f64], weight: f64);
8483

8584
/// Returns true if `fill` was never called for this grid.

0 commit comments

Comments
 (0)