Skip to main content

map_arithmetic

Function map_arithmetic 

Source
pub fn map_arithmetic(
    schema: &SeriesSchema,
    series: &Series,
    op: ArithmeticOp,
    scalar: ScalarOperand,
) -> Result<Series>
Expand description

Applies arithmetic against a constant scalar to every field and drops the metric name.

Shares the evaluated-grid, missingness, unsupported-type and same-labelset contract of map_math. Arithmetic uses ArithmeticOp::calculate, including its platform math behavior.