sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
0d6ae5bc86964c327eadc794afef6f221ecfbf032eee67e8ec2a60d1586bb19a | C | 229 | 19 | #include "f2c.h"
#ifdef KR_headers
double cos();
double r_cos(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_cos(real *x)
#endif
{
return( cos(*x) );
}
#ifdef __cplusplus
}
#endif
|
295ab8da737d867f7ec2082ab49ba8c7214c3307cf09f3b3d83eb534441aaf26 | C | 229 | 19 | #include "f2c.h"
#ifdef KR_headers
double log();
double r_log(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_log(real *x)
#endif
{
return( log(*x) );
}
#ifdef __cplusplus
}
#endif
|
54a51cc8140491f2f902399bc72a7fbd811c1257afb5677ca5cc018b5a896f3f | C | 229 | 19 | #include "f2c.h"
#ifdef KR_headers
double exp();
double r_exp(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_exp(real *x)
#endif
{
return( exp(*x) );
}
#ifdef __cplusplus
}
#endif
|
93f3341b8f3236f866539b75697e531b626c96182a3d72f628bc9270d45fa406 | C | 229 | 19 | #include "f2c.h"
#ifdef KR_headers
double sin();
double r_sin(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_sin(real *x)
#endif
{
return( sin(*x) );
}
#ifdef __cplusplus
}
#endif
|
9fe743604b21be54d2f456908ad758e30a53a8df3999a1067e36696ffdb9f90f | C | 229 | 19 | #include "f2c.h"
#ifdef KR_headers
double tan();
double r_tan(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_tan(real *x)
#endif
{
return( tan(*x) );
}
#ifdef __cplusplus
}
#endif
|
9a0e5deecc95e7ec51f267cc319eec9483ca8ff86928f96b628439b36a1a3f05 | C | 230 | 16 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
shortint h_dim(a,b) shortint *a, *b;
#else
shortint h_dim(shortint *a, shortint *b)
#endif
{
return( *a > *b ? *a - *b : 0);
}
#ifdef __cplusplus
}
#endif
|
1b4af2785337e05a5254bf64b174723250645f8d32ba387435fda53c455b4a73 | C | 231 | 19 | #include "f2c.h"
#undef abs
#include <math.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
double derfc_(x) doublereal *x;
#else
double derfc_(doublereal *x)
#endif
{
return( erfc(*x) );
}
#ifdef __cplusplus
}
#endif
|
75968bb5113e3c7fb05026f6ec8dee55e5c5d1e50ccaac1c431fa33c55b62927 | C | 232 | 16 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
double d_dim(a,b) doublereal *a, *b;
#else
double d_dim(doublereal *a, doublereal *b)
#endif
{
return( *a > *b ? *a - *b : 0);
}
#ifdef __cplusplus
}
#endif
|
575561da3a4b7f20e4580b0668360b1e767bd2c187b02dda6839bd72bf207c03 | C | 233 | 19 | #include "f2c.h"
#ifdef KR_headers
double acos();
double r_acos(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_acos(real *x)
#endif
{
return( acos(*x) );
}
#ifdef __cplusplus
}
#endif
|
6525508b70c752da3c34f4c59d7128bb5c45e73d6cbdc3a6eaa28a4916f634d1 | C | 233 | 19 | #include "f2c.h"
#ifdef KR_headers
double sinh();
double r_sinh(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_sinh(real *x)
#endif
{
return( sinh(*x) );
}
#ifdef __cplusplus
}
#endif
|
c9b8ed1407432225707fb9de769253fdbcf2cef9ab474e55ddc0eea1d0ecf58b | C | 233 | 19 | #include "f2c.h"
#ifdef KR_headers
double sqrt();
double r_sqrt(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_sqrt(real *x)
#endif
{
return( sqrt(*x) );
}
#ifdef __cplusplus
}
#endif
|
c9f6c5c0d78947346ad7e295c3e62a7eaeb65b484612b6aa7d2f7b3865c7e1dc | C | 233 | 19 | #include "f2c.h"
#ifdef KR_headers
double tanh();
double r_tanh(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_tanh(real *x)
#endif
{
return( tanh(*x) );
}
#ifdef __cplusplus
}
#endif
|
cdaf9fc7ae3da070ba6483b03badfab0338aada3d5dbf93e1d40ae714a09bd5f | C | 233 | 19 | #include "f2c.h"
#ifdef KR_headers
double asin();
double r_asin(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_asin(real *x)
#endif
{
return( asin(*x) );
}
#ifdef __cplusplus
}
#endif
|
d1d51b2f3de2ccaf4b90225c3f0177760bb76a08234f5396cac7e06315ab5350 | C | 233 | 19 | #include "f2c.h"
#ifdef KR_headers
double atan();
double r_atan(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_atan(real *x)
#endif
{
return( atan(*x) );
}
#ifdef __cplusplus
}
#endif
|
f22905a8c6d0c58fc90d1670921dc2f09e2544502fb7f643e96a25b4d95eda58 | C | 233 | 19 | #include "f2c.h"
#ifdef KR_headers
double cosh();
double r_cosh(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_cosh(real *x)
#endif
{
return( cosh(*x) );
}
#ifdef __cplusplus
}
#endif
|
204649270f721620bf45d4b95db5fa49b4d44b2a82ac957f10ef15528d092414 | C | 241 | 19 | #include "f2c.h"
#ifdef KR_headers
double sin();
double d_sin(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_sin(doublereal *x)
#endif
{
return( sin(*x) );
}
#ifdef __cplusplus
}
#endif
|
564d16587d9bd363d3ecc713bfd316a0faa2845d926a4cbf6b966641340337d5 | C | 241 | 19 | #include "f2c.h"
#ifdef KR_headers
double log();
double d_log(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_log(doublereal *x)
#endif
{
return( log(*x) );
}
#ifdef __cplusplus
}
#endif
|
8ecb53c2965bec8b6960dfa976ca8fd408511cc69a509a3372f35473aa757522 | C | 241 | 19 | #include "f2c.h"
#ifdef KR_headers
double cos();
double d_cos(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_cos(doublereal *x)
#endif
{
return( cos(*x) );
}
#ifdef __cplusplus
}
#endif
|
96fcaf07cca652cff047c4bd300e9ed2eacd6f983611bc72683de84a2c80158b | C | 241 | 19 | #include "f2c.h"
#ifdef KR_headers
double exp();
double d_exp(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_exp(doublereal *x)
#endif
{
return( exp(*x) );
}
#ifdef __cplusplus
}
#endif
|
e7eab4f50e7dee60e0467687d70466c60904a33f35ed05c2e0e2d96c10133134 | C | 241 | 19 | #include "f2c.h"
#ifdef KR_headers
double tan();
double d_tan(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_tan(doublereal *x)
#endif
{
return( tan(*x) );
}
#ifdef __cplusplus
}
#endif
|
18b45aadcd8efa553bee69089f80120ecc9f3aa5b22644bbb108165149cf337f | C | 245 | 19 | #include "f2c.h"
#ifdef KR_headers
double atan();
double d_atan(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_atan(doublereal *x)
#endif
{
return( atan(*x) );
}
#ifdef __cplusplus
}
#endif
|
366c245189788a5d0ac7f46a3f83acbe0ff0f84e33bc15670ac6818e8b83b788 | C | 245 | 19 | #include "f2c.h"
#ifdef KR_headers
double tanh();
double d_tanh(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_tanh(doublereal *x)
#endif
{
return( tanh(*x) );
}
#ifdef __cplusplus
}
#endif
|
ab3cc4ee563638daf665d8a612d22458882e42b4570a33783fad6cdacfc82c29 | C | 245 | 19 | #include "f2c.h"
#ifdef KR_headers
double acos();
double d_acos(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_acos(doublereal *x)
#endif
{
return( acos(*x) );
}
#ifdef __cplusplus
}
#endif
|
b6f93981d5f90cfb772661f33d152574a1d13f534e740ecbd7f6d06ece29bc72 | C | 245 | 19 | #include "f2c.h"
#ifdef KR_headers
double sinh();
double d_sinh(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_sinh(doublereal *x)
#endif
{
return( sinh(*x) );
}
#ifdef __cplusplus
}
#endif
|
bebb6ac9e235b83b1e41d687c280b841b053cae6a41486993797dc5846e38d5e | C | 245 | 19 | #include "f2c.h"
#ifdef KR_headers
double asin();
double d_asin(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_asin(doublereal *x)
#endif
{
return( asin(*x) );
}
#ifdef __cplusplus
}
#endif
|
c49f695c1d0eff7e0ff8adea920c607a2f3cb632604edb86bc01f70c4df04c0c | C | 245 | 19 | #include "f2c.h"
#ifdef KR_headers
double sqrt();
double d_sqrt(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_sqrt(doublereal *x)
#endif
{
return( sqrt(*x) );
}
#ifdef __cplusplus
}
#endif
|
e0ffb18cef4ee943969650cf05e2b2bb0c41f449bf449eede70721c8357eeb71 | C | 245 | 19 | #include "f2c.h"
#ifdef KR_headers
double cosh();
double d_cosh(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_cosh(doublereal *x)
#endif
{
return( cosh(*x) );
}
#ifdef __cplusplus
}
#endif
|
5de06e85d1a4c791bb307adb84b3f9d89a7831f8bc63d441933d595b83acc397 | C | 247 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
VOID r_cnjg(r, z) f2c_complex *r, *z;
#else
VOID r_cnjg(f2c_complex *r, f2c_complex *z)
#endif
{
real zi = z->i;
r->r = z->r;
r->i = -zi;
}
#ifdef __cplusplus
}
#endif
|
45dc60748ce936d9e45ecff80a6a97765fd8453df0c787d0f5de2d2c5e6a8bde | C | 248 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
double r_sign(a,b) real *a, *b;
#else
double r_sign(real *a, real *b)
#endif
{
double x;
x = (*a >= 0 ? *a : - *a);
return( *b >= 0 ? x : -x);
}
#ifdef __cplusplus
}
#endif
|
b1ea3477c655346dd336f480f5fccd101b246b052b4baaf5b66d5d9f45a3d198 | C | 253 | 19 | #include "f2c.h"
#ifdef KR_headers
double atan2();
double r_atn2(x,y) real *x, *y;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_atn2(real *x, real *y)
#endif
{
return( atan2(*x,*y) );
}
#ifdef __cplusplus
}
#endif
|
9fc5ca229cb8eb825b1ff61c68d764a66f53a5e51044d0e6f5c9687ad5f28fc7 | C | 255 | 19 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
VOID
#ifdef KR_headers
d_cnjg(r, z) doublecomplex *r, *z;
#else
d_cnjg(doublecomplex *r, doublecomplex *z)
#endif
{
doublereal zi = z->i;
r->r = z->r;
r->i = -zi;
}
#ifdef __cplusplus
}
#endif
|
d58dd88dc5b016e1679c9421610fdd2cb8c271f28395c6cbdd7988c676be1f37 | C | 257 | 19 | #include "f2c.h"
#ifdef KR_headers
double floor();
double r_int(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_int(real *x)
#endif
{
return( (*x>0) ? floor(*x) : -floor(- *x) );
}
#ifdef __cplusplus
}
#endif
|
fbc8ea2f2c0ef1fb4a102989a5f50d7512ae96a0bff9213926f2a604bf0bf465 | C | 258 | 17 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
integer
#ifdef KR_headers
lbit_shift(a, b) integer a; integer b;
#else
lbit_shift(integer a, integer b)
#endif
{
return b >= 0 ? a << b : (integer)((uinteger)a >> -b);
}
#ifdef __cplusplus
}
#endif
|
036b900b7c7d2955fb37eec2454d3b45c45552dd0d3b439fd19fa3e1ac523ef3 | C | 259 | 23 | #include "f2c.h"
#undef abs
#include <math.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef REAL
#define REAL double
#endif
#ifdef KR_headers
REAL erf_(x) real *x;
#else
REAL erf_(real *x)
#endif
{
return( erf((double)*x) );
}
#ifdef __cplusplus
}
#endif
|
543778d43b580574ad7efa1d16e58bd9ad48a202c2b48d836b8155c1843ae168 | C | 260 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
integer i_sign(a,b) integer *a, *b;
#else
integer i_sign(integer *a, integer *b)
#endif
{
integer x;
x = (*a >= 0 ? *a : - *a);
return( *b >= 0 ? x : -x);
}
#ifdef __cplusplus
}
#endif
|
e7cb09edc4d8e3146c92400cdea1049450dffca9a88c39cc2c907151f6fb9b89 | C | 262 | 23 | #include "f2c.h"
#undef abs
#include <math.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef REAL
#define REAL double
#endif
#ifdef KR_headers
REAL erfc_(x) real *x;
#else
REAL erfc_(real *x)
#endif
{
return( erfc((double)*x) );
}
#ifdef __cplusplus
}
#endif
|
1da996a23668e4d5ec7f12b967415628243bb790b1ac6b1096ef8d94447e1dea | C | 266 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
double d_sign(a,b) doublereal *a, *b;
#else
double d_sign(doublereal *a, doublereal *b)
#endif
{
double x;
x = (*a >= 0 ? *a : - *a);
return( *b >= 0 ? x : -x);
}
#ifdef __cplusplus
}
#endif
|
b8698d1a7f95b88ecbc035b8dbc73a864e28a823ade0693c5161bbbe53a2c342 | C | 266 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
shortint h_sign(a,b) shortint *a, *b;
#else
shortint h_sign(shortint *a, shortint *b)
#endif
{
shortint x;
x = (*a >= 0 ? *a : - *a);
return( *b >= 0 ? x : -x);
}
#ifdef __cplusplus
}
#endif
|
6399326075f7ce044c5af5cd27d644838f92338db9d51dab26934f3cc28fe155 | C | 268 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
double f__cabs();
double z_abs(z) doublecomplex *z;
#else
double f__cabs(double, double);
double z_abs(doublecomplex *z)
#endif
{
return( f__cabs( z->r, z->i ) );
}
#ifdef __cplusplus
}
#endif
|
36ac2c0c5d20c0368d96ab28f38471dadee311f28b5262eef6e6a899b304a8bb | C | 269 | 19 | #include "f2c.h"
#ifdef KR_headers
double floor();
double d_int(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_int(doublereal *x)
#endif
{
return( (*x>0) ? floor(*x) : -floor(- *x) );
}
#ifdef __cplusplus
}
#endif
|
6ee3ff67802733603028ee2b0d5b658beac8b4431b3baa9895ee265d62cbca9f | C | 269 | 20 | #include "f2c.h"
#ifdef KR_headers
double floor();
double r_nint(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_nint(real *x)
#endif
{
return( (*x)>=0 ?
floor(*x + .5) : -floor(.5 - *x) );
}
#ifdef __cplusplus
}
#endif
|
7432325fa724df36946b4dabe3896377474e83688bfab385137136e72d185370 | C | 271 | 19 | #include "f2c.h"
#ifdef KR_headers
double atan2();
double d_atn2(x,y) doublereal *x, *y;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_atn2(doublereal *x, doublereal *y)
#endif
{
return( atan2(*x,*y) );
}
#ifdef __cplusplus
}
#endif
|
ef07bc99fd2a2e338293e5dd8441f5701d7593256e3639eb8f8fdb6013647a42 | C | 276 | 19 | #include "f2c.h"
#ifdef KR_headers
double pow();
double pow_dd(ap, bp) doublereal *ap, *bp;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double pow_dd(doublereal *ap, doublereal *bp)
#endif
{
return(pow(*ap, *bp) );
}
#ifdef __cplusplus
}
#endif
|
4d9b5f9e9d0b86dc1a90778d51de0ab0f10763c257422b69ed5284430cef58d6 | C | 278 | 19 | #include "f2c.h"
#ifdef KR_headers
double floor();
integer i_nint(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
integer i_nint(real *x)
#endif
{
return (integer)(*x >= 0 ? floor(*x + .5) : -floor(.5 - *x));
}
#ifdef __cplusplus
}
#endif
|
df8d76657c23f523641e9fe018da50f4f1839935d3104f74015aac397d3ad830 | C | 279 | 21 | #include "f2c.h"
#define log10e 0.43429448190325182765
#ifdef KR_headers
double log();
double r_lg10(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double r_lg10(real *x)
#endif
{
return( log10e * log(*x) );
}
#ifdef __cplusplus
}
#endif
|
36b4eb197ccabefad3ceb8bdc3c1815eb984bae5968a8f49a3ca532c74581c22 | C | 280 | 20 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern double f__cabs();
double c_abs(z) f2c_complex *z;
#else
extern double f__cabs(double, double);
double c_abs(f2c_complex *z)
#endif
{
return( f__cabs( z->r, z->i ) );
}
#ifdef __cplusplus
}
#endif
|
559d01b40b3b52176b78562cdeff6ec4b27f4687820435cef8642c47d9249898 | C | 281 | 20 | #include "f2c.h"
#ifdef KR_headers
double floor();
double d_nint(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_nint(doublereal *x)
#endif
{
return( (*x)>=0 ?
floor(*x + .5) : -floor(.5 - *x) );
}
#ifdef __cplusplus
}
#endif
|
aa306d8a284390979412c7df1978ea5a67027e141a3110b65560ef1a007b7497 | C | 281 | 19 | #include "f2c.h"
#ifdef KR_headers
double floor();
shortint h_nint(x) real *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
shortint h_nint(real *x)
#endif
{
return (shortint)(*x >= 0 ? floor(*x + .5) : -floor(.5 - *x));
}
#ifdef __cplusplus
}
#endif
|
0b34fee0b4148e179e211733fc39a7bfccd6e33c346ded3e72fb14a6a6dd632d | C | 291 | 19 | #include "f2c.h"
#ifdef KR_headers
double floor();
integer i_dnnt(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
integer i_dnnt(doublereal *x)
#endif
{
return (integer)(*x >= 0. ? floor(*x + .5) : -floor(.5 - *x));
}
#ifdef __cplusplus
}
#endif
|
402441db564b573cbce60b46bc2122cea1bacd5976c02101fef92351e20a274d | C | 291 | 21 | #include "f2c.h"
#define log10e 0.43429448190325182765
#ifdef KR_headers
double log();
double d_lg10(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double d_lg10(doublereal *x)
#endif
{
return( log10e * log(*x) );
}
#ifdef __cplusplus
}
#endif
|
e66b08d5f4e881fa4c7d7edccc73e8b18866d35d2814108365bf01faf3a4b55d | C | 294 | 19 | #include "f2c.h"
#ifdef KR_headers
double floor();
shortint h_dnnt(x) doublereal *x;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
shortint h_dnnt(doublereal *x)
#endif
{
return (shortint)(*x >= 0. ? floor(*x + .5) : -floor(.5 - *x));
}
#ifdef __cplusplus
}
#endif
|
f281cb244c1c925a39df123b3b4324f00fbd81bf620308ce12ca4b78e59550d1 | C | 299 | 21 | #include "f2c.h"
#include "signal1.h"
#ifdef __cplusplus
extern "C" {
#endif
ftnint
#ifdef KR_headers
signal_(sigp, proc) integer *sigp; sig_pf proc;
#else
signal_(integer *sigp, sig_pf proc)
#endif
{
int sig;
sig = (int)*sigp;
return (ftnint)signal(sig, proc);
}
#ifdef __cplusplus
}
#endif
|
e67ff17ba98b4fe9ecabc644a0b77c9f3a73fe791e5d5ebcdbda079d4425a5e7 | C | 304 | 22 | #include "stdio.h"
#include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern VOID sig_die();
int abort_()
#else
extern void sig_die(const char*,int);
int abort_(void)
#endif
{
sig_die("Fortran abort routine called", 1);
return 0; /* not reached */
}
#ifdef __cplusplus
}
#endif
|
0eb6d568c318209128829640c02542a44927532989279e4516cb3f8def76b621 | C | 330 | 24 | #include "arith.h"
#ifndef Long
#define Long long
#endif
int
#ifdef KR_headers
signbit_f2c(x) double *x;
#else
signbit_f2c(double *x)
#endif
{
#ifdef IEEE_MC68k
if (*(Long*)x & 0x80000000)
return 1;
#else
#ifdef IEEE_8087
if (((Long*)x)[1] & 0x80000000)
return 1;
#endif /*IEEE_8087*/
#endif /*IEEE_MC68k*/
ret... |
684db113cd743b4c34f27fd9320480723fb3b1f0aad03b3e191dd1cbfef958ff | C | 333 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern integer s_cmp();
logical l_lt(a,b,la,lb) char *a, *b; ftnlen la, lb;
#else
extern integer s_cmp(char *, char *, ftnlen, ftnlen);
logical l_lt(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
return(s_cmp(a,b,la,lb) < 0);
}
#ifdef __cplusp... |
f3765c756b3688a032a794335dc78c43cdab8d8125cd95356cb22b906c2a3ae8 | C | 333 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern integer s_cmp();
logical l_gt(a,b,la,lb) char *a, *b; ftnlen la, lb;
#else
extern integer s_cmp(char *, char *, ftnlen, ftnlen);
logical l_gt(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
return(s_cmp(a,b,la,lb) > 0);
}
#ifdef __cplusp... |
2828ad4f0b8d088ddca987d09b1bdf9da704b013a1890cfce7e94880515dd717 | C | 334 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern integer s_cmp();
logical l_ge(a,b,la,lb) char *a, *b; ftnlen la, lb;
#else
extern integer s_cmp(char *, char *, ftnlen, ftnlen);
logical l_ge(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
return(s_cmp(a,b,la,lb) >= 0);
}
#ifdef __cplus... |
d228b4d674dd27cd5bc85b3d4e9aca01595275c215c574a2bd7f1eeb300cc2fe | C | 334 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern integer s_cmp();
logical l_le(a,b,la,lb) char *a, *b; ftnlen la, lb;
#else
extern integer s_cmp(char *, char *, ftnlen, ftnlen);
logical l_le(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
return(s_cmp(a,b,la,lb) <= 0);
}
#ifdef __cplus... |
1141718fb1851eb47032e21489edc655c160a4a0aeef896ae3a917ec1f75b8a5 | C | 345 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern integer s_cmp();
shortlogical hl_gt(a,b,la,lb) char *a, *b; ftnlen la, lb;
#else
extern integer s_cmp(char *, char *, ftnlen, ftnlen);
shortlogical hl_gt(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
return(s_cmp(a,b,la,lb) > 0);
}
#if... |
b11d9afe4a92288e77cd1ceaef2ece8481e34657ea1ddb523c7abf33c5e161ce | C | 345 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern integer s_cmp();
shortlogical hl_lt(a,b,la,lb) char *a, *b; ftnlen la, lb;
#else
extern integer s_cmp(char *, char *, ftnlen, ftnlen);
shortlogical hl_lt(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
return(s_cmp(a,b,la,lb) < 0);
}
#if... |
46a20cd1c2f42988859446caed0754622216bbfaddeeb1ac2a8abfbdbd6db361 | C | 346 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern integer s_cmp();
shortlogical hl_ge(a,b,la,lb) char *a, *b; ftnlen la, lb;
#else
extern integer s_cmp(char *, char *, ftnlen, ftnlen);
shortlogical hl_ge(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
return(s_cmp(a,b,la,lb) >= 0);
}
#i... |
9271a98f0240a9a00dd7e33e873bdb3c3e23a145829ef122cb1098534327d014 | C | 346 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern integer s_cmp();
shortlogical hl_le(a,b,la,lb) char *a, *b; ftnlen la, lb;
#else
extern integer s_cmp(char *, char *, ftnlen, ftnlen);
shortlogical hl_le(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
return(s_cmp(a,b,la,lb) <= 0);
}
#i... |
9ec35429d709c7f1979041033a97780b5d893db2fa9122838ddf3857bf5de765 | C | 357 | 23 | #include "f2c.h"
#ifdef KR_headers
double exp(), cos(), sin();
VOID z_exp(r, z) doublecomplex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
void z_exp(doublecomplex *r, doublecomplex *z)
#endif
{
double expx, zi = z->i;
expx = exp(z->r);
r->r = expx * cos(zi);
r->i = expx * sin... |
f5827ff8c0d1609437b3aad21979a5e084f7d3710f9a9239f1ae070ada149a17 | C | 359 | 21 | #include "f2c.h"
#ifdef KR_headers
double sin(), cos(), sinh(), cosh();
VOID z_sin(r, z) doublecomplex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
void z_sin(doublecomplex *r, doublecomplex *z)
#endif
{
double zi = z->i, zr = z->r;
r->r = sin(zr) * cosh(zi);
r->i = cos(zr) * si... |
7ad17d9b7c0a1b127f8bd33bbaf6acd98e8925658694145a512795f1fd0aa8c3 | C | 361 | 25 | #include "f2c.h"
#ifdef KR_headers
extern double exp(), cos(), sin();
VOID c_exp(r, z) f2c_complex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
void c_exp(f2c_complex *r, f2c_complex *z)
#endif
{
double expx, zi = z->i;
expx = exp(z->r);
r->r = expx * cos(zi);
r->i = expx *... |
a6111689b00c4795c4323fe0de6d5f0e8ff3375d702f0b125d00d985fbaab8e3 | C | 362 | 23 | #include "f2c.h"
#ifdef KR_headers
extern double sin(), cos(), sinh(), cosh();
VOID c_sin(r, z) f2c_complex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
void c_sin(f2c_complex *r, f2c_complex *z)
#endif
{
double zi = z->i, zr = z->r;
r->r = sin(zr) * cosh(zi);
r->i = cos(zr) *... |
cfb34c3bc61cfac9f3e109cd6162e3feb75ee50eac0b4ffcd09bd6830e974ad4 | C | 363 | 21 | #include "f2c.h"
#ifdef KR_headers
double sin(), cos(), sinh(), cosh();
VOID z_cos(r, z) doublecomplex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
void z_cos(doublecomplex *r, doublecomplex *z)
#endif
{
double zi = z->i, zr = z->r;
r->r = cos(zr) * cosh(zi);
r->i = - sin(zr) ... |
06dc14cacb71562164edcbb7976a4be829f324d00d469826c485cd7a347c0ab9 | C | 366 | 23 | #include "f2c.h"
#ifdef KR_headers
extern double sin(), cos(), sinh(), cosh();
VOID c_cos(r, z) f2c_complex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
void c_cos(f2c_complex *r, f2c_complex *z)
#endif
{
double zi = z->i, zr = z->r;
r->r = cos(zr) * cosh(zi);
r->i = - sin(z... |
aba4af45ef69dad20ad1c6e77f918084342a6df8f8744ab785321bcaaa717b08 | C | 368 | 14 | /*
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Thu, 25 Jul 2013 02:37:35 +0900
*/
#include "mtsim.h"
void free_return(double *fvec, double **fjac, int n, double *p, int *indx) {
free_dmatrix(fjac,1,n,1,n);
free_dvector(fvec,1,n);
free_dvecto... |
38e5ea0eaa27fbb010f13089154c4b703b8b1f65b7b3818e5ecce0ca6fe41d79 | C | 390 | 18 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
ftnlen f__typesize[] = { 0, 0, sizeof(shortint), sizeof(integer),
sizeof(real), sizeof(doublereal),
sizeof(f2c_complex), sizeof(doublecomplex),
sizeof(logical), sizeof(char),
0, sizeof(integer1),
sizeof(logical1), sizeof(shortlogical),
#ifdef Allow... |
885bef5967479cd7fadd2855e2f76fea3f294276d8536f0aa38abe1571b43c39 | C | 391 | 25 | /* Link in this file for random number generation with rand()
and seeding from the clock */
#include <stdio.h>
#include <stdlib.h>
double
ran1()
{
int rand();
return( rand()/(RAND_MAX+1.0) );
}
void seedit( const char *flag)
{
FILE *fopen(), *pfseed;
unsigned int seed2 ;
if( flag[0] == 's' ) {
sra... |
bcdba0129991d0a68e97186258477d130943268489ee6a821917811aae5f165d | C | 396 | 23 | #include "f2c.h"
#ifdef KR_headers
extern double log(), f__cabs(), atan2();
VOID c_log(r, z) f2c_complex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
extern double f__cabs(double, double);
void c_log(f2c_complex *r, f2c_complex *z)
#endif
{
double zi, zr;
r->i = atan2(zi = z->i,... |
71138e1443e4af3fb3e34dbece5677c86d384c812a8e982754db9ef7a70b9ae7 | C | 424 | 26 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
VOID pow_ci(p, a, b) /* p = a**b */
f2c_complex *p, *a; integer *b;
#else
extern void pow_zi(doublecomplex*, doublecomplex*, integer*);
void pow_ci(f2c_complex *p, f2c_complex *a, integer *b) /* p = a**b */
#endif
{
doublecomplex p1, a1;
a... |
30c7d24f3b63135543537c6952fd12656ab7e350980f24cd592fbaf0c93af9d0 | C | 427 | 20 | /* EFL support routine to compare two character strings */
#include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern integer s_cmp();
integer ef1cmc_(a, la, b, lb) ftnint *a, *b; ftnlen *la, *lb;
#else
extern integer s_cmp(char*,char*,ftnlen,ftnlen);
integer ef1cmc_(ftnint *a, ftnlen *la, ftnin... |
0bfced1e5558a96cfca247cb14124ffde47db2234e466f48939a0eedd26d1d75 | C | 430 | 32 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
integer i_indx(a, b, la, lb) char *a, *b; ftnlen la, lb;
#else
integer i_indx(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
ftnlen i, n;
char *s, *t, *bend;
n = la - lb + 1;
bend = b + lb;
for(i = 0 ; i < n ; ++i)
{
s = a + i;
t = b;
wh... |
730cdf6c58a217ed5ac8ec8bbfbb72c738447c2ce795f6132a0974f1df2bab4b | C | 436 | 41 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
double pow_ri(ap, bp) real *ap; integer *bp;
#else
double pow_ri(real *ap, integer *bp)
#endif
{
double pow, x;
integer n;
unsigned long u;
pow = 1;
x = *ap;
n = *bp;
if(n != 0)
{
if(n < 0)
{
n = -n;
x = 1/x;
}
for(u = n; ; )
{
... |
d1ca547bd7a3c57d9ee55024328c44dfef60d23b42bf14d7af044e0147c89c8e | C | 442 | 32 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
shortint h_indx(a, b, la, lb) char *a, *b; ftnlen la, lb;
#else
shortint h_indx(char *a, char *b, ftnlen la, ftnlen lb)
#endif
{
ftnlen i, n;
char *s, *t, *bend;
n = la - lb + 1;
bend = b + lb;
for(i = 0 ; i < n ; ++i)
{
s = a + i;
t = b;
... |
841aeee8ce38b0aeced5a1e8f0f3509d973a67dd1cef9b37cb97227c68591f8d | C | 448 | 41 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
double pow_di(ap, bp) doublereal *ap; integer *bp;
#else
double pow_di(doublereal *ap, integer *bp)
#endif
{
double pow, x;
integer n;
unsigned long u;
pow = 1;
x = *ap;
n = *bp;
if(n != 0)
{
if(n < 0)
{
n = -n;
x = 1/x;
}
for(u = n... |
9dd18ffe017d1d51a29075b2a093302c85afde8d899ea28d58a53c62fb741847 | C | 471 | 26 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
extern int (*f__lioproc)();
integer do_lio(type,number,ptr,len) ftnint *number,*type; char *ptr; ftnlen len;
#else
extern int (*f__lioproc)(ftnint*, char*, ftnlen, ftnint);
integer do_lio(ftnint *type, ft... |
3d3a51f9e9d50d0ad13bf67752a2ce7c7672cff6b99d2667cb04768dd6a067e4 | C | 475 | 30 | #include "f2c.h"
#include "fio.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
integer f_rew(a) alist *a;
#else
integer f_rew(alist *a)
#endif
{
unit *b;
if(a->aunit>=MXUNIT || a->aunit<0)
err(a->aerr,101,"rewind");
b = &f__units[a->aunit];
if(b->ufd == NULL || b->uwrt == 3)
return(0);
if(!b->useek... |
51fb6b43031fa4d0d2e3125d944d7d7f7bb26e1231948d0908fdbefb08b3d5fb | C | 479 | 32 | #include "f2c.h"
#include "fio.h"
#include "lio.h"
#ifdef __cplusplus
extern "C" {
#endif
integer
#ifdef KR_headers
s_wsne(a) cilist *a;
#else
s_wsne(cilist *a)
#endif
{
int n;
if(n=c_le(a))
return(n);
f__reading=0;
f__external=1;
f__formatted=1;
f__putn = x_putc;
L_len = LINE;
f__donewrec = x_wSL;
if(f__... |
375549d7a0c82a53b5131fe64568f8bb881fdd9c3be796b75b7841d15c74580b | C | 481 | 14 | /*
* filename: fv_solution.c
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Thu, 25 Jul 2013 02:59:10 +0900
*/
#include "mtsim.h"
void FV_solution(double xx, double *f_v, double *fp_v, mtGlobal* g) {
*f_v = (g->k_on*(exp(-1*g->F_dependency*xx)-1)... |
a431b489ad019c76193ab000deed6cd805433f73883473cbedb19bf2c2c9b914 | C | 485 | 20 | /* rmfgen.c */
#include "env.h"
#include "glpk.h"
int glp_rmfgen(glp_graph *G_, int *s_, int *t_, int a_cap_,
const int parm[1+5])
{ static const char func[] = "glp_rmfgen";
xassert(G_ == G_);
xassert(s_ == s_);
xassert(t_ == t_);
xassert(a_cap_ == a_cap_);
xassert(parm == parm... |
7040c06e96b5064fb600a155c3626d821cfa3da7a5531cc6861ff4f454a9e237 | C | 488 | 39 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
integer pow_ii(ap, bp) integer *ap, *bp;
#else
integer pow_ii(integer *ap, integer *bp)
#endif
{
integer pow, x, n;
unsigned long u;
x = *ap;
n = *bp;
if (n <= 0) {
if (n == 0 || x == 1)
return 1;
if (x != -1)
return x == 0 ? 1/... |
6b845c2e75363e98f6e875664e442a7db45f15ee70a190e3eed913fe13e5526d | C | 489 | 39 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
shortint pow_hh(ap, bp) shortint *ap, *bp;
#else
shortint pow_hh(shortint *ap, shortint *bp)
#endif
{
shortint pow, x, n;
unsigned u;
x = *ap;
n = *bp;
if (n <= 0) {
if (n == 0 || x == 1)
return 1;
if (x != -1)
return x == 0 ? 1... |
e3ef3ad01278752ccf7c29f34f29d3def2ecff743cc819fa4bcd642f9f3317f2 | C | 494 | 33 | #ifdef KR_headers
extern double sqrt();
double f__cabs(real, imag) double real, imag;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
double f__cabs(double real, double imag)
#endif
{
double temp;
if(real < 0)
real = -real;
if(imag < 0)
imag = -imag;
if(imag > real){
temp = real;
real = i... |
271b23cfb51ebf02c9c1fe2dffde7871daafe11dbe2260aa49410dc1dd30e19e | C | 497 | 16 | /*
* filename: usage.c
* Author: Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Thu, 25 Jul 2013 02:58:12 +0900
*/
#include "mtsim.h"
void usage(char* myname) {
printf("Usage : %s [option]\n", myname);
printf(" -h : Show this message\n");
printf(" -c : Check output with fixed random seed (0.0)\n"... |
0140be8a18bb4392ec1b5839bdcd56e34108f4963eec18ea67d058d66967ecc9 | C | 511 | 20 | /* netgen.c */
#include "env.h"
#include "glpk.h"
int glp_netgen(glp_graph *G_, int v_rhs_, int a_cap_, int a_cost_,
const int parm[1+15])
{ static const char func[] = "glp_netgen";
xassert(G_ == G_);
xassert(v_rhs_ == v_rhs_);
xassert(a_cap_ == a_cap_);
xassert(a_cost_ == a_cost_);
... |
2ad7038d9d16adc38b024b99e92793582ae77be58f32045e4047d08b88b6df32 | C | 514 | 20 | /* gridgen.c */
#include "env.h"
#include "glpk.h"
int glp_gridgen(glp_graph *G_, int v_rhs_, int a_cap_, int a_cost_,
const int parm[1+14])
{ static const char func[] = "glp_gridgen";
xassert(G_ == G_);
xassert(v_rhs_ == v_rhs_);
xassert(a_cap_ == a_cap_);
xassert(a_cost_ == a_cost_... |
38d373b288655dea2d85b9911d8348e0c69c52645562b8ed1bf590033ba4a2f5 | C | 521 | 25 | /* EFL support routine to copy string b to string a */
#include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#define M ( (long) (sizeof(long) - 1) )
#define EVEN(x) ( ( (x)+ M) & (~M) )
#ifdef KR_headers
extern VOID s_copy();
ef1asc_(a, la, b, lb) ftnint *a, *b; ftnlen *la, *lb;
#else
extern void s_copy(char*,cha... |
b32667e7ae87b64fc56c1a591cd44ff8b6167d512821dff2621529dd908c60c6 | C | 549 | 29 | #include "f2c.h"
#ifdef KR_headers
double log(), exp(), cos(), sin(), atan2(), f__cabs();
VOID pow_zz(r,a,b) doublecomplex *r, *a, *b;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
extern double f__cabs(double,double);
void pow_zz(doublecomplex *r, doublecomplex *a, doublecomplex *b)
#endif... |
29f430d8bcda6c87880fd8126051266c9b499242a43bada97fbd41270c643e59 | C | 552 | 28 | /* Link in this file for random number generation using drand48() */
#include <stdio.h>
#include <stdlib.h>
double
ran1()
{
double drand48();
return( drand48() );
}
void seedit( char *flag )
{
FILE *fopen(), *pfseed;
unsigned short seedv[3], seedv2[3], *seed48(), *pseed ... |
4807c993c77fff5f8f1fbd3906ba04281e3f2b86ff929ef2c2106a181d482531 | C | 576 | 23 | /* relax4.c */
#include "env.h"
#include "relax4.h"
int relax4(struct relax4_csa *csa)
{ static const char func[] = "relax4";
xassert(csa == csa);
xerror("%s: sorry, this routine is temporarily disabled due to li"
"censing problems\n", func);
/* abort(); */
return -1;
}
void rela... |
1a32947676070af09bf765037b9c6087481d69a5c4425160f00cc690b86bac24 | C | 581 | 35 | #include "f2c.h"
#ifdef KR_headers
double sqrt(), f__cabs();
VOID z_sqrt(r, z) doublecomplex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
extern double f__cabs(double, double);
void z_sqrt(doublecomplex *r, doublecomplex *z)
#endif
{
double mag, zi = z->i, zr = z->r;
if( (mag = ... |
781fa840c28699cc0a9f2b5b433a2ca355c6c0a9df3345b37a0ab01843e4ebc2 | C | 592 | 36 | #include "f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* subroutine getarg(k, c)
* returns the kth unix command argument in fortran character
* variable argument c
*/
#ifdef KR_headers
VOID getarg_(n, s, ls) ftnint *n; char *s; ftnlen ls;
#define Const /*nothing*/
#else
#define Const const
void getarg_(ftnint ... |
238405707be6c5f52608875814666b20b92e30c4d1131b1e8e4c4cc29c6a1087 | C | 604 | 44 | /* This gives the effect of
subroutine exit(rc)
integer*4 rc
stop
end
* with the added side effect of supplying rc as the program's exit code.
*/
#include "f2c.h"
#include "igraph_error.h"
#undef abs
#undef min
#undef max
#ifndef KR_headers
#include "stdlib.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cp... |
d2f26de0fc96d45ee1ef9bafea02b682c9963d4a6a076fc0c6fa0fdd949cfe3a | C | 612 | 28 | /*
* LU decomposition (ref) Press et al., "Numerical Recipes in C"
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Thu, 25 Jul 2013 02:39:29 +0900
*/
#include "mtsim.h"
void lubksb(double **a, int n, int *indx, double b[])
{
int i,ii=0,ip,j;
doub... |
c647369f635234fb834e525226ac42107e89834ae137c701cb484bec0f68e943 | C | 617 | 41 | #include "f2c.h"
#ifdef KR_headers
extern double sqrt(), f__cabs();
VOID c_sqrt(r, z) f2c_complex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
extern double f__cabs(double, double);
void c_sqrt(f2c_complex *r, f2c_complex *z)
#endif
{
double mag, t;
double zi = z->i, zr = z->r;... |
f79f28f767cd2866cb4bf6aad4e1e033dbb94b804be555c52a272afb5d704bc1 | C | 623 | 30 | #include <igraph.h>
int main(void) {
igraph_matrix_t a, b, c;
/* Initialize the library. */
igraph_setup();
igraph_matrix_init(&a, 2, 2);
MATRIX(a, 0, 0) = 1;
MATRIX(a, 0, 1) = 2;
MATRIX(a, 1, 0) = 3;
MATRIX(a, 1, 1) = 4;
igraph_matrix_init(&b, 2, 2);
MATRIX(b, 0, 0) = 5;
... |
99a36d75bdc1cb137c848562c6d12d43e5541d89937d5c584082786d35c92da9 | C | 626 | 36 | /* Link in this file for random number generation with rand() */
#include <stdio.h>
#include <stdlib.h>
double
ran1()
{
int rand();
return( rand()/(RAND_MAX+1.0) );
}
void seedit( const char *flag)
{
FILE *fopen(), *pfseed;
unsigned int seed2 ;
if( flag[0] == 's' ) {
pfseed = fopen("seedms","r");
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.