mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Avoid leading underscore followed by cap in template identifiers
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
5ad8b9bfe2
commit
4ba872bd75
@@ -28,40 +28,40 @@ namespace Eigen {
|
||||
*
|
||||
* \sa TutorialSparseDirectSolvers
|
||||
*/
|
||||
template<typename _MatrixType, bool IsStrSym = false> class PastixLU;
|
||||
template<typename _MatrixType, int Options> class PastixLLT;
|
||||
template<typename _MatrixType, int Options> class PastixLDLT;
|
||||
template<typename MatrixType_, bool IsStrSym = false> class PastixLU;
|
||||
template<typename MatrixType_, int Options> class PastixLLT;
|
||||
template<typename MatrixType_, int Options> class PastixLDLT;
|
||||
|
||||
namespace internal
|
||||
{
|
||||
|
||||
template<class Pastix> struct pastix_traits;
|
||||
|
||||
template<typename _MatrixType>
|
||||
struct pastix_traits< PastixLU<_MatrixType> >
|
||||
template<typename MatrixType_>
|
||||
struct pastix_traits< PastixLU<MatrixType_> >
|
||||
{
|
||||
typedef _MatrixType MatrixType;
|
||||
typedef typename _MatrixType::Scalar Scalar;
|
||||
typedef typename _MatrixType::RealScalar RealScalar;
|
||||
typedef typename _MatrixType::StorageIndex StorageIndex;
|
||||
typedef MatrixType_ MatrixType;
|
||||
typedef typename MatrixType_::Scalar Scalar;
|
||||
typedef typename MatrixType_::RealScalar RealScalar;
|
||||
typedef typename MatrixType_::StorageIndex StorageIndex;
|
||||
};
|
||||
|
||||
template<typename _MatrixType, int Options>
|
||||
struct pastix_traits< PastixLLT<_MatrixType,Options> >
|
||||
template<typename MatrixType_, int Options>
|
||||
struct pastix_traits< PastixLLT<MatrixType_,Options> >
|
||||
{
|
||||
typedef _MatrixType MatrixType;
|
||||
typedef typename _MatrixType::Scalar Scalar;
|
||||
typedef typename _MatrixType::RealScalar RealScalar;
|
||||
typedef typename _MatrixType::StorageIndex StorageIndex;
|
||||
typedef MatrixType_ MatrixType;
|
||||
typedef typename MatrixType_::Scalar Scalar;
|
||||
typedef typename MatrixType_::RealScalar RealScalar;
|
||||
typedef typename MatrixType_::StorageIndex StorageIndex;
|
||||
};
|
||||
|
||||
template<typename _MatrixType, int Options>
|
||||
struct pastix_traits< PastixLDLT<_MatrixType,Options> >
|
||||
template<typename MatrixType_, int Options>
|
||||
struct pastix_traits< PastixLDLT<MatrixType_,Options> >
|
||||
{
|
||||
typedef _MatrixType MatrixType;
|
||||
typedef typename _MatrixType::Scalar Scalar;
|
||||
typedef typename _MatrixType::RealScalar RealScalar;
|
||||
typedef typename _MatrixType::StorageIndex StorageIndex;
|
||||
typedef MatrixType_ MatrixType;
|
||||
typedef typename MatrixType_::Scalar Scalar;
|
||||
typedef typename MatrixType_::RealScalar RealScalar;
|
||||
typedef typename MatrixType_::StorageIndex StorageIndex;
|
||||
};
|
||||
|
||||
inline void eigen_pastix(pastix_data_t **pastix_data, int pastix_comm, int n, int *ptr, int *idx, float *vals, int *perm, int * invp, float *x, int nbrhs, int *iparm, double *dparm)
|
||||
@@ -134,8 +134,8 @@ class PastixBase : public SparseSolverBase<Derived>
|
||||
public:
|
||||
using Base::_solve_impl;
|
||||
|
||||
typedef typename internal::pastix_traits<Derived>::MatrixType _MatrixType;
|
||||
typedef _MatrixType MatrixType;
|
||||
typedef typename internal::pastix_traits<Derived>::MatrixType MatrixType_;
|
||||
typedef MatrixType_ MatrixType;
|
||||
typedef typename MatrixType::Scalar Scalar;
|
||||
typedef typename MatrixType::RealScalar RealScalar;
|
||||
typedef typename MatrixType::StorageIndex StorageIndex;
|
||||
@@ -397,7 +397,7 @@ bool PastixBase<Base>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> &x
|
||||
* This interface can symmetrize the input matrix otherwise.
|
||||
* The vectors or matrices X and B can be either dense or sparse.
|
||||
*
|
||||
* \tparam _MatrixType the type of the sparse matrix A, it must be a SparseMatrix<>
|
||||
* \tparam MatrixType_ the type of the sparse matrix A, it must be a SparseMatrix<>
|
||||
* \tparam IsStrSym Indicates if the input matrix has a symmetric pattern, default is false
|
||||
* NOTE : Note that if the analysis and factorization phase are called separately,
|
||||
* the input matrix will be symmetrized at each call, hence it is advised to
|
||||
@@ -408,11 +408,11 @@ bool PastixBase<Base>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> &x
|
||||
* \sa \ref TutorialSparseSolverConcept, class SparseLU
|
||||
*
|
||||
*/
|
||||
template<typename _MatrixType, bool IsStrSym>
|
||||
class PastixLU : public PastixBase< PastixLU<_MatrixType> >
|
||||
template<typename MatrixType_, bool IsStrSym>
|
||||
class PastixLU : public PastixBase< PastixLU<MatrixType_> >
|
||||
{
|
||||
public:
|
||||
typedef _MatrixType MatrixType;
|
||||
typedef MatrixType_ MatrixType;
|
||||
typedef PastixBase<PastixLU<MatrixType> > Base;
|
||||
typedef typename Base::ColSpMatrix ColSpMatrix;
|
||||
typedef typename MatrixType::StorageIndex StorageIndex;
|
||||
@@ -520,16 +520,16 @@ class PastixLU : public PastixBase< PastixLU<_MatrixType> >
|
||||
*
|
||||
* \sa \ref TutorialSparseSolverConcept, class SimplicialLLT
|
||||
*/
|
||||
template<typename _MatrixType, int _UpLo>
|
||||
class PastixLLT : public PastixBase< PastixLLT<_MatrixType, _UpLo> >
|
||||
template<typename MatrixType_, int UpLo_>
|
||||
class PastixLLT : public PastixBase< PastixLLT<MatrixType_, UpLo_> >
|
||||
{
|
||||
public:
|
||||
typedef _MatrixType MatrixType;
|
||||
typedef PastixBase<PastixLLT<MatrixType, _UpLo> > Base;
|
||||
typedef MatrixType_ MatrixType;
|
||||
typedef PastixBase<PastixLLT<MatrixType, UpLo_> > Base;
|
||||
typedef typename Base::ColSpMatrix ColSpMatrix;
|
||||
|
||||
public:
|
||||
enum { UpLo = _UpLo };
|
||||
enum { UpLo = UpLo_ };
|
||||
PastixLLT() : Base()
|
||||
{
|
||||
init();
|
||||
@@ -604,16 +604,16 @@ class PastixLLT : public PastixBase< PastixLLT<_MatrixType, _UpLo> >
|
||||
*
|
||||
* \sa \ref TutorialSparseSolverConcept, class SimplicialLDLT
|
||||
*/
|
||||
template<typename _MatrixType, int _UpLo>
|
||||
class PastixLDLT : public PastixBase< PastixLDLT<_MatrixType, _UpLo> >
|
||||
template<typename MatrixType_, int UpLo_>
|
||||
class PastixLDLT : public PastixBase< PastixLDLT<MatrixType_, UpLo_> >
|
||||
{
|
||||
public:
|
||||
typedef _MatrixType MatrixType;
|
||||
typedef PastixBase<PastixLDLT<MatrixType, _UpLo> > Base;
|
||||
typedef MatrixType_ MatrixType;
|
||||
typedef PastixBase<PastixLDLT<MatrixType, UpLo_> > Base;
|
||||
typedef typename Base::ColSpMatrix ColSpMatrix;
|
||||
|
||||
public:
|
||||
enum { UpLo = _UpLo };
|
||||
enum { UpLo = UpLo_ };
|
||||
PastixLDLT():Base()
|
||||
{
|
||||
init();
|
||||
|
||||
Reference in New Issue
Block a user