From 041a10dc46664817c9d843a9958de34fbc3a36a3 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Tue, 18 Oct 2016 21:03:04 +0200 Subject: [PATCH] add KLU complex library compilation --- src/maths/KLU/KLU_COMPLEX.vcxproj | 184 ++++++++++++++++++++++++++++++ src/maths/KLU/klu_proto.h | 54 +++++++++ 2 files changed, 238 insertions(+) create mode 100644 src/maths/KLU/KLU_COMPLEX.vcxproj create mode 100644 src/maths/KLU/klu_proto.h diff --git a/src/maths/KLU/KLU_COMPLEX.vcxproj b/src/maths/KLU/KLU_COMPLEX.vcxproj new file mode 100644 index 000000000..35ff30896 --- /dev/null +++ b/src/maths/KLU/KLU_COMPLEX.vcxproj @@ -0,0 +1,184 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {B8DD41C5-70C6-4183-9018-C4B518E8D36A} + Win32Proj + + + + StaticLibrary + + + StaticLibrary + + + StaticLibrary + + + StaticLibrary + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.40219.1 + Debug\ + Debug\ + Release\ + Release\ + $(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + + + + Disabled + $(ProjectDir)..\..\include\;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;SIMULATOR;NGDEBUG;XSPICE;KLU;COMPLEX;%(PreprocessorDefinitions) + true + Default + MultiThreadedDebug + + + Level4 + EditAndContinue + CompileAsC + + + + + Full + Speed + true + $(ProjectDir)..\..\include\;%(AdditionalIncludeDirectories) + WIN32;_LIB;COMPLEX;%(PreprocessorDefinitions) + + + MultiThreaded + true + + + Level3 + ProgramDatabase + CompileAsC + + + + + X64 + + + Disabled + $(ProjectDir)..\..\include\;%(AdditionalIncludeDirectories) + _DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;SIMULATOR;NGDEBUG;XSPICE;KLU;COMPLEX;%(PreprocessorDefinitions) + true + Default + MultiThreadedDebug + + + Level4 + ProgramDatabase + CompileAsC + + + + + X64 + + + Full + Speed + true + $(ProjectDir)..\..\include\;%(AdditionalIncludeDirectories) + _LIB;COMPLEX;%(PreprocessorDefinitions) + + + MultiThreaded + true + + + Level3 + ProgramDatabase + CompileAsC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/maths/KLU/klu_proto.h b/src/maths/KLU/klu_proto.h new file mode 100644 index 000000000..c1a9e0196 --- /dev/null +++ b/src/maths/KLU/klu_proto.h @@ -0,0 +1,54 @@ +/* function prototypes */ + +void *KLU_malloc /* returns pointer to the newly malloc'd block */ +( + /* ---- input ---- */ + size_t n, /* number of items */ + size_t size, /* size of each item */ + /* --------------- */ + KLU_common *Common +); + +void *KLU_free /* always returns NULL */ +( + /* ---- in/out --- */ + void *p, /* block of memory to free */ + /* ---- input --- */ + size_t n, /* size of block to free, in # of items */ + size_t size, /* size of each item */ + /* --------------- */ + KLU_common *Common +); + +void *KLU_realloc /* returns pointer to reallocated block */ +( + /* ---- input ---- */ + size_t nnew, /* requested # of items in reallocated block */ + size_t nold, /* old # of items */ + size_t size, /* size of each item */ + /* ---- in/out --- */ + void *p, /* block of memory to realloc */ + /* --------------- */ + KLU_common *Common +); + +Int KLU_free_symbolic +( + KLU_symbolic **SymbolicHandle, + KLU_common *Common +); + +KLU_symbolic *KLU_analyze_given /* returns NULL if error, or a valid + KLU_symbolic object if successful */ +( + /* inputs, not modified */ + Int n, /* A is n-by-n */ + Int Ap [ ], /* size n+1, column pointers */ + Int Ai [ ], /* size nz, row indices */ + Int Puser [ ], /* size n, user's row permutation (may be NULL) */ + Int Quser [ ], /* size n, user's column permutation (may be NULL) */ + /* -------------------- */ + KLU_common *Common +); + +