Search is not available for this dataset
text
string
meta
dict
/* * utils.h * * Created on: Dec 14, 2016 * Author: hazem */ #include <cublas_v2.h> #include <curand.h> #include <stdlib.h> #include <stdio.h> #include "papi.h" #include <cblas.h> #include <pthread.h> #include <sys/mman.h> #ifndef UTILS_H_ #define UTILS_H_ float convert_to_sec(long long time_usec); float ca...
{ "alphanum_fraction": 0.7172774869, "avg_line_length": 23.875, "ext": "h", "hexsha": "8e93fc443ccd38a850b57ef751c98a3055c50d34", "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": "809bd...
// Server settings and option parsing #ifndef _SETTINGS_H #define _SETTINGS_H #include <gsl/gsl_rng.h> #include <stdbool.h> // Settings the server has typedef struct _settings { int verbose; int threads; int tcpport; double dist_arg1; // normal distribution mean double dist_arg2; // normal distribution stddev b...
{ "alphanum_fraction": 0.7552742616, "avg_line_length": 18.96, "ext": "h", "hexsha": "cc36a72f0791afceaa3d06f49cbdbf2c742e8f92", "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": "2db588...
#pragma once #include "BoundingRegion.h" #include "Ellipsoid.h" #include "S2CellID.h" #include <CesiumGeometry/CullingResult.h> #include <CesiumGeometry/Plane.h> #include <glm/vec3.hpp> #include <gsl/span> #include <array> #include <string_view> namespace CesiumGeospatial { /** * A tile bounding volume specified...
{ "alphanum_fraction": 0.7072803851, "avg_line_length": 28.9043478261, "ext": "h", "hexsha": "e8978902c7d35d9a719ae43add22260cb78da303", "lang": "C", "max_forks_count": 66, "max_forks_repo_forks_event_max_datetime": "2022-03-31T13:38:41.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-30T15:14...
#pragma once #include <d3d11.h> #include <gsl\gsl> #include "Rectangle.h" namespace Library { class TextureHelper final { public: static Point GetTextureSize(gsl::not_null<ID3D11Texture2D*> texture); static Rectangle GetTextureBounds(gsl::not_null<ID3D11Texture2D*> texture); static std::uint32_t BitsPerPixel...
{ "alphanum_fraction": 0.7508090615, "avg_line_length": 26.8695652174, "ext": "h", "hexsha": "03c372930da68d0a5b3bd80407933ca1f9a84800", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* specfunc/test_legendre.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 * you...
{ "alphanum_fraction": 0.7152636234, "avg_line_length": 75.1531791908, "ext": "c", "hexsha": "d317f5c6b37a0018753a5739cd7042f35e5a8d96", "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 PaddlePaddle 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
{ "alphanum_fraction": 0.7302631579, "avg_line_length": 31.4482758621, "ext": "h", "hexsha": "c63ad89e46d2c187c7e6fe6b2fe73fbbed5f4044", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2019-11-01T22:28:27.000Z", "max_forks_repo_forks_event_min_datetime": "2018-03-19T22:38:...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_roots.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_sf_expint.h> #include "ccl.h" static double einasto_norm_integrand(double x, void *params) { double alpha = *((double *)(params)); return x*x*exp(-2*(pow...
{ "alphanum_fraction": 0.663786897, "avg_line_length": 26.4571428571, "ext": "c", "hexsha": "482ce28f5d0fab28ddf1b0ab736ee8325407df0f", "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:...
#ifndef _HistWidget_H #define _HistWidget_H #include <QWidget> #include <gsl/gsl_histogram.h> #include "src_config.h" class QwtPlot; class _HIST_EXPORT_ HistWidget : public QWidget { public: HistWidget (double xmin, double xmax, double ymin, double ymax, QWidget * parent=0, Qt::WindowFlags flags=0); virtua...
{ "alphanum_fraction": 0.6982591876, "avg_line_length": 16.6774193548, "ext": "h", "hexsha": "564083d016bc16e6231b83eccf79bddc9c942f71", "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) for linear regression. 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. Defining #DEBUG_M...
{ "alphanum_fraction": 0.6991361335, "avg_line_length": 29.4473684211, "ext": "c", "hexsha": "710b08b3d975e8bb4988b219b1b13a7b3eadb0f1", "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 #ifndef __linux__ #error We only support Linux #endif #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #ifdef __FAAS_CPP_WORKER #if !defined(__FAAS_USED_IN_BINDING) && !defined(__FAAS_CPP_WORKER_SRC) #error Need the source file to have __FAAS_USED_IN_BINDING defined #endif #endif #ifdef __FAAS_NODE_ADDON...
{ "alphanum_fraction": 0.7800075729, "avg_line_length": 23.1666666667, "ext": "h", "hexsha": "c163afb3ee34653a6783fde0fddd55e0c58298af", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2022-02-09T20:54:11.000Z", "max_forks_repo_forks_event_min_datetime": "2021-09-02T13:11:...
/** * @file spectralestimator.h * @brief Speech recognition front end. * @author John McDonough, Matthias Woelfel, Kenichi Kumatani */ #ifndef SPECTRALESTIMATOR_H #define SPECTRALESTIMATOR_H #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_complex_math.h> #include <gsl/gsl_complex.h> #inc...
{ "alphanum_fraction": 0.6939834025, "avg_line_length": 33.9095477387, "ext": "h", "hexsha": "34005d8792bec80978e1516c091a121b19870a40", "lang": "C", "max_forks_count": 68, "max_forks_repo_forks_event_max_datetime": "2021-11-17T09:33:10.000Z", "max_forks_repo_forks_event_min_datetime": "2019-01-08T06:33...
#include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_math.h> #include "allvars.h" #include "proto.h" #ifdef COSMIC_RAYS #include "cosmic_rays.h" #endif #ifdef CS_MODEL #include "cs_metals.h" #endif /*! Structure for communication during the density computati...
{ "alphanum_fraction": 0.6163847412, "avg_line_length": 27.0311594203, "ext": "c", "hexsha": "b29cf80dee7b271782e43c20b6492467ff3b98cd", "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 DART_COMMON_H #define DART_COMMON_H // Automatically detect libraries if possible. #if defined(__has_include) # if !defined(DART_HAS_RAPIDJSON) # define DART_HAS_RAPIDJSON __has_include(<rapidjson/reader.h>) && __has_include(<rapidjson/writer.h>) # endif # ifndef DART_HAS_YAML # define DART_HAS_YAML __has_...
{ "alphanum_fraction": 0.636005442, "avg_line_length": 34.7220858896, "ext": "h", "hexsha": "7527ef370476399542e836160b4100e7ff950d59", "lang": "C", "max_forks_count": 10, "max_forks_repo_forks_event_max_datetime": "2020-06-11T11:05:17.000Z", "max_forks_repo_forks_event_min_datetime": "2019-05-11T08:05:...
/// FicTrac http://rjdmoore.net/fictrac/ /// \file NLoptFunc.h /// \brief Wrapper class for NLopt. /// \author Saul Thurrowgood, Richard Moore /// \copyright CC BY-NC-SA 3.0 #pragma once #include <nlopt.h> #include <vector> /// /// C++ wrapper of the NLopt library for nonlinear optimisation, v2.2+....
{ "alphanum_fraction": 0.6870229008, "avg_line_length": 22.0631578947, "ext": "h", "hexsha": "e7c92b4650658ada47d9542507a31c0dc100b01c", "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 <time.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_cblas.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_randist.h> #define TSSIZE 10 #define WL 10000 typedef struct tagInterpolant{ gsl_matr...
{ "alphanum_fraction": 0.6866927593, "avg_line_length": 31.7391304348, "ext": "c", "hexsha": "bd536ce9d2cb09d9b8085a5827e34f873d132388", "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.h - Matrix class for mruby */ /* Copyright (C) 2015 Paolo Bosetti */ /* paolo...
{ "alphanum_fraction": 0.4638922889, "avg_line_length": 40.85, "ext": "h", "hexsha": "d9d8cb637a964715723978128b623321e0c4c33c", "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": "0961ef...
/* Copyright (C) 2015 Atsushi Togo */ /* All rights reserved. */ /* This file is part of phonopy. */ /* 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 abo...
{ "alphanum_fraction": 0.6558129827, "avg_line_length": 30.5159235669, "ext": "c", "hexsha": "888c30a4cf26a4c5f98a66b9ec321fb432d4661f", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2019-01-30T08:36:46.000Z", "max_forks_repo_forks_event_min_datetime": "2018-08-02T13:53:...
#ifndef SEARCHPATTERNBASE_HHHHH #define SEARCHPATTERNBASE_HHHHH #include "../../SigScannerMemoryData.h" #include <vector> #include <string> #include <memory> #include <gsl/span> namespace MPSig { namespace detail { class SearchPatternBase { public: virtual ~SearchPatternBase() = defa...
{ "alphanum_fraction": 0.6788990826, "avg_line_length": 40.5581395349, "ext": "h", "hexsha": "f2d6371678a95bf6e8d111ebace0093545819655", "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.6416687224, "avg_line_length": 41.8383027523, "ext": "c", "hexsha": "74449ba60667dca412a76ec8b162cacbb104dcea", "lang": "C", "max_forks_count": 68, "max_forks_repo_forks_event_max_datetime": "2021-08-25T04:54:26.000Z", "max_forks_repo_forks_event_min_datetime": "2015-12-14T21:57...
#pragma once #include <bgfx/bgfx.h> #include <napi/napi.h> #include <gsl/gsl> #include <map> #include <optional> namespace Babylon { class VertexBuffer final { public: VertexBuffer(gsl::span<uint8_t> bytes, bool dynamic); ~VertexBuffer(); void Dispose(); void Update(Napi:...
{ "alphanum_fraction": 0.6536764706, "avg_line_length": 30.2222222222, "ext": "h", "hexsha": "59f97bd75119f382905128a5a823a3305b912168", "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 testing_sposv.c * * PLASMA testing routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Bilel Hadri, Hatem Ltaief * @date 2010-11-15 * @generated s Tue Jan 7 11:45:18 2014 * **/ #in...
{ "alphanum_fraction": 0.4891743562, "avg_line_length": 33.5647773279, "ext": "c", "hexsha": "3eb87cf08c347b9c601f0e9cfe058923674a7359", "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 PyGSL_TRANSFORM_TYPES_H #define PyGSL_TRANSFORM_TYPES_H 1 /* * All different transforms are handled by only two functions. * PyGSL_transform_ * and * PyGSL_transform_2d_. * * This was done as similar functionallity is needed by all the transforms. * Copy the input data (transforms are ofte...
{ "alphanum_fraction": 0.7283253727, "avg_line_length": 28.6680497925, "ext": "h", "hexsha": "56be3626a51b3a0c5015704237413ce61eff325c", "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:...
#pragma once #include <gsl/span> #include <array> #include "halley/core/api/audio_api.h" namespace Halley { using AudioSourceData = std::array<gsl::span<AudioConfig::SampleFormat>, AudioConfig::maxChannels>; class AudioSource { public: virtual ~AudioSource() {} virtual size_t getNumberOfChannels() const = 0;...
{ "alphanum_fraction": 0.7349665924, "avg_line_length": 22.45, "ext": "h", "hexsha": "22aa245b14a782a7ee9246444d2e029dfdbdc461", "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...
/* * C version of Diffusive Nested Sampling (DNest4) by Brendon J. Brewer * * Yan-Rong Li, liyanrong@mail.ihep.ac.cn * Jun 30, 2016 * */ #ifndef _DNESTVARS_H #define _DNESTVARS_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <stdbool...
{ "alphanum_fraction": 0.7569193742, "avg_line_length": 30.7777777778, "ext": "h", "hexsha": "a884224bb55920876f8a7d743f46f021f8c93978", "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 CWANNIER_PARTIALDOS_VALUES_H #define CWANNIER_PARTIALDOS_VALUES_H #include <gsl/gsl_permutation.h> #include <gsl/gsl_permute_vector.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_sort_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_eigen.h> #include "HTightBinding.h" #include "ctetra/partial.h" doub...
{ "alphanum_fraction": 0.7940663176, "avg_line_length": 31.8333333333, "ext": "h", "hexsha": "2658a51e8cb5b2d0fb2aefbae68a4ce084ad18ae", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* specfunc/hermite.c * * Copyright (C) 2011, 2012, 2013, 2014, 2019 Konrad Griessinger (konradg(at)gmx.net) * Copyright (C) 2019 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 Fou...
{ "alphanum_fraction": 0.59057744, "avg_line_length": 27.15532382, "ext": "c", "hexsha": "d515331c79792b8dedf579a6d11a02d563f6ee86", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:57.0...
/** * @file bblas_daccuracy.c * * @brief BBLAS accuracy tests for double_Complex precision. * * BBLAS is a software package provided by Univ. of Manchester, * Univ. of Tennessee. * * @version 1.0.0 * @author Samuel D. Relton * @author Pedro V. Lara * @author Mawussi Zounon * @date 2016-02-20 * ...
{ "alphanum_fraction": 0.6259314456, "avg_line_length": 26.2669039146, "ext": "c", "hexsha": "7bfab0c3276ab0b46749caa1a3b143b4d94238f5", "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":...
/* combination/combination.c * based on permutation/permutation.c by Brian Gough * * Copyright (C) 2001 Szymon Jaroszewicz * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either versi...
{ "alphanum_fraction": 0.5825757576, "avg_line_length": 20.8421052632, "ext": "c", "hexsha": "6f8c817bd3b864c7458fb785b61e0627fb05968f", "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...
/* * 1dcol.c * * MPI code for performing parallel dense matrix-vector multiplication using 1D * columnwise partitioning. * * Written by cetinsamet -*- cetin.samet@metu.edu.tr * April, 2019 * */ #include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <cblas.h> int main(int argc, char *argv[...
{ "alphanum_fraction": 0.5840965862, "avg_line_length": 24.2626262626, "ext": "c", "hexsha": "29eb27ba2c8352448640ee8bf577c915dc13c7af", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2019-12-04T15:06:49.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-07T20:29:...
#include <gsl/gsl_math.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_multifit.h> int main() { const size_t n = 1000; /* number of observations */ const size_t p = 2; /* number of model parameters */ size_t i; gsl_rng *r = g...
{ "alphanum_fraction": 0.5952334056, "avg_line_length": 36.0070921986, "ext": "c", "hexsha": "72082067f3a0e799aa8e51e73eba83cd330e7149", "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:...
/* To execute: * ./driver <n> # for some positive integer n * */ #include "q_incs.h" #include <lapacke.h> #include "matrix_helpers.h" #include "positive_solver.h" /* testing and benchmarking for AxEqualsB solver. * generates a random matrix A, and tests the positive semidefinite solver * by running iton AtA and te...
{ "alphanum_fraction": 0.6280193237, "avg_line_length": 30.6859296482, "ext": "c", "hexsha": "94f54ea46b57579d2dbaf5176b12b0f6aee0e2d2", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-05-14T22:34:13.000Z", "max_forks_repo_forks_event_min_datetime": "2015-05-14T22:34:...
#pragma once #include <bitset> #include <type_traits> #include <cuda/define_specifiers.hpp> #include <gsl-lite/gsl-lite.hpp> namespace thrustshift { namespace detail { // to be compiler independent std::bitset is used here template <typename I> int count_leading_zeros_cpu(I i) { std::bitset<sizeof(I) * 8> bs(i)...
{ "alphanum_fraction": 0.7055214724, "avg_line_length": 17.7818181818, "ext": "h", "hexsha": "51c6ce93846d2fa40c7d7f0c0ab169da5a6ef797", "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 <stdint.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include "nn_math.h" #include "nn_utils.h" typedef struct { size_t size; uintmax_t *layers; gsl_vector **biases; gsl_matrix **weights; } nn_network; nn_network * nn_network_create(cons...
{ "alphanum_fraction": 0.7739361702, "avg_line_length": 28.9230769231, "ext": "h", "hexsha": "7f3507d789d320a005f86d619d70d142663c1ce3", "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":...
/* ** t-tests ** ** G.Lohmann, Jan 2017 */ #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <gsl/gsl_cdf.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #define TINY 1.0e-10 #define ABS(x) ((x) > 0 ? (x) : -(x)) #def...
{ "alphanum_fraction": 0.5579893288, "avg_line_length": 18.546875, "ext": "c", "hexsha": "62d9c72ad6adf058406b1df82171833a3d03f0a3", "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:53.0...
#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_swap (void) { const double flteps = 1e-4, dbleps = 1e-6; { int N = 1; float X[] = { 0.539f }; int incX = 1; float Y[] = { -0.262f }; int incY = -1; float expe...
{ "alphanum_fraction": 0.4741272251, "avg_line_length": 23.2275641026, "ext": "c", "hexsha": "accf822acac4e2f18bbae497eb6f1b7f98badb90", "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...
// // Created by robin on 2018/9/1. // Copyright (c) 2018 Robin. All rights reserved. // #pragma once #include <ostream> #include <algorithm> #include <vector> #include <gsl/gsl> #include "arithmetic.h" namespace satz::gf2::v2 { /// @brief Polynomial over GF(2). class Polynomial { public: using int_type = int; ...
{ "alphanum_fraction": 0.6818950931, "avg_line_length": 31.3409090909, "ext": "h", "hexsha": "feffca0e53e62b13af13400548b118b9d0fb271b", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-03-26T11:41:15.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-26T11:41:...
#ifndef INCLUDED_TELEPATH_BLAS_2_GEMV_H #define INCLUDED_TELEPATH_BLAS_2_GEMV_H #include <cblas.h> #include <complex> namespace telepath{ template< typename T > void gemv( CBLAS_ORDER order, CBLAS_TRANSPOSE trans, std::size_t m, std::size_t n, T alpha, const T* a, std::size_t lda, const T* x, ...
{ "alphanum_fraction": 0.6137846656, "avg_line_length": 40.1967213115, "ext": "h", "hexsha": "a8f04b0f1e2b92c09325d6840d994b95bd27f166", "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.6773727005, "avg_line_length": 49.6036745407, "ext": "c", "hexsha": "340eaabc5f6f37f467dd9f61739a4afc228828e6", "lang": "C", "max_forks_count": 19, "max_forks_repo_forks_event_max_datetime": "2019-11-01T06:45:47.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-16T05:51...
#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 R_vir_NFW(double M_vir, double z, int mode, cosmo_info **cosmo) { double c_vir; double R_vir; set_NFW_params(M_vir...
{ "alphanum_fraction": 0.700265252, "avg_line_length": 23.5625, "ext": "c", "hexsha": "adeecc2e84e386d2348aa9ae9e2888fdb1b7c40d", "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:40.000Z...
/* * Gsl_blas_dgemv: test gsl_blas_dgemv (matrix . vector) * * Copyright (c) 2012 Jérémie Decock * * Required: GSL library (libgsl0-dev) * Usage: gcc gsl_blas_dgemv.c -lgsl -lgslcblas -lm * or: gcc gsl_blas_dgemv.c $(pkg-config --libs gsl) */ #include <gsl/gsl_blas.h> #include <gsl/gsl_vector.h> #include <...
{ "alphanum_fraction": 0.6279683377, "avg_line_length": 21.6571428571, "ext": "c", "hexsha": "9b7012b02c02ebb1bb1507ffc3448894f30ec9f7", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-01-04T15:59:45.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-31T09:48:...
/** * * @file testing_zgemm.c * * PLASMA testing routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Emmanuel Agullo * @author Mathieu Faverge * @date 2010-11-15 * @precisions normal z -> c d s *...
{ "alphanum_fraction": 0.5404616609, "avg_line_length": 36.0669856459, "ext": "c", "hexsha": "165503a2b08e2ad8c58a7a263ec370bfa8139723", "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 AMICI_VECTOR_H #define AMICI_VECTOR_H #include <vector> #include <type_traits> #include <amici/exception.h> #include <nvector/nvector_serial.h> #include <gsl/gsl-lite.hpp> namespace amici { /** Since const N_Vector is not what we want */ using const_N_Vector = std::add_const<typename std::remove_point...
{ "alphanum_fraction": 0.6279294516, "avg_line_length": 25.0848484848, "ext": "h", "hexsha": "b49a143d60733b22edcdf7f7471c941438d7e314", "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 BAYESIAN_MERGE_H #define BAYESIAN_MERGE_H #include <vector> #include <multi/GaussianDistribution.h> #include <gsl/gsl_linalg.h> using namespace std; namespace openworld { class BayesianMerge { public: // modifies means in-place to assure maximum likelihood static void mergeGaussianHierarchy(vecto...
{ "alphanum_fraction": 0.6126714566, "avg_line_length": 28.8867924528, "ext": "h", "hexsha": "afaba62567f9b9374ec8de2a2e49207435706c2d", "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 2008-2014 NVIDIA 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...
{ "alphanum_fraction": 0.3526011561, "avg_line_length": 60.9501779359, "ext": "h", "hexsha": "47f25bc0cd22c897f9ab62469681440c3d5e8d1a", "lang": "C", "max_forks_count": 106, "max_forks_repo_forks_event_max_datetime": "2022-03-29T13:55:53.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-27T19:3...
///////////////// //example25.5.c ///////////////// #include <stdio.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_odeiv.h> #include <math.h> typedef struct{ double g;//gravity double M;//mass of the car double m;//mass of the load double r;//length of the rope double C;//damping...
{ "alphanum_fraction": 0.5767268716, "avg_line_length": 28.1124031008, "ext": "c", "hexsha": "3efe09b76ecbcd7c594bd8f06c3c08cf1f4e62df", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-12-01T00:54:18.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-01T00:54:...
/** @file */ #ifndef __CCL_UTILS_H_INCLUDED__ #define __CCL_UTILS_H_INCLUDED__ #include <gsl/gsl_spline.h> #define CCL_MIN(a, b) (((a) < (b)) ? (a) : (b)) #define CCL_MAX(a, b) (((a) > (b)) ? (a) : (b)) CCL_BEGIN_DECLS /** * Compute bin edges of N-1 linearly spaced bins on the interval [xmin,xmax] * @param xmin...
{ "alphanum_fraction": 0.7222562845, "avg_line_length": 33.9791666667, "ext": "h", "hexsha": "9b74e4ad7a7f124f539f54c7232adf9f45417c89", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-02-10T07:35:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-02-10T07:35:...
/* histogram/get2d.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.6435185185, "avg_line_length": 23.2941176471, "ext": "c", "hexsha": "88a08e2917f93b3fd9e785c3b393c0e6306fbe80", "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.6536185708, "avg_line_length": 33.9742268041, "ext": "h", "hexsha": "d3e8582e32f58d4fb534141a328c990b670934fa", "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:...
/* rng/r250.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.6588733022, "avg_line_length": 26.573964497, "ext": "c", "hexsha": "aa25e4b27a7b30b4059bea513701c111e07b8f80", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:5...
/* linalg/ql.c * * Copyright (C) 2019 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. * * Th...
{ "alphanum_fraction": 0.5977757183, "avg_line_length": 31.0057471264, "ext": "c", "hexsha": "0fcabb0ec953cd30e236ceefa192b3e0c274542d", "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:...
/*==================BEGIN ASF AUTO-GENERATED DOCUMENTATION==================*/ /* ABOUT EDITING THIS DOCUMENTATION: If you wish to edit the documentation for this program, you need to change the following defines. For the short ones (like ASF_NAME_STRING) this is no big deal. However, for some of the longer ones, such ...
{ "alphanum_fraction": 0.6639760837, "avg_line_length": 34.9651567944, "ext": "c", "hexsha": "8c26ce6ff5373d076bc55bb78d0780de25761154", "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:...
/* multifit_nlin/gsl_multifit_nlin.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, o...
{ "alphanum_fraction": 0.6235801708, "avg_line_length": 41.1485507246, "ext": "h", "hexsha": "b0dd06e796b1785d2b5f9fb42bdde1ca8ac0aaea", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2022-01-04T19:22:30.000Z", "max_forks_repo_forks_event_min_datetime": "2020-06-27T11:11:...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <gsl/gsl_matrix_double.h> #include <gsl/gsl_linalg.h> #include "../include/run_svd.h" int main(void) { FILE *fp = fopen("./data/my_data.csv", "r"); if (fp == NULL) { perror("Unable to open file!"); exit(1); } int m = 4; int n = 5;...
{ "alphanum_fraction": 0.5340253749, "avg_line_length": 17, "ext": "c", "hexsha": "abf2bfbe9b406bf294c2e5d08cb2af19937923e9", "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": "c1b9f0a0e...
#ifndef S3D_CV_DISPARITY_DISPARITY_ANALYZER_STAN_H #define S3D_CV_DISPARITY_DISPARITY_ANALYZER_STAN_H #include <s3d/disparity/disparity_analyzer.h> #include "s3d/cv/features/match_finder_surf.h" #include "s3d/multiview/sampson_distance_function.h" #include "s3d/multiview/stan_fundamental_matrix_solver.h" #include "s3...
{ "alphanum_fraction": 0.728492502, "avg_line_length": 31.675, "ext": "h", "hexsha": "ed932d220a796a0d9a3b755edde920e4adae9744", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2021-05-18T16:22:03.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-13T21:51:09.000Z"...
/* * This file is part of the ProVANT simulator project. * Licensed under the terms of the MIT open source license. More details at * https://github.com/Guiraffo/ProVANT-Simulator/blob/master/LICENSE.md */ /** * @file sdf_parser.h * @brief This file contains the declaration of the SDFParser class. * * @author J...
{ "alphanum_fraction": 0.7039153856, "avg_line_length": 39.8481675393, "ext": "h", "hexsha": "40478c4979082a102eb2e3b4e0ce86b67de5fba0", "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":...
/* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 */ #ifndef MAGMA_TYPES_H #define MAGMA_TYPES_H #include <stdint.h> #include <assert.h> // for backwards compatability #ifdef HAVE_clAmdBlas #define ...
{ "alphanum_fraction": 0.6217909973, "avg_line_length": 36.6375291375, "ext": "h", "hexsha": "aab2929f067d83f8557c782b41dc7137b526c33d", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-03-27T00:50:27.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-04T13:23:...
#pragma once #include <gsl/span> namespace miner { template<class T, std::ptrdiff_t Extent = gsl::dynamic_extent> using span = gsl::span<T, Extent>; template<std::ptrdiff_t Extent = gsl::dynamic_extent> using ByteSpan = span<uint8_t, Extent>; template<std::ptrdiff_t Extent = gsl::dynamic_ex...
{ "alphanum_fraction": 0.6931216931, "avg_line_length": 25.2, "ext": "h", "hexsha": "bea4b89e75728338eb68c475579ea41bcaf8842a", "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": "4928040...
/* 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.6860420014, "avg_line_length": 32.4003590664, "ext": "h", "hexsha": "f2a16d84033022745de7d811fcc27af341309846", "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...
#include <gsl/gsl_math.h> #include <gsl/gsl_cblas.h> #include "cblas.h" void cblas_ccopy (const int N, const void *X, const int incX, void *Y, const int incY) { #define BASE float #include "source_copy_c.h" #undef BASE }
{ "alphanum_fraction": 0.6808510638, "avg_line_length": 18.0769230769, "ext": "c", "hexsha": "c4716dd0968d7ae5b8415a28b830203238cd0957", "lang": "C", "max_forks_count": 173, "max_forks_repo_forks_event_max_datetime": "2022-03-27T07:27:04.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-08T18:0...
/** * @file iftCommon.h * @brief Common definitions and functions to remaining modules. */ #ifndef IFT_COMMON_H #define IFT_COMMON_H #ifdef __cplusplus extern "C" { #endif #include <stdarg.h> #include <assert.h> #include <cblas.h> #include <ctype.h> #include <dirent.h> #include <float.h> #include <libgen.h> #incl...
{ "alphanum_fraction": 0.6921803302, "avg_line_length": 27.3821243523, "ext": "h", "hexsha": "c3c8ed3a7450801acac310db25c67a87ef2d2b89", "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 IFT_COMMON_H_ #define IFT_COMMON_H_ #include <omp.h> #include <stdlib.h> #include <stdio.h> #if !defined(__APPLE__) #include <malloc.h> #endif #include <math.h> #include <string.h> #include <limits.h> #include <float.h> #include <sys/time.h> #include <time.h> #include <unistd.h> #include <assert.h> #include <...
{ "alphanum_fraction": 0.7062850883, "avg_line_length": 23.8660130719, "ext": "h", "hexsha": "34dc8eda690326abe44c5894296ccfb73e44d121", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-20T22:53:06.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-20T22:53:...
#pragma once #include <nextalign/nextalign.h> #include <gsl/string_span> #include <string> #include "../nextalign_private.h" #include "../utils/to_underlying.h" using NucleotideSequenceSpan = SequenceSpan<Nucleotide>; Nucleotide toNucleotide(char nuc); char nucToChar(Nucleotide nuc); inline std::ostream& operato...
{ "alphanum_fraction": 0.7505720824, "avg_line_length": 20.8095238095, "ext": "h", "hexsha": "c52dbaf93398e7fd4dc3a00c1b0fb403ee7748d6", "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 QR_H #define QR_H #include <gsl/gsl_matrix.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_multimin.h> /** * Computes, stores, and maintains a QR decomposition of a gsl_matrix. * * A matrix-pointer is passed to the QR on construction. This pointer is kept through * the life-t...
{ "alphanum_fraction": 0.6965572458, "avg_line_length": 23.1296296296, "ext": "h", "hexsha": "ba59678b86199dd3f7f4c664f88d183e41cbecf3", "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_vector.h> #include "BooleanNodes.h" #include "BooleanDAG.h" #include <map> #include "SymbolicEvaluator.h" #include "ConflictGenerator.h" #include <iostream> #include "Util.h" class SmartConflictGenerator: public ConflictGenerator { SymbolicEvaluator* eval; map<int, int>& imap; Boole...
{ "alphanum_fraction": 0.6156724631, "avg_line_length": 30.6959459459, "ext": "h", "hexsha": "026c62ead6c9da2ba25c134f5ddaea8af6ac1ae5", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-12-06T01:45:04.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-04T20:47:...
/* statistics/gsl_statistics_long_double.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Jim Davies, 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 th...
{ "alphanum_fraction": 0.8030530189, "avg_line_length": 77.2315789474, "ext": "h", "hexsha": "74ca27e819cbb51a71f35fac3da0c39817ce1010", "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 <time.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <cblas.h> int max(int x, int y){ if(x > y) return x; else return y; } void PrintMatrix(float* pMatrix, const size_t nR, const size_t nC, const CBLAS_ORDER Order) { unsigned int i, j; if (Order == Cblas...
{ "alphanum_fraction": 0.4986623863, "avg_line_length": 29.203125, "ext": "c", "hexsha": "8d87c1d2b11d0710ae74838b6cccd194e1dd081c", "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": "9f...
/* rng/taus113.c * Copyright (C) 2002 Atakan Gurkan * Based on the file taus.c which has the notice * 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 publ...
{ "alphanum_fraction": 0.6358507734, "avg_line_length": 32.5147928994, "ext": "c", "hexsha": "04da6a893f3928e7a2c67215eaa69180b0f8c937", "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...
// tcc -lgsl -lglut -lGL -run gsl_opengl.c // clang -lgsl -framework GLUT -framework OpenGL gsl_opengl.c #include <gsl/gsl_qrng.h> #include <GL/glut.h> // #pragma comment(lib,"glut32") // #pragma comment(lib,"gsl") // #pragma comment(lib,"opengl32") // #pragma comment(lib,"freeglut") void glutInitialize() { glCle...
{ "alphanum_fraction": 0.6485884101, "avg_line_length": 24.9259259259, "ext": "c", "hexsha": "1ee76ee421ad4339ff940dbadeb6717de8ef7af9", "lang": "C", "max_forks_count": 29, "max_forks_repo_forks_event_max_datetime": "2021-12-24T01:51:03.000Z", "max_forks_repo_forks_event_min_datetime": "2018-04-10T13:25...
/* ** compute edge densities ** ** G.Lohmann, Feb 2015 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_sort.h> #include <gsl/gs...
{ "alphanum_fraction": 0.6179802075, "avg_line_length": 27.9566666667, "ext": "c", "hexsha": "825dd4f856f104dc11350345c52ad4745330c3b0", "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) 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.6422151241, "avg_line_length": 34.0810126582, "ext": "h", "hexsha": "b356ee90ff90ec1ce970341296a7eb6797026029", "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:...
/* ----------------------------------------------------------------------------- * Copyright 2021 Jonathan Haigh * SPDX-License-Identifier: MIT * ---------------------------------------------------------------------------*/ #ifndef SQ_INCLUDE_GUARD_core_test_Primitive_test_util_h_ #define SQ_INCLUDE_GUARD_core_test...
{ "alphanum_fraction": 0.6856561546, "avg_line_length": 32.7666666667, "ext": "h", "hexsha": "85e96e0580364d763a8dfec4bb1d2ad7ad7c3eaa", "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 <string.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_interp.h> #include <gsl/gsl_min.h> #include <gsl/gsl_roots.h> #include <gsl/gsl_spline.h> // #include "mex.h" #ifndef verbose #define verbose 0 #endif /* $ ./fwhm > interp.dat ...
{ "alphanum_fraction": 0.5703271285, "avg_line_length": 22.4727722772, "ext": "c", "hexsha": "77ed09f76abace455214f53e8f180356f121f333", "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_interp.h> #include <gsl/gsl_spline.h> #include "ccl.h" /* BCM correction */ // See Schneider & Teyssier (2015) for details of the model. double ccl_bcm_model_fka(ccl_cosmology * cosmo, double k, double a, int *status) { double fkz; double...
{ "alphanum_fraction": 0.5235160558, "avg_line_length": 25.9075630252, "ext": "c", "hexsha": "b442cfe194715fbd2d053de07754b47f0f4052b1", "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...
/* ODE: a program to get optime Runge-Kutta and multi-steps methods. Copyright 2011-2019, Javier Burguete Tolosa. 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.6381893529, "avg_line_length": 25.5040650407, "ext": "c", "hexsha": "6aadac489054525052d1e29ae27056ea84786647", "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 <string.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_integration.h> #include <fastpm/libfastpm.h> #include <fastpm/logging.h> #define LENGTH_FERMI_DIRAC_TABLE 4000 //sets the length of the table on which CDF //will be evaluated #define MA...
{ "alphanum_fraction": 0.5841276419, "avg_line_length": 31.5424836601, "ext": "c", "hexsha": "eda9190ced87fd44d8c352bc6a8cbd7ac749ac3d", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-04-14T23:24:19.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-14T23:24:...
#ifndef ALE_INCLUDE_ALE_H #define ALE_INCLUDE_ALE_H #include <nlohmann/json.hpp> #include <string> #include <vector> #include <gsl/gsl_interp.h> #include <nlohmann/json.hpp> using json = nlohmann::json; namespace ale { /// Interpolation enum for defining different methods of interpolation enum interpolation {...
{ "alphanum_fraction": 0.6995408944, "avg_line_length": 45.2384615385, "ext": "h", "hexsha": "fb7841ba50cbb6831dfab782f1e50232453b3c8a", "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_rng.h> double GrowthFactor(double astart, double aend); void print_spec(void); int FatalError(int errnum); void displacement_fields(void); void initialize_ffts(void); void set_units(void); void assemble_particles(void); void free_ffts(void); double fnl(double x); int find_files(char ...
{ "alphanum_fraction": 0.7729624838, "avg_line_length": 26.2033898305, "ext": "h", "hexsha": "5469979848c83c5d2dfa26c97b8fb7fb541a4166", "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 <sys/time.h> #include <assert.h> #include <math.h> #if __INTEL_COMPILER #include "mkl.h" #else #include <gsl/gsl_cblas.h> #endif #include "defs.h" #include "utils.h" #include "progressbar.h" long naive(const double * restrict x1, const double * restrict y1, const int ...
{ "alphanum_fraction": 0.6381145954, "avg_line_length": 31.6932515337, "ext": "c", "hexsha": "056afdaaac36902db9a4548f32820e793a28c446", "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) 2007 Free Software Foundation, Inc. <http://fsf.org/> // LICENCE available at https://www.gnu.org/software/gsl/doc/html/gpl.html #ifndef TRIDIAG_H_ #define TRIDIAG_H_ #include <gsl/gsl_errno.h> #include <cstdlib> #include <iostream> #include <vector> namespace GSL { int solve_tridiag_nonsym(const s...
{ "alphanum_fraction": 0.6465005931, "avg_line_length": 35.125, "ext": "h", "hexsha": "678bff63533de87e9ae866ae4a1d4accd97aaab1", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-07-03T01:14:08.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-03T01:14:08.000Z...
/* * Copyright (C) 2021 FISCO BCOS. * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
{ "alphanum_fraction": 0.5750234448, "avg_line_length": 29.2814645309, "ext": "h", "hexsha": "9cc31c52b27a1096d9b588c9e3596ab4b5840f3d", "lang": "C", "max_forks_count": 9, "max_forks_repo_forks_event_max_datetime": "2021-12-06T06:41:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-02-22T03:47:...
/* tt.h: / This file contains everything related to the tensor_train struct */ #ifndef TENSOR_TRAIN_H #define TENSOR_TRAIN_H #include <lapacke.h> #include <mpi.h> #include "tensor.h" typedef struct tensor_train { int d; // dimension of tensor int* n; // tensor size of each dimension ...
{ "alphanum_fraction": 0.7230098146, "avg_line_length": 27.7878787879, "ext": "h", "hexsha": "00831f3de6f9493502a87223286e71436795ec29", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef __GSL_MATRIX_H__ #define __GSL_MATRIX_H__ #include <gsl/matrix/gsl_matrix_double.h> #endif /* __GSL_MATRIX_H__ */
{ "alphanum_fraction": 0.7857142857, "avg_line_length": 14, "ext": "h", "hexsha": "c138aef7f486c014f6d7997aa12930225f33cfc1", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "58778f148...
/*! Implementation of the class `Solver`. * \file solver.h */ #if !defined(SOLVER_H) #define SOLVER_H #include <petsc.h> /** * \class Solver * \brief Super class for an iterative solver. */ class Solver { public: virtual ~Solver(){ } virtual PetscErrorCode create(const Mat &A) = 0; virtual PetscErrorCode...
{ "alphanum_fraction": 0.6737089202, "avg_line_length": 16.3846153846, "ext": "h", "hexsha": "b4923e3087b94ff8be745453b4deda864dc9ab1f", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-07-25T13:27:55.000Z", "max_forks_repo_forks_event_min_datetime": "2020-01-10T08:53:...
/* multifit/fdfridge.c * * Copyright (C) 2014 Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. ...
{ "alphanum_fraction": 0.5937766081, "avg_line_length": 28.0238611714, "ext": "c", "hexsha": "eeb710c399da2fd51aa789813ba8dbd804b0d209", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
/* * Copyright 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.6893255443, "avg_line_length": 28.9692307692, "ext": "h", "hexsha": "75f0c5d5cbb6dd4106482c84956bebec6eaf2a99", "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:2...
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Soft...
{ "alphanum_fraction": 0.6947368421, "avg_line_length": 35.234741784, "ext": "h", "hexsha": "d6172d2ffc96ae2ce68bcd4f6699d49f21e343e7", "lang": "C", "max_forks_count": 9, "max_forks_repo_forks_event_max_datetime": "2022-02-09T13:04:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-07-04T12:54:2...
/** * * @file qwrapper_zgemm.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 * @author Mathieu Faverge * @author Jakub Kurzak * @date 2010-11-15 * @pr...
{ "alphanum_fraction": 0.485308872, "avg_line_length": 38.3351648352, "ext": "c", "hexsha": "2f625acb2ef781cb526a5438afbcf95cb21616ec", "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 "halley/utils/utils.h" #include "halley/text/halleystring.h" #include <memory> #include <gsl/span> #include "halley/resources/resource_data.h" namespace Halley { enum class AssetType; class Deserializer; class Serializer; class AssetDatabase; class ResourceData; class ResourceDataReader; ...
{ "alphanum_fraction": 0.7261553589, "avg_line_length": 24.8048780488, "ext": "h", "hexsha": "2eaa56e3e8accab2c50da1f099b35c39bd137336", "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 <gsl/gsl_math.h> #include "gsl_cblas.h" #include "cblas.h" void cblas_ssbmv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, const int N, const int K, const float alpha, const float *A, const int lda, const float *X, const int incX, const float beta, float *Y, const int incY) { #de...
{ "alphanum_fraction": 0.7066666667, "avg_line_length": 25, "ext": "c", "hexsha": "bd8ca470b0d5221b8705f1ff57e37b7cfd686f71", "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", ...
#if !defined(INDENTCLASSIFIER_H_INCLUDED) #define INDENTCLASSIFIER_H_INCLUDED #include "FileEnumerator.h" #include "Utils.h" #include <filesystem> #include <gsl/gsl> #include <iosfwd> #include <map> #include <string> /// \brief IndentType contains the enum constants that indicate the type of /// indentation for a l...
{ "alphanum_fraction": 0.7670920693, "avg_line_length": 35.3870967742, "ext": "h", "hexsha": "6d1bd83a38410648cbcb48dd15cc89a10ce27d3a", "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 IBS_HPP #define IBS_HPP #include <array> #include <assert.h> #include <memory> #include <vector> #include <gsl/gsl_integration.h> #include <gsl/gsl_errno.h> #include "jspec2/force.h" #include "jspec2/rate.h" class Lattice; class IonBeam; enum class IBSModel {MARTINI, BM, BMC, BMZ}; class IBSSolver { prote...
{ "alphanum_fraction": 0.6212420452, "avg_line_length": 34.2631578947, "ext": "h", "hexsha": "90cc444633f6fec3f8dd31558572ae6bd80811ca", "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":...
/* C code for actionAngle calculations */ #ifndef __GALPY_ACTIONANGLE_H__ #define __GALPY_ACTIONANGLE_H__ #ifdef __cplusplus extern "C" { #endif #ifdef _WIN32 #include <Python.h> #endif #include <stdbool.h> #include <gsl/gsl_roots.h> #include <gsl/gsl_spline.h> #include "interp_2d.h" /* Macro for dealing with poten...
{ "alphanum_fraction": 0.7428924598, "avg_line_length": 21.2894736842, "ext": "h", "hexsha": "bffc8d7bb91305e7c2edfb9f537253fe08d686e3", "lang": "C", "max_forks_count": 110, "max_forks_repo_forks_event_max_datetime": "2021-12-28T07:56:49.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-08T10:5...
/* * Test the effective difference of a single bit changing on the input. * * This test uses random data as input. A hash is calculates. A bit is * changed on the input at one location. Another hash is calculated. * Both hashes are XOR'ed and sent to output as a binary stream. This * is repeated until the output...
{ "alphanum_fraction": 0.6937882765, "avg_line_length": 25.9772727273, "ext": "c", "hexsha": "7121ed16bfae208034504fa93b82dba980fb89e4", "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":...
/* * maths_base.h * ecosstat_project * * Created by Karim Benabed on 23/06/09. * Copyright 2009 Institut d'Astrophysique de Paris. All rights reserved. * */ #ifndef __MATHS_BASE_H #define __MATHS_BASE_H #include <stdio.h> #include <stdlib.h> #include <math.h> #if 0 #include <gsl/gsl_vector.h> #include <gsl...
{ "alphanum_fraction": 0.6875965003, "avg_line_length": 24.2875, "ext": "h", "hexsha": "cf6b0519dc420f5ed2e9cae70e72c4dfb6dce20a", "lang": "C", "max_forks_count": 78, "max_forks_repo_forks_event_max_datetime": "2022-02-01T01:57:31.000Z", "max_forks_repo_forks_event_min_datetime": "2018-04-21T13:11:54.00...
#include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <galpy_potentials.h> // MovingObjectPotential // 3 arguments: amp, t0, tf void constrain_range(double * d) { // Constrains index to be within interpolation range if (*d < 0) *d = 0.0; if (*d > 1) *d = 1.0; } double MovingObjectPoten...
{ "alphanum_fraction": 0.6744337979, "avg_line_length": 33.7647058824, "ext": "c", "hexsha": "dee65196a6f1f4469b290f71e3742415325b17ab", "lang": "C", "max_forks_count": 110, "max_forks_repo_forks_event_max_datetime": "2021-12-28T07:56:49.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-08T10:5...
//IN method. //Linear transformation (weights only, no biases) of Ni inputs to No outputs. //This version uses CBLAS //Input X has Ni neurons and output Y has No neurons. //The vecs of length Ni are always contiguous in memory, such that: //If col-major: Y[:,l] = W' * X[:,l] //where: //X has size Ni x L //Y has size...
{ "alphanum_fraction": 0.6504854369, "avg_line_length": 27.4666666667, "ext": "c", "hexsha": "f852a9a33c3875682bc438c55007e9408b43df7d", "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":...
/*---------------------------------------------------------------------------- / / Filename: fits_wavelet.c / Author: Jay Billings / Author's email: jayjaybillings@gmail.com / Description: This program will perform a Debauchies wavelet transform on / an input image and turn off the wavelet coefficients up...
{ "alphanum_fraction": 0.5511343805, "avg_line_length": 34.1071428571, "ext": "c", "hexsha": "30713b59b3364bdf697ad342ad205e9891aef586", "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 interp.h \brief Functions for interpolation to initialize the root solver */ // used by the gsl interpolation functions #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_sort_double.h> #ifndef REAL_TYPEDEF #define REAL_TYPEDEF #ifndef single // compiler option determines variab...
{ "alphanum_fraction": 0.6171821306, "avg_line_length": 36.9915254237, "ext": "h", "hexsha": "21cfc1616cd0269155cfc0ccb62bc9772f9ec341", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2020-01-10T03:38:30.000Z", "max_forks_repo_forks_event_min_datetime": "2018-04-29T12:35:...
#ifndef UTIL_H_ #define UTIL_H_ #include <gsl/gsl_randist.h> #include <gsl/gsl_rng.h> #include <time.h> /* * constants */ #define TYPE_REQ 1 #define TYPE_REQ_FOLLOW 2 #define TYPE_RES 0 #define NB_MBUF 8191 #define MBUF_SIZE (2048 + sizeof(struct rte_mbuf) + RTE_PKTMBUF_HEADROOM) #define MBUF_CACHE_SIZE 32 #defin...
{ "alphanum_fraction": 0.6599243116, "avg_line_length": 28.5932835821, "ext": "h", "hexsha": "c891bc64c58f0d295eb026e9d5175b461a9b7fd2", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2021-05-27T03:07:26.000Z", "max_forks_repo_forks_event_min_datetime": "2020-10-19T16:28:...
// // mcmc_solar.c // // // Created by Juan Pablo Molano on 11/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_solar.x n_burn n_steps" //---------------------------------------------------------------...
{ "alphanum_fraction": 0.4328808446, "avg_line_length": 27.1115241636, "ext": "c", "hexsha": "22af08b2800513687a9365020246da89cbd47c3c", "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":...