mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add missing EIGEN_DEPRECATED annotations to deprecated functions and fix few other doxygen warnings
This commit is contained in:
@@ -177,7 +177,8 @@ class TensorCostModel {
|
||||
double threads = (cost - kStartupCycles) / kPerThreadCycles + 0.9;
|
||||
// Make sure we don't invoke undefined behavior when we convert to an int.
|
||||
threads = numext::mini<double>(threads, GenericNumTraits<int>::highest());
|
||||
return numext::mini(max_threads, numext::maxi<int>(1, threads));
|
||||
return numext::mini(max_threads,
|
||||
numext::maxi<int>(1, static_cast<int>(threads)));
|
||||
}
|
||||
|
||||
// taskSize assesses parallel task size.
|
||||
|
||||
Reference in New Issue
Block a user