Go to the documentation of this file.00001
00002
00003
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef _GSL_PERMUTATION_H
00035 #define _GSL_PERMUTATION_H
00036
00037 #include<assert.h>
00038 #include<gsl/gsl_permutation.h>
00039
00041
00042
00043 class permutation
00044 {
00045 friend class matrix;
00046 friend class matrix_int;
00047
00048 private:
00049
00051
00052
00053 gsl_permutation *gsldata;
00054
00055 public:
00056
00058
00066
00067
00068 permutation(size_t n,bool clear=true);
00069
00071
00072
00073 permutation();
00074
00076
00078
00079
00080 ~permutation();
00081
00083
00085
00086 void resize(size_t n);
00087
00089
00090
00091 gsl_permutation *gslperm_obj() {assert(gsldata);return gsldata;}
00092
00094
00095
00096 const gsl_permutation *gslperm_obj() const {assert(gsldata);return gsldata;}
00097
00098 };
00099
00100 #endif // GSL_PERMUTATION_H
00101