xvector0.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace nmx::gsl {
4 
12 template<class T, class GSLOBJ, int N>
13 struct IGslContainer {
18  inline const GSLOBJ *gsl() const {
19  //konvertiere Objekt welches diese Methode aufruft in einem
20  // Objekt vom Typ T
21  return static_cast<const T *>(this)->gsl();
22  }
23 
28  inline GSLOBJ *gsl() {
29  //konvertiere Objekt welches diese Methode aufruft in einem
30  // Objekt vom Typ T
31  return static_cast<T *>(this)->gsl();
32  }
33 }; //IGslContainer
34 
35 } // namespace nmx::gsl
GSLOBJ * gsl()
gsl_vec ermöglicht direkten Zugriff auf gsl-Funktionen
Definition: xvector0.h:28
const GSLOBJ * gsl() const
ermöglicht direkten Zugriff auf gsl-Funktionen
Definition: xvector0.h:18
The IGslContainer struct Basisklasse für gsl-Vektoren und Matrizen.
Definition: xvector0.h:13