Search is not available for this dataset
text
string
meta
dict
/*************************************************************************** File : MyParser.h Project : QtiPlot -------------------------------------------------------------------- Copyright : (C) 2006 by Ion Vasilief Email (use @ for *) : ion_vasilief*yahoo...
{ "alphanum_fraction": 0.5280309307, "avg_line_length": 30.175, "ext": "h", "hexsha": "b12e59975144b344bbfde40575818061c21924e4", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2017-12-06T12:16:47.000Z", "max_forks_repo_forks_event_min_datetime": "2015-03-25T15:50:31.000Z...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /* aslmirtime.h */ /*--------------------------------------------------------...
{ "alphanum_fraction": 0.4048573975, "avg_line_length": 42.3396226415, "ext": "h", "hexsha": "3cbaeac9f431aaef22db1616eb83176abb148376", "lang": "C", "max_forks_count": 102, "max_forks_repo_forks_event_max_datetime": "2022-03-20T05:41:54.000Z", "max_forks_repo_forks_event_min_datetime": "2016-01-23T15:2...
/* Copyright [2021] [IBM Corporation] 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 agreed to i...
{ "alphanum_fraction": 0.7523287671, "avg_line_length": 28.515625, "ext": "h", "hexsha": "1504b3c5b4194cf5002921860d4c0afab4d42b05", "lang": "C", "max_forks_count": 13, "max_forks_repo_forks_event_max_datetime": "2022-01-26T01:56:42.000Z", "max_forks_repo_forks_event_min_datetime": "2019-11-02T06:30:36....
#pragma once #include "Cesium3DTilesSelection/BoundingVolume.h" #include "Cesium3DTilesSelection/Library.h" #include "Cesium3DTilesSelection/Tile.h" #include "Cesium3DTilesSelection/TileContext.h" #include "Cesium3DTilesSelection/TileID.h" #include "Cesium3DTilesSelection/TileRefine.h" #include "Cesium3DTilesSelection...
{ "alphanum_fraction": 0.6995587645, "avg_line_length": 31.1625, "ext": "h", "hexsha": "a5ff7f8f2ef7c76616e8e18fc843d1b7022e42d0", "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": "5265...
/* * Copyright 2020 Makani Technologies LLC * * 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 ...
{ "alphanum_fraction": 0.7057761733, "avg_line_length": 34.625, "ext": "h", "hexsha": "fc8daaa0809ace0890f2c007630324f9b2535eba", "lang": "C", "max_forks_count": 107, "max_forks_repo_forks_event_max_datetime": "2022-03-18T09:00:14.000Z", "max_forks_repo_forks_event_min_datetime": "2020-09-10T17:29:30.00...
#ifndef __GEMM_DRIVER_H #define __GEMM_DRIVER_H #include "util.h" #include <stddef.h> #include <stdlib.h> #include <string.h> #include <tuple> #include <algorithm> #include <assert.h> #include <iostream> #include <sstream> #include <vector> // openblas #include <cblas.h> #ifndef CEIL #define CEIL(value, divider) ( ...
{ "alphanum_fraction": 0.5374740664, "avg_line_length": 25.3684210526, "ext": "h", "hexsha": "3e186976e50bd0c47e18e158500e2d0ea779fc61", "lang": "C", "max_forks_count": 14, "max_forks_repo_forks_event_max_datetime": "2021-11-09T03:48:31.000Z", "max_forks_repo_forks_event_min_datetime": "2019-04-19T14:36...
/* Copyright (C) 2004-2007 M. Oliveira, F. Nogueira 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, or (at your option) any later version. This program is distributed in the ...
{ "alphanum_fraction": 0.6998054475, "avg_line_length": 28.7955182073, "ext": "c", "hexsha": "c9e4524532cbf39b90d87426e233782cb7b98884", "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 <jni.h> #include "jade_reconstruct_area_PJNI.h" #include <gsl/gsl_linalg.h> #include <stdio.h> JNIEXPORT jdoubleArray JNICALL Java_jade_reconstruct_area_PJNI_matrixExp (JNIEnv *jenv, jobject obj, jdoubleArray arr,jint size){ jdoubleArray ret = (*jenv)->NewDoubleArray(jenv,(jint)( size * size)); double *O...
{ "alphanum_fraction": 0.701769166, "avg_line_length": 32.9722222222, "ext": "c", "hexsha": "d5bf6353d1d7c9654fd96d6f9d9dfec21bdef44a", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-03-02T18:31:44.000Z", "max_forks_repo_forks_event_min_datetime": "2019-07-06T12:43:5...
#include <stdlib.h> #include <string.h> #include <math.h> #include <complex.h> #include <float.h> #ifdef _MACOSX #include <Accelerate/Accelerate.h> #else #include <cblas.h> #endif #include <gsl/gsl_sf_legendre.h> #include "util.h" #include "spbessel.h" /* Use the modified Gram-Schmidt process to compute (in place)...
{ "alphanum_fraction": 0.5880631949, "avg_line_length": 22.339869281, "ext": "c", "hexsha": "d9f432e2f388702544ca883ac9320f8fca007497", "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": ...
/* -*- 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.6599374467, "avg_line_length": 29.0661157025, "ext": "h", "hexsha": "78042042b511d4f6c14e30b6f7d39c5a03e5f8a3", "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 AVERAGER_H_ #define AVERAGER_H_ #include <gsl/gsl_statistics_double.h> #include <string.h> #include <iostream> class Averager { public: virtual ~Averager() {}; virtual void reset() = 0; virtual void feed(const double x) = 0; virtual double get_mean() const = 0; virtual double get_var() con...
{ "alphanum_fraction": 0.5766182299, "avg_line_length": 23.4728682171, "ext": "h", "hexsha": "502039019e65757eb3296cb0b6982e376ddfa8c1", "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/test.c * * 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 License, or (a...
{ "alphanum_fraction": 0.6524709302, "avg_line_length": 27.4103585657, "ext": "c", "hexsha": "649ba9fe3507602fcb9370bd07d7923a5052f42a", "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...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_const_mksa.h> #include <gsl/gsl_roots.h> #include "ccl.h" #include "ccl_params.h" // Global variable to hold the neutrino phase-space...
{ "alphanum_fraction": 0.6580950422, "avg_line_length": 37.5366795367, "ext": "c", "hexsha": "6acb0204f691488d6026980453b4c21f57e78e63", "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/span> #include <utility> namespace hz::range { template<typename T> using contiguous_view = gsl::span<T>; template<typename Container> auto make_contiguous_view(Container && c) noexcept -> contiguous_view<std::remove_reference_t<decltype(std::data(*std::forward<Container>(c...
{ "alphanum_fraction": 0.6979695431, "avg_line_length": 28.1428571429, "ext": "h", "hexsha": "b1c806b997652870deef2b8da9c0bf75730eba69", "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":...
/* * ----------------------------------------------------------------- * Utilities Library --- util_lib.c * Version: 1.6180 * Date: Mar 12, 2010 * ----------------------------------------------------------------- * Programmer: Americo Barbosa da Cunha Junior * americo.cunhajr@gmail.com * ------------...
{ "alphanum_fraction": 0.4332678454, "avg_line_length": 20.6351351351, "ext": "c", "hexsha": "6e7f904658ce42c62e3e6a13e8132b2df8c93b5e", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-30T01:44:13.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-15T03:57:...
#ifndef H_GPM_STRIPPED_DOWN #define H_GPM_STRIPPED_DOWN #include <gsl/gsl_vector.h> #include <gsl/gsl_histogram.h> #include "../csm_all.h" void ght_find_theta_range(LDP laser_ref, LDP laser_sens, const double*x0, double max_linear_correction, double max_angular_correction_deg, int interval, gs...
{ "alphanum_fraction": 0.7465986395, "avg_line_length": 32.6666666667, "ext": "h", "hexsha": "b8d6a29aab707e786e813c8e02b6bf36fcdb9415", "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\gsl> #include <winrt\Windows.Foundation.h> #include <d3d11.h> #include "DrawableGameComponent.h" #include "MatrixHelper.h" #include "DirectionalLight.h" namespace Library { class Texture2D; class ProxyModel; } namespace Rendering { class NormalMappingMaterial; class NormalMappingDemo ...
{ "alphanum_fraction": 0.7834710744, "avg_line_length": 30.7627118644, "ext": "h", "hexsha": "52f288eb006991c9f185f89e96c9e3a2d246179b", "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_SPH_HARM_H #define OPENMC_TALLIES_FILTER_SPH_HARM_H #include <string> #include <gsl/gsl> #include "openmc/tallies/filter.h" namespace openmc { enum class SphericalHarmonicsCosine { scatter, particle }; //==============================================================================...
{ "alphanum_fraction": 0.546301689, "avg_line_length": 26.4153846154, "ext": "h", "hexsha": "aec21e117be2add8184308e86c01f2942c389fed", "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/gsl> #include <map> #include <optional> #include "aseprite_file.h" #include "halley/text/halleystring.h" #include "halley/maths/vector4.h" namespace Halley { class Path; class Image; struct ImageData; class AsepriteReader { public: static std::map<String, Vector<ImageData>> import...
{ "alphanum_fraction": 0.7335490831, "avg_line_length": 34.3333333333, "ext": "h", "hexsha": "f4e7af06271d5f58ee6ae9aa3158cd60ae832db7", "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 2017 RIS. * Authored by Ron Dahlgren <ron@red83.net> */ #ifndef GLOBALS_H_ #define GLOBALS_H_ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <GL/glew.h> #include <GLFW/glfw3.h> #include <unistd.h> #include <ctype.h> #include <math.h> #include <getopt.h> #include <unistd.h> #include <stdio...
{ "alphanum_fraction": 0.7406340058, "avg_line_length": 27.2156862745, "ext": "h", "hexsha": "172c3348045509ec909c622f345cf029090e05ce", "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":...
/* * splinepdf.c: Routines to efficiently sample from a dimension of an * N-dimensional spline surface. Uses a Metropolis-Hastings Markov Chain * sampler. */ #include <math.h> #include <gsl/gsl_rng.h> #include "photospline/splinetable.h" #include "photospline/bspline.h" #include "photospline/splinepdf.h" v...
{ "alphanum_fraction": 0.6619232428, "avg_line_length": 26.6551724138, "ext": "c", "hexsha": "cd5b4acbe4364ca0ef2e7f77c21a0c594f2d71fe", "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:...
#include <stdio.h> #include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_multiroots.h> #include "ray.h" #define pi M_PI //############################################################################# //############################################################################# ...
{ "alphanum_fraction": 0.5963930348, "avg_line_length": 37.3953488372, "ext": "c", "hexsha": "d5dae4b81df6816b1423e2f9844fa7665b996bc4", "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 "ccv.h" #include "ccv_internal.h" #ifdef HAVE_GSL #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #endif #ifdef USE_DISPATCH #include <dispatch/dispatch.h> #endif const ccv_icf_param_t ccv_icf_default_params = { .min_neighbors = 2, .threshold = 0, .step_through = 2, .flags = 0, .interval = 8, }; /...
{ "alphanum_fraction": 0.6682054854, "avg_line_length": 40.9956437561, "ext": "c", "hexsha": "edc9a7383ee1b2b01353220be71f5a0c9e7b17a7", "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 Sylvain Marsat, University of Maryland - NASA GSFC * * \brief C code for the instrumental noise for LISA-type detectors. * * Formulas taken from Królak&al gr-qc/0401108 (c.f. section III). */ #define _XOPEN_SOURCE 500 #ifdef __GNUC__ #define UNUSED __attribute__ ((unused)) #else #define UNUSED #e...
{ "alphanum_fraction": 0.6677318725, "avg_line_length": 37.9855491329, "ext": "c", "hexsha": "bc07363d54781f152ebcc8bbe147522423de7f15", "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 xdegnome.c * @author Daniel R. Tabin * @brief Unit tests for Degnome */ #include "degnome.h" #include <stdio.h> #include <string.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <time.h> #include <unistd.h> #include <limits.h> unsigned long rngseed=0; int main(int ar...
{ "alphanum_fraction": 0.5847797063, "avg_line_length": 26.2807017544, "ext": "c", "hexsha": "caa82546821f49ea03e577501d5cb3a2da7b6e2a", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-04-27T23:28:50.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-27T23:28:...
/* * qubit.h * * Created on: 30 Jan 2019 * Author: jobinrjohnson */ #ifndef IMPLEMENTATION_QUBIT_H_ #define IMPLEMENTATION_QUBIT_H_ #include <gsl/gsl_matrix.h> #include <gsl/gsl_complex.h> #include <gsl/gsl_complex_math.h> #include <gsl/gsl_rng.h> #include <iostream> class Qubit { protected: gsl_vecto...
{ "alphanum_fraction": 0.7225225225, "avg_line_length": 16.8181818182, "ext": "h", "hexsha": "5cc5c3bf4f8189b4bf1a2fc060a18cb6d0ab0df5", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-11-12T08:04:28.000Z", "max_forks_repo_forks_event_min_datetime": "2019-05-06T09:04:...
/* Copyright (c) 2014, Giuseppe Argentieri <giuseppe.argentieri@ts.infn.it> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above cop...
{ "alphanum_fraction": 0.6730415594, "avg_line_length": 29.8791208791, "ext": "c", "hexsha": "3ceb869deca3d7b18e8e8de0f8edd90dd327f4a0", "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 /// /// @brief This file contains code that is used to validate the output of the /// example codes. /// /// @author Mirko Myllykoski (mirkom@cs.umu.se), Umeå University /// /// @section LICENSE /// /// Copyright (c) 2019-2020, Umeå Universitet /// /// Redistribution and use in source and binary forms, wi...
{ "alphanum_fraction": 0.6382034932, "avg_line_length": 32.2053571429, "ext": "c", "hexsha": "5871050866104b1a18a10b43297805aa3a858ef3", "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:...
/* linalg/test_qrc.c * * Copyright (C) 2020 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.6474176039, "avg_line_length": 36.5460122699, "ext": "c", "hexsha": "4d2564dfa08aa8d42b89f4c669af3d35683045a9", "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:...
/* ============================================================ * * decomp_eb.c * * Martin Kilbinger, Liping Fu 2008, 2009 * * ============================================================ */ #include "decomp_eb.h" #include <gsl/gsl_sf_gamma.h> /* === CFHTLS Wide 3rd data release, Fu&Kilbinger (2010) === */ ...
{ "alphanum_fraction": 0.5209239475, "avg_line_length": 28.84409257, "ext": "c", "hexsha": "752887e7482cc1504dc5310ba4f3e52824c4641d", "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 <errno.h> #include <getopt.h> #include <gsl/gsl_spmatrix.h> #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> static int clock = 1; static int results = 0; static int verbose = 0; static int help = 0; int test (size_t m, size_t n, size_t nnz, const size_t *ptr, ...
{ "alphanum_fraction": 0.5137769447, "avg_line_length": 24.8139534884, "ext": "c", "hexsha": "86605794f7d1b03981b21ebb5cee78a18f3afba6", "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 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /*---------------------------------------------------------------------------...
{ "alphanum_fraction": 0.5518380834, "avg_line_length": 33.1643835616, "ext": "h", "hexsha": "2e7a34217d25fd2b357802e079eae98763b39d93", "lang": "C", "max_forks_count": 102, "max_forks_repo_forks_event_max_datetime": "2022-03-20T05:41:54.000Z", "max_forks_repo_forks_event_min_datetime": "2016-01-23T15:2...
/* * SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu> * SPDX-License-Identifier: BSD-3-Clause * SPDX-FileType: SOURCE * * This program is free software: you can redistribute it and/or modify it * under the terms of the license found in the LICENSE.txt file in the root * directory...
{ "alphanum_fraction": 0.5821068939, "avg_line_length": 24.8269230769, "ext": "h", "hexsha": "d9e739b0c8906111c8e7a50a7e7a1b04b592fcdd", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-08-21T12:12:44.000Z", "max_forks_repo_forks_event_min_datetime": "2021-08-21T12:12:...
/* specfunc/bessel_I1.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 op...
{ "alphanum_fraction": 0.6077510276, "avg_line_length": 26.3011583012, "ext": "c", "hexsha": "18b2c0e3315b23fb8c6a1fa6fef827ec977d60ac", "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...
// -*- C++ -*- // // michael a.g. aïvázis <michael.aivazis@para-sim.com> // // (c) 2013-2020 parasim inc // (c) 2010-2020 california institute of technology // all rights reserved // // code guard #if !defined(altar_bayesian_CoolingStep_h) #define altar_bayesian_CoolingStep_h // externals #include <gsl/gsl_vector.h> ...
{ "alphanum_fraction": 0.7016491754, "avg_line_length": 24.1084337349, "ext": "h", "hexsha": "9611a3b3ce79bec9b8f8c7e794a6273e7177d387", "lang": "C", "max_forks_count": 20, "max_forks_repo_forks_event_max_datetime": "2022-02-10T07:10:00.000Z", "max_forks_repo_forks_event_min_datetime": "2018-04-26T18:40...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <memory> #include <numeric> #include <algorithm> #include <vector> #include <string> #include <limits> #include <memory> #include <optional> #include <list> #include <map> #include <deque> #include <c...
{ "alphanum_fraction": 0.7832446809, "avg_line_length": 25.4915254237, "ext": "h", "hexsha": "d057c944359c4e124c200522e1000a537b07b872", "lang": "C", "max_forks_count": 11, "max_forks_repo_forks_event_max_datetime": "2022-03-09T21:24:29.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-08T15:50...
/* randist/tdist.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 * ...
{ "alphanum_fraction": 0.6228571429, "avg_line_length": 25.9259259259, "ext": "c", "hexsha": "1faae4c69586957a5d6640e85669fd9dd3c35ff1", "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:...
/* * 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.5555871481, "avg_line_length": 27.8023715415, "ext": "h", "hexsha": "f8ff71e746ee4da2514982be26ad4813039ce9d5", "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 ___BEST_SCORE_SO_FAR_FOR_NLOPT_H____ #define ___BEST_SCORE_SO_FAR_FOR_NLOPT_H____ #include "OptimizedNonlinearController.h" #include <mutex> #include <nlopt.h> #include <thread> class BestNLOptScoreSoFar { public: std::mutex my_mutex; std::thread* thethread; bool force_stop; nlopt_opt opt; MyNLOPTda...
{ "alphanum_fraction": 0.7703568161, "avg_line_length": 23.7608695652, "ext": "h", "hexsha": "dce27a03569e8f153f23a9b9778a38ad8a3e2b44", "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 <cblas.h> #include "linear_algebra.h" Matrix *new_matrix(int row_num, int col_num) { Matrix *matrix = malloc(sizeof(Matrix)); if (matrix == NULL) return NULL; matrix->data = malloc((unsigned long) (row_num * col_num) * si...
{ "alphanum_fraction": 0.6141841169, "avg_line_length": 22.4977777778, "ext": "c", "hexsha": "df83902ae3bcf9350118f8af912bca78ecbd012c", "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_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 of the Li...
{ "alphanum_fraction": 0.690680527, "avg_line_length": 34.0452674897, "ext": "h", "hexsha": "fda772b4db0f4b886a877fc5c6c67b296d796bcc", "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:3...
#ifndef structs_h #define structs_h #include <ceed.h> #include <petsc.h> // ----------------------------------------------------------------------------- // PETSc Operator Structs // ----------------------------------------------------------------------------- // Data for PETSc Matshell typedef struct UserO_ *UserO;...
{ "alphanum_fraction": 0.6095183486, "avg_line_length": 28.5901639344, "ext": "h", "hexsha": "63f0abc7d9cee1bc32d1156ac05b70d17bce3f40", "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...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <time.h> #define USAGE "./mcmc_loktavolterra.x n_steps n_burn" void rg4th(float *resultado, float x, float y, float a, float b, float c, float d, float h); void x_prime(float *valor, float x, float y...
{ "alphanum_fraction": 0.6708542714, "avg_line_length": 26.9612903226, "ext": "c", "hexsha": "d1ffddd5ab94478ca467974f14dd28a71349f411", "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 "als.h" #include "mpi.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_matrix.h> #define MAX_NAME_LEN 10 /* Define global variables */ global_info info; feature_t *movieMatrix; // feature matrix of movies feature_t *userMa...
{ "alphanum_fraction": 0.5623245535, "avg_line_length": 30.7211009174, "ext": "c", "hexsha": "5df898862d244c0700b19b9b40eec0683012cd2c", "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 <memory_resource> #include <vector> #include <gsl-lite/gsl-lite.hpp> #include <thrust/sort.h> #include <cuda/define_specifiers.hpp> #include <thrustshift/memory-resource.h> namespace thrustshift { //! Col indices must be ordered template <typename DataType, typename IndexType> class CSR { ...
{ "alphanum_fraction": 0.6658738249, "avg_line_length": 28.8529411765, "ext": "h", "hexsha": "d064a6bb6693c859824ce85278b722782f1ea793", "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 _H_LIMBER #define _H_LIMBER #include <gsl/gsl_spline.h> #include <stdbool.h> #include "interp2d.h" //#include <gsl/gsl_interp2d.h> //#include <gsl/gsl_spline2d.h> // The integrated C_ell are in general allowed to be zero or negative if // they describe cross-correlations. We use these statuses to describe //...
{ "alphanum_fraction": 0.7595330739, "avg_line_length": 33.8157894737, "ext": "h", "hexsha": "a8c6c5c332197f0fcf4490dc8c0d035b3c2b983a", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-06-11T15:29:43.000Z", "max_forks_repo_forks_event_min_datetime": "2021-06-11T15:29:...
//! \file reaction.h //! Data for an incident neutron reaction #ifndef OPENMC_REACTION_H #define OPENMC_REACTION_H #include <string> #include <gsl/gsl> #include "hdf5.h" #include "openmc/reaction_product.h" #include "openmc/vector.h" namespace openmc { //===========================================================...
{ "alphanum_fraction": 0.6150927487, "avg_line_length": 32.4931506849, "ext": "h", "hexsha": "a597e623712a5a899637a1daf3cbf957ea994317", "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":...
/* testutilities.c * * 24-May-2008 Initial write: Ting Zhao */ #include <stdlib.h> #include <string.h> #include <utilities.h> #include <math.h> #include "tz_utilities.h" #include "tz_error.h" #include "tz_file_list.h" #include "tz_image_lib_defs.h" #include "tz_stack_utils.h" /* #include "tz_matlabio.h" #include "...
{ "alphanum_fraction": 0.5443465217, "avg_line_length": 20.472168906, "ext": "c", "hexsha": "5c8dec1053efb3c0775ebd4ada8bc882a7ea863f", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_errno.h> #include "ccl.h" /* ------- ROUTINE: ccl_linear spacing ------ INPUTS: [xmin,xmax] of the interval to be divided in N bins OUTPUT: bin edges in range [xmin,xmax] */ double * ccl_linear_spacing(double xmin, double xmax, int N) { do...
{ "alphanum_fraction": 0.6139255147, "avg_line_length": 26.850931677, "ext": "c", "hexsha": "2e7ff93830d093a30c5d0be7e55f89f92079cea3", "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 <assert.h> #include <err.h> #include <gsl/gsl_rng.h> #include <tskit/tables.h> #define check_tsk_error(val) if (val < 0) {\ errx(EXIT_FAILURE, "line %d: %s", __LINE__, tsk_strerror(val));\ } void simulate(tsk_table_collection_t *tables, int N, int T, int simplify_i...
{ "alphanum_fraction": 0.5791100124, "avg_line_length": 35.1739130435, "ext": "c", "hexsha": "257496a03750050a1adafc2a02998aa0bb622fd5", "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":...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2018 Couchbase, 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 * * ...
{ "alphanum_fraction": 0.6720779221, "avg_line_length": 33.1692307692, "ext": "h", "hexsha": "94285d535ceddd528877f487da5b098e150b40f5", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-04-06T09:20:15.000Z", "max_forks_repo_forks_event_min_datetime": "2019-10-11T14:00:...
/* multifit/covar.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) a...
{ "alphanum_fraction": 0.7121212121, "avg_line_length": 33, "ext": "c", "hexsha": "ad04b63df3bb2eabf0d02a6d4bc0fbc10e357976", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:59.000Z", ...
/* examples/C/ssmfe/hermitian.c - Example code for SPRAL_SSMFE package */ /* Hermitian operator example */ #include "spral.h" #include <math.h> #include <stdlib.h> #include <stdio.h> #include <cblas.h> /* central differences for i d/dx */ void apply_idx(int n, int m, const double complex *x_ptr, double complex *y_ptr)...
{ "alphanum_fraction": 0.5650614754, "avg_line_length": 32, "ext": "c", "hexsha": "f6802b7e70d045735d9a739234ba53101ab0705e", "lang": "C", "max_forks_count": 19, "max_forks_repo_forks_event_max_datetime": "2022-02-28T14:58:37.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-30T20:52:47.000Z", ...
#pragma once #include <vector> #include <gsl-lite/gsl-lite.hpp> #include <Eigen/Sparse> #include <thrustshift/CSR.h> #include <thrustshift/container-conversion.h> #include <thrustshift/managed-vector.h> #include <thrustshift/memory-resource.h> namespace thrustshift { namespace eigen { //! Return a CSR matrix wit...
{ "alphanum_fraction": 0.7502606882, "avg_line_length": 29.5076923077, "ext": "h", "hexsha": "96442b2d1c523fd07c51478c7c55b6af55e89a22", "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":...
#ifdef USE_MKL #include <mkl.h> #else #include <cblas.h> #endif // contains all calls to C-interface BLAS functions // e.g. http://www.netlib.org/lapack/explore-html/d1/dff/cblas__example1_8c_source.html // returns the dot product of x and y // http://www.netlib.org/lapack/explore-html/d5/df6/ddot_8f_source.html doub...
{ "alphanum_fraction": 0.6959247649, "avg_line_length": 38.28, "ext": "c", "hexsha": "3bb4edbe7a95f9f693ea9b586dee99d695c6647b", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-07-18T16:32:34.000Z", "max_forks_repo_forks_event_min_datetime": "2016-06-16T17:43:38.000Z"...
/* randist/logistic.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 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 3 of the License, o...
{ "alphanum_fraction": 0.6680911681, "avg_line_length": 26, "ext": "c", "hexsha": "c1e05d4f8197d6cb451f417a77a24e5743e83242", "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 <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_hpr2 (void) { const double flteps = 1e-4, dbleps = 1e-6; { int order = 101; int uplo = 121; int N = 1; float alpha[2] = {-1.0f, 0.0f}; float Ap[] = { 0.159f, -0....
{ "alphanum_fraction": 0.5086296527, "avg_line_length": 25.579787234, "ext": "c", "hexsha": "7fb7dee72012f4310be29a6dc128ae6d18a137ed", "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:17...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <glob.h> #include <unistd.h> #include <dirent.h> #include <limits.h> #include "hdf5.h" #include <math.h> #include <time.h> #include <gsl/gsl_math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_blas.h> #i...
{ "alphanum_fraction": 0.5508457903, "avg_line_length": 45.3002574767, "ext": "c", "hexsha": "80bd2767cab1854de40c499f0fd5bcdd95a35052", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-19T09:13:42.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-19T09:13:...
/* histogram/init.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 * yo...
{ "alphanum_fraction": 0.5792016273, "avg_line_length": 19.665, "ext": "c", "hexsha": "6c2fdf740614b986806fd11dcb67f3ae91b6ea27", "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.000...
#ifndef _amici_TPL_MODELNAME_h #define _amici_TPL_MODELNAME_h #include <cmath> #include <memory> #include <gsl/gsl-lite.hpp> #include "amici/model_ode.h" #include "amici/solver_cvodes.h" #include "sundials/sundials_types.h" namespace amici { class Solver; namespace model_TPL_MODELNAME { extern std::array<const ch...
{ "alphanum_fraction": 0.6008776304, "avg_line_length": 34.8159722222, "ext": "h", "hexsha": "79eec1d51c091c0d3e27f32e291113c47a634035", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-09-20T14:53:43.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-20T14:53:...
#include <viaio/VImage.h> #include <math.h> #include <string.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_math.h> #include "gsl_utils.h" #define ABS(x) ((x) >= 0) ? (x) : -(x) #define MIN(a,b) ((a) < (b)) ? (a) : (b) #define MAX(a,b) ((a) > (b)) ? (a) : (b) #define ROUND(x) (int)(((x) >= 0) ? ((x) + 0.5) : ((x) - ...
{ "alphanum_fraction": 0.5854200719, "avg_line_length": 36.0731132075, "ext": "c", "hexsha": "dbb6cf85e494640d926979be126e7296393252df", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2022-03-22T08:05:46.000Z", "max_forks_repo_forks_event_min_datetime": "2017-09-29T10:33:...
#include <math.h> #include <stdio.h> #include <mpfr.h> #include <petsc.h> #include <stdlib.h> #include <string.h> #include "../ellipsoid/ellipsoid.h" #undef __FUNCT__ #define __FUNCT__ "TestNormalizationMPFR" PetscErrorCode TestNormalizationMPFR() { PetscErrorCode ierr; EllipsoidalSystem e; const PetscInt prec ...
{ "alphanum_fraction": 0.6667932409, "avg_line_length": 29.4245810056, "ext": "c", "hexsha": "ecee96e2d317560cf7c704b855b8122261a7e4dc", "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":...
/* interpolation/test2d.c * * Copyright 2012 David Zaslavsky * * 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.5956062408, "avg_line_length": 41.0718390805, "ext": "c", "hexsha": "547949fea3b6b5619e3610b0c5a123b5a351c946", "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 2020 The Katla Authors * * 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 agr...
{ "alphanum_fraction": 0.6963048499, "avg_line_length": 23.7260273973, "ext": "h", "hexsha": "f30b8231478fa57b772d13be412d05fa7faac4a1", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-08-26T13:32:36.000Z", "max_forks_repo_forks_event_min_datetime": "2020-08-26T13:32:...
#pragma once #include "common/to_do.h" #include "open_file.h" #include "trees/regular_file.h" #include <gsl/span> namespace dogbox::tree { enum class read_caching { none, one_piece }; inline std::ostream &operator<<(std::ostream &out, read_caching const printed) { switch (p...
{ "alphanum_fraction": 0.6192714454, "avg_line_length": 25.7878787879, "ext": "h", "hexsha": "89f71973dee558301335799644e97a143bc371f2", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-08-29T22:01:48.000Z", "max_forks_repo_forks_event_min_datetime": "2019-08-29T22:01:...
/* cdf/tdistinv.c * * Copyright (C) 2007, 2010 Brian Gough * Copyright (C) 2002 Jason H. Stover. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at ...
{ "alphanum_fraction": 0.5079395817, "avg_line_length": 21.5166666667, "ext": "c", "hexsha": "d64e496c8ab71fa0cd9046f00bccd6e50aa1ea6a", "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 __CNN_CONV_H__ #define __CNN_CONV_H__ #include <cblas.h> #include <string.h> #include "cnn_macro.h" #include "cnn_types.h" #ifdef CNN_WITH_CUDA #include <cublas_v2.h> #include <cuda_runtime.h> #include "cnn_init.h" void cnn_map_gpu(float* dst, float* src, int* map, int len); void cnn_map_inv_gpu(float* dst...
{ "alphanum_fraction": 0.5062104523, "avg_line_length": 36.5481798715, "ext": "h", "hexsha": "a70d0ada64716f016554db044f70ff0674b9c160", "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 <time.h> #include <math.h> #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <uuid/uuid.h> #include <openssl/sha.h> #include <gsl/gsl_statistics_double.h> #include "sig.h" #include "pok.h" #include "like.h" #include "bn512.h" #include "utils_like.h" double print_...
{ "alphanum_fraction": 0.6408216076, "avg_line_length": 33.4940411701, "ext": "c", "hexsha": "5fe281ab266510987144c9e29fbd167c4e9c16df", "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 VKST_PLAT_FILE_HANDLE_H #define VKST_PLAT_FILE_HANDLE_H #include <plat/filesystem.h> #include <turf/c/core.h> #include <gsl.h> namespace plat { // A RAII wrapper around the C stdio file handle class file_handle { public: enum class open_modes : uint8_t { read = 0x1, write = 0x2, append = 0x4, ...
{ "alphanum_fraction": 0.6481812761, "avg_line_length": 31.0555555556, "ext": "h", "hexsha": "41af5e62c3700f11abe31e2776a05ef0f84047b4", "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":...
// SPDX-License-Identifier: MIT // The MIT License (MIT) // // Copyright (c) 2014-2018, Institute for Software & Systems Engineering // Copyright (c) 2018-2019, Johannes Leupolz // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the...
{ "alphanum_fraction": 0.7240974464, "avg_line_length": 43.6794871795, "ext": "h", "hexsha": "99d58be28d01f5565a510211c1b28ab745b66650", "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":...
/* ################################################################################## */ /* ### ### */ /* ### sigvel.c ### */ /* ### ...
{ "alphanum_fraction": 0.5391853, "avg_line_length": 30.2646566164, "ext": "c", "hexsha": "1dcfd47828c165c9624b81f0461b3b9aab7ca510", "lang": "C", "max_forks_count": 102, "max_forks_repo_forks_event_max_datetime": "2022-02-09T13:29:43.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-22T10:00:2...
#ifndef buildin_40bf10d0_ba81_4f06_accf_8020d3698607_h #define buildin_40bf10d0_ba81_4f06_accf_8020d3698607_h #include <gslib\type.h> #include <gslib\string.h> #include <rathen\config.h> __rathen_begin__ #define max_opr 4 struct oprnode { int prior; gchar opr[max_opr]; bool unary...
{ "alphanum_fraction": 0.579029734, "avg_line_length": 23.4926470588, "ext": "h", "hexsha": "c930316f919f4b28efd023aa53cc441a47d69755", "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:5...
#ifndef _PARAMETERS_H_ #define _PARAMETERS_H_ #include <string> #include <fstream> #include <iostream> #include <cstdlib> #include "../Headers/voxel.h" #include <math.h> #include <gsl/gsl_rng.h> using namespace std; class Parameters{ //Atributs public: int it; //Contador int nt; // Nombre de passos total int n...
{ "alphanum_fraction": 0.6751313485, "avg_line_length": 15.8611111111, "ext": "h", "hexsha": "dddd2395479b7e1ef657054237c2541972b85fa2", "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":...
// SMCTC: rng.hh // // Copyright Adam Johansen, 2008. // // This file is part of SMCTC. // // SMCTC 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.7332277855, "avg_line_length": 41.081300813, "ext": "h", "hexsha": "964c687e1311ea59857137cbc7f418bec70c11b3", "lang": "C", "max_forks_count": 15, "max_forks_repo_forks_event_max_datetime": "2021-10-08T13:20:35.000Z", "max_forks_repo_forks_event_min_datetime": "2018-05-26T22:34:...
#include "lah.h" #ifdef HAVE_LAPACK #include <lapacke.h> lah_Return lah_eigenValue(lah_mat *P, lah_value *S, lah_mat *Z) { lapack_int res, nEig; lapack_int *isuppz; if (P == NULL || S == NULL || Z == NULL || P->nR != P->nC) { return lahReturnParameterError; } /* allocate space...
{ "alphanum_fraction": 0.576, "avg_line_length": 26.5151515152, "ext": "c", "hexsha": "2ae0701d5f03d68dbf2d53fa60a9362f556b4942", "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": "bdac6...
/* modulo-bias - test for modulo bias in poor random number generation; * the bias does not appear where RAND_MAX is much larger than m. for a * three-sided dice roll, the last RAND_MAX to fail what I think is a * chi-squared 0.05 test is 257; given a system RAND_MAX of a much * larger value, this would likely only...
{ "alphanum_fraction": 0.634027326, "avg_line_length": 33.7802197802, "ext": "c", "hexsha": "3c992a8f5fb9c6eb3f73d2c48ffdf488b071b92e", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-04-17T09:25:48.000Z", "max_forks_repo_forks_event_min_datetime": "2020-01-03T15:58:4...
/* Copyright (C) 2002 M. Marques, A. Castro, A. Rubio, G. Bertsch, M. Oliveira 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, or (at your option) any later version. This pro...
{ "alphanum_fraction": 0.6643147317, "avg_line_length": 25.9113573407, "ext": "c", "hexsha": "49e98c62fe815469c9e0469e272439cb82f941db", "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 <cblas.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define STRASSEN_LOWER_BOUND 128 #define NAN -1 typedef float REAL_NUMBER; typedef struct { int nrows; int ncols; REAL_NUMBER* data; } matrix; matrix read_matrix(const char* file_name) { FILE* fp = fopen(file_name, "r"); ...
{ "alphanum_fraction": 0.5551181102, "avg_line_length": 24.0862068966, "ext": "c", "hexsha": "8275dcdfaeb6fb551d03a9cb1ed68f75a9d6b53b", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-27T08:16:02.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-03T03:01:...
#ifndef CIMPLE_POLYTOPE_LIBRARY_CIMPLE_H #define CIMPLE_POLYTOPE_LIBRARY_CIMPLE_H #include <math.h> #include <gsl/gsl_vector_double.h> #include <gsl/gsl_matrix.h> #include "cimple_gsl_library_extension.h" #include <gurobi_c.h> #include "setoper.h" #include <cdd.h> #include "cimple_auxiliary_functions.h" #include "cimp...
{ "alphanum_fraction": 0.6478070757, "avg_line_length": 27.3442028986, "ext": "h", "hexsha": "c9c3218f7fb77d93ba149cc46b1b00ea9576db6b", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-10-06T12:58:52.000Z", "max_forks_repo_forks_event_min_datetime": "2018-10-06T12:58:...
/*********************************** V1 IMPLEMENTATION USING RANDOM POINTS ************************************/ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include <cblas.h> #include <string.h> #include <mpi.h> #include "../inc/knnring.h" int main(int argc, char *argv[]){ int p_ran...
{ "alphanum_fraction": 0.632629108, "avg_line_length": 27.1914893617, "ext": "c", "hexsha": "9cec664e40376adf3650b51b8b5ffbfd72bfa7f3", "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 <gsl/gsl_randist.h> #include <gsl/gsl_cdf.h> #include "gauss.h" #define SQRT_2_PI 2.506628274631 /* sqrt(2*PI) */ #define LOG_SQRT_2_PI 0.918938533204673 /* log(sqrt(2*PI)) */ gauss_t gauss_init_prec(double prec_mean, double prec){ gauss_t r; r.prec_mean = prec_mean; r.prec ...
{ "alphanum_fraction": 0.6483560545, "avg_line_length": 24.213592233, "ext": "c", "hexsha": "8c314da6c7814b40f3fdf9ecd5036480073d2980", "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 "sparse-matrix.h" #include "sparse-solver.h" #include "sparse-solver-private.h" #include <stdlib.h> #include <string.h> #if HAVE_MKL_LAPACK #include <mkl_lapacke.h> #else #include <lapacke.h> #endif #include <assert.h> void sparse_lapack_init (SparseSolver *solver) { } void sparse_lapack_clear (SparseSolve...
{ "alphanum_fraction": 0.4405422058, "avg_line_length": 22.2328767123, "ext": "c", "hexsha": "113ec1fc9a0bbf5c5de1951def5a2be2f54d59ff", "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_H #define OPENMC_TALLIES_FILTER_H #include <cstdint> #include <string> #include <unordered_map> #include "pugixml.hpp" #include <gsl/gsl> #include "openmc/constants.h" #include "openmc/hdf5_interface.h" #include "openmc/memory.h" #include "openmc/particle.h" #include "openmc/tallies/fil...
{ "alphanum_fraction": 0.5542558487, "avg_line_length": 29.9850746269, "ext": "h", "hexsha": "9620632a340dfe7869b01b85a6afeb14be45eece", "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) 2014, Giuseppe Argentieri <giuseppe.argentieri@ts.infn.it> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above cop...
{ "alphanum_fraction": 0.6682464455, "avg_line_length": 31.2592592593, "ext": "c", "hexsha": "1b7a61376a32a817372151837c09a214ac21e1c5", "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":...
/**************************************************************** * * vpreprocess: FreqFilter.c * * Copyright (C) Max Planck Institute * for Human Cognitive and Brain Sciences, Leipzig * * <lipsia@cbs.mpg.de> * * This program is free software; you can redistribute it and/or * modify it under the terms of the...
{ "alphanum_fraction": 0.5725462304, "avg_line_length": 24.6666666667, "ext": "c", "hexsha": "be09fb4893915bca21886e1e306e09ece8956550", "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:...
/***************************************************************************** * * Rokko: Integrated Interface for libraries of eigenvalue decomposition * * Copyright (C) 2012-2017 by Synge Todo <wistaria@phys.s.u-tokyo.ac.jp> * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICEN...
{ "alphanum_fraction": 0.5529601289, "avg_line_length": 30.2804878049, "ext": "c", "hexsha": "7f301933b0cc60b5c7cf23946fa54d0ffd17f770", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2019-06-01T07:10:01.000Z", "max_forks_repo_forks_event_min_datetime": "2015-06-16T04:22:...
#include <stdio.h> #include <stdlib.h> #include <gsl/gsl_sf.h> // Compute the psi polygamma function int main (int argc, char **argv) { if ( argc != 3 ) { fprintf(stderr,"Incorrect arguments\n"); return 1; } double x1 = atof(argv[1]); double x2 = atof(argv[2]); printf("%g\n",gsl_sf_psi_n(...
{ "alphanum_fraction": 0.601744186, "avg_line_length": 16.380952381, "ext": "c", "hexsha": "e2a38b561c3e71aa94c598970bdfff838bab268b", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-02-10T19:59:53.000Z", "max_forks_repo_forks_event_min_datetime": "2020-06-22T07:53:00...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #include "parmt_config.h" #include "compearth.h" #ifdef PARMT_USE_INTEL #include <mkl.h> #include <mkl_lapacke.h> #include <mkl_cblas.h> #include <ipps.h> #else #include <lapacke.h> #include <cblas.h> #endif #include "is...
{ "alphanum_fraction": 0.4873872215, "avg_line_length": 32.9151515152, "ext": "c", "hexsha": "e0ca78a846528a7986a577caedacb4d947d0fdab", "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_matrix.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_vector.h> #include "time_utility_c.h" /** INS Variables **/ /* Matrix */ gsl_matrix *WEII; gsl_matrix *TBIC; gsl_matrix *TDCI; gsl_matrix *TEIC; gsl_matrix *TBDC; gsl_matrix *TBICI; gsl_matrix *TLI; /* Vector */ gsl_vector *EVBI; gsl_vector *EVBI...
{ "alphanum_fraction": 0.7724358974, "avg_line_length": 14.4742268041, "ext": "c", "hexsha": "36935ff0d69971823939f70fe763ccd202a067e8", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-06-17T03:19:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-05-05T14:59:...
#pragma once #include "text_parser.h" #include "text_renderer.h" #include "terminal_io.h" #include "geometry.h" #include <string> #include <vector> #include <gsl/span> namespace terminal_editor { enum class Color { Black = 30, Red = 31, Green = 32, Yellow = 33, ...
{ "alphanum_fraction": 0.6587357955, "avg_line_length": 32, "ext": "h", "hexsha": "21ded3e9f4c51302b062287709fa21527df6d695", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-12-21T00:37:06.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-21T00:37:06.000Z", ...
#ifndef CTETRA_INPUT_H #define CTETRA_INPUT_H #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> typedef void (*InputFn)(double k[3], gsl_vector *values); typedef void (*UEInputFn)(double k[3], gsl_vector *evalues, gsl_matrix_complex *evecs); #endif // CTETRA_INPUT_H
{ "alphanum_fraction": 0.761732852, "avg_line_length": 23.0833333333, "ext": "h", "hexsha": "0e87fea7af952acb15a24904329ffd2719ea36b9", "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": ...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2017-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.7205825243, "avg_line_length": 33.660130719, "ext": "h", "hexsha": "9e0d59a26965f179b1b98e9ff9fd733970458566", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
#include <stdio.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_linalg.h> #include <time.h> #include <string.h> int main(int argc, char * argv[]) { if (argc != 3 || strcmp(argv[1], "-h") == 0) { printf("Usage: ./gslDeterm N_MATRIX(<=1000) ITERATIONS(~1000)\n"); return 1; } srand(time(NULL)); in...
{ "alphanum_fraction": 0.6132478632, "avg_line_length": 26, "ext": "c", "hexsha": "356a6b79323a2fed3f9debf1089df3d180d726b2", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-02-25T06:53:52.000Z", "max_forks_repo_forks_event_min_datetime": "2016-04-21T08:25:26.000Z", ...
#pragma once #include <gsl.h> #include "TMP_Helper.h" #include "HE_Assert.h" #include "HE_Math.h" #include <type_traits> namespace HE { struct MemoryBlock { void* ptr; size_t length; void* begin() const { return ptr; } void* end() const { return static_cast<char*>(ptr) + length; } }; using Blk = Memory...
{ "alphanum_fraction": 0.7125075896, "avg_line_length": 28.2989690722, "ext": "h", "hexsha": "e74ac1243123080de72845b6ccff2b976ed9c38e", "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 Huy Vo on 2019-06-29. // #ifndef PACMENSL_SRC_PETSCWRAP_PETSCWRAP_H_ #define PACMENSL_SRC_PETSCWRAP_PETSCWRAP_H_ #include <petsc.h> #include <iostream> #include "Sys.h" namespace pacmensl { template<typename PetscT> class Petsc { protected: PetscT dat = nullptr; int Destroy(PetscT *obj); publ...
{ "alphanum_fraction": 0.6837549933, "avg_line_length": 23.8412698413, "ext": "h", "hexsha": "7299fc51d38e1e470d968ae1df82f346357e1e77", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* ----------------------------------------------------------------------------- * Copyright 2021 Jonathan Haigh * SPDX-License-Identifier: MIT * ---------------------------------------------------------------------------*/ #ifndef SQ_INCLUDE_GUARD_results_Filter_h_ #define SQ_INCLUDE_GUARD_results_Filter_h_ #incl...
{ "alphanum_fraction": 0.5982824427, "avg_line_length": 24.3720930233, "ext": "h", "hexsha": "1bc82ce14f43ba0eb99087560c7b0bc8b98af82e", "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 oposim_fns.c \brief Funciones auxiliares */ #include <stdio.h> #include <gsl/gsl_rng.h> #include <time.h> #include <stdlib.h> #include "oposim.h" static gsl_rng *r = NULL; /**< \a r es el generador de números aleatorios */ /** \fn void random_init(char opc) \brief Inicializador del generador de númer...
{ "alphanum_fraction": 0.6478114478, "avg_line_length": 22, "ext": "c", "hexsha": "c5b402a378b43be0367aaa228986153d037d2911", "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": "4d816ed5e...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_errno.h> #include "ccl.h" //Spline creator //n -> number of points //x -> x-axis //y -> f(x)-axis //y0,yf -> values of f(x) to use beyond the interpolation range ccl_f1d_t *ccl_f1d_t_new(int n,double *x,double *y,double y0,double...
{ "alphanum_fraction": 0.5880088009, "avg_line_length": 27.1343283582, "ext": "c", "hexsha": "96697cbbaf312e3d387cc7caed458c65b8574e58", "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...
/* gsl_histogram2d_calloc_range.c * Copyright (C) 2000 Simone Piccardi * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 3 of the * License, or (at your option) any later v...
{ "alphanum_fraction": 0.5430672269, "avg_line_length": 24.8888888889, "ext": "c", "hexsha": "6f14d8784e84ff2b4b8ee36e7a1410ea10df3118", "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 <gsl/gsl_errno.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_odeiv2.h> int func (double t, const double y[], double f[], void *params) { double mu = *(double *)params; f[0] = y[1]; f[1] = -y[0] - mu*y[1]*(y[0]*y[0] - 1); return GSL_SUCCESS; } int jac (double t, const doubl...
{ "alphanum_fraction": 0.5710037175, "avg_line_length": 21.3492063492, "ext": "c", "hexsha": "5a336515d2a2bc905590c020c56bf663668944d1", "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:...