Awkward Array: include/awkward/python/partition.h Source File

Loading...
Searching...
No Matches
partition.h
Go to the documentation of this file.
1// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
2
3#ifndef AWKWARDPY_PARTITION_H_
4#define AWKWARDPY_PARTITION_H_
5
6#include <string>
7
8#include <pybind11/pybind11.h>
9
10#include "awkward/partition/PartitionedArray.h"
11#include "awkward/partition/IrregularlyPartitionedArray.h"
12
13namespace py = pybind11;
14namespace ak = awkward;
15
18py::class_<ak::PartitionedArray, std::shared_ptr<ak::PartitionedArray>>
19 make_PartitionedArray(const py::handle& m, const std::string& name);
20
23py::class_<ak::IrregularlyPartitionedArray,
24 std::shared_ptr<ak::IrregularlyPartitionedArray>,
25 ak::PartitionedArray>
26 make_IrregularlyPartitionedArray(const py::handle& m, const std::string& name);
27
28#endif // AWKWARDPY_PARTITION_H_
IrregularlyPartitionedArray.h
PartitionedArray.h
awkward::IrregularlyPartitionedArray
PartitionedArray of arbitrary length partitions.
Definition: IrregularlyPartitionedArray.h:12
awkward::PartitionedArray
Abstract superclass of all PartitionedArray node types. PartitionedArrays contain a list of Content,...
Definition: PartitionedArray.h:17
awkward
Definition: BitMaskedArray.h:15
make_IrregularlyPartitionedArray
py::class_< ak::IrregularlyPartitionedArray, std::shared_ptr< ak::IrregularlyPartitionedArray >, ak::PartitionedArray > make_IrregularlyPartitionedArray(const py::handle &m, const std::string &name)
Makes an IrregularlyPartitionedArray in Python that mirrors the one in C++.
make_PartitionedArray
py::class_< ak::PartitionedArray, std::shared_ptr< ak::PartitionedArray > > make_PartitionedArray(const py::handle &m, const std::string &name)
Makes an abstract PartitionedArray class in Python that mirrors the one in C++.