Commit 6d4f0687 authored by Daniel Simon's avatar Daniel Simon
Browse files

All classes wrapped by namespace TNL.

parent e86215c4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@

#include "MultiPrecision.h"

namespace TNL {

/* CONSTRUCTORS */

MultiPrecision::MultiPrecision(){
@@ -145,4 +147,6 @@ void MultiPrecision::printMP(){
MultiPrecision::~MultiPrecision(){
}

} // namespace TNL

#endif
 No newline at end of file
+5 −3
Original line number Diff line number Diff line
@@ -9,11 +9,11 @@
/* Source: https://gmplib.org/ */

#ifdef HAVE_GMP

#include <gmp.h>

#endif

namespace TNL {

class MultiPrecision{
public:
    /* NUMBER */
@@ -58,3 +58,5 @@ public:
    /* DESTRUCTOR */
    ~MultiPrecision();
};

} // namespace TNL
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
 *        Quad edited to use templates.
 */

namespace TNL {

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

} //namespace TNL
+3 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@

#define ABS(n) ((n) > 0 ? (n): -(n))

namespace TNL {

template <class T>
Quad<T>::Quad() {
@@ -625,3 +626,5 @@ template <typename T>
void printQuad(T *a) {
    printf("%.15le + %.15le + %.15le + %.15le\n", a[0], a[1], a[2], a[3]);
}

} // namespace TNL
 No newline at end of file
+1 KiB

File added.

No diff preview for this file type.

Loading