Commit 29949c0d authored by Daniel Simon's avatar Daniel Simon
Browse files

Wrapped into TNL::Arithmetics. UnitTests refaktorization.

parent c1264c24
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
***************************************************/

namespace TNL {
namespace Arithmetics {
    
template <class T>
class Double
@@ -58,4 +59,5 @@ void doubleMul(const T *a, const T *b, T *s);
template <typename T>
void printDouble(T *d);

} // namespace Arithmetics
} // namespace TNL
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
#include "Double.h"

namespace TNL {
namespace Arithmetics {
    
template <class T>
Double<T>::Double() {
@@ -74,4 +75,5 @@ Double<T> Double<T>::operator /(const Double<T>& rhs) const{
 TODO COMPARISON OPERATORS
 */

} // namespace Arithmetics
} // namespace TNL
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
#include "MultiPrecision.h"

namespace TNL {
namespace Arithmetics {

/* CONSTRUCTORS */

@@ -147,6 +148,8 @@ void MultiPrecision::printMP(){
MultiPrecision::~MultiPrecision(){
}

} // namespace Arithmetics
} // namespace TNL


#endif
 No newline at end of file
+3 −1
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
#endif

namespace TNL {
namespace Arithmetics {
    
class MultiPrecision{
public:
@@ -59,4 +60,5 @@ public:
    ~MultiPrecision();
};

} // namespace Arithmetics
} // namespace TNL
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
 */

namespace TNL {
namespace Arithmetics {    

template <class T>
class Quad
@@ -104,4 +105,5 @@ void zeroQuad(T *a); // Reset quad-double
template <typename T>
void printQuad(T *a); // Print of quad-double

} // namespace Arithmetics
} //namespace TNL
Loading