Search is not available for this dataset
text
string
meta
dict
/* * * Copyright (c) Kresimir Fresl 2002 * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * Author acknowledges the support of the Faculty of Civil Engineering, * University of Zagreb, Croatia. * */...
{ "alphanum_fraction": 0.7284946237, "avg_line_length": 17.7142857143, "ext": "h", "hexsha": "d0df1fe638efeca8b422f5ca387a0518c970c25f", "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_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_linalg.h> int normalizeVector( gsl_vector *vector ) { double min = gsl_vector_min( vector ); double norm = gsl_vector_max( vector ) - min; gsl_vector_add_constant( vector, -min ); gsl_vector_scale( vector, 1/norm );...
{ "alphanum_fraction": 0.7305389222, "avg_line_length": 23.8571428571, "ext": "c", "hexsha": "ced9c1f15df5ffe835db94a6d9d963d9625aae7c", "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 <stdlib.h> #if !defined(__APPLE__) #include <malloc.h> #endif #include <stdio.h> #include <assert.h> #include <time.h> #include <string.h> #include <fftw3.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_sf_erf.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_spline.h> #include <gsl/gsl...
{ "alphanum_fraction": 0.7147230042, "avg_line_length": 54.2863501484, "ext": "c", "hexsha": "81da2cc12a65409f8c7f6d64676c639599d158f7", "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":...
/** \ * External definitions to parametrize spectrum traces * in aXe grism exposures */ #ifndef _SPC_TRACE_FUNCTIONS_H #define _SPC_TRACE_FUNCTIONS_H #include <stdlib.h> #include <math.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_integration.h> #include "aXe_errors.h" /* public */ /** A function for parame...
{ "alphanum_fraction": 0.7371967655, "avg_line_length": 23.935483871, "ext": "h", "hexsha": "707d346c0f9d4f9a9068f51c19f89fdfa628842e", "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": ...
/**************************************************************************** * * * Author : lukasz.iwaszkiewicz@gmail.com * * ~~~~~~~~ * * Lice...
{ "alphanum_fraction": 0.3998384491, "avg_line_length": 34.3888888889, "ext": "h", "hexsha": "37cf819a860c068b2bf071dfc23e8fb08e86ca9c", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-02-25T11:16:21.000Z", "max_forks_repo_forks_event_min_datetime": "2020-02-25T11:16:...
#pragma once #include "shapes3D.h" #include <gsl/gsl> namespace ad { template <int N_baseEdges> std::vector<vertex3D::Data> make_pyramid(float aBaseRadius, float aHeight) { std::vector<vertex3D::Data> result; // There are twice the number of edges in the pyramid, each edge being two vertices constexpr...
{ "alphanum_fraction": 0.5813253012, "avg_line_length": 29.7313432836, "ext": "h", "hexsha": "e0360f39230f262503d8906709f275c4baeeb447", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-03-31T13:17:54.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-31T13:17:...
#pragma once #ifndef _NOGSL #include <gsl/gsl_vector.h> #include <gsl/gsl_multimin.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_blas.h> #include <vector> using namespace std; typedef double (* GD_F_TYPE)(const gsl_vector*, void*); typedef void (* GD_DF_TYPE)(const gsl_vector*, void*, gsl_vector*); typedef void (*...
{ "alphanum_fraction": 0.736684171, "avg_line_length": 25.1509433962, "ext": "h", "hexsha": "b61600fb890b5fb1ec822c2d65b56e1064c69509", "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:5...
/** * * @file example_zpotrf.c * * PLASMA testing routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @brief Example of Cholesky factorization * * @version 2.6.0 * @author Bilel Hadri * @date 2010-11-15 * @precisions nor...
{ "alphanum_fraction": 0.6228932584, "avg_line_length": 30.7338129496, "ext": "c", "hexsha": "cf1e3045ddeed1b708cbe78b828058195bb5bd14", "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 2018, Planet Labs, Inc. * * 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-2.0 * * Unless required by applicable law or...
{ "alphanum_fraction": 0.6116813648, "avg_line_length": 40.4502923977, "ext": "c", "hexsha": "c1e0359178c8c66691978a3c2fa718202f2c3e09", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2021-09-28T02:08:24.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-20T10:39:...
/* * optimize_tnc.h * * Created on: Feb 9, 2010 * Author: smitty */ #ifndef _OPTIMIZE_STATE_RECONSTRUCTOR_NLOPT_H_ #define _OPTIMIZE_STATE_RECONSTRUCTOR_NLOPT_H_ #include <nlopt.h> #include "state_reconstructor.h" #include "rate_model.h" #include <armadillo> using namespace arma; void optimize_sr_nlopt(...
{ "alphanum_fraction": 0.764573991, "avg_line_length": 20.2727272727, "ext": "h", "hexsha": "b84de327334f48c99a7363d1b286b27a28dd3a3d", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-31T18:23:31.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-18T05:20:2...
#include <gsl/gsl_roots.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_errno.h> #include "eos_rho.h" #include "root_func.h" #include "global.h" // "reverse" EOS. input: P, T. output: rho double eos_rho (double pres, void *params) { struct param *eos_rho_params = (struct param *) params; int status; double rho_...
{ "alphanum_fraction": 0.6952830189, "avg_line_length": 26.5, "ext": "c", "hexsha": "5093b8812779e71136f99fe3cc713750b35c71f6", "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": "5288ad6...
/* * File: Random.h * Author: nguyentran * * Created on May 27, 2013, 10:46 AM */ #ifndef RANDOM_H #define RANDOM_H #include <gsl/gsl_rng.h> #include "PropertyMacro.h" #include "Strategies/AdaptiveCyclingStrategy.h" class Model; class Random { DISALLOW_COPY_AND_ASSIGN(Random) DISALLOW_MOVE(Random) V...
{ "alphanum_fraction": 0.7457462324, "avg_line_length": 26.3717948718, "ext": "h", "hexsha": "cab8d190199105b113a5219ee666478a523821ab", "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":...
/* vector/gsl_vector_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 version 3 o...
{ "alphanum_fraction": 0.6960724461, "avg_line_length": 37.3688212928, "ext": "h", "hexsha": "c48a48c8e52241b27d2f4e61164c1783fda58a72", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-10-14T12:45:35.000Z", "max_forks_repo_forks_event_min_datetime": "2020-10-14T12:45:...
#include <stdio.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #define NRAND 1000000 #define HIST_SIZE 25 #define HIST_MIN 0 #define HIST_MAX (HIST_SIZE - 1) int hist[HIST_SIZE]; int main (void) { const gsl_rng_type * T; gsl_rng * r; double mu = 2.0; /* create a generator chosen by the environme...
{ "alphanum_fraction": 0.6126482213, "avg_line_length": 19.4615384615, "ext": "c", "hexsha": "41675ef51e82f39ff8c000c7e6e90db2c7370315", "lang": "C", "max_forks_count": 22, "max_forks_repo_forks_event_max_datetime": "2022-03-14T18:31:08.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-07T07:28...
/* linalg/condest.c * * Copyright (C) 2016 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.587330208, "avg_line_length": 27.73, "ext": "c", "hexsha": "eb50a30f4ede148da8d382a70d5165167c32a904", "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": "1b4ee4c...
#define MAXLOCI 1000000 #include <gsl/gsl_linalg.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> /* data definition- holds sample size of each species, segsites in each species, D, length of locus */ struct hkaData{ int na, nb, length, lArray[30], sArray[30]; double d, sa, sb; char name[81]; }; struc...
{ "alphanum_fraction": 0.7339832869, "avg_line_length": 28.72, "ext": "h", "hexsha": "c6d6a41b29d63b0538deeecd00fbca9c81d9b55e", "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": "a5aab1...
/* ieee-utils/print.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.6605301915, "avg_line_length": 27.16, "ext": "c", "hexsha": "eb788dddb05e2cd322d31fd86db063057b30703c", "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:52.000Z...
#include <stdio.h> #include <stdlib.h> #include <gsl/gsl_math.h> #include <gsl/gsl_movstat.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_vector.h> int main(void) { const size_t N = 1000; /* length of time series */ const double sigma[] = { 1.0, 5.0, 1.0...
{ "alphanum_fraction": 0.6069587629, "avg_line_length": 28.3902439024, "ext": "c", "hexsha": "bc841b1d4ccaf82201f78090bb6cc812ee0918be", "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:...
/** * copyright (C) 2004 * the icecube collaboration * $Id: I3GSLRandomService.h 161127 2018-02-20 14:27:18Z kjmeagher $ * * @brief An implementation of the I3RandomService interface. * * Uses the gsl library for the random numbers * * @version $Revision: 161127 $ * @date $Date: 2018-02-20 07:27:18 -0700 (Tu...
{ "alphanum_fraction": 0.7014233697, "avg_line_length": 22.3777777778, "ext": "h", "hexsha": "c1f244a3f2a7ee8933c9b809db33b9734e54b3c8", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-03-30T16:44:18.000Z", "max_forks_repo_forks_event_min_datetime": "2020-07-17T09:20:...
/* specfunc/legendre.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 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 2 of the License, or (at * your opt...
{ "alphanum_fraction": 0.6342710997, "avg_line_length": 32.1369863014, "ext": "h", "hexsha": "002591a3843f36e0315c24465a9ef9904512e7b3", "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:...
#ifndef __COMPLEARN_REALCOMPRESSOR_H #define __COMPLEARN_REALCOMPRESSOR_H #define COMPLEARN_REAL_COMPRESSOR_TYPE (real_compressor_get_type ()) #define COMPLEARN_TYPE_REAL_COMPRESSOR (real_compressor_get_type ()) #define COMPLEARN_REAL_COMPRESSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COMPLEARN_R...
{ "alphanum_fraction": 0.805561277, "avg_line_length": 50.5729166667, "ext": "h", "hexsha": "9dec49365f4fe600dd497d73b38655bd7e20367e", "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": ...
/* Excited States software: KGS Contributors: See CONTRIBUTORS.txt Contact: kgs-contact@simtk.org Copyright (C) 2009-2017 Stanford University 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 with...
{ "alphanum_fraction": 0.7888030888, "avg_line_length": 39.8461538462, "ext": "h", "hexsha": "7beb049d65b5e1ab138a900d9bc67fb937d76129", "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 <matrix.h> #include <mex.h> #include <string.h> #include <blas.h> void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { double * A = mxGetPr(prhs[0]); double * B = mxGetPr(prhs[1]); double * rows = mxGetPr(prhs[2]); double * cols = mxGetPr(prhs[3]); ...
{ "alphanum_fraction": 0.5827956989, "avg_line_length": 25.1351351351, "ext": "c", "hexsha": "344f98a9d16bd70e495d2e8b3bd7263977f2b06f", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-08-13T16:34:29.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-27T06:41:...
//**************************************************************************\ //* This file is property of and copyright by the ALICE Project *\ //* ALICE Experiment at CERN, All rights reserved. *\ //* *\ //* Prim...
{ "alphanum_fraction": 0.6738686131, "avg_line_length": 31.1363636364, "ext": "h", "hexsha": "e5b81b0489f3bb0a3415d29dd51a7185a1ff06e4", "lang": "C", "max_forks_count": 275, "max_forks_repo_forks_event_max_datetime": "2022-03-31T13:06:19.000Z", "max_forks_repo_forks_event_min_datetime": "2016-06-21T20:2...
#include <stdio.h> #include <string.h> #include <math.h> #include "chaincolln.h" #include "cokus.h" #include "chain.h" #include "config.h" #include "parameters.h" #include "irmutils.h" #include "relation.h" #include "domain.h" #ifdef GSL #include <gsl/gsl_randist.h> #include <gsl/gsl_permutation.h> #include <gsl/gsl_r...
{ "alphanum_fraction": 0.6000792969, "avg_line_length": 26.6895943563, "ext": "c", "hexsha": "c9861b4c05eacd928f095e9fc6b1bb831c853278", "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 _GSLRNG_H #define _GSLRNG_H #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <ctime> #include <vector> using namespace std; namespace myGSL { class Rng; class PoissonGenerator; }; typedef myGSL::Rng GSLRng; class myGSL::Rng { public: Rng(const gsl_rng_type * T = gsl_rng_taus2, unsigned l...
{ "alphanum_fraction": 0.6904854369, "avg_line_length": 31.4024390244, "ext": "h", "hexsha": "a35618f2c39133543d403bf41f94416bdfec72d6", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2022-03-17T09:34:55.000Z", "max_forks_repo_forks_event_min_datetime": "2017-11-11T13:00:...
#include <gsl/gsl_errno.h> #include <gsl/matrix/gsl_matrix.h> #include <string.h> #define BASE_DOUBLE #include <gsl/templates_on.h> #include <gsl/matrix/copy_source.c> #include <gsl/templates_off.h> #undef BASE_DOUBLE
{ "alphanum_fraction": 0.7681818182, "avg_line_length": 20, "ext": "c", "hexsha": "df30e8aa5f74b04ad9941c395a04bed50f8f737b", "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": "58778f148...
#ifndef MATRIX_H #define MATRIX_H #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <config.h> #include "collections.h" #include "file_utils.h" #include "vector.h" #include "vector_math.h" #ifdef HAVE_CBLAS #include <cblas.h> #else #warning "No CLBAS" #endif typedef enum { ...
{ "alphanum_fraction": 0.1637405245, "avg_line_length": 102.2449888641, "ext": "h", "hexsha": "d0f43a713846d325c565207a1d9fff4a9b6574d9", "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_sf_bessel.h> #include <stdio.h> /** * The example program from the GSL documentation * http://www.gnu.org/software/gsl/doc/html/usage.html#an-example-program */ int main() { double x = 5.0; double y = gsl_sf_bessel_J0 (x); printf ("J0(%g) = %.18e\n", x, y); return 0; }
{ "alphanum_fraction": 0.6310679612, "avg_line_length": 20.6, "ext": "c", "hexsha": "f0b03b16cad40c9e76d921fb68abc7ef9c3a8982", "lang": "C", "max_forks_count": 1126, "max_forks_repo_forks_event_max_datetime": "2022-03-31T16:43:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-04T11:57:46.000...
/* Copyright 2019, Alistair Boyle, 3-clause BSD License */ #include "config.h" #include <stdlib.h> /* malloc, free */ #include <assert.h> /* assert */ #include <stdio.h> /* printf */ #include <string.h> /* memset */ #include <float.h> /* DBL_MIN */ #include <lapacke.h> #include "matrix.h" #include "fwd.h" #include "in...
{ "alphanum_fraction": 0.5367769219, "avg_line_length": 31.0845070423, "ext": "c", "hexsha": "3ac51f9b7f6924a9d9635cc248e4e7f9a86632ca", "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/qmomo.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007, 2009 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 *...
{ "alphanum_fraction": 0.5526375885, "avg_line_length": 22.4564102564, "ext": "c", "hexsha": "f2573cdb1b5e016cf9519c58816a1a84126643ff", "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...
#pragma once #include <gsl.h> #include <mitkBaseData.h> namespace crimson { class QtPropertyStorage; /*! \brief A solver parameters data interface. */ class ISolverParametersData : public mitk::BaseData { public: mitkClassMacro(ISolverParametersData, BaseData); /*! * \brief Gets property storage fo...
{ "alphanum_fraction": 0.7407407407, "avg_line_length": 26.2058823529, "ext": "h", "hexsha": "e0b6ff72e3cf5ce30aa4b90feebc123b892902f7", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-07-26T17:39:57.000Z", "max_forks_repo_forks_event_min_datetime": "2021-05-19T09:02:...
/* * Copyright 2014 RWTH Aachen University. All rights reserved. * * Licensed under the RWTH LM License (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed...
{ "alphanum_fraction": 0.4335554123, "avg_line_length": 31.1584821429, "ext": "h", "hexsha": "071ae714f20d6848b23998a5cceadfb2f26f5e35", "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 <math.h> #include <gsl/gsl_poly.h> #include <gsl/gsl_errno.h> #include <time.h> int main (int argc, char* argv[]) { /* Parse the command line arguments. */ const char* usage = "Usage: zeroes <xmin> <xmax> <ymin> <ymax> <xres> <coeff> ... <coeff> - <degree> ... <degree>\n"; if (argc <...
{ "alphanum_fraction": 0.543989824, "avg_line_length": 36.8515625, "ext": "c", "hexsha": "042840bcad3dd105a8ea105d6b5ff035ec975370", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-04-28T03:30:42.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-25T19:33:40.0...
#include <math.h> #include <gsl/gsl_sf_gamma.h> #include <galpy_potentials.h> #ifndef M_PI #define M_PI 3.14159265358979323846 #endif //PowerSphericalPotentialwCutoff //3 arguments: amp, alpha, rc double mass(double r2,double alpha, double rc){ return 2. * M_PI * pow ( rc , 3. - alpha ) * ( gsl_sf_gamma ( 1.5 - 0.5 ...
{ "alphanum_fraction": 0.6413484972, "avg_line_length": 31.974025974, "ext": "c", "hexsha": "bde397ba7c46536f49201f62750d49f9567aefe6", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-07-30T06:14:31.000Z", "max_forks_repo_forks_event_min_datetime": "2020-07-30T06:14:3...
/*****************************************************************\ __ / / / / __ __ / /______ _______ / / / / ________ __ __ / ______ \ /_____ \ / / / / / _____ | / / / / / / | / _______| / / / / / / /____/ / / / / / / / / /...
{ "alphanum_fraction": 0.5926867147, "avg_line_length": 26.3308550186, "ext": "h", "hexsha": "bbc7727e05b02b031d640bfb8a7925ec67e1a655", "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":...
/* vector/gsl_vector_complex_double.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 vers...
{ "alphanum_fraction": 0.6468882445, "avg_line_length": 34.6177606178, "ext": "h", "hexsha": "8d9274b9ae11fa22794849accec0ea1a6b180ac3", "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 #define VULKAN_H_ 1 #include <vulkan/vk_platform.h> #include <vulkan/vulkan_core.h> #if defined(VK_USE_PLATFORM_WIN32_KHR) // This is to avoid including Windows.h #ifndef DECLARE_HANDLE using HANDLE = void*; #define DECLARE_HANDLE(name) struct name##__; typedef struct name##__ *name DECLARE_HANDLE(HINSTA...
{ "alphanum_fraction": 0.7963119966, "avg_line_length": 24.1948717949, "ext": "h", "hexsha": "bbe3d077fc884fd555e3740c60b4bcc1c2507036", "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 <float.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_spmatrix.h> #include <gsl/gsl_vector.h> #include <osqp/osqp.h> #include "qdm.h" #define QDM_THETA_MIN_THRESHOLD 0.0001 int qdm_theta_optimize( gsl_vector *result, gsl_vector *emperical_quantiles, gsl_matrix *ix ) ...
{ "alphanum_fraction": 0.6118892001, "avg_line_length": 20.2075471698, "ext": "c", "hexsha": "14a6f04e6b9b2a4e4eb9839fa25e7870e05d8924", "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 <gsl/assert> constexpr char deathstring[] = "Expected Death"; constexpr char failed_set_terminate_deathstring[] = ".*"; // This prevents a failed call to set_terminate from failing the test suite. constexpr const char* GetExpectedDeathString(std::terminate_handler handle) { return h...
{ "alphanum_fraction": 0.7631578947, "avg_line_length": 31.6666666667, "ext": "h", "hexsha": "7bf242393f7bcff62c12cd985a87824f48f7bb0b", "lang": "C", "max_forks_count": 616, "max_forks_repo_forks_event_max_datetime": "2019-05-02T13:56:27.000Z", "max_forks_repo_forks_event_min_datetime": "2015-09-16T20:4...
#include <stdio.h> #include <math.h> #include <gsl/gsl_math.h> #include <gsl/gsl_vector.h> #include "fermi.h" int main(int argc, char *argv[]) { int num_bands = 2; double t = 1.0; double E0 = 6.0; double deltaE = 14.0; void Efn(double k[3], gsl_vector *energies) { double cx = cos(2.0 * M_PI...
{ "alphanum_fraction": 0.5502702703, "avg_line_length": 28.0303030303, "ext": "c", "hexsha": "8e1dffcba4329b7523dfab12e6186a64220de3bc", "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 common.h * @brief Public header file containing the common objects, API used by different applications */ #ifndef COMMON_H #define COMMON_H #include <petsc.h> /** * @brief The communicator context */ struct _p_COMM { MPI_Comm type; /**< MPI communicator SELF or WORLD */ PetscMPIInt rank; ...
{ "alphanum_fraction": 0.7131857555, "avg_line_length": 26.641025641, "ext": "h", "hexsha": "bfa6caa86ae8423e7b548a8db21f27fffd236914", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-09-11T00:24:08.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-11T00:24:0...
#include <stdio.h> #include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_odeiv2.h> #include <gsl/gsl_math.h> #define pi M_PI //############################################################################# //############################################################################# //Ray path solver //Da...
{ "alphanum_fraction": 0.5705119636, "avg_line_length": 38.1683673469, "ext": "c", "hexsha": "ceaa11cf8a1a376f571e03987ba8b733ba224e6d", "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 "../precision.h" #undef SKIP #ifdef GSL_FLOAT #ifdef MATLAB_FLOAT_H #define SKIP #else #define MATLAB_FLOAT_H #endif #endif #ifdef GSL_DOUBLE #ifdef MATLAB_H #define SKIP #else #define MATLAB_H #endif #endif #ifdef GSL_LONG_DOUBLE #ifdef MATLAB_LONG_DOUBLE_H #define SKIP #else #define MATLAB_LONG_DOUBLE_H ...
{ "alphanum_fraction": 0.7510638298, "avg_line_length": 46.1607142857, "ext": "h", "hexsha": "5f625d629f70ae90ca598e4f84046e9ed7703a9b", "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":...
// 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.6778711485, "avg_line_length": 30.2909090909, "ext": "h", "hexsha": "17a97613056660c9dc4c64ac93dc68d2fd87c382", "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 <string.h> #include <math.h> #include "fitsio.h" #include <gsl/gsl_fit.h> #include <gsl/gsl_multifit.h> //The Function Declarations int read_image(char[],float[],long[]); int read_table(char[]); int write_image(char[],float[],long[]); int image_size(char[], long[]); int ...
{ "alphanum_fraction": 0.698630137, "avg_line_length": 25.7647058824, "ext": "h", "hexsha": "0b5d30baffb170c00b35b2c7334a91709c49f3cb", "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": ...
//Gets deltas (1st order) and delta-deltas (2nd order) differences of X. //Only the deltas and delta-deltas are output in Y. //Thus, Y must be pre-allocated to have twice the size of X. //I implement this just like FIR for speed and shorter code, //except non-causal and mid-sample of B is 0, //so I don't explicitly ma...
{ "alphanum_fraction": 0.4148078725, "avg_line_length": 41.3565891473, "ext": "c", "hexsha": "6bb37181782fdc7ab460bac3356e5d5f3fb66f9d", "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 <stdarg.h> #include <math.h> #include <gsl/gsl_errno.h> #include "ccl.h" // Debug mode policy: whether to print error messages as they are raised. // Defualt is ON. static CCLDebugModePolicy _ccl_debug_mode_policy = CCL_DEBUG_MODE_ON; // Set debug mode policy void ccl...
{ "alphanum_fraction": 0.7154538021, "avg_line_length": 25.4791666667, "ext": "c", "hexsha": "4ffbb0552df9d5e6382173b4fabd8d0640780433", "lang": "C", "max_forks_count": 54, "max_forks_repo_forks_event_max_datetime": "2022-02-06T13:12:10.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-12T13:08...
#include "asf.h" #include "asf_meta.h" #include "dateUtil.h" #include <assert.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_math.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_multiroots.h> static FILE *fopen_workreport_ext(const char *fileName, report_level_t level) { char *path = getPath(fileName); char *...
{ "alphanum_fraction": 0.6072779225, "avg_line_length": 32.2466124661, "ext": "c", "hexsha": "4e4f27b6de496cc66fe8d938636a3c7c013d67a5", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2020-05-15T08:01:09.000Z", "max_forks_repo_forks_event_min_datetime": "2017-04-26T18:18:...
// Copyright (C) 2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #ifndef _HEBench_ClearText_EltAdd_H_7e5fa8c2415240ea93eff148ed73539b #define _HEBench_ClearText_EltAdd_H_7e5fa8c2415240ea93eff148ed73539b #include <gsl/gsl> #include "hebench/api_bridge/cpp/hebench.hpp" #include "clear_benchmark.h" tem...
{ "alphanum_fraction": 0.7312572088, "avg_line_length": 36.125, "ext": "h", "hexsha": "07934aa3a428c0d3c7790bb28a6c541f49aa16c8", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-05T18:01:48.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-05T18:01:48.000Z...
#include <gsl/gsl_statistics_double.h> #include "qdm.h" gsl_matrix * qdm_bias_values( qdm_evaluation *h, qdm_evaluation *f ) { size_t n = f->mcmc->r.tau->size2; size_t s = f->mcmc->r.s; double tau_low = h->parameters.tau_low; double tau_high = h->parameters.tau_high; double lower_bound = h->lower_...
{ "alphanum_fraction": 0.5562130178, "avg_line_length": 24.7866666667, "ext": "c", "hexsha": "e22cde43a63a98c0ad69688c8430bcd31854abe0", "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 BANDED_FLOAT_IMAGE_H #define BANDED_FLOAT_IMAGE_H #include <stdio.h> #include <sys/types.h> #include <glib.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_histogram.h> #include "float_image.h" typedef struct { int nbands; FloatImage **images; } BandedFloatImage; BandedFloatImage * banded_f...
{ "alphanum_fraction": 0.7149496514, "avg_line_length": 23.9074074074, "ext": "h", "hexsha": "609b0d084c35c75ae41b5333f8edb4fa0d5ec4c3", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2020-05-15T08:01:09.000Z", "max_forks_repo_forks_event_min_datetime": "2017-04-26T18:18:...
#pragma once #include <gsl\gsl> #include <winrt\Windows.Foundation.h> #include <d3d11.h> #include <map> #include "DrawableGameComponent.h" #include "FullScreenRenderTarget.h" #include "Bloom.h" namespace Rendering { class DiffuseLightingDemo; class BloomDemo final : public Library::DrawableGameComponent { public...
{ "alphanum_fraction": 0.7591240876, "avg_line_length": 28.5416666667, "ext": "h", "hexsha": "bf59c208e0d6d3f4fc01fdfae0719fefc226605f", "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 "compute_signal.h" #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_histogram.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include "parameters.h" void compute_signal(double * signal, const size_t length, const double delta, gsl_rng * r, gsl_histogram * hist){ sta...
{ "alphanum_fraction": 0.6378575776, "avg_line_length": 28.8245614035, "ext": "c", "hexsha": "91fafc8cb82d0883ba3127b778f042a1f469238a", "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":...
// // Created by pedram pakseresht on 2/18/21. // #include <petsc.h> int main( int argc, char *argv[] ) { Vec a,b,c; DM packer; PetscErrorCode ierr; PetscInt i[4] = {0,1,2,3}; PetscReal v[4] = {1.5,2.5,3.5,4.5}; PetscReal w[4] = {5.5,6.5,7.5,8.5}; // initialize Petsc ... ierr = Pet...
{ "alphanum_fraction": 0.6555839727, "avg_line_length": 24.9574468085, "ext": "c", "hexsha": "0d87c0476290454ea28b83c7b138f818ffab5d76", "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":...
/* MPCOTool: The Multi-Purposes Calibration and Optimization Tool. A software to perform calibrations or optimizations of empirical parameters. AUTHORS: Javier Burguete and Borja Latorre. Copyright 2012-2019, AUTHORS. Redistribution and use in source and binary forms, with or without modification, are permitted prov...
{ "alphanum_fraction": 0.6882220796, "avg_line_length": 28.0720720721, "ext": "c", "hexsha": "dd82af21ecf63664b272324cfe398bae3ceef6a7", "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":...
/* ======================================= * SUSY * * TODO: * - still giving qualitatively wrong answer * ======================================= */ #include <stdlib.h> #include <stdio.h> #include <math.h> #define sq(x) pow((x),2.0) #define cb(x) pow((x),3.0) #define qd(x) pow((x),4.0) // GSL Random Number Gener...
{ "alphanum_fraction": 0.5911532385, "avg_line_length": 23.6194029851, "ext": "c", "hexsha": "622b7f880ada673881a0e2c05f5f845bc9a7c624", "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 allvars.h * \brief declares global variables. * * This file declares all global variables and structures. Further variables should be added here, and declared as * \e \b extern. The actual existence of these variables is provided by the file \ref allvars.cxx. To produce * \ref allvars.cxx from \ref a...
{ "alphanum_fraction": 0.6640761053, "avg_line_length": 34.7072620659, "ext": "h", "hexsha": "4ffada1de5ec148c5200017196530d8ad80fdbaf", "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":...
/* * Gsl_vector_2: test gsl_vector * * Copyright (c) 2012 Jérémie Decock * * Required: GSL library (libgsl0-dev) * Usage: gcc gsl_vector_2.c -lgsl -lgslcblas -lm * or: gcc gsl_vector_2.c $(pkg-config --libs gsl) */ #include <stdlib.h> #include <stdio.h> #include <gsl/gsl_vector.h> int main(int argc, char ...
{ "alphanum_fraction": 0.6211453744, "avg_line_length": 20.6363636364, "ext": "c", "hexsha": "b1853e0d3db8b357fc92e28e36cd1188a40e6ef7", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-01-04T15:59:45.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-31T09:48:...
#ifndef GSL_CQP_H #define GSL_CQP_H #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_math.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <...
{ "alphanum_fraction": 0.7644927536, "avg_line_length": 30.6666666667, "ext": "h", "hexsha": "33eab37a56b01c0b4e61fc8691f3d759d09c8e7c", "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 "../common.h" #include "../concepts.h" #include <boost/container/flat_set.hpp> #include <boost/outcome/result.hpp> #include <boost/outcome/try.hpp> #include <fmt/format.h> #include <gsl/gsl-lite.hpp> #include <string> #include <string_view> #include <yaml-cpp/yaml.h> namespace angonoka::validati...
{ "alphanum_fraction": 0.5800575264, "avg_line_length": 25.0570570571, "ext": "h", "hexsha": "daa03ca1e06c2460e53326e3657a93ad5d029a3d", "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 <string.h> #include <float.h> #include <omp.h> #include <math.h> #include "parmt_config.h" #ifdef PARMT_USE_INTEL #include <mkl_cblas.h> #else #include <cblas.h> #endif #include "parmt_mtsearch.h" #include "parmt_utils.h" #include "compearth.h" #include "iscl/array/array....
{ "alphanum_fraction": 0.5119817173, "avg_line_length": 33.0064655172, "ext": "c", "hexsha": "1b78ede24bd8e5d2bfbb9566d2b96fdb331b3cf4", "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) 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.54272343, "avg_line_length": 28.9257641921, "ext": "h", "hexsha": "410ddc67f22a6345038063dd7f5a11cde013ce32", "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...
/* * Created on: Oct. 19, 2019 * Author: Govind */ /* * standard includes */ #include <stdio.h> #include <stdlib.h> /* * includes for GSL components * - use double precision */ #include <gsl/gsl_vector_double.h> #include <gsl/gsl_matrix_double.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randis...
{ "alphanum_fraction": 0.5928495197, "avg_line_length": 20.4808743169, "ext": "c", "hexsha": "275db3fec01ca520dac1a65ad6c012bc7a97a825", "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":...
/* * Gsl_fcmp: test gsl_fcmp (float comparison) * * Copyright (c) 2012 Jérémie Decock * * Required: GSL library (libgsl0-dev) * Usage: gcc gsl_fcmp.c -lgsl -lgslcblas -lm * or: gcc gsl_fcmp.c $(pkg-config --libs gsl) */ #include <gsl/gsl_sys.h> #include <stdio.h> void main(void) { double n1, n2, eps;...
{ "alphanum_fraction": 0.4594790159, "avg_line_length": 19.7428571429, "ext": "c", "hexsha": "200a08239f337888ca293e85e14807a6df14d5d2", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-01-04T15:59:45.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-31T09:48:...
/* fit/gsl_fit.h * * Copyright (C) 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) any later version. * * Th...
{ "alphanum_fraction": 0.5646006784, "avg_line_length": 30.5943396226, "ext": "h", "hexsha": "a906585eb94a1cd5ac47529056cf9f1429008cbf", "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:...
/* fit/linear.c * * Copyright (C) 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) any later version. * * Thi...
{ "alphanum_fraction": 0.4975580703, "avg_line_length": 24.1930835735, "ext": "c", "hexsha": "ef5ae5ed055198b360ecfc0889f8646b34705ff7", "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...
#pragma once #include "iarglist.h" #include "optioninfo.h" #include "configaccess.h" #include "format.h" #include "streamreader.h" #include <gsl/gsl> #include <cmdlime/errors.h> #include <cmdlime/customnames.h> #include <vector> #include <sstream> #include <functional> #include <memory> namespace cmdlime::detail{ tem...
{ "alphanum_fraction": 0.5728952772, "avg_line_length": 26.0892857143, "ext": "h", "hexsha": "3c64f95b80e6c0be7f0a74137aa2c521606b0293", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-05-22T00:36:08.000Z", "max_forks_repo_forks_event_min_datetime": "2021-05-22T00:36:...
#include <bindings.cmacros.h> #include <gsl/gsl_multiroots.h> BC_INLINE3(GSL_MULTIROOT_FN_EVAL,gsl_multiroot_function*,gsl_vector*,gsl_vector*,int) BC_INLINE3(GSL_MULTIROOT_FN_EVAL_F,gsl_multiroot_function_fdf*,gsl_vector*,gsl_vector*,int) BC_INLINE3(GSL_MULTIROOT_FN_EVAL_DF,gsl_multiroot_function_fdf*,gsl_vector*,gsl...
{ "alphanum_fraction": 0.8707482993, "avg_line_length": 55.125, "ext": "c", "hexsha": "f2a08612c0841becab8aea27862a8d69b9abd963", "lang": "C", "max_forks_count": 19, "max_forks_repo_forks_event_max_datetime": "2021-09-10T19:31:38.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T20:43:08.000...
#include <stdio.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_math.h> #include <gsl/gsl_roots.h> #include <string.h> struct quadratic_params { double a, b, c; }; double quadratic (double x, void *params) { struct quadratic_params *p = (struct quadratic_params *) params; double a = p->a; ...
{ "alphanum_fraction": 0.5489878543, "avg_line_length": 22.0535714286, "ext": "c", "hexsha": "6fea89f7cc914e33bf8156c9c4f99c3c29bfe9bc", "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/airy_der.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 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, or (at * your opt...
{ "alphanum_fraction": 0.6191499336, "avg_line_length": 28.8590755355, "ext": "c", "hexsha": "45a1c1b7e453c864a2b6af3b2601ccc8ebdc7bc3", "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:...
/** * * @file core_dgbelr.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 Azzam Haidar * @date 2011-05-15 * @generated d Tue Jan 7 11:44:50 2014 * **/ #include <lapacke....
{ "alphanum_fraction": 0.4776404825, "avg_line_length": 37.9776536313, "ext": "c", "hexsha": "9a7f107ba33c4c72c6a0a3d3729314a2ca39e878", "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 Photometry_h #define Photometry_h /** * @file * $Revision: 1.5 $ * $Date: 2008/07/09 19:40:52 $ * * Unless noted otherwise, the portions of Isis written by the USGS are * public domain. See individual third-party library and package descriptions * for intellectual property information, user agreeme...
{ "alphanum_fraction": 0.6720221607, "avg_line_length": 35.7425742574, "ext": "h", "hexsha": "2f781d0b521b4bc39c25d207a95bc232c6fd28f2", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-07-12T06:05:03.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-12T06:05:...
#ifndef TTT_BOARD_H #define TTT_BOARD_H #include <SDL_rect.h> #include <gsl/util> #include <array> #include <optional> namespace ttt { class Game; enum class CellState { empty, x, o }; class Board final { public: SDL_FPoint pos; SDL_FPoint cellSize; static constexpr int size{3}; CellState previe...
{ "alphanum_fraction": 0.7075812274, "avg_line_length": 20.9848484848, "ext": "h", "hexsha": "6de0dd317a3f7677d6d10e59b0022ff37fa424e5", "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 TTT_UTIL_FONTCACHE_H #define TTT_UTIL_FONTCACHE_H #include <SDL_ttf.h> #include <gsl/pointers> #include <gsl/util> #include <vector> #include <memory> #include <string_view> namespace ttt::gfx { // A class for caching fonts for reuse. class FontCache final { public: using SizeType = gsl::index; TTF...
{ "alphanum_fraction": 0.7286295794, "avg_line_length": 31.3617021277, "ext": "h", "hexsha": "2d407c2decc03885d9d282c22736550b3c32cd81", "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 core_claset.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 Hatem Ltaief * @date 2010-11-15 * @generated c Tue Jan 7 11:44:48 2014 * **/ #include <lapacke....
{ "alphanum_fraction": 0.5685852609, "avg_line_length": 27.7462686567, "ext": "c", "hexsha": "afc9bb42b936c552217303d89d1d79c4eb09c7e0", "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":...
/* spswap.c * * Copyright (C) 2014 Patrick Alken * Copyright (C) 2016 Alexis Tantet * * 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 opt...
{ "alphanum_fraction": 0.5125858124, "avg_line_length": 25.0737704918, "ext": "c", "hexsha": "a54876f6cd87988203523ec58273684f50b9617e", "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 FISCO BCOS. * SPDX-License-Identifier: Apache-2.0 * 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-2.0 * * Unl...
{ "alphanum_fraction": 0.6756085445, "avg_line_length": 40.26, "ext": "h", "hexsha": "af7d77f1df8da912da52e8b13d9ec415571de83f", "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": "1605c3...
/* histogram/params.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.7259194396, "avg_line_length": 26.5581395349, "ext": "c", "hexsha": "9e2ca120c3dfe6750095d3c3cf8931d0046a6fad", "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 <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_math.h> #include "allvars.h" #include "proto.h" #ifdef MPISENDRECV_CHECKSUM #undef MPI_Sendrecv int MPI_Check_Sendrecv(void *sendbuf, int sendcount, MPI_Datatype sendtype, int dest, int sendtag,...
{ "alphanum_fraction": 0.6243680485, "avg_line_length": 28.0567375887, "ext": "c", "hexsha": "312b98c4172212e65f61967f7aec3b1a1beed0f8", "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) 2018 Sir Ementaler // // 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 withou...
{ "alphanum_fraction": 0.6979236437, "avg_line_length": 35.9759036145, "ext": "h", "hexsha": "fef91fb43679177b47e6693114f2b08bcbbb84c4", "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 for Gillespie's direct method */ #include <math.h> #include <stdint.h> #include <time.h> #include <stdio.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include "ssa.h" #include "dm.h" const gsl_rng_type *SSARNGT; gsl_rng *SSARNG; INDEX nextreaction(double *propensities, INDEX m) { do...
{ "alphanum_fraction": 0.6457369465, "avg_line_length": 22.5820895522, "ext": "c", "hexsha": "abd13f506beb9f0c6bb12454d6760407ea6a9d62", "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":...
/* movstat/test_minmax.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.7296497287, "avg_line_length": 38.536121673, "ext": "c", "hexsha": "bcc2a2a5fc4f8d77b6dbbf805c54b7110849848a", "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...
#include <stdio.h> #include <gsl/gsl_cdf.h> int main (void) { double P, Q; double x = 2.0; P = gsl_cdf_ugaussian_P (x); printf ("prob(x < %f) = %f\n", x, P); Q = gsl_cdf_ugaussian_Q (x); printf ("prob(x > %f) = %f\n", x, Q); x = gsl_cdf_ugaussian_Pinv (P); printf ("Pinv(%f) = %f\n", P, x); x = gs...
{ "alphanum_fraction": 0.5491183879, "avg_line_length": 16.5416666667, "ext": "c", "hexsha": "968eb96dfaac2ece0583e9b4d98343d1d1162d53", "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...
/* eigen/genv.c * * Copyright (C) 2007 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. * * T...
{ "alphanum_fraction": 0.4838877881, "avg_line_length": 31.06587473, "ext": "c", "hexsha": "a309e41e531ffed361c60d19d13ca9dfda40ee42", "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:5...
#include <cblas.h> #include <stdio.h> /* compilar: gcc fonte.c -o exec -lblas */ int main( void ) { int lda = 3; float A[] = { 1, 0, -1, 2, 3, 1 }; int ldb = 2; float B[] = { 5, 1, 6, -1, 7, 2 }; int ldc = 2; float C[] = { 0.00, 0.00, 0.00...
{ "alphanum_fraction": 0.420212766, "avg_line_length": 18.8, "ext": "c", "hexsha": "aca2bdb28bace7bca6bab91ab1a26b603e63bab5", "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": "eb4fcb9c...
#include<stdio.h> #include<math.h> #include"recur.c" #include <gsl/gsl_integration.h> #include"gsl_integration.c" #define NMAX 100 #include"timer.h" #include"timer.c" #include"adjust.c" /* The integral is evaluated for n=0 to n=100 using both a derived recursion formula * and the GSL general integrator. The values of...
{ "alphanum_fraction": 0.6185271923, "avg_line_length": 50.5657894737, "ext": "c", "hexsha": "39d021332daed9bc2a06702998b9d541748d2435", "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":...
/** * * @generated d Tue Jan 7 11:45:26 2014 * **/ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <cblas.h> #include <lapacke.h> #include <plasma.h> #include <core_blas.h> #include "auxiliary.h" /*------------------------------------------------------------------- * Check t...
{ "alphanum_fraction": 0.5562763876, "avg_line_length": 32.5872483221, "ext": "c", "hexsha": "d876b72ad494500510399d6ecf8357313efe0f91", "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":...
/* fft/benchmark.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 opti...
{ "alphanum_fraction": 0.6169519152, "avg_line_length": 23.5961538462, "ext": "c", "hexsha": "54379b38c6a27d2a769437d13158d1130036ca79", "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 _INC_REGRESSION_ #define _INC_REGRESSION_ /** * contains the functions needed to handle the linear regression * this entails, creating hvectors (for given x vectors in the parameter space) * estimatingBeta, this needs the inverse covariance matrix and the training data * creating hmatrix, a done once kind o...
{ "alphanum_fraction": 0.7788920726, "avg_line_length": 42.7346938776, "ext": "h", "hexsha": "e8f8f13481153d0ac7ec1b8a84d251c28c85e69a", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-30T16:43:33.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-30T16:43:...
/*========================================================================= Copyright (c) Yue Sheng, University of Manchester and David Worth, STFC All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ...
{ "alphanum_fraction": 0.6585173502, "avg_line_length": 35.0723404255, "ext": "c", "hexsha": "a47ebc69fbdadedd023bbfa99cfcd606ebe74305", "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 <erl_nif.h> #include <stdio.h> #include <string.h> #include <math.h> #include <cblas.h> /* --------------------------------------------------------------------| ------------------------------ | | LAPACKE | | ...
{ "alphanum_fraction": 0.5474756622, "avg_line_length": 28.3868894602, "ext": "c", "hexsha": "d0d9cb3f4edeb8b25f91f5f65e559506c3295ed2", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2022-01-20T04:29:43.000Z", "max_forks_repo_forks_event_min_datetime": "2022-01-08T19:51:...
#include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <math.h> #include <string.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_odeiv.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_integration.h> #include "ccl.h" #include "ccl_params.h" // // Macros for replacing relative paths #define EXPAND_STR(s) ...
{ "alphanum_fraction": 0.6606228752, "avg_line_length": 30.8697225573, "ext": "c", "hexsha": "65ea1938aef1bf4adab4b63bc82476e12ec1552b", "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.c * * Copyright (C) 2012 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. * * Thi...
{ "alphanum_fraction": 0.6077468191, "avg_line_length": 25.3428571429, "ext": "c", "hexsha": "02ecaa9579764cae2b5aa7e53ec11ec9512060d9", "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 <gsl/gsl_matrix.h> #include <gsl/gsl_blas.h> int main () { size_t i,j; gsl_matrix *m = gsl_matrix_alloc (10, 10); for (i = 0; i < 10; i++) for (j = 0; j < 10; j++) gsl_matrix_set (m, i, j, sin (i) + cos (j)); for (j = 0; j < 10; j++) { gsl_ve...
{ "alphanum_fraction": 0.546875, "avg_line_length": 17.6551724138, "ext": "c", "hexsha": "d4a8473732ac26c3027d5136c7ce3c439a52ac05", "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:57.0...
/* linalg/trimult_complex.c * * Copyright (C) 2019 Patrick Alken * * This 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, or (at your option) any * later version. * * This source is ...
{ "alphanum_fraction": 0.5824557918, "avg_line_length": 28.1173184358, "ext": "c", "hexsha": "7410247e553449bf3a446424514e13ee2e67326b", "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 TEST_MATRIX_UTIL #define TEST_MATRIX_UTIL #include "matrix_util.h" //#include <cblas.h> //int test_blas(int result); int test_my_zgemm(int result); int test_inv2by2(int result); int test_inv2by2inv2by2_overwrite(int result); int test_outer(int result); int test_my_zaxpy(int result); int test_my_zdot(int r...
{ "alphanum_fraction": 0.7827380952, "avg_line_length": 16.8, "ext": "h", "hexsha": "057229165ed83ff44658b397c699c0e9dbf8814a", "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": "485345e...
#ifndef TPEM_H #define TPEM_H #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #ifndef NO_GSL #include <gsl/gsl_integration.h> #include <gsl/gsl_errno.h> #endif #ifdef __cplusplus extern "C" { #endif #define COMPLEX 1 #ifdef COMPLEX typedef struct { double real, im...
{ "alphanum_fraction": 0.6829638052, "avg_line_length": 27.6282722513, "ext": "h", "hexsha": "b131327c1fdf3ff85825c24ca6ce9a64daed0064", "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":...
/* * The MIT License is a permissive free software license, which permits reuse * within both open source and proprietary software. The software is licensed * as is, and no warranty is given as to fitness for purpose or absence of * infringement of third parties' rights, such as patents. Generally use for * resear...
{ "alphanum_fraction": 0.6343643092, "avg_line_length": 40.3464788732, "ext": "c", "hexsha": "7cda94b470361b8ca1723b17f8f660dad46c3d9c", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-03-28T09:17:33.000Z", "max_forks_repo_forks_event_min_datetime": "2016-08-03T12:08:...
/* spcopy.c * * Copyright (C) 2014 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. * * This ...
{ "alphanum_fraction": 0.5134482759, "avg_line_length": 26.3636363636, "ext": "c", "hexsha": "b96c21bf6290515fe7c355d047d39d30c5f1e95e", "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":...