Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.activation
Commits
b4f326cf
Commit
b4f326cf
authored
Oct 13, 2016
by
André Anjos
💬
Browse files
Fix documentation errors
parent
314068ba
Pipeline
#4800
passed with stages
in 16 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/c_cpp_api.rst
View file @
b4f326cf
...
...
@@ -55,21 +55,22 @@ the import function:
Activation Functors
-------------------
.. c
pp
:type:: PyBobLearnActivationObject
.. c:type:: PyBobLearnActivationObject
The pythonic object representation for a ``bob::machine::Activation``
object. It is the base class of all activation functors available in
|project|. In C/C++ code, we recommend you only manipulate objects like this
to keep your code agnostic to the activation type being used.
The pythonic object representation for a
``bob::learn::activation::Activation`` object. It is the base class of all
activation functors available in |project|. In C/C++ code, we recommend you
only manipulate objects like this to keep your code agnostic to the
activation type being used.
.. code-block:: cpp
typedef struct {
PyObject_HEAD
bob::
machine
::Activation* base;
bob::
learn::activation
::Activation* base;
} PyBobLearnActivationObject;
.. cpp:member:: bob::
machine
::Activation* base
.. cpp:member:: bob::
learn::activation
::Activation* base
A pointer to the activation functor virtual implementation.
...
...
@@ -80,13 +81,14 @@ Activation Functors
Returns ``1`` if it is, and ``0`` otherwise.
.. cpp:function:: PyObject* PyBobLearnActivation_NewFromActivation(boost::shared_ptr<bob::
machine
::Activation> a)
.. cpp:function:: PyObject* PyBobLearnActivation_NewFromActivation(boost::shared_ptr<bob::
learn::activation
::Activation> a)
Constructs a new :c:type:`PyBobLearnActivationObject` starting from a shared
pointer to a pre-allocated `bob::machine::Activation` instance. This API is
available so that return values from actuall C++ machines can be mapped into
Python. It is the sole way to build an object of type :py:class:`Activation`
without recurring to the derived classes.
pointer to a pre-allocated `bob::learn::activation::Activation` instance.
This API is available so that return values from actuall C++ machines can be
mapped into Python. It is the sole way to build an object of type
:py:class:`bob.learn.activation.Activation` without recurring to the derived
classes.
.. note::
...
...
@@ -100,7 +102,7 @@ Activation Functors
typedef struct {
PyBobLearnActivationObject parent;
bob::
machine
::<Subtype>Activation* base;
bob::
learn::activation
::<Subtype>Activation* base;
} PyBobLearn<Subtype>ActivationObject;
Presently, ``<Subtype>`` can be one of:
...
...
doc/nitpick-exceptions.txt
0 → 100644
View file @
b4f326cf
# No documentation exists for these c++ types
cpp:type bob
cpp:type bob::learn
cpp:type bob::learn::activation
cpp:type bob::learn::activation::Activation
cpp:type boost
cpp:type boost::shared_ptr
# These are not c++ types, but c - why Sphinx confuses those?
cpp:type PyObject
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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