diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-08-28 08:14:15 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-08-28 08:14:15 -0700 |
commit | 2ab603316af7c1bcf1d5e87d9ba50a2589b36e37 (patch) | |
tree | 11245a1131a272ef6a26105d93d685019a356bb8 /unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h | |
parent | 2ed1495eec9dfca49224b074c12ea6bd024d1400 (diff) |
Use numext::mini/numext::maxi instead of std::min/std::max in the tensor code
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h b/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h index 8a04f7d34..e60fab713 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h @@ -934,8 +934,8 @@ struct TensorEvaluator<const TensorContractionOp<Indices, LeftArgType, RightArgT // Sizes of the blocks to load in cache. See the Goto paper for details. BlockingType blocking(m, n, k, 1, true); const Index kc = blocking.kc(); - const Index mc = (std::min)(m, blocking.mc()); - const Index nc = (std::min)(n, blocking.nc()); + const Index mc = numext::mini(m, blocking.mc()); + const Index nc = numext::mini(n, blocking.nc()); const Index sizeA = mc * kc; const Index sizeB = kc * nc; @@ -944,16 +944,16 @@ struct TensorEvaluator<const TensorContractionOp<Indices, LeftArgType, RightArgT for(Index i2=0; i2<m; i2+=mc) { - const Index actual_mc = (std::min)(i2+mc,m)-i2; + const Index actual_mc = numext::mini(i2+mc,m)-i2; for (Index k2 = 0; k2 < k; k2 += kc) { // make sure we don't overshoot right edge of left matrix, then pack vertical panel - const Index actual_kc = (std::min)(k2 + kc, k) - k2; + const Index actual_kc = numext::mini(k2 + kc, k) - k2; pack_lhs(blockA, lhs.getSubMapper(i2, k2), actual_kc, actual_mc, 0, 0); // series of horizontal blocks for (Index j2 = 0; j2 < n; j2 += nc) { // make sure we don't overshoot right edge of right matrix, then pack block - const Index actual_nc = (std::min)(j2 + nc, n) - j2; + const Index actual_nc = numext::mini(j2 + nc, n) - j2; pack_rhs(blockB, rhs.getSubMapper(k2, j2), actual_kc, actual_nc, 0, 0); // call gebp (matrix kernel) |