C++ API¶
Reference for the madspace C++ classes and free functions, extracted from the header comments, one page per class or function.
Phase-space mappings¶
Invertible maps between the unit hypercube and physical phase space; each also returns its Jacobian weight.
Function generators¶
Builders that assemble compute-graph functions for channel weights, energy scales and network outputs.
- BatchSampler
- BufferUnweighter
- ChannelWeightNetwork
- CustomFunction
- Cuts
- DifferentialCrossSection
- DiscreteHistogram
- EnergyScale
- FunctionGenerator
- GradientClipper
- Integrand
- IntegrandChannelPart
- IntegrandCommonPart
- IntegrandConcatenator
- IntegrandProbability
- MLP
- MadnisLoss
- MatrixElement
- MomentumPreprocessing
- MultiChannelFunction
- MultiChannelIntegrand
- Observable
- ObservableHistograms
- ObservableValues
- PartonDensity
- PropagatorChannelWeights
- RunningCoupling
- SubchannelWeights
- Unweighter
- VegasHistogram
Phase-space building blocks¶
Supporting types shared by the mappings: topologies, cuts, observables and density grids.
Compute graph¶
The typed value model and the builder API used to record and compile functions from instructions.
Driver and runtime¶
The high-level driver plus the tensor and device layer it runs on: integration, unweighting, event output and execution.
- AdamOptimizer
- ChannelEventGenerator
- Context
- DataLayout
- DerivedSeed
- Device
- DiscreteOptimizer
- EventBuffer
- EventFile
- EventGenerator
- EventHistogramSpec
- EventHistograms
- EventRecord
- FieldLayout
- GeneratorBatchJob
- GeneratorConfig
- GeneratorStatus
- Histogram
- LHECompleter
- LHEEvent
- LHEFileWriter
- LHEHeader
- LHEMeta
- LHEParticle
- LHEProcess
- LOReweightInfo
- Logger
- MadnisTraining
- MatrixElementApi
- MixMaxRandom
- MultiMadnisTraining
- PackedTensorView
- ParticleRecord
- PdfGroupInfo
- PdfMemberSpec
- PrettyBox
- ReadyJob
- ResultQueue
- RunSeedSkip
- RunningIntegral
- Runtime
- Sizes
- StatusFile
- SubprocessObservables
- SubprocessSystArgs
- SystematicsCalculator
- SystematicsConfig
- TarReader
- TarWriter
- Tensor
- TensorView
- ThreadPool
- ThreadResource
- UmamiFunctions
- UnalignedRef
- Variation
- VegasGridOptimizer
- available_backends
- compute_generation_batch_event_count
- cpu_device
- cuda_device
- default_context
- default_cuda_context
- default_hip_context
- format_progress
- format_si_prefix
- format_with_error
- hip_device
- select_combine_channel_index
- set_lib_path
- set_simd_vector_size
Utilities¶
Lower-level helpers and containers.