Search is not available for this dataset
text
string
meta
dict
// // mcmc_lotkavolterra.c // // // Created by Juan Pablo Molano on 15/11/15. // // #include <stdio.h> #include <stdlib.h> #include <time.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <math.h> #define USAGE "./mcmc_lotkavolterra.x n_burn n_steps" //---------------------------------------------...
{ "alphanum_fraction": 0.4479308413, "avg_line_length": 31.8698979592, "ext": "c", "hexsha": "388443c1824a51453fa738fe78cd2936cfcc20a9", "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 <time.h> #include <stdio.h> #include <stdlib.h> #include <mpfr.h> #include <petsc.h> #include "ellipsoid.h" #include "../sphere/sphere.h" #include "ellSolv.h" #undef __FUNCT__ #define __FUNCT__ "InitEllipsoidalAndConvertPoints" PetscErrorCode InitEllipsoidalAndConvertPoints(EllipsoidalSyste...
{ "alphanum_fraction": 0.6895202574, "avg_line_length": 35.6558018253, "ext": "c", "hexsha": "ea85ccd6b74b5c9ae27b5e7b911e19aaed4fe3db", "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.5903856699, "avg_line_length": 28.2010309278, "ext": "c", "hexsha": "d49e039a61d32d44cad6e6d131cfd8b6b4e769c7", "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:...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2016-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance...
{ "alphanum_fraction": 0.6818443804, "avg_line_length": 30.4385964912, "ext": "h", "hexsha": "2e8026419794f4e8db1cd810ddb3c320e62375b2", "lang": "C", "max_forks_count": 71, "max_forks_repo_forks_event_max_datetime": "2022-03-29T10:34:32.000Z", "max_forks_repo_forks_event_min_datetime": "2017-05-22T20:41...
/* movstat/movmad.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.6663565891, "avg_line_length": 33.2474226804, "ext": "c", "hexsha": "d1b7233eff64cc349e5551eb9ec9635b043ffd63", "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:...
// // Created by root on 14.03.20. // #ifndef NETWORK_NETWORK_H #define NETWORK_NETWORK_H #include <memory> #include <vector> #include <functional> #include <cblas.h> #include <iostream> #include <random> #include "cmake-build-debug/data.pb.h" #include "Utils.h" extern std::mt19937 generator; struct Layer { std...
{ "alphanum_fraction": 0.5471050049, "avg_line_length": 31.84375, "ext": "h", "hexsha": "182a77a623a939625e78f7f353be7a59c33dc8f5", "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": "24e...
// 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_MATRIX_NORM_H #define SCILIB_LINALG_MATRIX_NORM_H #ifdef USE_MKL #include <mk...
{ "alphanum_fraction": 0.6563807531, "avg_line_length": 28.9696969697, "ext": "h", "hexsha": "ccb0d32f925fa934cc000a67d530b1f74f1ada4c", "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 daeyun on 7/3/17. // #pragma once #include <random> #include <algorithm> #include <gsl/gsl_assert> #include <cstring> namespace scene3d { namespace Random { static std::mt19937 &Engine() { thread_local static std::mt19937 engine{std::random_device{}()}; return engine; } template<class Iter> st...
{ "alphanum_fraction": 0.6644004944, "avg_line_length": 23.4492753623, "ext": "h", "hexsha": "3e505a088e165880a48e5d2d014998fdd64d9487", "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: array_funcs.h * Author: fedro * * Created on December 10, 2014, 3:25 PM */ #ifndef ARRAY_FUNCS_H #define ARRAY_FUNCS_H #include "array.h" #include <assert.h> #include <gsl/gsl_statistics_double.h> #include <cmath> #include <complex> #include <fstream> namespace neurophys { namespace arr { ...
{ "alphanum_fraction": 0.5943735689, "avg_line_length": 24.0708661417, "ext": "h", "hexsha": "5fac47e26813931670b15a83981b283a5c7997e8", "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 <cem.h> #include <mpi.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> void randperm(int*, int); void load_double_mat(double*, int, int, int, char*); void load_int_mat(int*, int, int, int, char*); void load_double...
{ "alphanum_fraction": 0.5539318885, "avg_line_length": 33.2989690722, "ext": "c", "hexsha": "8fff13fd6c423295041fb899eadeb362ffeaa705", "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 "../utils/utils.h" #include <gsl/gsl> #include <limits> namespace Halley { class Compression { public: static Bytes compress(const Bytes& bytes); static Bytes compress(gsl::span<const gsl::byte> bytes); static Bytes decompress(const Bytes& bytes, size_t maxSize = std::numeric_limits<size_...
{ "alphanum_fraction": 0.7397260274, "avg_line_length": 42.2631578947, "ext": "h", "hexsha": "857746ce187d8149897da8797e549106894c0bca", "lang": "C", "max_forks_count": 193, "max_forks_repo_forks_event_max_datetime": "2022-03-22T12:59:58.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-23T06:0...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> #include <fftw3.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include "fftlog.h" #define check_memory(p, name) if(p == NULL){printf("Problems to alloc %s.\n", name); return 0;} ...
{ "alphanum_fraction": 0.5988449806, "avg_line_length": 35.9765721332, "ext": "c", "hexsha": "a025bd984afe135165fd81600df3a9ab7602d593", "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) 2015 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIM...
{ "alphanum_fraction": 0.654236123, "avg_line_length": 29.2412060302, "ext": "h", "hexsha": "a338856118419e8b1a10648677a8cb392177ef99", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2019-12-26T08:25:35.000Z", "max_forks_repo_forks_event_min_datetime": "2019-08-02T17:50:2...
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* Contains implementations of AdaDIF, TunedRwR, and PPR. Dimitris Berberidis University of Minnesota 2017-2018 */ ////////////////////////////////////////////////////////////...
{ "alphanum_fraction": 0.6775721594, "avg_line_length": 29.3747680891, "ext": "c", "hexsha": "4e17f4a72751a02063ca3d4c8cbf0658192679cc", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2019-05-16T08:23:52.000Z", "max_forks_repo_forks_event_min_datetime": "2018-05-24T03:55:...
/*****************************************************************\ __ / / / / __ __ / /______ _______ / / / / ________ __ __ / ______ \ /_____ \ / / / / / _____ | / / / / / / | / _______| / / / / / / /____/ / / / / / / / / /...
{ "alphanum_fraction": 0.5437632884, "avg_line_length": 33.7964071856, "ext": "h", "hexsha": "3e0e0c07d4db5698d0c59ffa0012e901f230707b", "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 2D/3D median filter \par Author: Gabriele Lohmann, MPI-CBS */ /* From the Vista library: */ #include <viaio/VImage.h> #include <viaio/Vlib.h> #include <viaio/mu.h> /* From the standard C library: */ #include <stdio.h> #include <stdlib.h> #include <gsl/gsl_cblas.h> #include <gsl/gsl_matrix.h> #includ...
{ "alphanum_fraction": 0.5985153109, "avg_line_length": 20.4620253165, "ext": "c", "hexsha": "869b0731481d7cbf6a6bc8e68ce7a9b6ea5898aa", "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:...
/* ode-initval2/msadams.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.5304271687, "avg_line_length": 24.3178707224, "ext": "c", "hexsha": "3c3342cf13679a058472395e457f8fd25907441c", "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 QRTRANSPOSE_H #define QRTRANSPOSE_H #include <gsl/gsl_matrix.h> #include "QR.h" /** * Compute and return the QR decomposition of a given matrix' transpose. If * `M` is passed to the constructor, the `getQ` function will return the Q * matrix in the decomposition M^T = QR et similis for `getR`. * * Conv...
{ "alphanum_fraction": 0.7054973822, "avg_line_length": 21.2222222222, "ext": "h", "hexsha": "bb3b8593d030338c86af1019260fe52a56a53816", "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_sf_bessel.h> #include "global.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> #includ...
{ "alphanum_fraction": 0.5600114717, "avg_line_length": 31.6984848485, "ext": "c", "hexsha": "398f90c5ecbb1d6f68f6e6cf754d2bb0209fd717", "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 /// /// @author Mirko Myllykoski (mirkom@cs.umu.se), Umeå University /// /// @internal LICENSE /// /// Copyright (c) 2019-2020, Umeå Universitet /// /// Redistribution and use in source and binary forms, with or without /// modification, are permitted provided that the following conditions are met: /// //...
{ "alphanum_fraction": 0.582482028, "avg_line_length": 29.3666666667, "ext": "c", "hexsha": "e4afb7763e0d87b9c0f356c95e6f90a9c02ae9b6", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2020-04-14T09:41:23.000Z", "max_forks_repo_forks_event_min_datetime": "2019-04-30T12:14:1...
/** * author: Jochen K"upper * created: Jan 2002 * file: pygsl/src/statisticsmodule.c * $Id: doublemodule.c,v 1.9 2004/03/24 08:40:45 schnizer Exp $ * * optional usage of Numeric module, available at http://numpy.sourceforge.net * " */ #include <pygsl/error_helpers.h> #include <pygsl/block_helpers.h> #include ...
{ "alphanum_fraction": 0.7288941736, "avg_line_length": 20.0238095238, "ext": "c", "hexsha": "faedc77cd1986fef1ea8533260bc5a4739d7b886", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-10-02T06:18:07.000Z", "max_forks_repo_forks_event_min_datetime": "2018-10-02T06:18:...
/* * CARP/Kaczmarz sweep on diagonally banded matrix. The essential loop is: * * for each row i * x = x + w*(b(i) - A(i,:)*x)*A(i,:)' * end * * The matrix is given in band storage format, where each row (stored * contiguously in memory) of the array R stores a diagonal of the matrix with * offset idx(j), s...
{ "alphanum_fraction": 0.7098536159, "avg_line_length": 39.2538593482, "ext": "c", "hexsha": "e7bdd923d7afc90df0b346237f79d53af925c0ec", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-04-27T08:46:39.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-15T02:34:...
#pragma once #include "global.h" #ifdef USE_MKL #include <mkl.h> inline void* _malloc(size_t size) {return mkl_malloc(size,64);} inline void _free(void* ptr) {return mkl_free(ptr);} #else #include <cblas.h> inline void* _malloc(size_t size) {return malloc(size);} inline void _free(void* ptr) {return free(ptr);} #endif...
{ "alphanum_fraction": 0.6842918644, "avg_line_length": 51.7657142857, "ext": "h", "hexsha": "f7d3a3fdf1338c602861db8a0775417e4a8ab961", "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 The Apollo Authors. All Rights Reserved. * * 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 * * htt...
{ "alphanum_fraction": 0.6298013245, "avg_line_length": 29.6078431373, "ext": "h", "hexsha": "c57916c5ece081b7cfe3a12dc4e20aaf8004aef2", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-02-24T06:20:29.000Z", "max_forks_repo_forks_event_min_datetime": "2019-02-24T06:20:...
/* vector/gsl_vector_uint.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, ...
{ "alphanum_fraction": 0.6792949224, "avg_line_length": 32.3489361702, "ext": "h", "hexsha": "cd4e7d3d3927b21388972379df85786c6742e806", "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 "asf.h" #include "ceos.h" #include <stdio.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_math.h> #include <gsl/gsl_roots.h> struct pp_erfin_params { int npixels,nlines; double satellite_height; /* earth center to satellite height (PP "rsc") */ double slant_first; /* slant range to first pixel */...
{ "alphanum_fraction": 0.6473806017, "avg_line_length": 37.4251968504, "ext": "c", "hexsha": "110ea7f2b49f2b5e6885a350d866f215fd39665d", "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:...
#include <gsl/gsl_test.h> #include <gsl/gsl_ieee_utils.h> #include <gsl/gsl_math.h> #include <gsl/gsl_cblas.h> #include "tests.h" void test_dot (void) { const double flteps = 1e-4, dbleps = 1e-6; { int N = 1; float alpha = 0.0f; float X[] = { 0.733f }; float Y[] = { 0.825f }; int incX = 1; int inc...
{ "alphanum_fraction": 0.5347143182, "avg_line_length": 22.8802083333, "ext": "c", "hexsha": "8000fe723d9e7e3c0b13d57983701b21c8d36cb2", "lang": "C", "max_forks_count": 224, "max_forks_repo_forks_event_max_datetime": "2022-03-30T00:57:48.000Z", "max_forks_repo_forks_event_min_datetime": "2015-11-12T21:1...
#ifndef BIO_MATH_H_ #define BIO_MATH_H_ #include "bio/defs.h" #include "bio/gsl.h" #include <boost/io/ios_state.hpp> #include <gsl/gsl_sf_gamma.h> #include <gsl/gsl_sf_log.h> #include <gsl/gsl_sf_exp.h> #include <numeric> BIO_NS_START /** Calculates the log of n choose the observed counts. */ template < typen...
{ "alphanum_fraction": 0.7621732445, "avg_line_length": 23.2261904762, "ext": "h", "hexsha": "6d90c7f62044139e91d5ca7ba6e23b0f016e2afb", "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 NETWORK_UDP_ASYNCRECEIVER_H #define NETWORK_UDP_ASYNCRECEIVER_H /* Base class for implementing an asynchronous UDP receiver. A derived class must implement handle_receive which gets passed a view of the received data. The function start() will block and should be called in its own thread. */ #include ...
{ "alphanum_fraction": 0.7388888889, "avg_line_length": 22.0408163265, "ext": "h", "hexsha": "e28adb21c1274b214e4715e5e3882e1d170537bf", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2019-08-30T07:57:19.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-23T11:05:...
/* ode-initval/rk4.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 optio...
{ "alphanum_fraction": 0.5808716386, "avg_line_length": 20.6256830601, "ext": "c", "hexsha": "fda74361883c9741faed4e3a03a9d70433b1df03", "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...
// Copyright 2016-2018 Lauri Juvela and Manu Airaksinen // // 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 appli...
{ "alphanum_fraction": 0.791066026, "avg_line_length": 26.1348837209, "ext": "h", "hexsha": "cef98e502efa6e08df407dd5d6666278b3aced0c", "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": ...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
{ "alphanum_fraction": 0.4959606116, "avg_line_length": 40.3652904129, "ext": "c", "hexsha": "8341c574da2968b8a361cdc82c3801bf8a91b998", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-05-30T08:01:04.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-06T16:35:...
#pragma once #include <gsl/string_span> #include <fmt/format.h> #include <string> #include <algorithm> #include <functional> #include <vector> #include <sstream> #include <cctype> #include <iosfwd> // Thanks Stackoverflow... std::string ucs2_to_local(const std::wstring &); std::wstring local_to_ucs2(const std::str...
{ "alphanum_fraction": 0.6235001132, "avg_line_length": 23.4946808511, "ext": "h", "hexsha": "987e0f155cb11fa8cc74e280f461fe915682d330", "lang": "C", "max_forks_count": 25, "max_forks_repo_forks_event_max_datetime": "2021-11-15T23:14:51.000Z", "max_forks_repo_forks_event_min_datetime": "2016-02-04T21:19...
/* integration/exponential.c * * Copyright (C) 2017 Konrad Griessinger, 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 op...
{ "alphanum_fraction": 0.6882956879, "avg_line_length": 28.6470588235, "ext": "c", "hexsha": "26079cf346ea61c866a7836a05d50838bde4f8f1", "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 parser_496ce533_26fe_412b_8db6_e61b852be838_h #define parser_496ce533_26fe_412b_8db6_e61b852be838_h #include <rathen\config.h> #include <rathen\basis.h> #include <gslib\tree.h> __rathen_begin__ class __gs_novtable ps_obj: public object { public: enum { pt_root, pt_...
{ "alphanum_fraction": 0.6541455161, "avg_line_length": 29.6488294314, "ext": "h", "hexsha": "726b40244fb0eddf5e5230c67bfaea9a0bd54051", "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:...
#ifndef _SPC_DRIZ_H #define _SPC_DRIZ_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_vector.h> double sgarea(double x1, double y1, double x2, double y2, int is, int js); double boxer(int is,int js,double *x,double *y); #endif
{ "alphanum_fraction": 0.7214285714, "avg_line_length": 18.6666666667, "ext": "h", "hexsha": "661bf04bc41dfe17bd8b994dd0721691781f3895", "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 NOMINMAX // Windows #include <windows.h> #include <winrt\Windows.Foundation.h> // Standard #include <string> #include <sstream> #if defined(DEBUG) || defined(_DEBUG) #define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h> #endif // Guidelines Support Library #include <gsl\gsl> // Di...
{ "alphanum_fraction": 0.7321428571, "avg_line_length": 15.68, "ext": "h", "hexsha": "82bb3894468324193c26646fb9d59bea02a04524", "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": "05a05c...
#include <stdio.h> #include <stdlib.h> #include <gsl/gsl_spmatrix.h> int main() { gsl_spmatrix *A = gsl_spmatrix_alloc(5, 4); /* triplet format */ gsl_spmatrix *B, *C; size_t i, j; /* build the sparse matrix */ gsl_spmatrix_set(A, 0, 2, 3.1); gsl_spmatrix_set(A, 0, 3, 4.6); gsl_spmatrix_set(A, 1, 0, 1....
{ "alphanum_fraction": 0.5346704871, "avg_line_length": 22.6623376623, "ext": "c", "hexsha": "ed0018245dd66ec88206b71a4e11b3c6a3b2b315", "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 <stdio.h> #include <math.h> /*per sin i cos*/ #include <stdlib.h> /*pel malloc i calloc*/ #include <gsl/gsl_errno.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_odeiv.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include "memory.h" // what data to save int writeData; /* command line input */ /...
{ "alphanum_fraction": 0.6068763326, "avg_line_length": 22.6024096386, "ext": "c", "hexsha": "21bc5b237b990651842b5e17719571e78410adde", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-10-27T02:59:15.000Z", "max_forks_repo_forks_event_min_datetime": "2019-10-27T02:59:...
/* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an MIT-style License that can be foun...
{ "alphanum_fraction": 0.7160913035, "avg_line_length": 32.9254658385, "ext": "h", "hexsha": "2d5843c6cec787635313867e401180d941e6cc81", "lang": "C", "max_forks_count": 11, "max_forks_repo_forks_event_max_datetime": "2022-01-20T08:56:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-05-13T00:04...
#ifndef _EM_DEFS_H_ #define _EM_DEFS_H_ 1 #include <petsc.h> #include <Eigen/Core> #include <Eigen/Dense> #include <complex> #include <tuple> typedef std::complex<double> Complex; typedef std::tuple<int, int> TupleII; const double PI = 3.14159265358979323846; const double MU = 4 * PI * 1E-7; const Complex II = Co...
{ "alphanum_fraction": 0.6685837527, "avg_line_length": 18.0649350649, "ext": "h", "hexsha": "d12ac0a5dbb900d85d0e4117bad1e59777a29a77", "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":...
/* * vbHmmTs.c * Model-specific core functions for VB-HMM-TS. * * Created by OKAMOTO Kenji, SAKO Yasushi and RIKEN * Copyright 2011-2015 * Cellular Informatics Laboratory, Advance Science Institute, RIKEN, Japan. * All rights reserved. * * Ver. 1.1.0 * Last modified on 2015.09.17 */ #include "vbHmmT...
{ "alphanum_fraction": 0.498907714, "avg_line_length": 27.7614555256, "ext": "c", "hexsha": "7efd7e768717c88b54d9328760280d10c81517a4", "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 OPENMC_TALLIES_FILTER_CELL_INSTANCE_H #define OPENMC_TALLIES_FILTER_CELL_INSTANCE_H #include <cstdint> #include <unordered_map> #include <vector> #include <gsl/gsl> #include "openmc/cell.h" #include "openmc/tallies/filter.h" namespace openmc { //============================================================...
{ "alphanum_fraction": 0.5589353612, "avg_line_length": 28.765625, "ext": "h", "hexsha": "1b2cdd425e356cadc682b83e74e755fb0910b232", "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": "8a...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include <algorithm> #include <boost/iostreams/categories.hpp> #include <gsl/gsl> #include <iosfwd> #include <vector> namespace mira { class memory_device { public: using char_type = char; using catego...
{ "alphanum_fraction": 0.488006617, "avg_line_length": 29.25, "ext": "h", "hexsha": "181ea343b60c7abe9dedb32b298a3c5a452517ac", "lang": "C", "max_forks_count": 16, "max_forks_repo_forks_event_max_datetime": "2022-03-31T15:36:49.000Z", "max_forks_repo_forks_event_min_datetime": "2020-05-07T03:09:13.000Z"...
// // Rpc.hpp // PretendToWork // // Created by tqtifnypmb on 18/12/2017. // Copyright © 2017 tqtifnypmb. All rights reserved. // #pragma once #include <memory> #include <vector> #include <gsl/gsl> #include <uv.h> #include "Request.h" namespace brick { class Rpc { public: using RpcPeer = uv_handle_t; ...
{ "alphanum_fraction": 0.6388888889, "avg_line_length": 21.375, "ext": "h", "hexsha": "158a05bf2fe94af741c02f56fcbbdb0afd8de0e5", "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": "49398...
// This random generator is a C++ wrapper for the GNU Scientific Library // Copyright (C) 2001 Torbjorn Vik // 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 Licen...
{ "alphanum_fraction": 0.723462917, "avg_line_length": 29.25, "ext": "h", "hexsha": "a4e4ad37a17b6e87cc9f963534a8b0185229654c", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-11-27T01:35:33.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-27T01:35:33.000Z",...
/** * * @file pdpotrf.c * * PLASMA auxiliary 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 Jakub Kurzak * @author Hatem Ltaief * @author Mathieu Faverge * @date 2010-11-15 * @generated d Tu...
{ "alphanum_fraction": 0.4526250388, "avg_line_length": 30.6571428571, "ext": "c", "hexsha": "7a7f66d34770ba7b3067a46d30b3ff5313a14cc9", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2021-01-21T11:17:28.000Z", "max_forks_repo_forks_event_min_datetime": "2018-06-22T18:44:...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2018-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance...
{ "alphanum_fraction": 0.6753424658, "avg_line_length": 34.9003984064, "ext": "h", "hexsha": "d25291d0131ee00c896b1c54444ce26b3e124f12", "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 <time.h> #include <sys/time.h> #include <gsl/gsl_math.h> #include "cosmocalc.h" double wtime(void) { struct timeval tp; gettimeofday(&tp,NULL); return ((double) (tp.tv_sec)) + ((double) (tp.tv_usec))/1e6; } #define EPS 3.0e-1...
{ "alphanum_fraction": 0.5221843003, "avg_line_length": 18.3125, "ext": "c", "hexsha": "9ae41010185a3d6632d2afd4093c21e5aec57e38", "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:31.000...
/* ** parse second level design file ** ** G.Lohmann */ #include <viaio/Vlib.h> #include <viaio/VImage.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> extern int VStringToken(char *, char *, int, int); #defin...
{ "alphanum_fraction": 0.5644364616, "avg_line_length": 22.0495049505, "ext": "c", "hexsha": "2c3a4a3a0d7dbd2d9bdcdff9d72e89211a5ea43d", "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:...
/* 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.5905932656, "avg_line_length": 45.6341463415, "ext": "h", "hexsha": "e5afd0e7f5115350ab7e0f81e0677ec4f24e3f47", "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...
// Computational routines for one-dimensional orthogonal polynomial transforms. #ifndef FASTTRANSFORMS_H #define FASTTRANSFORMS_H #include <stdlib.h> #include <math.h> #include <immintrin.h> #include <cblas.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #define omp_get_num_thread...
{ "alphanum_fraction": 0.736114802, "avg_line_length": 43.0877862595, "ext": "h", "hexsha": "2ff8913c3b4fd974fb6d063ba3ae1fec71c284cc", "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/string_span.h> using zstr = gsl::zstring<>; using czstr = gsl::czstring<>; using zwstr = gsl::wzstring<>; using czwstr = gsl::cwzstring<>;
{ "alphanum_fraction": 0.6904761905, "avg_line_length": 18.6666666667, "ext": "h", "hexsha": "a9e9e57120d79bec480f78b42dbcf7e3a351b899", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2020-06-17T16:46:32.000Z", "max_forks_repo_forks_event_min_datetime": "2019-08-28T14:37:...
/* NAME: bovy_randvec PURPOSE: returns a (uniform) random vector with a maximum length CALLING SEQUENCE: bovy_randvec(gsl_vector * eps, int d, double length) INPUT: d - dimension of the vector length - maximum length of the random vector OUTPUT: eps - random v...
{ "alphanum_fraction": 0.6475770925, "avg_line_length": 23.4827586207, "ext": "c", "hexsha": "1e98c0afd84df31e49f7f06505f4b4f9cfad1142", "lang": "C", "max_forks_count": 26, "max_forks_repo_forks_event_max_datetime": "2021-12-13T03:37:58.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-05T22:21...
#ifndef TTT_UTIL_UTILITIES_H #define TTT_UTIL_UTILITIES_H #include <SDL_keyboard.h> #include <gsl/util> namespace ttt::util { // Used to avoid having to cast std::size_t to gsl::index. template<typename Container> [[nodiscard]] inline gsl::index getSize(const Container &container) noexcept { return gsl::narrow...
{ "alphanum_fraction": 0.7479674797, "avg_line_length": 20.5, "ext": "h", "hexsha": "619440b130fe821d0f76796de6a6bf314893a3ca", "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": "8c70a77...
/* linalg/hesstri.c * * Copyright (C) 2006, 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...
{ "alphanum_fraction": 0.5014466546, "avg_line_length": 31.7816091954, "ext": "c", "hexsha": "59f78c9207a7b907a56da22fa37676fcde0b120f", "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...
/* rng/test.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 James Theiler, 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 ...
{ "alphanum_fraction": 0.6287658521, "avg_line_length": 26.807628524, "ext": "c", "hexsha": "8b267a289bdc027181ed147658111e1c564eed79", "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:...
// This is a plugin program that serves mainly as an example of how // analysis programs for ssv should be written, and gives people // something to cut and paste from. It computes and prints histogram // information about the tiles it analyzes. #include <stdlib.h> #include <glib.h> #include <gsl/gsl_histogram.h> #...
{ "alphanum_fraction": 0.6545688546, "avg_line_length": 35.3181818182, "ext": "c", "hexsha": "4100a63328c2127c8e71d94e71e873974e2d3ef4", "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:...
#ifndef METHODS_HELLER_H #define METHODS_HELLER_H #include <gsl/gsl_multimin.h> namespace method { // use your method name to create a subspace for your // implementation of details namespace heller_cwa { namespace details { struct HellerParam { // exp(a[0] p^2 + a[1] p + a[2] p q + a[3] q + a[4] q^2 + a[5]) //...
{ "alphanum_fraction": 0.5911126662, "avg_line_length": 29.4639175258, "ext": "h", "hexsha": "265ad30b4648fbe888e96e8e5d8fa51e6eeb10aa", "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":...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
{ "alphanum_fraction": 0.5560887822, "avg_line_length": 50.5151515152, "ext": "h", "hexsha": "62eacfea83a534d0032ed24d84d8aac16711fc90", "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":...
/* ################################################# * # stochastic simulation of adapting populations # * # with varying constraint type # * # and exponential mutation kernel # * ################################################# * * 2012-2015, Lukas Geyrhofer, lukas.geyrhofer@ds.m...
{ "alphanum_fraction": 0.5920531674, "avg_line_length": 26.958068615, "ext": "c", "hexsha": "7181b4d2a760ab15940484bd810c6f1bae23ea37", "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": ...
#if !defined(incompressibleFlow_h) #define incompressibleFlow_h #include <petsc.h> // Define the test field number typedef enum { VTEST, QTEST, WTEST } LowMachFlowTestFields; typedef enum { STROUHAL, REYNOLDS, PECLET, MU, K, CP, TOTAL_INCOMPRESSIBLE_FLOW_PARAMETERS } IncompressibleFlowParametersTypes; PETSC_EXTERN co...
{ "alphanum_fraction": 0.64628872, "avg_line_length": 133.671875, "ext": "h", "hexsha": "3481f830ab84cf42427b2d2bb0684b9e73f68972", "lang": "C", "max_forks_count": 17, "max_forks_repo_forks_event_max_datetime": "2022-03-21T18:46:06.000Z", "max_forks_repo_forks_event_min_datetime": "2021-02-10T22:34:57.0...
/* ============================================================================ Name : mathutils.h Author : Davide Malvezzi Version : 1.0 Copyright : Description : Math utils function ============================================================================ */ #ifndef MATH_UTILS_H #define ...
{ "alphanum_fraction": 0.5734513274, "avg_line_length": 19.1525423729, "ext": "h", "hexsha": "733c323c7b5ec43520f0849389fb2ddbf07b137f", "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 libceed_solids_examples_setup_libceed_h #define libceed_solids_examples_setup_libceed_h #include <ceed.h> #include <petsc.h> #include "../include/structs.h" // ----------------------------------------------------------------------------- // libCEED Functions // ------------------------------------------------...
{ "alphanum_fraction": 0.5593293207, "avg_line_length": 49.4893617021, "ext": "h", "hexsha": "5b29e6f75d3a58f1122cf0a0ec637c35a1611801", "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/geometric.c * * Copyright (C) 2004 Jason H. Stover. * Copyright (C) 2010 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 * yo...
{ "alphanum_fraction": 0.5937325126, "avg_line_length": 19.6373626374, "ext": "c", "hexsha": "d9b7744dada0c0ecf4d5eb43dee1abc074537150", "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 : Pierre Schnizer <schnizer@users.sourceforge.net> * Date : 5. October 2003 * Only used to test the error handling of pygsl. */ #include <Python.h> #include <gsl/gsl_errno.h> #include <pygsl/error_helpers.h> static char trigger_doc [] = "Calls gsl_error with the passed error number"; static PyObje...
{ "alphanum_fraction": 0.6714399364, "avg_line_length": 20.606557377, "ext": "c", "hexsha": "22ecfdb3e449eca322b126e60e43a6073c95cee8", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-10-02T06:18:07.000Z", "max_forks_repo_forks_event_min_datetime": "2018-10-02T06:18:0...
#ifndef rpsr_f7f329f9_ae61_4fcf_b0c9_8a96216ed0e0_h #define rpsr_f7f329f9_ae61_4fcf_b0c9_8a96216ed0e0_h #include <rathen\config.h> /* * This version of API wrappers were used by the flex & bison due to the cpp generator was still unstable. * Any kind of cpp style announcement should not appear in the header ...
{ "alphanum_fraction": 0.6807900605, "avg_line_length": 25.9421487603, "ext": "h", "hexsha": "2550ca62721d3a7cccfa45ec1463e46cea7c078d", "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:...
#include <complex.h> #include <math.h> //#include <gsl/gsl_sf.h> #include <stdio.h> #include <stdlib.h> #include "specfunc.h" /* * to compile as a library (that can be used by specfunc.py): * * cc -fPIC -c -O2 specfunc.c -o specfunc.o * cc --shared specfunc.o -o libspecfunc.so * * if the gamma-functio...
{ "alphanum_fraction": 0.5295095594, "avg_line_length": 31.7414248021, "ext": "c", "hexsha": "10bdcfe23b6da02e88fdf2bc01a2645f1bf591cb", "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_char.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 of the Lic...
{ "alphanum_fraction": 0.6652932804, "avg_line_length": 36.4726775956, "ext": "h", "hexsha": "9a691829abc335d744efd1658b4dc00cb1e36461", "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:...
/* roots/demo1.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Reid Priedhorsky, 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 ...
{ "alphanum_fraction": 0.668, "avg_line_length": 29.8507462687, "ext": "c", "hexsha": "9d8eb47c66051195b19f17792124063dcd295d55", "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.000Z...
/* rng/taus.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 James Theiler, 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 ...
{ "alphanum_fraction": 0.6583783784, "avg_line_length": 30, "ext": "c", "hexsha": "fd039f54025f618e35b8b97ddf49f6964940e970", "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:16.000Z", ...
#ifndef _H_MAIN #define _H_MAIN #define CPP 0 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include <gsl/gsl_linalg.h> #include <GL/glew.h> #include <GLFW/glfw3.h> #if CPP #include <glm/glm.hpp> #include <glm/gtx/transform.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc...
{ "alphanum_fraction": 0.7415128052, "avg_line_length": 27.0806451613, "ext": "h", "hexsha": "cfd24e5e839b325235fd778a4247365f608df89d", "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-initval/rk2.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 2 of the License, or (at * your optio...
{ "alphanum_fraction": 0.5747038594, "avg_line_length": 20.8525896414, "ext": "c", "hexsha": "e7696d1146f08bef6144280fd929fa2b75698a84", "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 <stdio.h> #include <stdlib.h> #include <math.h> #include <float.h> #include "compearth.h" #ifdef COMPEARTH_USE_MKL #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wreserved-id-macro" #pragma clang diagnostic ignored "-Wstrict-prototypes" #endif #include <mkl_cblas.h> #ifdef __...
{ "alphanum_fraction": 0.6519607843, "avg_line_length": 25.5, "ext": "c", "hexsha": "97a161f4f758df8ca0b5babc648a503da44219da", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-02-28T13:42:40.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-08T00:13:50.000Z",...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_cblas.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> /* Gaussian function */ double tgauss(double x,double sigma) { double y,z,a=2.506628273; z = x / sigma; y = exp((double)-z*z*0.5)/(sigma * a); return y; } /* create a...
{ "alphanum_fraction": 0.5502257336, "avg_line_length": 17.898989899, "ext": "c", "hexsha": "fe39a2b51ca32b065c3de6f4450be0f804e4f2dd", "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:5...
#include <stdio.h> #include <getopt.h> #include <omp.h> #include <math.h> #include <string.h> #ifdef __APPLE__ #include <cblas.h> #define set_num_threads(x) openblas_set_num_threads(x) #define get_num_threads() openblas_get_num_threads() #else #include <mkl.h> #define set_num_threads(x) mkl_set_num_threads(x) #defin...
{ "alphanum_fraction": 0.476392663, "avg_line_length": 26.0530973451, "ext": "c", "hexsha": "e71626977a87940e5f54b2684de94b590b295f91", "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 LOGGER_INCLUDE #define LOGGER_INCLUDE #include <gsl/string_span> #include "log/log.h" BOOST_LOG_GLOBAL_LOGGER(exec_helper_test_logger, execHelper::log::LoggerType); static const gsl::czstring<> LOG_CHANNEL = "test"; #define LOG(x) \ BOOST_LO...
{ "alphanum_fraction": 0.5585443038, "avg_line_length": 37.1764705882, "ext": "h", "hexsha": "1a698dc7e9e84db43661b08a202e017f66e26444", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-07-03T11:11:19.000Z", "max_forks_repo_forks_event_min_datetime": "2018-07-03T11:11:...
#ifndef BASIS_PURSUIT_A_H #define BASIS_PURSUIT_A_H #include "Matrix.h" #include "APPROX2.h" #include "ALM_I_APPROX.h" #include <string> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <stdio.h> /* printf */ #include <time.h> #include <fstream> #include <algorithm> #include <iomani...
{ "alphanum_fraction": 0.5811473662, "avg_line_length": 22.7621359223, "ext": "h", "hexsha": "aea54df6030f1fde3d1c22c0a0904330ae5647f4", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-15T04:23:24.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-15T04:23:...
/* Copyright (c) 2016-2017 Hong Xu This file is part of WCSPLift. WCSPLift 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. W...
{ "alphanum_fraction": 0.5389583179, "avg_line_length": 34.763496144, "ext": "h", "hexsha": "d5f22849f5c4556ecdbaab8d1b1f49bce22842c0", "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": ...
/* Performing approximate Bayesian computation sequential Monte Carlo (Toni et al. 2009) on a beta-binomial model. Synthetic data is generated by `ground_truth_and_analysis.ipynb`. This script writes particles.csv, where each row corresponds to a particle and each column corresponds to a round of SMC. Defin...
{ "alphanum_fraction": 0.6596804316, "avg_line_length": 27.2259887006, "ext": "c", "hexsha": "94f51bb74201f935f590a796c7ddad5882350d71", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-07-02T14:25:20.000Z", "max_forks_repo_forks_event_min_datetime": "2018-07-02T14:25:...
#pragma once #include "icommand.h" #include "optioninfo.h" #include "configaccess.h" #include "config.h" #include "format.h" #include "streamreader.h" #include <gsl/gsl> #include <cmdlime/errors.h> #include <cmdlime/customnames.h> #include <cmdlime/detail/configaccess.h> #include <cmdlime/detail/flag.h> #include <sstre...
{ "alphanum_fraction": 0.5900532133, "avg_line_length": 29.7926829268, "ext": "h", "hexsha": "7730e2fcc9ebed7d0e7ecc56ef7f3f2406bbfb02", "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 <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gbpLib.h> #include <gbpMath.h> #include <gbpCosmo_linear_theory.h> #include <gsl/gsl_multimin.h> typedef struct init_gbpCosmo2gbpCosmo_integrand_params_struct init_gbpCosmo2gbpCosmo_integrand_params; struct init_gbpCosmo2gbpCosmo_in...
{ "alphanum_fraction": 0.625893808, "avg_line_length": 45.3310344828, "ext": "c", "hexsha": "a9895a0b7bd4cd30a76d2f7e470af99c69242f7e", "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:4...
#pragma once #include <winrt\Windows.Foundation.h> #include <d3d11.h> #include <DirectXMath.h> #include <gsl\gsl> namespace Library { class SamplerStates final { public: inline static winrt::com_ptr<ID3D11SamplerState> TrilinearWrap; inline static winrt::com_ptr<ID3D11SamplerState> TrilinearMirror; inline st...
{ "alphanum_fraction": 0.7856525497, "avg_line_length": 33.0571428571, "ext": "h", "hexsha": "6dac2ba238b9c589f3ebae3ae0dbf432f1a52b63", "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 2009-2018 The VOTCA Development Team (http://www.votca.org) * * 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 ...
{ "alphanum_fraction": 0.5565328087, "avg_line_length": 35.8547717842, "ext": "h", "hexsha": "3adf97710750d226f2fdff9ce995576710c00080", "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 GSLMATRIX_H #define GSLMATRIX_H #include <gsl/gsl_matrix_double.h> //Science Library header file #include <gsl/gsl_linalg.h> #include "Matrix.h" template<typename T> class GSLMatrix : public Matrix<T> { private: gsl_matrix *_matrix; //Pointer to the gsl_matrix struct void setMatrix(gsl_matrix* n...
{ "alphanum_fraction": 0.6588868941, "avg_line_length": 23.4033613445, "ext": "h", "hexsha": "81d52449fa432881868ed385d6bf28eca0eacf6b", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-02-13T20:08:14.000Z", "max_forks_repo_forks_event_min_datetime": "2020-02-13T20:08:...
#ifndef __LLVUTILS_H__ #define __LLVUTILS_H__ 1 #include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #include <gsl/gsl_cdf.h> #include "constants.h" #include "struct.h" #include "EOBNRv2HMROMstruct.h" #include "EOBNRv2HMROM.h" #include "wip.h" #include "likelihood.h" #include "splinecoeffs.h" ...
{ "alphanum_fraction": 0.6810104903, "avg_line_length": 57.6666666667, "ext": "h", "hexsha": "7af16db351b28f970c657f4917de347d4617dc1e", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-07-20T02:56:30.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-20T14:19:...
#include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <sys/sysinfo.h> #include <sys/time.h> #define PRINT_MAX 100 // don't print more than 100 elements #define MEAN 0 #define STANDARD_DEVIATION 1 struct arguments { double *array; int...
{ "alphanum_fraction": 0.5494310999, "avg_line_length": 34.0948275862, "ext": "c", "hexsha": "a2a037b981a864d3d4fd6ca4722181a7c74195f8", "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 qwrapper_zlaset.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 Hatem Ltaief * @date 2010-11-15 * @precisions normal z -> c d s * **/ #include <lapac...
{ "alphanum_fraction": 0.5422495803, "avg_line_length": 29.2950819672, "ext": "c", "hexsha": "3eee9f80789329bab006f2dc6aaac05e53ebdc64", "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) 2019-2020 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Imported from: * * @file core_blas.h * * PLASMA auxiliary routines * PLASMA is a software package provided by Univ. of Ten...
{ "alphanum_fraction": 0.6555223881, "avg_line_length": 26.171875, "ext": "h", "hexsha": "b52b461867611b12b580f506c5223640aa14e01c", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2022-03-30T01:53:32.000Z", "max_forks_repo_forks_event_min_datetime": "2022-02-28T21:24:37.0...
#pragma once #include <gsl/gsl> #include <map> #include "halley/text/halleystring.h" #include "halley/maths/vector4.h" namespace Halley { class Path; class Image; struct ImageData; class AsepriteExternalReader { public: static std::vector<ImageData> importAseprite(String baseName, gsl::span<const gsl::byte> f...
{ "alphanum_fraction": 0.75, "avg_line_length": 25.3333333333, "ext": "h", "hexsha": "9af78cc8effd03a4dacee0de80924dd5eb5b6f9d", "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": "16b6c9...
/* cdf/betainv.c * * Copyright (C) 2004 Free Software Foundation, Inc. * Copyright (C) 2006, 2007 Brian Gough * Written by Jason H. Stover. * Modified for GSL by 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 publish...
{ "alphanum_fraction": 0.5426421405, "avg_line_length": 21.1681415929, "ext": "c", "hexsha": "b9efb1dad035cdd7c787be4dadb4dd31248d9109", "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...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gbpLib.h> #include <gbpMath.h> #include <gbpCosmo_core.h> #include <gbpCosmo_NFW_etc.h> #include <gsl/gsl_sf_expint.h> double rho_NFW(double r, double M_vir, double z, int mode, cosmo_info **cosmo) { double c_vir; double R_vir; double g_c; ...
{ "alphanum_fraction": 0.6124794745, "avg_line_length": 27.6818181818, "ext": "c", "hexsha": "1781ae38f5edf356f97571a6d10fa2078634e98e", "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:...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2020-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance...
{ "alphanum_fraction": 0.6710526316, "avg_line_length": 31.4285714286, "ext": "h", "hexsha": "316c1df8278744e1dedf015ef57dc07e0433b871", "lang": "C", "max_forks_count": 71, "max_forks_repo_forks_event_max_datetime": "2022-03-29T10:34:32.000Z", "max_forks_repo_forks_event_min_datetime": "2017-05-22T20:41...
/* * 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 the Softw...
{ "alphanum_fraction": 0.7161964472, "avg_line_length": 31.6887417219, "ext": "h", "hexsha": "06131fc0dd7dce0581f1bf427d60a0bc20103a16", "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:...
#include <ceed.h> #include <petsc.h> #include "../problems/mooney-rivlin.h" // Build libCEED context object PetscErrorCode PhysicsContext_MR(MPI_Comm comm, Ceed ceed, Units *units, CeedQFunctionContext *ctx) { PetscErrorCode ierr; Physics_MR phys; PetscFunctionBegin; ierr = P...
{ "alphanum_fraction": 0.6410677618, "avg_line_length": 38.96, "ext": "c", "hexsha": "a9c44b5b0d145180422a316482dfdcf98e61995b", "lang": "C", "max_forks_count": 41, "max_forks_repo_forks_event_max_datetime": "2022-03-01T13:02:07.000Z", "max_forks_repo_forks_event_min_datetime": "2017-12-27T22:35:13.000Z...
/* altHtmlPages.c - Program to create a web based browser of altsplice predicitions. */ #include "common.h" #include "bed.h" #include "hash.h" #include "options.h" #include "chromKeeper.h" #include "binRange.h" #include "obscure.h" #include "linefile.h" #include "dystring.h" #include "altGraphX.h" #include "altSpli...
{ "alphanum_fraction": 0.6546855507, "avg_line_length": 30.485458613, "ext": "c", "hexsha": "c832b9dfe7e3ddc2dd8ded76f7e7904e3ef42d76", "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:...
/** * @file lapacke_demo.c * @brief Demonstrate LAPACKE functionality by performing QR decomposition. * * Linking Intel MKL can be a pain, but the Intel Math Kernel Library Link Line * Advisor helps generate the linker line for you, which on Ubuntu 20.04 LTS is * * -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl...
{ "alphanum_fraction": 0.6768443638, "avg_line_length": 35.226744186, "ext": "c", "hexsha": "c41d55764c632483d805ca64dff4b30acfaa583e", "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/err.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.6407588739, "avg_line_length": 27.6949152542, "ext": "c", "hexsha": "a9f9f008824ef856bc04bf1590b9ffb30da5195c", "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 <gsl.h> #include <mitkPythonService.h> #include "PythonSolverSetupServiceActivator.h" namespace crimson { inline QVariant getClassVariable(PythonQtObjectPtr obj, QString variableName) { return PythonQtObjectPtr{obj.getVariable("__class__")}.getVariable(variableName); } inline PythonQtObje...
{ "alphanum_fraction": 0.7643979058, "avg_line_length": 26.3448275862, "ext": "h", "hexsha": "8afba3cf219738cd8af5480fa1d16bba4d3eee73", "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:...
#include "allelefreq.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <gsl/gsl_sf_psi.h> #include <gsl/gsl_errno.h> void P_update_simple(const uint8_t* G, const double* zetabeta, const double* zetagamma, const double* xi, const double* beta, const double* gamma, double* var_bet...
{ "alphanum_fraction": 0.5108985416, "avg_line_length": 36.6494252874, "ext": "c", "hexsha": "b38021f7b5a51d0737a337a553ca9670d11f0d0a", "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":...