ZeroMatrix serves 2 purposes:
More...
#include <python/EigenHelpers.h>
template<typename M>
struct mira::python::ZeroMatrix< M >
ZeroMatrix serves 2 purposes:
- it only implements one version of Zero(), thus resolving the ambiguity of &M::Zero (which has multiple overloads)
- it casts the return type of Zero() to the desired Vector/Matrix type, so Python will recognize our associated to_python converter (the original return type is e.g. Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<float>, M>)
◆ Zero()
The documentation for this struct was generated from the following file: