MCPcopy Create free account
hub / github.com/Kitware/ParaView / transform

Function transform

Plugins/pvNVIDIAIndeX/include/mi/math/function.h:236–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234/// \c Vector::SIZE.
235template <class Vector, class ResultVector, class UnaryFunctor>
236inline void transform( const Vector& vec, ResultVector& result, UnaryFunctor f)
237{
238 mi_static_assert( Vector::SIZE == ResultVector::SIZE);
239 for( Size i = 0; i != Vector::SIZE; ++i)
240 result.set( i, f( vec.get(i)));
241}
242
243/// Generic transform function that applies a binary %functor (return value).
244///

Callers 15

GetInstallDirectoriesFunction · 0.85
GetKeysFunction · 0.85
MapBlockNamesFunction · 0.85
OrderByNamesMethod · 0.85
ImportPresetsMethod · 0.85
FindUniquePresetNameMethod · 0.85
ExecuteMethod · 0.85
WidgetStateClass · 0.85

Calls 3

fFunction · 0.50
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected