20@ROOT.Numba.Declare(['float', 'int'], 'float')
26ROOT.gInterpreter.ProcessLine(
'cout << "2^3 = " << Numba::pypow(2, 3) << endl;')
30 .Define(
'x_pow3',
'Numba::pypow(x, 3)')\
33print(
'pypow({}, 3) = {}'.format(data[
'x'], data[
'x_pow3']))
39@ROOT.Numba.Declare(['RVec<float>', 'int'], 'RVec<float>')
43ROOT.gInterpreter.ProcessLine(
'''
44ROOT::RVec<float> x = {0, 1, 2, 3};
45cout << "pypowarray(" << x << ", 3) = " << Numba::pypowarray(x, 3) << endl;
50 .Define(
'x2',
'Numba::pypowarray(x, 2)')\
52print(
'sum(pypowarray({ 1, 2, 3 }, 2)) = ', s.GetValue())
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTree,...