Searched refs:bool_ (Results 1 - 5 of 5) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_numpy_dtypes.cpp22 bool bool_; member in struct:SimpleStruct
29 return os << "s:" << v.bool_ << "," << v.uint_ << "," << v.float_ << "," << v.ldbl_;
33 bool bool_; member in struct:SimpleStructReordered
40 bool bool_;
47 return os << "p:" << v.bool_ << "," << v.uint_ << "," << v.float_ << "," << v.ldbl_;
60 bool bool_; member in struct:PartialStruct
150 s.bool_ = (i) % 2 != 0; \
264 PYBIND11_NUMPY_DTYPE(SimpleStruct, bool_, uint_, float_, ldbl_);
265 PYBIND11_NUMPY_DTYPE(SimpleStructReordered, bool_, uint_, float_, ldbl_);
266 PYBIND11_NUMPY_DTYPE(PackedStruct, bool_, uint
[all...]
H A Dtest_builtin_casters.py321 # np.bool_ is not considered implicit
322 assert convert(np.bool_(True)) is True
323 assert convert(np.bool_(False)) is False
324 assert noconvert(np.bool_(True)) is True
325 assert noconvert(np.bool_(False)) is False
H A Dtest_pytypes.cpp190 "bool"_a=py::bool_(),
203 "bool"_a=py::bool_(d["bool"]),
218 "bool"_a=d["bool"].cast<py::bool_>(),
H A Dtest_methods_and_attributes.cpp173 return py::bool_(true).release();
/gem5/ext/pybind11/include/pybind11/
H A Dpytypes.h1026 class bool_ : public object { class in inherits:object
1028 PYBIND11_OBJECT_CVT(bool_, object, PyBool_Check, raw_bool)
1029 bool_() : object(Py_False, borrowed_t{}) { } function in class:bool_
1031 bool_(bool value) : object(value ? Py_True : Py_False, borrowed_t{}) { } function in class:bool_

Completed in 18 milliseconds