text
string
meta
dict
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <gsl/gsl_sf_legendre.h> #include <gsl/gsl_sf_bessel.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_interp.h> #include <gsl/gsl_spline.h> /**********************************************************************************...
{ "alphanum_fraction": 0.524865987, "avg_line_length": 37.180875576, "ext": "c", "hexsha": "b1378da78315290cc1aa23d2b77ca0698c3fbb52", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "...
/* * parameters.h * Spike * * Created by Ben Evans on 18/08/2008. * Copyright 2008 University of Oxford. All rights reserved. * */ #ifndef _PARAMETERS_H #define _PARAMETERS_H #include <stdbool.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_version.h> typedef int tstep; // Signe...
{ "alphanum_fraction": 0.6884332516, "avg_line_length": 18.0200803213, "ext": "h", "hexsha": "0e55ed07cead0141abf816bf42b6f5527a2ce5ba", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#pragma once #ifndef _NOGSL #include <gsl/gsl_vector.h> #include <gsl/gsl_blas.h> #else #include "FakeGSL.h" #endif #include <limits> #include <math.h> #include <vector> #include "BasicError.h" using namespace std; class GradUtil { public: static int counter; static constexpr double MAXVAL = 1e30; static const...
{ "alphanum_fraction": 0.7345491388, "avg_line_length": 31.8387096774, "ext": "h", "hexsha": "ab4f2f6e7fad02e8f607b9a3b151f669cf292182", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-12-06T01:45:04.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-04T20:47:...
/* Copyright (c) 2015, Patrick Weltevrede All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
{ "alphanum_fraction": 0.6692399423, "avg_line_length": 41.3844155844, "ext": "c", "hexsha": "29647052f566fb812a8a3ebaceb1f43850d33aa8", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2020-06-16T15:24:07.000Z", "max_forks_repo_forks_event_min_datetime": "2018-04-09T09:04:...
/*! \file deleter.h \brief gsl_interp_accelとgsl_splineのデリータを宣言・定義したヘッダファイル Copyright © 2015 @dc1394 All Rights Reserved. This software is released under the BSD 2-Clause License. */ #ifndef _DELETER_H_ #define _DELETER_H_ #pragma once #include <gsl/gsl_spline.h> // for gsl_interp_accel, gsl_interp_...
{ "alphanum_fraction": 0.6889400922, "avg_line_length": 24.1111111111, "ext": "h", "hexsha": "d399c0127c4710f9e669438748a12fc35f01fa51", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* * BSD 3-Clause License * * Copyright (c) 2018, mtezych * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * ...
{ "alphanum_fraction": 0.7095577746, "avg_line_length": 24.3402777778, "ext": "h", "hexsha": "bffb961727691ab5dcf4beadb54ac7303bb28613", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-07-14T23:16:23.000Z", "max_forks_repo_forks_event_min_datetime": "2019-12-21T00:31:...
/* min/bracketing.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Fabrice Rossi * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option)...
{ "alphanum_fraction": 0.6436441817, "avg_line_length": 29.5317460317, "ext": "c", "hexsha": "de869d4b94d3a159f2818f2d03fc7d8d474852cc", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:...
/* * C version of Diffusive Nested Sampling (DNest4) by Brendon J. Brewer * * Yan-Rong Li, liyanrong@mail.ihep.ac.cn * Jun 30, 2016 * */ #ifndef _MODEL1_H #define _MODEL1_H #include <stdbool.h> #include <gsl/gsl_rng.h> /* number of model parameters */ extern int num_params; extern int which_level_update; ext...
{ "alphanum_fraction": 0.7589670014, "avg_line_length": 21.78125, "ext": "h", "hexsha": "f8f7ddbb75b44112288b74b27b882b4b0c902ee2", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "afb...
/** * * @file testing_ssygst.c * * PLASMA testing routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Hatem Ltaief * @date 2010-11-15 * @generated s Tue Jan 7 11:45:18 2014 * **/ #include <stdli...
{ "alphanum_fraction": 0.5336271115, "avg_line_length": 36.5172413793, "ext": "c", "hexsha": "a0528339ced2c9280fe32417433b00c25b3c4902", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* cp ../../../../native_ref/<target binary> libnetlib.so gcc-mp-4.8 -O3 ddottest.c common.c -o ddottest -L. -lnetlib -I../../../../netlib/CBLAS ./ddottest > ../../../results/mac_os_x-x86_64-ddot-CBLAS.csv gcc-mp-4.8 -O3 ddottest.c common.c -o ddottest -I/System/Library/Frameworks/vecLib.framework/Headers -framewor...
{ "alphanum_fraction": 0.6362212944, "avg_line_length": 29.9375, "ext": "c", "hexsha": "b30efc3901a29d1754894d8ceb6c76f3ae47e45c", "lang": "C", "max_forks_count": 154, "max_forks_repo_forks_event_max_datetime": "2021-09-07T04:58:57.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T22:48:26.0...
#include <stdio.h> #include <gsl/gsl_sf_bessel.h> int main (void) { double x = 5.0; double y = gsl_sf_bessel_J0 (x); printf ("J0(%g) = %.18e\n", x, y); return 0; }
{ "alphanum_fraction": 0.5953757225, "avg_line_length": 14.4166666667, "ext": "c", "hexsha": "bd2848271477d2a12511abc2bebaa3897438b51e", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
/*! \file allvars.h * \brief declares global variables. * * This file declares all global variables. Further variables should be added here, and declared as * 'extern'. The actual existence of these variables is provided by the file 'allvars.c'. To produce * 'allvars.c' from 'allvars.h', do the following: * ...
{ "alphanum_fraction": 0.664437178, "avg_line_length": 49.7142857143, "ext": "h", "hexsha": "c26f5a68f721c3c8af331ea5504c85837e372bb8", "lang": "C", "max_forks_count": 102, "max_forks_repo_forks_event_max_datetime": "2022-02-09T13:29:43.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-22T10:00...
/* * Copyright (c) 2016 Kengo Tateishi (@tkengo) * Licensed under MIT license. * http://www.opensource.org/licenses/mit-license.php * * MxRuby is really inspired by numpy. * * This file is implementation of extended array functions for ruby. The MX class is defined on ruby * interpreter by compiling it. */ #...
{ "alphanum_fraction": 0.5708471265, "avg_line_length": 28.9732704403, "ext": "c", "hexsha": "ffc988be040af9ed7884c299ab6e731a1091ab26", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef __GSL_SORT_VECTOR_H__ #define __GSL_SORT_VECTOR_H__ #if !defined( GSL_FUN ) # if !defined( GSL_DLL ) # define GSL_FUN extern # elif defined( BUILD_GSL_DLL ) # define GSL_FUN extern __declspec(dllexport) # else # define GSL_FUN extern __declspec(dllimport) # endif #endif #include <gsl...
{ "alphanum_fraction": 0.7537688442, "avg_line_length": 25.6774193548, "ext": "h", "hexsha": "47bae77e16fe32b5516624f35bcd2ec8f9ee5984", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
#include <sstream> #include <iostream> #include <string> #include <gsl/gsl_math.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_rng.h> #include <iomanip> #include <complex> #include <cmath> #include <random> using namespace std::complex_literals; // pretty print a gsl vector. std::strin...
{ "alphanum_fraction": 0.6052328262, "avg_line_length": 38.56, "ext": "c", "hexsha": "d15837754c0a757c0fd2aec07ebc90a217b1980b", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "eb61e9...
/* / / adkGSL.h / / homebrewed addons to gsl */ #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_sort.h> #include <gsl/gsl_sort_vector.h> #include <math.h> #include <assert.h> int gsl_vector_includes(gsl_vector *aVec, double aValue); double gsl_vector_sum(gsl_vector *aVec, int aVecSize); doub...
{ "alphanum_fraction": 0.7755568247, "avg_line_length": 40.7209302326, "ext": "h", "hexsha": "f2b929888a71fd69e7740f40b7f50fa9285eac9c", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
// Copyright 2021 atframework // Created by owent on #pragma once #include <stdint.h> #include <cstddef> #include <cstring> #include <memory> #include <string> #include <type_traits> #include <config/compiler/protobuf_prefix.h> #include <rapidjson/document.h> #include <config/compiler/protobuf_suffix.h> #include ...
{ "alphanum_fraction": 0.6999589547, "avg_line_length": 42.4941860465, "ext": "h", "hexsha": "6383981df07f33f8495d8dfae601f99539d89522", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2020-04-19T10:06:06.000Z", "max_forks_repo_forks_event_min_datetime": "2017-08-04T06:14:...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_errno.h> #include "ccl.h" #include "ccl_params.h" #include "ccl_redshifts.h" // ---- LSST redshift distributions & current specs ----- // ---- Consider spline for input dN/dz - pend...
{ "alphanum_fraction": 0.7208229541, "avg_line_length": 38.0315789474, "ext": "c", "hexsha": "e606751253fa10ded06683c9487fd3846209cf69", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
// NIT_inspiral - code to rapidly compute extreme mass-ratio inspirals using self-force results // Copyright (C) 2017 Niels Warburton // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, eithe...
{ "alphanum_fraction": 0.7457511897, "avg_line_length": 28.2884615385, "ext": "h", "hexsha": "c0e2aa92ad897312e17e8b0432b1274966cd563c", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* * Copyright (c) 1997-1999 Massachusetts Institute of Technology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later versio...
{ "alphanum_fraction": 0.6472428627, "avg_line_length": 29.3908045977, "ext": "c", "hexsha": "e25d8c818695491dceb58d704a6408f523d1bfac", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2022-03-29T02:59:10.000Z", "max_forks_repo_forks_event_min_datetime": "2017-11-20T07:52:...
/* linalg/gsl_linalg.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2006, 2007 Gerard Jungman, Brian Gough, Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either vers...
{ "alphanum_fraction": 0.5412155745, "avg_line_length": 35.3949579832, "ext": "h", "hexsha": "9e2710d7658a75d2ff07f9c7b4efc493fb99c7c7", "lang": "C", "max_forks_count": 173, "max_forks_repo_forks_event_max_datetime": "2022-03-27T07:27:04.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-08T18:0...
/** * Interface to flatfielding */ #ifndef _SPC_FLATFIELD_H #define _SPC_FLATFIELD_H 1 #include <stdlib.h> #include <stdarg.h> #include <math.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include "aXe_grism.h" #include "aXe_utils.h" typedef struct { int poly_order; ...
{ "alphanum_fraction": 0.7042204395, "avg_line_length": 28.3861386139, "ext": "h", "hexsha": "93dea00d890ea96d85f757be1b7d2fd569db223a", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #define _USE_MATH_DEFINES #include <math.h> #include <gsl/gsl_sf.h> #define HBARC 197.3269804 // MeV•fm #define MASS_TRITON 2808.92113298 // MeV #define MASS_DEUTERON 1875.61294257 // MeV #define MASS_NEUTRON 939.565420 // MeV #define MASS_ALPHA 3727.37940 // MeV const double MU_D = MASS_TRITON*MASS...
{ "alphanum_fraction": 0.652173913, "avg_line_length": 35.5320512821, "ext": "c", "hexsha": "c0bde800afc1ca1942108e0e50ab0d445a87ad85", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
/* integration/cquad.c * * Copyright (C) 2010 Pedro Gonnet * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. *...
{ "alphanum_fraction": 0.4995414246, "avg_line_length": 23.9108187135, "ext": "c", "hexsha": "da96b93879b42eb655f67520d93d89e1639d0bb1", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-08-30T20:40:25.000Z", "max_forks_repo_forks_event_min_datetime": "2020-08-30T20:40:...
#ifndef MATMUL_CMAT_MUL_H #define MATMUL_CMAT_MUL_H #include <cblas.h> #include <pthread.h> #include "cmatrix.h" #define _AVX512 //#define _AVX2 //#define _NEON #if defined(_NEON) #include "arm_neon.h" #elif defined(_AVX512) || defined(_AVX2) #include <immintrin.h> #endif #define BLOCKSIZE 1 #define UNROLL 4 ty...
{ "alphanum_fraction": 0.7550040032, "avg_line_length": 20.1451612903, "ext": "h", "hexsha": "006dc452a0544b7ee078fab0c52839886ffc0ea3", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-01-03T07:49:07.000Z", "max_forks_repo_forks_event_min_datetime": "2022-01-03T07:49:...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <getopt.h> #include <iniparser.h> #include "parmt_utils.h" #include "iscl/array/array.h" #include "iscl/memory/memory.h" #include "iscl/os/os.h" #ifdef PARMT_USE_INTEL #include <mkl_cblas.h> #else #include <cblas.h> #endif #define ...
{ "alphanum_fraction": 0.4529624604, "avg_line_length": 33.2481203008, "ext": "c", "hexsha": "dcd0433e3bf00446afd55ae7c832020a648f8d52", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <math.h> #include <stdio.h> #include <stdarg.h> #include <gsl/gsl_cdf.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_statistics_double.h> #include "../include/type.h" #include "../include/util.h" #include "../include/myfunc.h" #include "../include/global...
{ "alphanum_fraction": 0.5503595206, "avg_line_length": 36.0364683301, "ext": "c", "hexsha": "fd648a6bf8316b5f24008e19cc5a4fb3caf9f819", "lang": "C", "max_forks_count": 39, "max_forks_repo_forks_event_max_datetime": "2022-03-19T09:14:46.000Z", "max_forks_repo_forks_event_min_datetime": "2020-06-01T20:25...
/* altProbes.c - Match probes to splicing events and do anaylysis. This program origianlly was written to calculate which probe sets were being expressed and matching up the probe sets with the correct splice junctions. Since then it has expanded to fill a number of roles as it is one of the few times wher...
{ "alphanum_fraction": 0.670377991, "avg_line_length": 32.3334715026, "ext": "c", "hexsha": "a29928fbae7a53cc656fa14e8b1b903b9de53f7a", "lang": "C", "max_forks_count": 80, "max_forks_repo_forks_event_max_datetime": "2022-03-29T16:36:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-16T10:39:...
#include <stdio.h> #include <math.h> #include <gsl/gsl_sf_bessel.h> #include "utility.h" #include "constants.h" #include <gsl/gsl_cblas.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <omp.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_sf_pow_in...
{ "alphanum_fraction": 0.7518334985, "avg_line_length": 44.6460176991, "ext": "h", "hexsha": "11f51cd1a76082ccbd1c468785dde741ebdb6891", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef UTILITIES_H #define UTILITIES_H #include <gsl/gsl_rng.h> #include <gsl/gsl_histogram.h> #include <fftw3.h> gsl_rng * init_rng(void); void allocate_arrays(double ** signal, double ** spectrum, const size_t length); gsl_histogram * init_histogram(const double r_min, const double r_max, const size_t bi...
{ "alphanum_fraction": 0.7657828283, "avg_line_length": 30.4615384615, "ext": "h", "hexsha": "b7d82778d9409d5db306bff1bbfc8f3adf526d96", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef _CHAIN_H_ #define _CHAIN_H_ /* --------------------------------------------------------- headers --------------------------------------------------------- */ #include <stdio.h> #include <string> #include <stdlib.h> #include <iostream> #include <vector> // my headers #include <md.h> #include <debug.h> ...
{ "alphanum_fraction": 0.5216160913, "avg_line_length": 29.3346104725, "ext": "h", "hexsha": "f3fbf603c60069b67c0967058a6ebdc233c85063", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <assert.h> #include <gsl/gsl_math.h> #include <gsl/gsl_sf_gamma.h> #include <gsl/gsl_sf_result.h> #include <fftw3.h> #include "cosmocalc.h" double get_k0_fftlog(int N, double mu, double q, double r0, double L, double k0guess); void um_fftlog(int m, dou...
{ "alphanum_fraction": 0.5962980319, "avg_line_length": 26.0243902439, "ext": "c", "hexsha": "4c4efde26555807cd0b40d0cef168c0d01a3e6d2", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2017-08-11T17:31:51.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-14T12:17:...
#ifndef KGS_NULLSPACESVD_H #define KGS_NULLSPACESVD_H #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <string> #include "math/SVD.h" #include "math/Nullspace.h" /** * An implementation of Nullspace backed by SVD */ class NullspaceSVD: public Nullspace { public: /** Will construct a nullspace o...
{ "alphanum_fraction": 0.7201565558, "avg_line_length": 25.55, "ext": "h", "hexsha": "68c25a710518afde6e20461c1ecdb1a2ae6461ff", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "117c4a...
#include <math.h> #include <stdlib.h> #include <assert.h> #include <cconfigspace.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_cdf.h> #define NUM_AREAS 4 #define NUM_SAMPLES 10000 void test_create_roulette_distribution() { ccs_distribution_t distrib = NULL; ccs_result_t ...
{ "alphanum_fraction": 0.6532918611, "avg_line_length": 27.2457627119, "ext": "c", "hexsha": "1c65038ee6dee358fec6579035394839f1933ccf", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-07T17:54:11.000Z", "max_forks_repo_forks_event_min_datetime": "2021-09-16T18:20:...
/* * ----------------------------------------------------------------- * Thermochemistry Library --- thrm_lib.c * Version: 1.6180 * Date: Mar 15, 2010 * ----------------------------------------------------------------- * Programmer: Americo Barbosa da Cunha Junior * americo.cunhajr@gmail.com * ------...
{ "alphanum_fraction": 0.469866435, "avg_line_length": 23.6128205128, "ext": "c", "hexsha": "44e73a1b02c37b40385c7dd06cef3919d7774346", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-30T01:44:13.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-15T03:57:4...
// randomizer.h // (C) 2013-2020 Nicholas G Davies #ifndef RANDOMIZER_H #define RANDOMIZER_H #include <vector> #include <limits> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <cmath> #include <stdexcept> #include <string> class Randomizer { public: Randomizer(unsigned long int seed = 0); Ran...
{ "alphanum_fraction": 0.6763831053, "avg_line_length": 27.5573770492, "ext": "h", "hexsha": "77c74d388dc8f21ff46c1515fcb83e5b3fe5c72d", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-07-15T00:11:25.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-15T00:11:...
// Copyright (c) 2005 - 2010 Marc de Kamps // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, this list of condition...
{ "alphanum_fraction": 0.7511785202, "avg_line_length": 42.798245614, "ext": "h", "hexsha": "3e59e2a1227718255cc55e08b8ac7417542bf84f", "lang": "C", "max_forks_count": 9, "max_forks_repo_forks_event_max_datetime": "2022-03-08T12:18:18.000Z", "max_forks_repo_forks_event_min_datetime": "2015-09-14T20:52:0...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
{ "alphanum_fraction": 0.6548259778, "avg_line_length": 31.8514285714, "ext": "h", "hexsha": "586f7868706a92d4fb06b7ca76706b8453b6bca7", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* ** Implementation of LISA algorithm ** for statistical inference of fMRI images ** ** generic plug-in. ** A file containing a list of all 3D permutation images must be supplied. ** ** G.Lohmann, April 2017 */ #include <viaio/Vlib.h> #include <viaio/file.h> #include <viaio/mu.h> #include <viaio/option.h> #include <v...
{ "alphanum_fraction": 0.7032118592, "avg_line_length": 32.5427135678, "ext": "c", "hexsha": "fbd22e3c8cdd006d52daa5987a7ada1c2434c3ba", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2022-03-22T08:05:46.000Z", "max_forks_repo_forks_event_min_datetime": "2017-09-29T10:33:...
#include <stdio.h> #include <cblas.h> int main () { int i; double x[] = { 1, 1, 1 }; cblas_dscal(3, 4.323, x, 1); for (i = 0; i < 3; ++i) printf ("%f\n", x[i]); return 0; }
{ "alphanum_fraction": 0.4591836735, "avg_line_length": 11.5294117647, "ext": "c", "hexsha": "9fd3aae05a5aaeb3a9419b3d548265371932975f", "lang": "C", "max_forks_count": 11, "max_forks_repo_forks_event_max_datetime": "2020-07-29T15:37:39.000Z", "max_forks_repo_forks_event_min_datetime": "2019-11-19T14:22...
#ifndef _RNG_INTERNAL_H #define _RNG_INTERNAL_H #include <gsl/gsl_rng.h> struct _ccs_rng_data_s { const gsl_rng_type *rng_type; gsl_rng *rng; }; typedef struct _ccs_rng_data_s _ccs_rng_data_t; struct _ccs_rng_ops_s { _ccs_object_ops_t obj_ops; }; typedef struct _ccs_rng_ops_s _ccs_rng_ops_t; struct _...
{ "alphanum_fraction": 0.7826086957, "avg_line_length": 17.25, "ext": "h", "hexsha": "c847e62cb17a5cf5c471b4fd4635e5579d55d49b", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-07T17:54:11.000Z", "max_forks_repo_forks_event_min_datetime": "2021-09-16T18:20:47.000Z"...
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights // reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for effic...
{ "alphanum_fraction": 0.6447302226, "avg_line_length": 36.1820250284, "ext": "h", "hexsha": "36127a97868112b55da2ffa56101bf10a930253e", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#pragma once #include <nextalign/nextalign.h> #include <gsl/string_span> template<typename Letter> using SequenceSpan = gsl::basic_string_span<Letter, gsl::dynamic_extent>; template<typename Letter> struct InsertionInternal { int begin; int end; Sequence<Letter> seq; }; struct PeptideInternal { std::strin...
{ "alphanum_fraction": 0.7621359223, "avg_line_length": 17.9130434783, "ext": "h", "hexsha": "73d6a177de6e530315d37ee5527e6c48cbb082d2", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef IMAT_MATRIX_H #define IMAT_MATRIX_H #include <cstdarg> #include <cstdlib> #include <fstream> #include <sstream> #ifdef GSL #include <gsl/gsl_eigen.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_sort_double.h> #endif // GSL //#include "split_str.h" #include "vector.h" #include "base.h" namespace imat ...
{ "alphanum_fraction": 0.6249010293, "avg_line_length": 34.8413793103, "ext": "h", "hexsha": "4f23ad409e837be9e9705f2f1742abc8db645505", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_integration.h> #include "ccl.h" ccl_cl_tracer_collection_t *ccl_cl_tracer_collection_t_new(int *status) { ccl_cl_tracer_collection_t *trc = NULL; trc = malloc(sizeof(ccl_cl_tracer_collection_t)); if (trc == NU...
{ "alphanum_fraction": 0.5942037754, "avg_line_length": 29.304964539, "ext": "c", "hexsha": "d234499f6102a8398a4b2c53ba6891599ce67cdf", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-02-10T07:35:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-02-10T07:35:0...
/* ode-initval2/msbdf.c * * Copyright (C) 2009, 2010 Tuomo Keskitalo * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later v...
{ "alphanum_fraction": 0.5369183366, "avg_line_length": 25.0495774648, "ext": "c", "hexsha": "d6f28737d5425cb725d95ccd8112884aabd33f57", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* stable/stable_dist.c * * Main Libstable source file. Definition of the StableDist structures * and auxiliary functions to manage alpha-stable distributions. * * Copyright (C) 2013. Javier Royuela del Val * Federico Simmross Wattenberg * * This program is free software; you can redistrib...
{ "alphanum_fraction": 0.5906134646, "avg_line_length": 29.4766839378, "ext": "c", "hexsha": "730aaf6848cf4c8cba7e6779c9fa62f7d8478e94", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#pragma once #include "Rendering/Utility/peBxDF.h" #include "Type/peColor.h" #include <gsl.h> namespace pe { enum class ToneMapping { Saturate, Linear, Log }; //! \brief Performs tone mapping from the given input image to a displayable //! 8-bit RGBA output image \param result Result image \param input Input image ...
{ "alphanum_fraction": 0.7285067873, "avg_line_length": 31.5714285714, "ext": "h", "hexsha": "4e9a0ccfa290ceac83622d5da25d6a6b74efa9a7", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* integration/qng.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) ...
{ "alphanum_fraction": 0.5853704049, "avg_line_length": 28.057591623, "ext": "c", "hexsha": "ecf8e624b6aa8d38538a9c89fafb3e0950af8d67", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31:...
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights // reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for effic...
{ "alphanum_fraction": 0.6367249603, "avg_line_length": 39.7907542579, "ext": "c", "hexsha": "60e49520c16ec51ed199fac99726c9b1256d76e1", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* * ----------------------------------------------------------------- * bst_lib.h * Binary Search Tree Library * Version: 2.0 * Last Update: Oct 9, 2019 * * Programmer: Americo Barbosa da Cunha Junior * americo.cunhajr@gmail.com * ----------------------------------------------------------------- ...
{ "alphanum_fraction": 0.4475930352, "avg_line_length": 23.6209677419, "ext": "h", "hexsha": "c63d46c2ce32fbfc62499a7387d61315ad2ba289", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-30T01:44:13.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-15T03:57:...
// xi2bandpow.c // 31.08.2018 // converts xi_+/-, xi_g+/x, and xi_gg to bandpowers #include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_sf_bessel.h> #include "bjutils.h" #define xi_pm_balance 0.5 // default weigh...
{ "alphanum_fraction": 0.6473245658, "avg_line_length": 30.2765957447, "ext": "c", "hexsha": "fdd7013e5fb7e7d599d273aebbaa04a438c02344", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-02T01:40:13.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-09T13:30:...
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ #include <gsl/gsl_matrix_double.h> #include <gsl/gsl_vector_double.h> #include "compat.h" #include "sip-utils.h" #include "gslutils.h" #include "mathutil.h" #include "sip.h" double wcs_pixel_center_f...
{ "alphanum_fraction": 0.4702824859, "avg_line_length": 30.1020408163, "ext": "c", "hexsha": "6b2ffed853e8ef9e4fcd4c3c1f999a3673e66140", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-19T22:59:43.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-19T22:59:...
// The MIT License (MIT) // // Copyright (c) 2018 Mateusz Pusz // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, co...
{ "alphanum_fraction": 0.7131772009, "avg_line_length": 43.2195121951, "ext": "h", "hexsha": "3f3466c1fd7da8d1012350c02ab9361466c5810d", "lang": "C", "max_forks_count": 70, "max_forks_repo_forks_event_max_datetime": "2022-03-24T01:57:29.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-14T01:04...
#include <gsl/gsl_test.h> #include <gsl/gsl_ieee_utils.h> #include <gsl/gsl_math.h> #include "gsl_cblas.h" #include "tests.h" void test_trsm (void) { const double flteps = 1e-4, dbleps = 1e-6; { int order = 101; int side = 141; int uplo = 121; int trans = 111; int diag = 131; int M = 2; int N =...
{ "alphanum_fraction": 0.528986934, "avg_line_length": 32.1608409321, "ext": "c", "hexsha": "e65ba01a0160e211505a1cb6963e7147d4fe5724", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:5...
/* matrix/gsl_matrix_complex_float.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either versi...
{ "alphanum_fraction": 0.6714092141, "avg_line_length": 41, "ext": "h", "hexsha": "61e19e1411621c7f8af7339aa0ce6cd207710ddb", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "099b66cb1...
#ifndef __DUMMY_H__ #define __DUMMY_H__ #include<stdio.h> //#define NDEBUG #include<stdint.h> #include<omp.h> #include<float.h> #include<assert.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <math.h> #include<string.h> #include<dirent.h> #include<sys/stat.h> #include<sys/param....
{ "alphanum_fraction": 0.7985417994, "avg_line_length": 45.424437299, "ext": "h", "hexsha": "70d9fdbea1e01def1ee186cf479b2b756c6addbd", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
// // Revision.hpp // PretendToWork // // Created by tqtifnypmb on 14/12/2017. // Copyright © 2017 tqtifnypmb. All rights reserved. // #pragma once #include "../rope/Range.h" #include "../types.h" #include <gsl/gsl> #include <vector> #include <string> namespace brick { class Rope; class Revision { public: ...
{ "alphanum_fraction": 0.5781083953, "avg_line_length": 20.0212765957, "ext": "h", "hexsha": "38a7c0f7595f4c23b44de88c29c4eb984ff84ddb", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* histogram/init2d.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option)...
{ "alphanum_fraction": 0.5619047619, "avg_line_length": 21, "ext": "c", "hexsha": "9895ec5c918458bcc6aaffa2be1dbf7025abdd27", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:59.000Z", ...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <mpfr.h> #include <petsc.h> #include "../ellipsoid/ellipsoid.h" #include "../ellipsoid/ellSolv.h" #include "../sphere/sphere.h" #include "../sphere/sphSolv.h" #include "../constants.h" #undef __FUNCT__ #define __FUNCT__ "CoulombExact"...
{ "alphanum_fraction": 0.6626569038, "avg_line_length": 29.4153846154, "ext": "c", "hexsha": "92c58fd8eadcbb35843fcffd7821bf624ae3b997", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <gsl/gsl_odeiv2.h> #include "func.h" #include "make_grid.h" int make_grid (struct param params, double r, double r1, double y[]) { int status; int *fake_jac; /* The integrator RK8PD (Runge-Kutta Prince-Dormand) doesn't need the * jacobian (some more sophisticated integrators do) so make this a * n...
{ "alphanum_fraction": 0.7020506634, "avg_line_length": 29.6071428571, "ext": "c", "hexsha": "b94a220535d108ac66db6b19d230fa49fcf66701", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/** * * @precisions normal z -> c d s * **/ #define _TYPE PLASMA_Complex64_t #define _PREC double #define _LAMCH LAPACKE_dlamch_work #define _NAME "PLASMA_zgeqrf" /* See Lawn 41 page 120 */ #define _FMULS FMULS_GEQRF(M, N) #define _FADDS FADDS_GEQRF(M, N) #include "./timing.c" #include <cblas.h> #define COMPL...
{ "alphanum_fraction": 0.5194763729, "avg_line_length": 31.6363636364, "ext": "c", "hexsha": "531a820de966cedfc414d0d8ccd191264f99d4b0", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* * File: rng.h * Author: fedro * * Created on November 3, 2014, 5:33 PM */ #ifndef RNG_H #define RNG_H #include <gsl/gsl_rng.h> class RNG { public: RNG(const gsl_rng_type* rng_type, const int seed=0) { rng_ = gsl_rng_alloc(rng_type); gsl_rng_set(rng_, seed); } RNG(const int ...
{ "alphanum_fraction": 0.5749559083, "avg_line_length": 15.3243243243, "ext": "h", "hexsha": "68141b1b2f7752db1eb20e034e82fb0c1f2b67c5", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* ----------------------------------------------------------------------------- * Copyright 2021 Jonathan Haigh * SPDX-License-Identifier: MIT * ---------------------------------------------------------------------------*/ #ifndef SQ_INCLUDE_GUARD_system_linux_SqTypeSchemaImpl_h_ #define SQ_INCLUDE_GUARD_system_li...
{ "alphanum_fraction": 0.6530612245, "avg_line_length": 26.6, "ext": "h", "hexsha": "147a8e30af53480d9993ac88954e89af2a02783f", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "6ca366b...
/* * Copyright (c) 2016-2021 lymastee, All rights reserved. * Contact: lymastee@hotmail.com * * This file is part of the gslib project. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in t...
{ "alphanum_fraction": 0.6594333936, "avg_line_length": 34.5625, "ext": "h", "hexsha": "eea6577e0db2ed21d21aefe7906b0ad825f6a354", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2016-10-19T15:20:58.000Z", "max_forks_repo_forks_event_min_datetime": "2016-10-19T15:20:58.000...
/* Copyright 2010-2011, D. E. Shaw Research. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions, and the f...
{ "alphanum_fraction": 0.4352272727, "avg_line_length": 51.7647058824, "ext": "h", "hexsha": "370a60d598c1a04d4deb6fffb601d1043ea6c080", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <stdarg.h> #include <string.h> #include <math.h> #include <gbpLib.h> #include <gbpRNG.h> #include <gbpMCMC.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_fit.h> #include <gsl/gsl_interp.h> int generate_MCMC_chain(MCMC_info *MCMC) { int flag_success; int i...
{ "alphanum_fraction": 0.5978196234, "avg_line_length": 42.7542372881, "ext": "c", "hexsha": "4671ec55d5c86ed6f8571db334eb29985e850e7c", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2016-08-01T08:14:24.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-23T00:50:...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> int main(int argc, char *argv[]) { double mu = 1.0; if (argc > 1) mu = atof(argv[1]); int n = 1; if (argc > 2) n = atoi(argv[2]); unsigned long seed; if (argc > 3) ...
{ "alphanum_fraction": 0.5526717557, "avg_line_length": 22.5862068966, "ext": "c", "hexsha": "696e1222c789c36a59c17a307501c5c5b28e87a6", "lang": "C", "max_forks_count": 59, "max_forks_repo_forks_event_max_datetime": "2022-03-21T00:27:22.000Z", "max_forks_repo_forks_event_min_datetime": "2015-11-26T11:44...
#include <stdio.h> #include <stdlib.h> #include <math.h> /* #include <cblas.h> */ #include <lapacke_utils.h> #include <jni.h> #include "org_bitbucket_ioplus_openblas_Lapacke.h" /* * Class: org_bitbucket_ioplus_openblas_Lapacke * Method: sgetrf * Signature: (II[FI[I)V */ JNIEXPORT void JNICALL Java_or...
{ "alphanum_fraction": 0.6006064544, "avg_line_length": 25.65, "ext": "c", "hexsha": "40b53c567591e9673697bb1afc581c88904c4b70", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "026183...
/* * Copyright (C) 2018-2020 * HERE Europe B.V. * Utrecht University (The Netherlands). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
{ "alphanum_fraction": 0.5398099456, "avg_line_length": 43.356, "ext": "h", "hexsha": "6a855a1514a42dfff0c0ab49589cfc48f620483e", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2021-09-11T02:27:00.000Z", "max_forks_repo_forks_event_min_datetime": "2021-02-05T21:40:07.000Z...
/* rng/knuthran2002.c * * Copyright (C) 2007 Brian Gough * Copyright (C) 2001 Brian Gough, Carlo Perassi * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Licens...
{ "alphanum_fraction": 0.5362556329, "avg_line_length": 25.6947368421, "ext": "c", "hexsha": "838b351f61f86e14850720b2dbc8885d08230d7c", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
/** * * @file qwrapper_zlacpy.c * * PLASMA core_blas quark wrapper * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Julien Langou * @author Henricus Bouwmeester * @author Mathieu Faverge * @date 2010-11...
{ "alphanum_fraction": 0.4874236874, "avg_line_length": 33.0241935484, "ext": "c", "hexsha": "affaaa47ba0e0b0a1359b09d07bb7604cb433f54", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* Copyright (c) 2011-2012, Jérémy Fix. All rights reserved. */ /* Redistribution and use in source and binary forms, with or without */ /* modification, are permitted provided that the following conditions are met: */ /* * Redistributions of source code must retain the above copyright notice, */ /* this list of cond...
{ "alphanum_fraction": 0.504152885, "avg_line_length": 45.2745424293, "ext": "h", "hexsha": "1661f845fcf670a79226277a1118c72c43620cc7", "lang": "C", "max_forks_count": 52, "max_forks_repo_forks_event_max_datetime": "2021-09-13T02:47:35.000Z", "max_forks_repo_forks_event_min_datetime": "2015-03-10T01:02:...
/** GSLDAPCom.h - <title>GSLDAP: Common</title> Copyright (C) 2002-2003 Free Software Foundation, Inc. Written by: Manuel Guesdon <mguesdon@orange-concept.com> Date: Sep 2002 $Revision$ $Date$ $Id$ This file is part of the GNUstep LDAP Library. <license> This library is free so...
{ "alphanum_fraction": 0.7455040872, "avg_line_length": 30.0819672131, "ext": "h", "hexsha": "8f4bf7444c1b821bc91485480e8635c16ea95fe3", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef DIFFEQ_SIM_H #define DIFFEQ_SIM_H #include <gsl/gsl_odeiv.h> #include <gsl/gsl_errno.h> #include <iostream> #include <vector> using namespace std; class DiffEq_Sim { private: double t; //initial time double h; //time step double tmax; //max time double hmin; ...
{ "alphanum_fraction": 0.5159377317, "avg_line_length": 29.3260869565, "ext": "h", "hexsha": "ae05ed224d585a69a64058c856e748c3f8518236", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
// Copyright (c) 2021 Stig Rune Sellevag // // This file is distributed under the MIT License. See the accompanying file // LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms // and conditions. #ifndef SCILIB_LINALG_LINSOLVE_H #define SCILIB_LINALG_LINSOLVE_H #ifdef USE_MKL #include <mkl.h> #...
{ "alphanum_fraction": 0.671009772, "avg_line_length": 26.6956521739, "ext": "h", "hexsha": "2b2af7ac19b953a8b4d01a688271a5e3d855fb26", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
/* specfunc/legendre_poly.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, o...
{ "alphanum_fraction": 0.5628083491, "avg_line_length": 27.0256410256, "ext": "c", "hexsha": "654a4b04458ff55a95cad5a424cd6a1824a84f55", "lang": "C", "max_forks_count": 14, "max_forks_repo_forks_event_max_datetime": "2020-03-12T12:31:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T04:47...
/* * Tema 2 ASC * 2020 Spring */ #include <cblas.h> #include "utils.h" #define IDX2L(i, j, N) (((i) * (N)) + (j)) /* * Add your BLAS implementation here */ double* my_solver(int N, double *A, double *B) { int i, j; double alpha = 1.0; /* Calculate the final result in C matrix */ double *C = calloc(N * N, s...
{ "alphanum_fraction": 0.5768822906, "avg_line_length": 23.8734177215, "ext": "c", "hexsha": "5f9fe694ad35a52e1bb0854923524020964775c6", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* ode-initval2/rk4imp.c * * Copyright (C) 2009, 2010 Tuomo Keskitalo * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later ...
{ "alphanum_fraction": 0.5653625213, "avg_line_length": 24.1688555347, "ext": "c", "hexsha": "99267169ac74ba2fe2b2ce119687cc2a43eaa67f", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef PHI_SVM #define PHI_SVM #include <float.h> #include <vector> #include <list> #include <fstream> #include <iostream> #include <cmath> #include <cassert> #include <cstring> #include <cstdlib> #include <sys/time.h> // BLAS dependency #ifdef USE_MKL #include <mkl.h> #else typedef int MKL_INT; #if defined __APPLE__...
{ "alphanum_fraction": 0.6455008196, "avg_line_length": 36.9140127389, "ext": "h", "hexsha": "b1c53dddc2937242824534496c91feb8c8d4bcb7", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2020-06-08T18:06:26.000Z", "max_forks_repo_forks_event_min_datetime": "2015-08-26T19:37:...
# ifndef LANGIL_H # define LANGIL_H /////////////////////////////////////////////////////// ////// GILLESPIE CLASS ////// ////// R. Perez-Carrasco ////// Created: 16 Nov '13 /////////////////////////////////////////////////////// /* Class for simulating master equation through lang...
{ "alphanum_fraction": 0.7259227832, "avg_line_length": 37.1181102362, "ext": "h", "hexsha": "b5eecb5545d8e2a6d5cb4e95081883b2985c997e", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/** * File: spce_pgp.h * Interface to PGplot routines. * */ #ifndef _SPCE_PGP_H #define _SPCE_PGP_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_roots.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_vector.h> #include "aXe_grism.h...
{ "alphanum_fraction": 0.719237435, "avg_line_length": 19.8965517241, "ext": "h", "hexsha": "83470ab2765df933e20ac983b067597465d68831", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
/* cdf/hypergeometric.c * * Copyright (C) 2004 Jason H. Stover. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version....
{ "alphanum_fraction": 0.5743211053, "avg_line_length": 22.8152173913, "ext": "c", "hexsha": "c0dee39f5598dbfd8911908cf6da986b8aded413", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
#include <assert.h> #include <inttypes.h> #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <gsl/gsl_math.h> #include "imshift.h" #include "conv1.h" void showMatrix(double * I, size_t M, size_t N) { for(size_t kk = 0; kk<N; kk++) { for(s...
{ "alphanum_fraction": 0.5076079264, "avg_line_length": 19.9014084507, "ext": "c", "hexsha": "f89bdf8e51831bb0be82f1ccbff8430671f12d04", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <stdlib.h> #include <gsl/gsl_histogram.h> int main (int argc, char **argv) { double a, b; size_t n; if (argc != 4) { printf ("Usage: gsl-histogram xmin xmax n\n" "Computes a histogram of the data " "on stdin using n bins from xmin " ...
{ "alphanum_fraction": 0.5386702849, "avg_line_length": 19.3947368421, "ext": "c", "hexsha": "a3c5150094f83cfd4c4ab457af4ae1b6b87f5d6c", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
//Causal FIR filtering of each row or col of X according to dim. //FIR impulse responses are given in matrix B. //For dim=0, X is NxT and B is NxL //For dim=1, X is TxN and B is LxN //where N is the number of neurons, T the number of time points, and L the FIR filter order. #include <stdio.h> #include <cblas.h> #ifd...
{ "alphanum_fraction": 0.4450771767, "avg_line_length": 27.5743801653, "ext": "c", "hexsha": "f914bd9342ef127fa458140b06c53e22d42d0457", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <assert.h> #include <gsl/gsl_math.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_sort.h> #include "cosmocalc.h" gsl_spline *cosmocalc_aexpn2age_spline = NULL; gsl_interp_accel *cosmocalc_aexpn2age_acc = NULL; double ...
{ "alphanum_fraction": 0.7284693494, "avg_line_length": 27.412371134, "ext": "c", "hexsha": "e0e4f7424d4ec0478972ab8bbba4a1c0bcbddad3", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2017-08-11T17:31:51.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-14T12:17:3...
/* eigen/gsl_eigen.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2006, 2007 Gerard Jungman, Brian Gough, Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either ...
{ "alphanum_fraction": 0.6504319955, "avg_line_length": 40.0893854749, "ext": "h", "hexsha": "366670bc273124fc44786a0f3acf2e0d27aee80c", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
#ifndef NumericalApproximation_h #define NumericalApproximation_h /** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top l...
{ "alphanum_fraction": 0.5738706664, "avg_line_length": 43.187568157, "ext": "h", "hexsha": "d6a6f7060fb097a14169d99d5d010efb5689b22c", "lang": "C", "max_forks_count": 164, "max_forks_repo_forks_event_max_datetime": "2022-03-23T10:22:29.000Z", "max_forks_repo_forks_event_min_datetime": "2017-11-30T21:15...
#ifndef _SNPLIB_SRC_MATH_LIB_H_ #define _SNPLIB_SRC_MATH_LIB_H_ #ifdef USE_MKL #include <mkl.h> #define set_num_threads mkl_set_num_threads #endif #ifdef USE_OPENBLAS #ifdef _MSC_VER #include <complex> #define lapack_complex_float std::complex<float> #define lapack_complex_double std::complex<double> #endif #include <...
{ "alphanum_fraction": 0.8295454545, "avg_line_length": 22, "ext": "h", "hexsha": "5cf38a7eea848fea57ef741a7f6cbaa81b09d893", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-02-17T17:20:24.000Z", "max_forks_repo_forks_event_min_datetime": "2022-02-17T17:20:24.000Z", ...
/** * * @file core_cgetrf.c * * PLASMA core_blas kernel * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Mathieu Faverge * @date 2010-11-15 * @generated c Tue Jan 7 11:44:48 2014 * **/ #include <lapac...
{ "alphanum_fraction": 0.5324118208, "avg_line_length": 31.3134328358, "ext": "c", "hexsha": "4105a20f6c64ddce88fff7c1c111c5527f651ab7", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/**********************************\ * Test benchmark * * * * by * * Elliott Forney * * 3.15.2010 * \**********************************/ /* * Libraries */ #include <stdio.h> #include <stdlib.h>...
{ "alphanum_fraction": 0.5746189295, "avg_line_length": 18.6821192053, "ext": "c", "hexsha": "74ce0a13facb71db55dc082944e02ab581d4128f", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* matrix/gsl_matrix_int.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, o...
{ "alphanum_fraction": 0.667738478, "avg_line_length": 32.6413994169, "ext": "h", "hexsha": "1a732f95fe9f2c4177681b3196111b133dfd34f4", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
#include <stdio.h> #include <gsl/gsl_math.h> #include <gsl/gsl_monte.h> #include <gsl/gsl_monte_vegas.h> #include "integral.c" #include "timer.c" #include "timer.h" #define N 20 double g (double *t,size_t dim, void *params); int main (void) { double res, err; // 6 dimensional integral size_t dim = 6; int dims=6; ...
{ "alphanum_fraction": 0.5729261623, "avg_line_length": 20.5046728972, "ext": "c", "hexsha": "073ce7d3caaa9b9e50d0f5c6d30127513a5887fd", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#pragma once // STL and std libs #include <map> #include <set> #include <vector> #include <list> #include <memory> #include <functional> #include <iostream> #include <fstream> #include <algorithm> #include <chrono> #include <type_traits> // Guildline Support Library #include <gsl.h> //// boost and std extension //#i...
{ "alphanum_fraction": 0.7348329925, "avg_line_length": 20.375, "ext": "h", "hexsha": "b4f6a6791ea47e8f3a51dc67bfeab41579516e79", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2017-06-12T16:15:18.000Z", "max_forks_repo_forks_event_min_datetime": "2016-01-16T14:25:28.000Z...
#ifndef COMMON_H #define COMMON_H #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_odeiv2.h> #include <gsl/gsl_sf_bessel.h> #include <gsl/gsl_statistics.h> #include <plplot/plplot.h> #endif
{ "alphanum_fraction": 0.7355932203, "avg_line_length": 16.3888888889, "ext": "h", "hexsha": "29f565469f9ea9a105d7eb654a7bb792a6f10215", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* integration/qk15.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your o...
{ "alphanum_fraction": 0.7560679612, "avg_line_length": 34.8169014085, "ext": "c", "hexsha": "bfba5176224528f656c7cff696542d24f38cec13", "lang": "C", "max_forks_count": 14, "max_forks_repo_forks_event_max_datetime": "2020-03-12T12:31:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T04:47...
#ifndef ConditionalTest_SERIAL_H #define ConditionalTest_SERIAL_H #include <ace/core/core.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_statistics_double.h> #include <gsl/gsl_randist.h> #include "conditionaltest.h" class ConditionalTest::Serial : public EAbstractAnalyticSerial { Q_OBJ...
{ "alphanum_fraction": 0.6850944717, "avg_line_length": 24.6379310345, "ext": "h", "hexsha": "a71077385ff7e6f2eac3c42a5a2fc7c264312538", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2020-02-26T00:01:18.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-12T22:03:...
#include "tmcoct.h" #include <gsl/gsl_rng.h> const double G_COS_0_D = 1.0 - 1.0E-14; const double G_COS_90_D = 1.0E-7; #define STANDARDTEST 0 /* testing program using fixed rnd seed. */ #define PARTIALREFLECTION 1 /* 1=split photon, 0=statistical reflection. */ #define COSZERO (1.0-1.0E-14) /* cosine...
{ "alphanum_fraction": 0.5645764957, "avg_line_length": 38.0438116101, "ext": "c", "hexsha": "5202e3715777766f9ca9e8432cf40a8ddef1d371", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* spmatrix/test.c * * Copyright (C) 2018 Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. * *...
{ "alphanum_fraction": 0.7079247283, "avg_line_length": 25.322147651, "ext": "c", "hexsha": "97e0a11d8c3f1ea669bddeb81be80316e9b19f52", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:5...