mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Comment cleanup v3: trailing ??, informal language, FIXME/TODO colons
libeigen/eigen!2197 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include "main.h"
|
||||
#include "../Eigen/SpecialFunctions"
|
||||
|
||||
// Hack to allow "implicit" conversions from double to Scalar via comma-initialization.
|
||||
// Workaround to allow "implicit" conversions from double to Scalar via comma-initialization.
|
||||
template <typename Derived>
|
||||
Eigen::CommaInitializer<Derived> operator<<(Eigen::DenseBase<Derived>& dense, double v) {
|
||||
return (dense << static_cast<typename Derived::Scalar>(v));
|
||||
|
||||
Reference in New Issue
Block a user