mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 03:07:43 +00:00
Windows fixes
This commit is contained in:
@@ -923,22 +923,21 @@ namespace gmm {
|
||||
template <typename IT, typename ORG, typename VECT> inline
|
||||
void set_to_end(IT &, ORG, const VECT *, linalg_const) { }
|
||||
|
||||
|
||||
template <typename IT, typename ORG, typename VECT> inline
|
||||
void set_to_begin(IT &, ORG, VECT *v, linalg_modifiable)
|
||||
{ GMM_ASSERT3(!is_sparse(*v), "internal_error"); v = 0; }
|
||||
{ GMM_ASSERT3(!is_sparse(*v), "internal_error"); (void)v; }
|
||||
|
||||
template <typename IT, typename ORG, typename VECT> inline
|
||||
void set_to_begin(IT &, ORG, const VECT *v, linalg_modifiable)
|
||||
{ GMM_ASSERT3(!is_sparse(*v), "internal_error"); v = 0; }
|
||||
{ GMM_ASSERT3(!is_sparse(*v), "internal_error"); (void)v; }
|
||||
|
||||
template <typename IT, typename ORG, typename VECT> inline
|
||||
void set_to_end(IT &, ORG, VECT *v, linalg_modifiable)
|
||||
{ GMM_ASSERT3(!is_sparse(*v), "internal_error"); v = 0; }
|
||||
{ GMM_ASSERT3(!is_sparse(*v), "internal_error"); (void)v; }
|
||||
|
||||
template <typename IT, typename ORG, typename VECT> inline
|
||||
void set_to_end(IT &, ORG, const VECT *v, linalg_modifiable)
|
||||
{ GMM_ASSERT3(!is_sparse(*v), "internal_error"); v = 0; }
|
||||
{ GMM_ASSERT3(!is_sparse(*v), "internal_error"); (void)v; }
|
||||
|
||||
/* ******************************************************************** */
|
||||
/* General index for certain algorithms. */
|
||||
@@ -966,7 +965,7 @@ namespace gmm {
|
||||
tol = numeric_limits<T>::epsilon();
|
||||
else {
|
||||
int i=int(sizeof(T)/4); while(i-- > 0) tol*=T(1E-8);
|
||||
GMM_WARNING1("The numeric type " /*<< typeid(T).name()*/
|
||||
GMM_WARNING1("The numeric type " /*<< typeid(T).name()*/
|
||||
<< " has no numeric_limits defined !!\n"
|
||||
<< "Taking " << tol << " as default tolerance");
|
||||
}
|
||||
@@ -984,7 +983,7 @@ namespace gmm {
|
||||
mi = std::numeric_limits<T>::min();
|
||||
else {
|
||||
mi = T(0);
|
||||
GMM_WARNING1("The numeric type " /*<< typeid(T).name()*/
|
||||
GMM_WARNING1("The numeric type " /*<< typeid(T).name()*/
|
||||
<< " has no numeric_limits defined !!\n"
|
||||
<< "Taking 0 as default minimum");
|
||||
}
|
||||
@@ -1002,7 +1001,7 @@ namespace gmm {
|
||||
mi = std::numeric_limits<T>::max();
|
||||
else {
|
||||
mi = T(1);
|
||||
GMM_WARNING1("The numeric type " /*<< typeid(T).name()*/
|
||||
GMM_WARNING1("The numeric type " /*<< typeid(T).name()*/
|
||||
<< " has no numeric_limits defined !!\n"
|
||||
<< "Taking 1 as default maximum !");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user