xtensor
|
Functions | |
template<class E1 , class E2 > | |
auto | xt::operator|| (E1 &&e1, E2 &&e2) noexcept -> detail::xfunction_type_t< detail::logical_or, E1, E2 > |
Or. | |
template<class E1 , class E2 > | |
auto | xt::operator&& (E1 &&e1, E2 &&e2) noexcept -> detail::xfunction_type_t< detail::logical_and, E1, E2 > |
And. | |
template<class E > | |
auto | xt::operator! (E &&e) noexcept -> detail::xfunction_type_t< detail::logical_not, E > |
Not. | |
template<class E1 , class E2 , class E3 > | |
auto | xt::where (E1 &&e1, E2 &&e2, E3 &&e3) noexcept -> detail::xfunction_type_t< detail::conditional_ternary, E1, E2, E3 > |
Ternary selection. | |
template<class T > | |
auto | xt::nonzero (const T &arr) |
return vector of indices where T is not zero | |
template<class T > | |
auto | xt::where (const T &condition) |
return vector of indices where condition is true (equivalent to nonzero(condition)) | |
template<layout_type L = ::xt::layout_type::row_major, class T > | |
auto | xt::argwhere (const T &arr) |
return vector of indices where arr is not zero | |
template<class E > | |
bool | xt::any (E &&e) |
Any. | |
template<class E > | |
bool | xt::all (E &&e) |
Any. | |
template<class E , class T > | |
auto | xt::isin (E &&element, std::initializer_list< T > test_elements) noexcept |
isin | |
template<class E , class F , class = typename std::enable_if_t<has_iterator_interface<F>::value>> | |
auto | xt::isin (E &&element, F &&test_elements) noexcept |
isin | |
template<class E , class I , class = typename std::enable_if_t<is_iterator<I>::value>> | |
auto | xt::isin (E &&element, I &&test_elements_begin, I &&test_elements_end) noexcept |
isin | |
template<class E , class T > | |
auto | xt::in1d (E &&element, std::initializer_list< T > test_elements) noexcept |
in1d | |
template<class E , class F , class = typename std::enable_if_t<has_iterator_interface<F>::value>> | |
auto | xt::in1d (E &&element, F &&test_elements) noexcept |
in1d | |
template<class E , class I , class = typename std::enable_if_t<is_iterator<I>::value>> | |
auto | xt::in1d (E &&element, I &&test_elements_begin, I &&test_elements_end) noexcept |
in1d | |
Any.
Returns true if all of the values of e are truthy, false otherwise.
e | an xexpression |
Definition at line 960 of file xoperation.hpp.
Any.
Returns true if any of the values of e is truthy, false otherwise.
e | an xexpression |
Definition at line 936 of file xoperation.hpp.
|
inline |
return vector of indices where arr is not zero
L | the traversal order |
arr | input array |
xt::from_indices
to convert)Definition at line 905 of file xoperation.hpp.
in1d
Returns a boolean array of the same shape as element
that is true
where an element of element
is in test_elements
and False
otherwise.
element | an xexpression |
test_elements | an array |
Definition at line 147 of file xset_operation.hpp.
|
inlinenoexcept |
in1d
Returns a boolean array of the same shape as element
that is true
where an element of element
is in test_elements
and False
otherwise.
element | an xexpression |
test_elements_begin | iterator to the beginning of an array |
test_elements_end | iterator to the end of an array |
Definition at line 166 of file xset_operation.hpp.
|
inlinenoexcept |
in1d
Returns a boolean array of the same shape as element
that is true
where an element of element
is in test_elements
and False
otherwise.
element | an xexpression |
test_elements | an array |
Definition at line 130 of file xset_operation.hpp.
isin
Returns a boolean array of the same shape as element
that is true
where an element of element
is in test_elements
and False
otherwise.
element | an xexpression |
test_elements | an array |
Definition at line 91 of file xset_operation.hpp.
|
inlinenoexcept |
isin
Returns a boolean array of the same shape as element
that is true
where an element of element
is in test_elements
and False
otherwise.
element | an xexpression |
test_elements_begin | iterator to the beginning of an array |
test_elements_end | iterator to the end of an array |
Definition at line 110 of file xset_operation.hpp.
|
inlinenoexcept |
isin
Returns a boolean array of the same shape as element
that is true
where an element of element
is in test_elements
and False
otherwise.
element | an xexpression |
test_elements | an array |
Definition at line 71 of file xset_operation.hpp.
return vector of indices where T is not zero
arr | input array |
Definition at line 856 of file xoperation.hpp.
|
inlinenoexcept |
Not.
Returns an xfunction for the element-wise not of e.
e | an xexpression |
Definition at line 379 of file xoperation.hpp.
|
inlinenoexcept |
And.
Returns an xfunction for the element-wise and of e1 and e2.
e1 | an xexpression or a scalar |
e2 | an xexpression or a scalar |
Definition at line 364 of file xoperation.hpp.
|
inlinenoexcept |
Or.
Returns an xfunction for the element-wise or of e1 and e2.
e1 | an xexpression or a scalar |
e2 | an xexpression or a scalar |
Definition at line 348 of file xoperation.hpp.
return vector of indices where condition is true (equivalent to nonzero(condition))
condition | input array |
Definition at line 889 of file xoperation.hpp.
|
inlinenoexcept |
Ternary selection.
Returns an xfunction for the element-wise ternary selection (i.e. operator ? :) of e1, e2 and e3.
e1 | a boolean xexpression |
e2 | an xexpression or a scalar |
e3 | an xexpression or a scalar |
Definition at line 777 of file xoperation.hpp.