| 1969 | |
| 1970 | template<class ValueType> |
| 1971 | bool RootCheckXZero(ValueType & x, ErrorCode * err) |
| 1972 | { |
| 1973 | if( x.IsZero() ) |
| 1974 | { |
| 1975 | // root(0;index) is zero (if index!=0) |
| 1976 | // RootCheckIndexZero() must be called beforehand |
| 1977 | x.SetZero(); |
| 1978 | |
| 1979 | if( err ) |
| 1980 | *err = err_ok; |
| 1981 | |
| 1982 | return true; |
| 1983 | } |
| 1984 | |
| 1985 | return false; |
| 1986 | } |
| 1987 | |
| 1988 | |
| 1989 | template<class ValueType> |