xtensor
|
Filter of a xexpression for fast scalar assign. More...
#include <xindex_view.hpp>
Public Types | |
using | self_type = xfiltration<ECT, CCT> |
using | xexpression_type = std::decay_t<ECT> |
using | const_reference = typename xexpression_type::const_reference |
Public Member Functions | |
template<class E > | |
disable_xexpression< E, self_type & > | operator= (const E &) |
template<class E > | |
disable_xexpression< E, self_type & > | operator+= (const E &) |
template<class E > | |
disable_xexpression< E, self_type & > | operator-= (const E &) |
template<class E > | |
disable_xexpression< E, self_type & > | operator*= (const E &) |
template<class E > | |
disable_xexpression< E, self_type & > | operator/= (const E &) |
template<class E > | |
disable_xexpression< E, self_type & > | operator%= (const E &) |
Constructor | |
template<class ECTA , class CCTA > | |
xfiltration (ECTA &&e, CCTA &&condition) | |
Constructs a xfiltration on the given expression e , selecting the elements matching the specified condition . | |
Extended copy semantic | |
template<class E > | |
auto | operator= (const E &e) -> disable_xexpression< E, self_type & > |
Assigns the scalar e to *this . | |
Computed assignement | |
template<class E > | |
auto | operator+= (const E &e) -> disable_xexpression< E, self_type & > |
Adds the scalar e to *this . | |
template<class E > | |
auto | operator-= (const E &e) -> disable_xexpression< E, self_type & > |
Subtracts the scalar e from *this . | |
template<class E > | |
auto | operator*= (const E &e) -> disable_xexpression< E, self_type & > |
Multiplies *this with the scalar e . | |
template<class E > | |
auto | operator/= (const E &e) -> disable_xexpression< E, self_type & > |
Divides *this by the scalar e . | |
template<class E > | |
auto | operator%= (const E &e) -> disable_xexpression< E, self_type & > |
Computes the remainder of *this after division by the scalar e . | |
template<class F > | |
auto | apply (F &&func) -> self_type & |
Filter of a xexpression for fast scalar assign.
The xfiltration class implements a lazy filtration of a multidimentional xexpression, optimized for scalar and computed scalar assignments. Actually, the xfiltration class IS NOT an xexpression and the scalar and computed scalar assignments are the only method it provides. The filtering condition is not evaluated until the filtration is assigned.
xfiltration is not meant to be used directly, but only with the filtration helper function.
ECT | the closure type of the xexpression type underlying this filtration |
CCR | the closure type of the filtering xexpression type |
Definition at line 233 of file xindex_view.hpp.
using xt::xfiltration< ECT, CCT >::const_reference = typename xexpression_type::const_reference |
Definition at line 239 of file xindex_view.hpp.
using xt::xfiltration< ECT, CCT >::self_type = xfiltration<ECT, CCT> |
Definition at line 237 of file xindex_view.hpp.
using xt::xfiltration< ECT, CCT >::xexpression_type = std::decay_t<ECT> |
Definition at line 238 of file xindex_view.hpp.
|
inline |
Constructs a xfiltration on the given expression e
, selecting the elements matching the specified condition
.
e | the xexpression to filter. |
condition | the filtering xexpression to apply. |
Definition at line 640 of file xindex_view.hpp.
Definition at line 762 of file xindex_view.hpp.
|
inline |
Computes the remainder of *this
after division by the scalar e
.
e | the scalar involved in the operation. |
*this
. Definition at line 750 of file xindex_view.hpp.
|
inline |
Multiplies *this
with the scalar e
.
e | the scalar involved in the operation. |
*this
. Definition at line 716 of file xindex_view.hpp.
|
inline |
Adds the scalar e
to *this
.
e | the scalar to add. |
*this
. Definition at line 682 of file xindex_view.hpp.
|
inline |
Subtracts the scalar e
from *this
.
e | the scalar to subtract. |
*this
. Definition at line 699 of file xindex_view.hpp.
|
inline |
Divides *this
by the scalar e
.
e | the scalar involved in the operation. |
*this
. Definition at line 733 of file xindex_view.hpp.
|
inline |
Assigns the scalar e
to *this
.
e | the scalar to assign. |
Definition at line 659 of file xindex_view.hpp.