summaryrefslogtreecommitdiff
path: root/External_Functions/Resources
diff options
context:
space:
mode:
authorbansodanurag2019-02-26 13:22:28 +0530
committerGitHub2019-02-26 13:22:28 +0530
commit9bc7cbe32906c97e864df0ad76ba0801333b71a9 (patch)
tree326db71d86607189e0ca7c3132fbb58616e3ee59 /External_Functions/Resources
downloadOpenmodelica-gsl-library-9bc7cbe32906c97e864df0ad76ba0801333b71a9.tar.gz
Openmodelica-gsl-library-9bc7cbe32906c97e864df0ad76ba0801333b71a9.tar.bz2
Openmodelica-gsl-library-9bc7cbe32906c97e864df0ad76ba0801333b71a9.zip
Add files via upload
Diffstat (limited to 'External_Functions/Resources')
-rw-r--r--External_Functions/Resources/Include/gsl_per_alloc.c30
-rw-r--r--External_Functions/Resources/Include/gsl_per_free.c7
-rw-r--r--External_Functions/Resources/Include/gsl_per_init.c10
-rw-r--r--External_Functions/Resources/Library/linux64/libaplusb.sobin0 -> 7872 bytes
-rw-r--r--External_Functions/Resources/Library/linux64/libgsl.abin0 -> 20284394 bytes
-rw-r--r--External_Functions/Resources/Library/linux64/libgslcblas.abin0 -> 475386 bytes
-rw-r--r--External_Functions/Resources/Library/linux64/libsq_root.sobin0 -> 8008 bytes
7 files changed, 47 insertions, 0 deletions
diff --git a/External_Functions/Resources/Include/gsl_per_alloc.c b/External_Functions/Resources/Include/gsl_per_alloc.c
new file mode 100644
index 0000000..3faa008
--- /dev/null
+++ b/External_Functions/Resources/Include/gsl_per_alloc.c
@@ -0,0 +1,30 @@
+#include<stdio.h>
+#include<gsl/gsl_permutation.h>
+/*typedef struct{
+size_t size;
+int* data;
+}OM_gsl_permutation;
+*/
+
+
+void* gsl_per_alloc(size_t N)
+{
+ gsl_permutation* p = gsl_permutation_alloc(N);
+ for(int i = 0; i < N; i++)
+ {
+ (p->data)[i] = 0;
+ }
+ return (void*) p;
+ /*OM_gsl_permutation* OM_gsl_per = malloc(sizeof(OM_gsl_permutation));
+ if ( OM_gsl_per == NULL ) ModelicaError("Not enough memory");
+ return (void*) OM_gsl_per;*/
+}
+
+/*void OM_gsl_permutation_free(void* p)
+{
+ OM_gsl_permutation* OM_gsl_per = (OM_gsl_permutation*) p;
+ if (OM_gsl_per != NULL)
+ {
+ free(OM_gsl_per);
+ }
+}*/
diff --git a/External_Functions/Resources/Include/gsl_per_free.c b/External_Functions/Resources/Include/gsl_per_free.c
new file mode 100644
index 0000000..dc5d8e3
--- /dev/null
+++ b/External_Functions/Resources/Include/gsl_per_free.c
@@ -0,0 +1,7 @@
+#include<stdio.h>
+#include<gsl/gsl_permutation.h>
+
+void gsl_per_free(gsl_permutation *p)
+{
+ gsl_permutation_free(p);
+}
diff --git a/External_Functions/Resources/Include/gsl_per_init.c b/External_Functions/Resources/Include/gsl_per_init.c
new file mode 100644
index 0000000..18a4ca0
--- /dev/null
+++ b/External_Functions/Resources/Include/gsl_per_init.c
@@ -0,0 +1,10 @@
+#include<stdio.h>
+#include<gsl/gsl_permutation.h>
+
+int* gsl_per_init(size_t N, int* y, void *p)
+{
+ gsl_permutation* op = (gsl_permutation*)p;
+ gsl_permutation_init(op);
+ y = (op -> data);
+ return y;
+}
diff --git a/External_Functions/Resources/Library/linux64/libaplusb.so b/External_Functions/Resources/Library/linux64/libaplusb.so
new file mode 100644
index 0000000..c6f28b5
--- /dev/null
+++ b/External_Functions/Resources/Library/linux64/libaplusb.so
Binary files differ
diff --git a/External_Functions/Resources/Library/linux64/libgsl.a b/External_Functions/Resources/Library/linux64/libgsl.a
new file mode 100644
index 0000000..f07981c
--- /dev/null
+++ b/External_Functions/Resources/Library/linux64/libgsl.a
Binary files differ
diff --git a/External_Functions/Resources/Library/linux64/libgslcblas.a b/External_Functions/Resources/Library/linux64/libgslcblas.a
new file mode 100644
index 0000000..d0cf1ba
--- /dev/null
+++ b/External_Functions/Resources/Library/linux64/libgslcblas.a
Binary files differ
diff --git a/External_Functions/Resources/Library/linux64/libsq_root.so b/External_Functions/Resources/Library/linux64/libsq_root.so
new file mode 100644
index 0000000..14453b7
--- /dev/null
+++ b/External_Functions/Resources/Library/linux64/libsq_root.so
Binary files differ