Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre NARVOR
rtac_base
Commits
44e2175c
Commit
44e2175c
authored
Oct 27, 2021
by
Pierre NARVOR
Browse files
Updated FunctorCompound doc
parent
370415b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
cuda/include/rtac_base/cuda/Functors.h
View file @
44e2175c
...
...
@@ -7,7 +7,7 @@
namespace
rtac
{
namespace
cuda
{
/**
* This class allows for creatin
g
of custom unary Functor types on the fly.
* This class allows for
the
creati
o
n of custom unary Functor types on the fly.
*
* A functor is a callable struct (defines an operator()). In the RTAC
* framework, a valid functor must define an InputT and OutputT types, as well
...
...
@@ -33,6 +33,16 @@ namespace rtac { namespace cuda {
* T operator()(T input) const { return 2.0f * input; }
* };
* \endcode
*
* Combining two functors can be done like so :
*
* \code
* auto multBy2ThenAdd3 = FunctorCompound(Offset(3), Scaling(2));
* \endcode
*
* After compilation in release mode, the compound is equivalent to directly
* writting the operation by hand (but with the benefit is has been written at
* a single location in the code).
*/
template
<
class
...
FunctorsT
>
struct
FunctorCompound
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment