cartodata
5.0.5
|
Functions | |
template<typename T , typename UnaryFunction > | |
Volume< typename UnaryFunction::result_type > | apply (const Volume< T > &vol, UnaryFunction func) |
Used by the actual Volume and VolumeRef operators It allows to keep the loops in one place and to specialize for non arithmetic types. More... | |
template<typename T , typename U , typename BinaryFunction > | |
Volume< typename BinaryFunction::result_type > | apply (const Volume< T > &vol1, const Volume< U > &vol2, BinaryFunction func) |
template<typename T , typename UnaryFunction > | |
rc_ptr< Volume< typename UnaryFunction::result_type > > | apply (const rc_ptr< Volume< T > > &vol, UnaryFunction func) |
template<typename T , typename U , typename BinaryFunction > | |
rc_ptr< Volume< typename BinaryFunction::result_type > > | apply (const rc_ptr< Volume< T > > &vol1, const Volume< U > &vol2, BinaryFunction func) |
template<typename T , typename UnaryFunction > | |
Volume< T > & | selfApply (Volume< T > &vol, UnaryFunction func) |
Apply a function to all the elements of a volume (in place version) More... | |
template<typename T , typename U , typename BinaryFunction > | |
Volume< T > & | selfApply (Volume< T > &vol1, const Volume< U > &vol2, BinaryFunction func) |
template<typename T , typename UnaryFunction > | |
rc_ptr< Volume< T > > & | selfApply (rc_ptr< Volume< T > > &vol, UnaryFunction func) |
template<typename T , typename U , typename BinaryFunction > | |
rc_ptr< Volume< T > > & | selfApply (rc_ptr< Volume< T > > &vol1, const Volume< U > &vol2, BinaryFunction func) |
template<typename T , typename OUTP , typename UnaryFunction > | |
Volume< OUTP > & | applyTowards (const Volume< T > &vol, Volume< OUTP > &dst, UnaryFunction func) |
Apply a function to all the elements of a volume (already allocated output version) More... | |
template<typename T , typename U , typename OUTP , typename BinaryFunction > | |
Volume< OUTP > & | applyTowards (const Volume< T > &vol1, const Volume< U > &vol2, Volume< OUTP > &dst, BinaryFunction func) |
template<typename OUTP , typename T , typename BinaryFunction > | |
OUTP | accumulate (const Volume< T > &vol, BinaryFunction func, OUTP initial) |
Accumulation over a volume. More... | |
template<typename OUTP , typename T , typename BinaryFunction > | |
OUTP | accumulate (const rc_ptr< Volume< T > > &vol, BinaryFunction func, OUTP initial) |
OUTP carto::volumeutil::accumulate | ( | const Volume< T > & | vol, |
BinaryFunction | func, | ||
OUTP | initial | ||
) |
Accumulation over a volume.
The result is equivalent to
Examples:
plus
performs a sum over the volumeselect_min
returns its minimum value Definition at line 453 of file volumeutil.h.
References carto::VolumeProxy< T >::getSizeT(), carto::VolumeProxy< T >::getSizeX(), carto::VolumeProxy< T >::getSizeY(), and carto::VolumeProxy< T >::getSizeZ().
Referenced by carto::VolumeUtil< T >::accumulate(), carto::all(), carto::any(), carto::max(), carto::min(), and carto::sum().
OUTP carto::volumeutil::accumulate | ( | const rc_ptr< Volume< T > > & | vol, |
BinaryFunction | func, | ||
OUTP | initial | ||
) |
Definition at line 466 of file volumeutil.h.
Volume< typename UnaryFunction::result_type > carto::volumeutil::apply | ( | const Volume< T > & | vol, |
UnaryFunction | func | ||
) |
Used by the actual Volume and VolumeRef operators It allows to keep the loops in one place and to specialize for non arithmetic types.
Apply a function to all the elements of a volume (create output version)
Definition at line 353 of file volumeutil.h.
References applyTowards().
Referenced by carto::invertMinMax(), carto::operator &(), carto::operator%(), carto::operator*(), carto::operator+(), carto::operator-(), carto::operator/(), carto::operator^(), carto::operator|(), and carto::operator~().
Volume< typename BinaryFunction::result_type > carto::volumeutil::apply | ( | const Volume< T > & | vol1, |
const Volume< U > & | vol2, | ||
BinaryFunction | func | ||
) |
Definition at line 363 of file volumeutil.h.
References applyTowards().
rc_ptr< Volume< typename UnaryFunction::result_type > > carto::volumeutil::apply | ( | const rc_ptr< Volume< T > > & | vol, |
UnaryFunction | func | ||
) |
Definition at line 375 of file volumeutil.h.
References applyTowards().
rc_ptr< Volume< typename BinaryFunction::result_type > > carto::volumeutil::apply | ( | const rc_ptr< Volume< T > > & | vol1, |
const Volume< U > & | vol2, | ||
BinaryFunction | func | ||
) |
Definition at line 385 of file volumeutil.h.
References applyTowards().
Volume< OUTP > & carto::volumeutil::applyTowards | ( | const Volume< T > & | vol, |
Volume< OUTP > & | dst, | ||
UnaryFunction | func | ||
) |
Apply a function to all the elements of a volume (already allocated output version)
Definition at line 428 of file volumeutil.h.
References carto::VolumeProxy< T >::getSizeT(), carto::VolumeProxy< T >::getSizeX(), carto::VolumeProxy< T >::getSizeY(), and carto::VolumeProxy< T >::getSizeZ().
Referenced by apply(), carto::operator &&(), carto::operator!(), carto::operator!=(), carto::operator<(), carto::operator<=(), carto::operator==(), carto::operator>(), carto::operator>=(), carto::operator||(), selfApply(), carto::transfer(), carto::valuesIn(), and carto::valuesNotIn().
Volume< OUTP > & carto::volumeutil::applyTowards | ( | const Volume< T > & | vol1, |
const Volume< U > & | vol2, | ||
Volume< OUTP > & | dst, | ||
BinaryFunction | func | ||
) |
Definition at line 440 of file volumeutil.h.
References carto::VolumeProxy< T >::getSizeT(), carto::VolumeProxy< T >::getSizeX(), carto::VolumeProxy< T >::getSizeY(), and carto::VolumeProxy< T >::getSizeZ().
Volume< T > & carto::volumeutil::selfApply | ( | Volume< T > & | vol, |
UnaryFunction | func | ||
) |
Apply a function to all the elements of a volume (in place version)
Definition at line 396 of file volumeutil.h.
References applyTowards().
Referenced by carto::conditionalSet(), carto::Volume< T >::fill(), carto::operator &=(), carto::operator%=(), carto::operator*=(), carto::operator++(), carto::operator+=(), carto::operator--(), carto::operator-=(), carto::operator/=(), carto::operator^=(), carto::operator|=(), and selfApply().
Volume< T > & carto::volumeutil::selfApply | ( | Volume< T > & | vol1, |
const Volume< U > & | vol2, | ||
BinaryFunction | func | ||
) |
Definition at line 403 of file volumeutil.h.
References applyTowards().
rc_ptr< Volume< T > > & carto::volumeutil::selfApply | ( | rc_ptr< Volume< T > > & | vol, |
UnaryFunction | func | ||
) |
Definition at line 412 of file volumeutil.h.
References selfApply().
rc_ptr< Volume< T > > & carto::volumeutil::selfApply | ( | rc_ptr< Volume< T > > & | vol1, |
const Volume< U > & | vol2, | ||
BinaryFunction | func | ||
) |
Definition at line 419 of file volumeutil.h.
References selfApply().