diff options
author | Desire NUENTSA <desire.nuentsa_wakam@inria.fr> | 2012-09-28 10:44:25 +0200 |
---|---|---|
committer | Desire NUENTSA <desire.nuentsa_wakam@inria.fr> | 2012-09-28 10:44:25 +0200 |
commit | b68102d9a29ac2f631dead3d861f9e84c5897e9c (patch) | |
tree | 88b2b2a81728cddd860d52d88c2656eeae0ca37c /Eigen | |
parent | 87074d97e5a0f709f45dcb17493d2151295b6ce2 (diff) |
MSVC needs parentheses around min and max
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/SparseLU/SparseLUBase.h | 4 | ||||
-rw-r--r-- | Eigen/src/SparseLU/SparseLU_Coletree.h | 2 | ||||
-rw-r--r-- | Eigen/src/SparseLU/SparseLU_Memory.h | 4 | ||||
-rw-r--r-- | Eigen/src/SparseLU/SparseLU_column_bmod.h | 6 | ||||
-rw-r--r-- | Eigen/src/SparseLU/SparseLU_heap_relax_snode.h | 2 | ||||
-rw-r--r-- | Eigen/src/SparseLU/SparseLU_panel_bmod.h | 2 | ||||
-rw-r--r-- | Eigen/src/SparseLU/SparseLU_panel_dfs.h | 4 |
7 files changed, 12 insertions, 12 deletions
diff --git a/Eigen/src/SparseLU/SparseLUBase.h b/Eigen/src/SparseLU/SparseLUBase.h index 94668fcff..c00bc0532 100644 --- a/Eigen/src/SparseLU/SparseLUBase.h +++ b/Eigen/src/SparseLU/SparseLUBase.h @@ -38,10 +38,10 @@ struct SparseLUBase static int LU_snode_dfs(const int jcol, const int kcol,const MatrixType& mat, IndexVector& xprune, IndexVector& marker, LU_GlobalLU_t<IndexVector, ScalarVector>& glu); static int LU_snode_bmod (const int jcol, const int fsupc, ScalarVector& dense, GlobalLU_t& glu); static int LU_pivotL(const int jcol, const RealScalar diagpivotthresh, IndexVector& perm_r, IndexVector& iperm_c, int& pivrow, GlobalLU_t& glu); - template <typename RepfnzType, typename MarkerType,typename Traits> + template <typename Traits> static void LU_dfs_kernel(const int jj, IndexVector& perm_r, int& nseg, IndexVector& panel_lsub, IndexVector& segrep, - RepfnzType& repfnz_col, IndexVector& xprune, MarkerType& marker, IndexVector& parent, + Ref<IndexVector> repfnz_col, IndexVector& xprune, Ref<IndexVector> marker, IndexVector& parent, IndexVector& xplore, GlobalLU_t& glu, int& nextl_col, int krow, Traits& traits); static void LU_panel_dfs(const int m, const int w, const int jcol, MatrixType& A, IndexVector& perm_r, int& nseg, ScalarVector& dense, IndexVector& panel_lsub, IndexVector& segrep, IndexVector& repfnz, IndexVector& xprune, IndexVector& marker, IndexVector& parent, IndexVector& xplore, GlobalLU_t& glu); diff --git a/Eigen/src/SparseLU/SparseLU_Coletree.h b/Eigen/src/SparseLU/SparseLU_Coletree.h index bb4067a45..d3bc36ea4 100644 --- a/Eigen/src/SparseLU/SparseLU_Coletree.h +++ b/Eigen/src/SparseLU/SparseLU_Coletree.h @@ -70,7 +70,7 @@ int SparseLUBase<Scalar,Index>::LU_sp_coletree(const MatrixType& mat, IndexVecto for (typename MatrixType::InnerIterator it(mat, col); it; ++it) { // Is it necessary to browse the whole matrix, the lower part should do the job ?? row = it.row(); - firstcol(row) = std::min(firstcol(row), col); + firstcol(row) = (std::min)(firstcol(row), col); } } /* Compute etree by Liu's algorithm for symmetric matrices, diff --git a/Eigen/src/SparseLU/SparseLU_Memory.h b/Eigen/src/SparseLU/SparseLU_Memory.h index 62adcb4a2..7b9f01355 100644 --- a/Eigen/src/SparseLU/SparseLU_Memory.h +++ b/Eigen/src/SparseLU/SparseLU_Memory.h @@ -128,8 +128,8 @@ int SparseLUBase<Scalar,Index>::LUMemInit(int m, int n, int annz, int lwork, int { int& num_expansions = glu.num_expansions; //No memory expansions so far num_expansions = 0; - glu.nzumax = glu.nzlumax = std::max(fillratio * annz, m*n); // estimated number of nonzeros in U - glu.nzlmax = std::max(1., fillratio/4.) * annz; // estimated nnz in L factor + glu.nzumax = glu.nzlumax = (std::max)(fillratio * annz, m*n); // estimated number of nonzeros in U + glu.nzlmax = (std::max)(1., fillratio/4.) * annz; // estimated nnz in L factor // Return the estimated size to the user if necessary if (lwork == IND_EMPTY) diff --git a/Eigen/src/SparseLU/SparseLU_column_bmod.h b/Eigen/src/SparseLU/SparseLU_column_bmod.h index b268c4348..94f18fb73 100644 --- a/Eigen/src/SparseLU/SparseLU_column_bmod.h +++ b/Eigen/src/SparseLU/SparseLU_column_bmod.h @@ -76,7 +76,7 @@ int SparseLUBase<Scalar,Index>::LU_column_bmod(const int jcol, const int nseg, B { // outside the rectangular supernode fsupc = glu.xsup(ksupno); - fst_col = std::max(fsupc, fpanelc); + fst_col = (std::max)(fsupc, fpanelc); // Distance from the current supernode to the current panel; // d_fsupc = 0 if fsupc > fpanelc @@ -86,7 +86,7 @@ int SparseLUBase<Scalar,Index>::LU_column_bmod(const int jcol, const int nseg, B lptr = glu.xlsub(fsupc) + d_fsupc; kfnz = repfnz(krep); - kfnz = std::max(kfnz, fpanelc); + kfnz = (std::max)(kfnz, fpanelc); segsize = krep - kfnz + 1; nsupc = krep - fst_col + 1; @@ -132,7 +132,7 @@ int SparseLUBase<Scalar,Index>::LU_column_bmod(const int jcol, const int nseg, B * 1) fsupc < fpanelc, then fst_col <-- fpanelc * 2) fsupc >= fpanelc, then fst_col <-- fsupc */ - fst_col = std::max(fsupc, fpanelc); + fst_col = (std::max)(fsupc, fpanelc); if (fst_col < jcol) { diff --git a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h index 6d3271aff..69e1d4da9 100644 --- a/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +++ b/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h @@ -88,7 +88,7 @@ void SparseLUBase<Scalar,Index>::LU_heap_relax_snode (const int n, IndexVector& ++nsuper_et_post; k = n; for (i = snode_start; i <= j; ++i) - k = std::min(k, inv_post(i)); + k = (std::min)(k, inv_post(i)); l = inv_post(j); if ( (l - k) == (j - snode_start) ) // Same number of columns in the snode { diff --git a/Eigen/src/SparseLU/SparseLU_panel_bmod.h b/Eigen/src/SparseLU/SparseLU_panel_bmod.h index ceb6c5938..6688b4e3e 100644 --- a/Eigen/src/SparseLU/SparseLU_panel_bmod.h +++ b/Eigen/src/SparseLU/SparseLU_panel_bmod.h @@ -89,7 +89,7 @@ void SparseLUBase<Scalar,Index>::LU_panel_bmod(const int m, const int w, const i segsize = krep - kfnz + 1; u_cols++; - u_rows = std::max(segsize,u_rows); + u_rows = (std::max)(segsize,u_rows); } // if the blocks are large enough, use level 3 diff --git a/Eigen/src/SparseLU/SparseLU_panel_dfs.h b/Eigen/src/SparseLU/SparseLU_panel_dfs.h index 164417897..5d3025388 100644 --- a/Eigen/src/SparseLU/SparseLU_panel_dfs.h +++ b/Eigen/src/SparseLU/SparseLU_panel_dfs.h @@ -30,10 +30,10 @@ #ifndef SPARSELU_PANEL_DFS_H #define SPARSELU_PANEL_DFS_H template <typename Scalar, typename Index> -template <typename RepfnzType, typename MarkerType,typename Traits> +template <typename Traits> void SparseLUBase<Scalar,Index>::LU_dfs_kernel(const int jj, IndexVector& perm_r, int& nseg, IndexVector& panel_lsub, IndexVector& segrep, - RepfnzType& repfnz_col, IndexVector& xprune, MarkerType& marker, IndexVector& parent, + Ref<IndexVector> repfnz_col, IndexVector& xprune, Ref<IndexVector> marker, IndexVector& parent, IndexVector& xplore, GlobalLU_t& glu, int& nextl_col, int krow, Traits& traits ) |