|
cartodata 6.0.0
|
Functions | |
| bool | sameSize (const std::vector< int > &s1, const std::vector< int > &s2) |
| Used by the actual Volume and VolumeRef operators It allows to keep the loops in one place and to specialize for non arithmetic types. | |
| std::vector< int > | maxSize (const std::vector< int > &s1, const std::vector< int > &s2) |
| return the largest dimensions between s1 and s2 | |
| std::vector< int > | minSize (const std::vector< int > &s1, const std::vector< int > &s2) |
| return the smallest dimensions between s1 and s2 | |
| template<typename T, typename U, typename OUTP, typename BinaryFunction> | |
| Volume< OUTP > & | applyTowards (const T &cst1, const Volume< U > &vol2, Volume< OUTP > &dst, BinaryFunction func) |
| template<typename T, typename UnaryFunction> | |
| Volume< typename UnaryFunction::result_type > | apply (const Volume< T > &vol, UnaryFunction func) |
| Apply a function to all the elements of a volume (create output version) | |
| 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) | |
| 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) | |
| template<typename T, typename OUTP, typename UnaryFunction> | |
| Volume< OUTP > & | applyTowards (const T &cst, Volume< OUTP > &dst, UnaryFunction func) |
| 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 T, typename U, typename OUTP, typename BinaryFunction> | |
| Volume< OUTP > & | applyTowards (const Volume< T > &vol1, const U &cst2, 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. | |
| template<typename OUTP, typename T, typename BinaryFunction> | |
| OUTP | accumulate (const rc_ptr< Volume< T > > &vol, BinaryFunction func, OUTP initial) |
|
inline |
Definition at line 833 of file volumeutil.h.
References accumulate().
|
inline |
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 815 of file volumeutil.h.
References carto::Volume< T >::at(), carto::NDIterator_base::ended(), carto::VolumeProxy< T >::getSize(), carto::Volume< T >::getStrides(), carto::const_line_NDIterator< typename T >::inc_line_ptr(), and carto::const_line_NDIterator< typename T >::line_length().
Referenced by accumulate(), carto::all(), carto::all(), carto::any(), and carto::any().
|
inline |
Definition at line 544 of file volumeutil.h.
References applyTowards(), and carto::deepcopy().
|
inline |
Definition at line 555 of file volumeutil.h.
References applyTowards(), carto::deepcopy(), carto::VolumeProxy< T >::getSize(), and maxSize().
|
inline |
Apply a function to all the elements of a volume (create output version)
Definition at line 519 of file volumeutil.h.
References applyTowards(), and carto::deepcopy().
Referenced by carto::invertMinMax(), carto::invertMinMax(), carto::operator%(), carto::operator%(), carto::operator%(), carto::operator%(), carto::operator%(), carto::operator%(), carto::operator&(), carto::operator&(), carto::operator&(), carto::operator&(), carto::operator&(), carto::operator&(), carto::operator*(), carto::operator*(), carto::operator*(), carto::operator*(), carto::operator*(), carto::operator*(), carto::operator*(), carto::operator*(), carto::operator+(), carto::operator+(), carto::operator+(), carto::operator+(), carto::operator+(), carto::operator+(), carto::operator+(), carto::operator+(), carto::operator-(), carto::operator-(), carto::operator-(), carto::operator-(), carto::operator-(), carto::operator-(), carto::operator-(), carto::operator-(), carto::operator-(), carto::operator-(), carto::operator/(), carto::operator/(), carto::operator/(), carto::operator/(), carto::operator/(), carto::operator/(), carto::operator/(), carto::operator/(), carto::operator^(), carto::operator^(), carto::operator^(), carto::operator^(), carto::operator^(), carto::operator^(), carto::operator|(), carto::operator|(), carto::operator|(), carto::operator|(), carto::operator|(), carto::operator|(), carto::operator~(), and carto::operator~().
|
inline |
Definition at line 530 of file volumeutil.h.
References applyTowards(), carto::deepcopy(), carto::VolumeProxy< T >::getSize(), and maxSize().
|
inline |
Definition at line 724 of file volumeutil.h.
References applyTowards(), carto::Volume< T >::at(), carto::NDIterator_base::ended(), carto::VolumeProxy< T >::getSize(), carto::Volume< T >::getStrides(), carto::const_line_NDIterator< typename T >::inc_line_ptr(), carto::line_NDIterator< typename T >::inc_line_ptr(), carto::const_line_NDIterator< typename T >::line_length(), minSize(), carto::ref< class T >::release(), carto::rc_ptr< typename T >::reset(), and sameSize().
|
inline |
Apply a function to all the elements of a volume (already allocated output version)
Definition at line 604 of file volumeutil.h.
References applyTowards(), carto::Volume< T >::at(), carto::NDIterator_base::ended(), carto::VolumeProxy< T >::getSize(), carto::Volume< T >::getStrides(), carto::const_line_NDIterator< typename T >::inc_line_ptr(), carto::line_NDIterator< typename T >::inc_line_ptr(), carto::const_line_NDIterator< typename T >::line_length(), minSize(), carto::ref< class T >::release(), carto::rc_ptr< typename T >::reset(), and sameSize().
Referenced by apply(), apply(), apply(), apply(), applyTowards(), applyTowards(), applyTowards(), applyTowards(), carto::Position4Di< T >::fillBorder(), carto::operator!(), carto::operator!(), carto::operator!=(), carto::operator!=(), carto::operator!=(), carto::operator!=(), carto::operator!=(), carto::operator!=(), carto::operator!=(), carto::operator&&(), carto::operator&&(), carto::operator&&(), carto::operator&&(), carto::operator&&(), carto::operator&&(), carto::operator<(), carto::operator<(), carto::operator<(), carto::operator<(), carto::operator<(), carto::operator<(), carto::operator<(), carto::operator<=(), carto::operator<=(), carto::operator<=(), carto::operator<=(), carto::operator<=(), carto::operator<=(), carto::operator<=(), carto::operator==(), carto::operator==(), carto::operator==(), carto::operator==(), carto::operator==(), carto::operator==(), carto::operator==(), carto::operator||(), carto::operator||(), carto::operator||(), carto::operator||(), carto::operator||(), carto::operator||(), selfApply(), selfApply(), carto::Position4Di< T >::sum(), carto::transfer(), carto::valuesIn(), carto::valuesIn(), carto::valuesNotIn(), and carto::valuesNotIn().
|
inline |
Definition at line 769 of file volumeutil.h.
References applyTowards(), carto::Volume< T >::at(), carto::NDIterator_base::ended(), carto::VolumeProxy< T >::getSize(), carto::Volume< T >::getStrides(), carto::const_line_NDIterator< typename T >::inc_line_ptr(), carto::line_NDIterator< typename T >::inc_line_ptr(), carto::const_line_NDIterator< typename T >::line_length(), minSize(), carto::ref< class T >::release(), carto::rc_ptr< typename T >::reset(), and sameSize().
|
inline |
Definition at line 667 of file volumeutil.h.
References applyTowards(), carto::Volume< T >::at(), carto::NDIterator_base::ended(), carto::VolumeProxy< T >::getSize(), carto::Volume< T >::getStrides(), carto::const_line_NDIterator< typename T >::inc_line_ptr(), carto::line_NDIterator< typename T >::inc_line_ptr(), carto::const_line_NDIterator< typename T >::line_length(), minSize(), carto::ref< class T >::release(), carto::rc_ptr< typename T >::reset(), and sameSize().
|
inline |
return the largest dimensions between s1 and s2
Definition at line 480 of file volumeutil.h.
|
inline |
return the smallest dimensions between s1 and s2
Definition at line 498 of file volumeutil.h.
Referenced by applyTowards(), applyTowards(), applyTowards(), and applyTowards().
|
inline |
Used by the actual Volume and VolumeRef operators It allows to keep the loops in one place and to specialize for non arithmetic types.
test if two volumes sizes vectors actually represent the same size (extending missing dimensions to 1)
Definition at line 461 of file volumeutil.h.
Referenced by applyTowards(), applyTowards(), applyTowards(), and applyTowards().
|
inline |
Definition at line 586 of file volumeutil.h.
References selfApply().
|
inline |
Definition at line 594 of file volumeutil.h.
References selfApply().
|
inline |
Apply a function to all the elements of a volume (in place version)
Definition at line 568 of file volumeutil.h.
References applyTowards().
Referenced by carto::conditionalSet(), 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&=(), carto::operator&=(), carto::operator&=(), carto::operator*=(), carto::operator*=(), carto::operator*=(), carto::operator*=(), carto::operator*=(), carto::operator*=(), carto::operator++(), carto::operator++(), carto::operator+=(), carto::operator+=(), carto::operator+=(), carto::operator+=(), carto::operator+=(), carto::operator+=(), carto::operator--(), carto::operator--(), carto::operator-=(), carto::operator-=(), carto::operator-=(), carto::operator-=(), carto::operator-=(), carto::operator-=(), carto::operator/=(), carto::operator/=(), carto::operator/=(), carto::operator/=(), carto::operator/=(), carto::operator/=(), carto::operator^=(), carto::operator^=(), carto::operator^=(), carto::operator^=(), carto::operator^=(), carto::operator^=(), carto::operator|=(), carto::operator|=(), carto::operator|=(), carto::operator|=(), carto::operator|=(), carto::operator|=(), selfApply(), and selfApply().
|
inline |
Definition at line 576 of file volumeutil.h.
References applyTowards().