Muller
sample Muller's potential
|
00001 /* 00002 * This work is licensed under a Creative Commons 00003 * Attribution-Noncommercial-Share Alike 3.0 United States License. 00004 * 00005 * http://creativecommons.org/licenses/by-nc-sa/3.0/us/ 00006 * 00007 * You are free: 00008 * 00009 * to Share - to copy, distribute, display, and perform the work 00010 * to Remix - to make derivative works 00011 * 00012 * Under the following conditions: 00013 * 00014 * Attribution. You must attribute the work in the manner specified by the 00015 * author or licensor (but not in any way that suggests that they endorse you 00016 * or your use of the work). 00017 * 00018 * Noncommercial. You may not use this work for commercial purposes. 00019 * 00020 * Share Alike. If you alter, transform, or build upon this work, you may 00021 * distribute the resulting work only under the same or similar license to 00022 * this one. 00023 * 00024 * For any reuse or distribution, you must make clear to others the license 00025 * terms of this work. The best way to do this is by including this header. 00026 * 00027 * Any of the above conditions can be waived if you get permission from the 00028 * copyright holder. 00029 * 00030 * Apart from the remix rights granted under this license, nothing in this 00031 * license impairs or restricts the author's moral rights. 00032 */ 00033 00034 00046 #ifndef POTENTIAL_H 00047 #define POTENTIAL_H 00048 00049 00050 #include <config.h> 00051 00052 #include <stdlib.h> 00053 00054 #include <jwsc/base/error.h> 00055 #include <jwsc/matrix/matrix.h> 00056 00057 00058 #ifdef __cplusplus 00059 namespace jwsc { 00060 extern "C" { 00061 #endif 00062 00063 00072 Error* mullers_potential_f(float* V_out, float x, float y); 00073 00075 Error* mullers_potential_d(double* V_out, double x, double y); 00076 00093 Error* grad_mullers_potential_f 00094 ( 00095 float* dx_V_out, 00096 float* dy_V_out, 00097 float x, 00098 float y 00099 ); 00100 00105 Error* grad_mullers_potential_d 00106 ( 00107 double* dx_V_out, 00108 double* dy_V_out, 00109 double x, 00110 double y 00111 ); 00112 00124 Error* grad_matrix_mullers_potential_d 00125 ( 00126 Matrix_d** gg_out, 00127 double x, 00128 double y 00129 ); 00130 00131 /*@*/ 00132 00133 00145 Error* hessian_mullers_potential_f 00146 ( 00147 Matrix_f** H_V_out, 00148 float x, 00149 float y 00150 ); 00151 00156 Error* hessian_mullers_potential_d 00157 ( 00158 Matrix_d** H_V_out, 00159 double x, 00160 double y 00161 ); 00162 00165 #ifdef __cplusplus 00166 } 00167 } 00168 #endif 00169 00170 00171 #endif