aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CwiseUnaryOp.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-03-08 19:02:24 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-03-08 19:02:24 +0000
commit721626dfc5cab61ded1a26357b6c3dbb33763dc0 (patch)
treeb0ca850c64a5bfccdd300cb49baf2e469640d276 /Eigen/src/Core/CwiseUnaryOp.h
parent138aad0ed03cb9045b1f74ce52f0e47ce02966c8 (diff)
* Added support for a comma initializer: mat.block(i,j,2,2) << 1, 2, 3, 4;
If the number of coefficients does not match the matrix size, then an assertion is raised. No support for xpr on the right side for the moment. * Added support for assertion checking. This allows to test that an assertion is indeed raised when it should be. * Fixed a mistake in the CwiseUnary example.
Diffstat (limited to 'Eigen/src/Core/CwiseUnaryOp.h')
-rw-r--r--Eigen/src/Core/CwiseUnaryOp.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h
index c51ad26bc..51a037f24 100644
--- a/Eigen/src/Core/CwiseUnaryOp.h
+++ b/Eigen/src/Core/CwiseUnaryOp.h
@@ -76,7 +76,8 @@ class CwiseUnaryOp : NoOperatorEquals,
const UnaryOp m_functor;
};
-/** \brief Template functor to compute the opposite of a scalar
+/** \internal
+ * \brief Template functor to compute the opposite of a scalar
*
* \sa class CwiseUnaryOp, MatrixBase::operator-
*/
@@ -84,7 +85,8 @@ struct ScalarOppositeOp EIGEN_EMPTY_STRUCT {
template<typename Scalar> Scalar operator() (const Scalar& a) const { return -a; }
};
-/** \brief Template functor to compute the absolute value of a scalar
+/** \internal
+ * \brief Template functor to compute the absolute value of a scalar
*
* \sa class CwiseUnaryOp, MatrixBase::cwiseAbs
*/
@@ -116,7 +118,7 @@ MatrixBase<Scalar, Derived>::cwiseAbs() const
*
* The template parameter \a CustomUnaryOp is the type of the functor
* of the custom unary operator.
- *
+ *
* Here is an example:
* \include class_CwiseUnaryOp.cpp
*
@@ -131,7 +133,8 @@ MatrixBase<Scalar, Derived>::cwise(const CustomUnaryOp& func) const
}
-/** \brief Template functor to compute the conjugate of a complex value
+/** \internal
+ * \brief Template functor to compute the conjugate of a complex value
*
* \sa class CwiseUnaryOp, MatrixBase::conjugate()
*/
@@ -149,7 +152,8 @@ MatrixBase<Scalar, Derived>::conjugate() const
return CwiseUnaryOp<ScalarConjugateOp, Derived>(asArg());
}
-/** \brief Template functor to cast a scalar to another
+/** \internal
+ * \brief Template functor to cast a scalar to another
*
* \sa class CwiseUnaryOp, MatrixBase::cast()
*/
@@ -178,7 +182,8 @@ MatrixBase<Scalar, Derived>::cast() const
}
-/** \brief Template functor to multiply a scalar by a fixed another one
+/** \internal
+ * \brief Template functor to multiply a scalar by a fixed another one
*
* \sa class CwiseUnaryOp, MatrixBase::operator*, MatrixBase::operator/
*/