mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-13 01:43:13 +08:00
Remove useless "explicit", and fix inline/static order.
This commit is contained in:
parent
79c1e6d0a6
commit
30b5c4cd14
4
Eigen/src/Core/AssignEvaluator.h
Normal file → Executable file
4
Eigen/src/Core/AssignEvaluator.h
Normal file → Executable file
@ -606,7 +606,7 @@ public:
|
||||
assignPacket<StoreMode,LoadMode,PacketType>(row, col);
|
||||
}
|
||||
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static Index rowIndexByOuterInner(Index outer, Index inner)
|
||||
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE Index rowIndexByOuterInner(Index outer, Index inner)
|
||||
{
|
||||
typedef typename DstEvaluatorType::ExpressionTraits Traits;
|
||||
return int(Traits::RowsAtCompileTime) == 1 ? 0
|
||||
@ -615,7 +615,7 @@ public:
|
||||
: inner;
|
||||
}
|
||||
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static Index colIndexByOuterInner(Index outer, Index inner)
|
||||
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE Index colIndexByOuterInner(Index outer, Index inner)
|
||||
{
|
||||
typedef typename DstEvaluatorType::ExpressionTraits Traits;
|
||||
return int(Traits::ColsAtCompileTime) == 1 ? 0
|
||||
|
2
Eigen/src/Core/VectorwiseOp.h
Normal file → Executable file
2
Eigen/src/Core/VectorwiseOp.h
Normal file → Executable file
@ -115,7 +115,7 @@ struct member_lpnorm {
|
||||
typedef ResultType result_type;
|
||||
template<typename Scalar, int Size> struct Cost
|
||||
{ enum { value = (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::AddCost }; };
|
||||
EIGEN_DEVICE_FUNC explicit member_lpnorm() {}
|
||||
EIGEN_DEVICE_FUNC member_lpnorm() {}
|
||||
template<typename XprType>
|
||||
EIGEN_DEVICE_FUNC inline ResultType operator()(const XprType& mat) const
|
||||
{ return mat.template lpNorm<p>(); }
|
||||
|
2
Eigen/src/Eigenvalues/GeneralizedEigenSolver.h
Normal file → Executable file
2
Eigen/src/Eigenvalues/GeneralizedEigenSolver.h
Normal file → Executable file
@ -145,7 +145,7 @@ template<typename _MatrixType> class GeneralizedEigenSolver
|
||||
*
|
||||
* \sa compute()
|
||||
*/
|
||||
explicit GeneralizedEigenSolver(const MatrixType& A, const MatrixType& B, bool computeEigenvectors = true)
|
||||
GeneralizedEigenSolver(const MatrixType& A, const MatrixType& B, bool computeEigenvectors = true)
|
||||
: m_eivec(A.rows(), A.cols()),
|
||||
m_alphas(A.cols()),
|
||||
m_betas(A.cols()),
|
||||
|
2
Eigen/src/Eigenvalues/RealQZ.h
Normal file → Executable file
2
Eigen/src/Eigenvalues/RealQZ.h
Normal file → Executable file
@ -101,7 +101,7 @@ namespace Eigen {
|
||||
*
|
||||
* This constructor calls compute() to compute the QZ decomposition.
|
||||
*/
|
||||
explicit RealQZ(const MatrixType& A, const MatrixType& B, bool computeQZ = true) :
|
||||
RealQZ(const MatrixType& A, const MatrixType& B, bool computeQZ = true) :
|
||||
m_S(A.rows(),A.cols()),
|
||||
m_T(A.rows(),A.cols()),
|
||||
m_Q(A.rows(),A.cols()),
|
||||
|
2
Eigen/src/SVD/JacobiSVD.h
Normal file → Executable file
2
Eigen/src/SVD/JacobiSVD.h
Normal file → Executable file
@ -539,7 +539,7 @@ template<typename _MatrixType, int QRPreconditioner> class JacobiSVD
|
||||
* according to the specified problem size.
|
||||
* \sa JacobiSVD()
|
||||
*/
|
||||
explicit JacobiSVD(Index rows, Index cols, unsigned int computationOptions = 0)
|
||||
JacobiSVD(Index rows, Index cols, unsigned int computationOptions = 0)
|
||||
{
|
||||
allocate(rows, cols, computationOptions);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user