Search is not available for this dataset
text
string
meta
dict
#include "lah.h" #ifdef HAVE_LAPACK /* Use a LAPACK package to do the heavy work */ #include <lapacke.h> lah_Return lah_LU(lah_mat *A, lah_index setZero, lapack_int *ipiv) { lah_index i = 0; lah_index j = 0; lapack_int res = 1; if (A == NULL || A->nR != A->nC) return lahReturnParameterError; ...
{ "alphanum_fraction": 0.5471014493, "avg_line_length": 25.875, "ext": "c", "hexsha": "63259cef4298bc6a749f5f67024671d54c8e6e58", "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...
#include <stdio.h> #include <gsl/gsl_math.h> #include <gsl/gsl_ieee_utils.h> int main (void) { double x = 1, oldsum = 0, sum = 0; int i = 0; gsl_ieee_env_setup (); /* read GSL_IEEE_MODE */ do { i++; oldsum = sum; sum += x; x = x / i; printf ("i=%2d sum=%.18f ...
{ "alphanum_fraction": 0.4644444444, "avg_line_length": 14.5161290323, "ext": "c", "hexsha": "04f837db288132d5a51f226134678fd5263bd851", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <mpi.h> #include "parmt_mtsearch.h" #ifdef PARMT_USE_INTEL #include <mkl_cblas.h> #else #include <cblas.h> #endif #include "iscl/array/array.h" #include "iscl/memory/memory.h" #include "iscl/signal/convolve.h" int parmt_computeStackedCrossCorrelation_...
{ "alphanum_fraction": 0.4762422207, "avg_line_length": 38.785440613, "ext": "c", "hexsha": "9d62e7993c4c2021d71487e0a48e6533443cd435", "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 <config.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> int main (void) { int i; double xi, yi; double x[10], y[10]; printf ("#m=0,S=2\n"); for (i = 0; i < 10; i++) { x[i] = i + 0.5 * sin (i); y[i] = i + cos (i * i)...
{ "alphanum_fraction": 0.5365853659, "avg_line_length": 19.475, "ext": "c", "hexsha": "39aec03f5f812915b6bceff8ca08e6b4a1c831eb", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:57.000Z...
/* 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.6774193548, "avg_line_length": 32.35625, "ext": "c", "hexsha": "1ebc0142a79170df13506afbc2e86f26ba08bddd", "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": "541...
/*This program evaluates the differential equations for a photon's geodesic in a perturbed spacetime in SPHERICAL coordinates.*/ /*This program solves the particular case for flat FRW perturbed spacetime with metric: $g_{ab} = {[g]}_{ab} + h_{ab}$. Where ${[g]}_{ab}$ corresponds to the flat FRW metric and $h_{ab}$ cor...
{ "alphanum_fraction": 0.6591191495, "avg_line_length": 56.8078431373, "ext": "c", "hexsha": "0c286203e66dc9301b80a7553bad4fe86c094a9c", "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 _NAMASTER_H_ #define _NAMASTER_H_ #ifndef NO_DOXY #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <unistd.h> #include <math.h> #include <time.h> #include <complex.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_bla...
{ "alphanum_fraction": 0.7329121515, "avg_line_length": 50.4950704225, "ext": "h", "hexsha": "391c6a9126191b6e75b13a587a9e24e5f2f048bd", "lang": "C", "max_forks_count": 22, "max_forks_repo_forks_event_max_datetime": "2022-03-29T05:28:48.000Z", "max_forks_repo_forks_event_min_datetime": "2018-08-16T21:15...
#ifndef __NEURALNETWORK_INCLUDED__ #define __NEURALNETWORK_INCLUDED__ #ifdef __APPLE__ #include <Accelerate/Accelerate.h> #else #include <cblas.h> #endif #include <string> #include "Frame.h" using namespace std; struct Matrix { double* data; int rows; int cols; }; class NeuralNetwork { public: NeuralNetwo...
{ "alphanum_fraction": 0.7540394973, "avg_line_length": 15.0540540541, "ext": "h", "hexsha": "b2385e4125ecf05c4b1f6c17fa371b94f5a2c271", "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":...
/* rng/default.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, or (at...
{ "alphanum_fraction": 0.5867598684, "avg_line_length": 25.8723404255, "ext": "c", "hexsha": "4b0f80d8749ce6724e34f3ad4a9b17f25fc2d6b4", "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...
/* randist/gsl-randist.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...
{ "alphanum_fraction": 0.5476981968, "avg_line_length": 25.1316455696, "ext": "c", "hexsha": "aec5e7d0a18746d6a2a1236b7146e4bea48f57aa", "lang": "C", "max_forks_count": 14, "max_forks_repo_forks_event_max_datetime": "2020-03-12T12:31:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T04:47...
#include <gsl/gsl_math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_poly.h> /* Find a minimum in x=[0,1] of the interpolating quadratic through * (0,f0) (1,f1) with derivative fp0 at x=0. The interpolating * polynomial is q(x) = f0 + fp0 * z + (f1-f0-fp0) * z^2 */ static double interp_quad (double f0, double f...
{ "alphanum_fraction": 0.5113636364, "avg_line_length": 25.1935483871, "ext": "c", "hexsha": "60677d63b358b9fc81e00eccc79eb6931dbfd3a5", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
#pragma once #include <gsl/gsl> #include <halley/text/halleystring.h> #include "lua_reference.h" #include "halley/data_structures/hash_map.h" struct lua_State; namespace Halley { class Resources; class LuaState; class LuaState { public: LuaState(Resources& resources); ~LuaState(); const LuaReference* tr...
{ "alphanum_fraction": 0.7540038437, "avg_line_length": 24.390625, "ext": "h", "hexsha": "675369eb2e74dfda8394864220f615a61a258254", "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": "5f...
#ifndef _SPATIAL_CONVOLUTION_ #define _SPATIAL_CONVOLUTION_ #include "Mem_Alloc.h" #include "Time.h" #include "Global_Setting.h" //#include <cblas.h> extern int spatial_convolution_float32(float* input_ptr, float* kernel_ptr, float* output_ptr); extern int spatial_convolution_float32_mm(float* input_ptr, float* kerne...
{ "alphanum_fraction": 0.8161157025, "avg_line_length": 34.5714285714, "ext": "h", "hexsha": "fab73e7e500a1b1420584c3649c2e29f106fffee", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-06-27T11:00:18.000Z", "max_forks_repo_forks_event_min_datetime": "2018-06-27T11:00:...
/* Function in common for mlfit1, mlfitN, etc ... */ #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <stdint.h> #include <gsl/gsl_math.h> #include <gsl/gsl_sort.h> #include <gsl/gsl_statistics.h> #include "mlfit.h" #include "blit3.h" #ifndef verbose #define verbose 0 #endif double estimateNpho...
{ "alphanum_fraction": 0.5801209373, "avg_line_length": 22.8103448276, "ext": "c", "hexsha": "68a323a1257bc8ab3dd17fd52ea28697203355d0", "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_test.h> #include <gsl/gsl_ieee_utils.h> #include <gsl/gsl_math.h> #include "gsl_cblas.h" #include "tests.h" void test_axpy (void) { const double flteps = 1e-4, dbleps = 1e-6; { int N = 1; float alpha = 0.0f; float X[] = { 0.018f }; int incX = 1; float Y[] = { -0.417f }; int incY ...
{ "alphanum_fraction": 0.4741737582, "avg_line_length": 21.594017094, "ext": "c", "hexsha": "b15cde70d0735aec2673364fde55e88e49527203", "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...
/** * @file batchg_zdotu.c * * Part of API test for Batched BLAS routines. * * @author Samuel D. Relton * @author Pedro V. Lara * @author Mawussi Zounon * @date * * @precisions normal z -> c d s * **/ #include <cblas.h> #include "bblas.h" #define COMPLEX void batchg_zdotu_sub( const int *n, ...
{ "alphanum_fraction": 0.6610058785, "avg_line_length": 22.1884057971, "ext": "c", "hexsha": "64c8024438b5ae60769f889fe35b8f74bd229445", "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 <cblas.h> #include <time.h> #include <sys/time.h> // http://stackoverflow.com/questions/5167269 #ifdef __MACH__ #include <mach/clock.h> #include <mach/mach.h> #endif // http://stackoverflow.com/questions/7034930 double drand() { return (rand()+1.0...
{ "alphanum_fraction": 0.6991869919, "avg_line_length": 17.8909090909, "ext": "c", "hexsha": "ed1fb713338adb91118fe5e165a3dae3064bce59", "lang": "C", "max_forks_count": 154, "max_forks_repo_forks_event_max_datetime": "2021-09-07T04:58:57.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T22:4...
/* $Id$ */ /* * Copyright (c) 2015 Kristaps Dzonsons <kristaps@kcons.eu> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVI...
{ "alphanum_fraction": 0.7211191336, "avg_line_length": 23.0833333333, "ext": "c", "hexsha": "932818158c8ca7dd01bbcaafbc2c8707a884b0b1", "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 <type_traits> #include <cuda/runtime_api.hpp> #include <gsl-lite/gsl-lite.hpp> namespace thrustshift { namespace kernel { template <typename SrcT, typename MapT, typename DstT> __global__ void scatter(gsl_lite::span<const SrcT> src, gsl_lite::span<const MapT> map, ...
{ "alphanum_fraction": 0.673455979, "avg_line_length": 25.7966101695, "ext": "h", "hexsha": "fa6f283949096b338be8aef36ae96218a0210fb7", "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 "CesiumGltf/IExtensionJsonHandler.h" #include "CesiumGltf/Model.h" #include "CesiumGltf/ReaderLibrary.h" #include <functional> #include <gsl/span> #include <map> #include <memory> #include <optional> #include <string> #include <unordered_map> #include <vector> namespace CesiumGltf { struct Read...
{ "alphanum_fraction": 0.6847170353, "avg_line_length": 29.0083333333, "ext": "h", "hexsha": "fa2a2bfd812ca0814069c97be685f8b6096d2582", "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":...
/* * * ML fitting of dots using a 2D Gaussian model provided by gaussianInt2. * I.e., only x and y are fitted. * * Compilation: * For debugging: * gcc 3.c -Wall -std=c99 -I/usr/local/include -L/usr/local/lib -lgsl -lgslcblas -lm -g -o 3 * valgrind ./3 * For speed: * gcc -Wall -std=c99 3.c -I/usr/local/i...
{ "alphanum_fraction": 0.5938896671, "avg_line_length": 24.8606965174, "ext": "c", "hexsha": "cb1e2122204af8ffbb53f0c553db83d477cdb63f", "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 <algorithm> #include <array> #include <cstdint> #include <initializer_list> #include <iterator> #include <sstream> #include <string> #include <absl/types/span.h> #include <gsl/gsl> #include "chainerx/axes.h" #include "chainerx/constant.h" #include "chainerx/dims.h" #include "chainerx/error.h" ...
{ "alphanum_fraction": 0.6739859713, "avg_line_length": 29.2767857143, "ext": "h", "hexsha": "683b25cf52af9a9bd8d100ebed6d34357a5390ac", "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":...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
{ "alphanum_fraction": 0.6764990849, "avg_line_length": 37.3052208835, "ext": "h", "hexsha": "99c1708041a8ba021aba2483bba0ca9964f1540f", "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":...
/* * hubble.c * * written by christian wagner * */ #include <stdio.h> #include <math.h> #include <stdlib.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_odeiv.h> #include <gsl/gsl_errno.h> #define VC 299792.458 #define TWOPI 6.283185307179586 #define PI 3.141592653589793 #define Tcmb 2.725 #define ...
{ "alphanum_fraction": 0.6334048641, "avg_line_length": 22.1904761905, "ext": "c", "hexsha": "894c34d77c9320f73d5255a7491a3184d7bf5d86", "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:...
#ifndef __PAR_EQUILIBRIUM_IC_H__ #define __PAR_EQUILIBRIUM_IC_H__ #include "GAMER.h" #include "TestProb.h" #include "vector" #include <iostream> #include <fstream> #include <sstream> using namespace std; //gsl library #ifdef SUPPORT_GSL #include <gsl/gsl_integration.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_m...
{ "alphanum_fraction": 0.6852932146, "avg_line_length": 26.056, "ext": "h", "hexsha": "c67bccd5c71f7f2b4c66f25cb8ab0e5097767904", "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": "4feb2...
#pragma once #include "typetraits.h" #if defined(__has_include) && __has_include(<version>) #include <version> #if defined(__cpp_lib_span) && __cpp_lib_span >= 202002L #include <span> #else #include <gsl/span> #endif // __cpp_lib_span >= 202002L #else #include <gsl/span> #endif //__has_include(<version>) #inclu...
{ "alphanum_fraction": 0.6364622897, "avg_line_length": 25.5972222222, "ext": "h", "hexsha": "0a1a4b5668a79ae3ca12ce730a1c10cfc41c2400", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/** * * @file qwrapper_dlacpy.c * * PLASMA core_blas quark wrapper * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Julien Langou * @author Henricus Bouwmeester * @author Mathieu Faverge * @date 2010-11...
{ "alphanum_fraction": 0.4630529276, "avg_line_length": 31.5403225806, "ext": "c", "hexsha": "5bcbbef2e38a62b00643d16958e1ed6a1f6e4a41", "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 <type_traits> #include <cuda/runtime_api.hpp> #include <gsl-lite/gsl-lite.hpp> namespace thrustshift { namespace kernel { template <typename MapT, typename SrcT, typename DstT> __global__ void gather(gsl_lite::span<const MapT> map, gsl_lite::span<const SrcT> src, gsl_lite::span<DstT> dst) { ...
{ "alphanum_fraction": 0.714185884, "avg_line_length": 27, "ext": "h", "hexsha": "1e5c92adb570d9980897e72e066e384a4b7199fa", "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": "763805f862...
#include <stdio.h> #include <gsl/gsl_matrix.h> int main (void) { int i, j; gsl_matrix * m = gsl_matrix_alloc (10, 3); for (i = 0; i < 10; i++) for (j = 0; j < 3; j++) gsl_matrix_set (m, i, j, 0.23 + 100*i + j); for (i = 0; i < 100; i++) /* OUT OF RANGE ERROR */ for (j = 0; j < 3; j++) ...
{ "alphanum_fraction": 0.47597254, "avg_line_length": 19, "ext": "c", "hexsha": "7704687621c1be616b3a45f0fe64f7363af04ae1", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31:16.000Z", ...
#include <bindings.cmacros.h> #include <gsl/gsl_multifit_nlin.h> BC_INLINE3VOID(GSL_MULTIFIT_FN_EVAL,gsl_multifit_function*,gsl_vector*,gsl_vector*) BC_INLINE3(GSL_MULTIFIT_FN_EVAL_F,gsl_multifit_function_fdf*,gsl_vector*,gsl_vector*,int) BC_INLINE3(GSL_MULTIFIT_FN_EVAL_DF,gsl_multifit_function_fdf*,gsl_vector*,gsl_ma...
{ "alphanum_fraction": 0.871559633, "avg_line_length": 54.5, "ext": "c", "hexsha": "0dc44adb98ec172c7b297a15b165012aed58ad3c", "lang": "C", "max_forks_count": 19, "max_forks_repo_forks_event_max_datetime": "2021-09-10T19:31:38.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T20:43:08.000Z",...
#ifndef QDM_LOGL_H #define QDM_LOGL_H 1 #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <qdm/tau.h> int qdm_find_tau( double *result, double v, size_t spline_df, const gsl_vector *knots, const gsl_vector *mmm ); int qdm_logl( double *log_likelihood, double *tau, do...
{ "alphanum_fraction": 0.6493644068, "avg_line_length": 13.4857142857, "ext": "h", "hexsha": "05b6dbaf00761bc35fdf3125abe3f6977991112e", "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 <time.h> #include <sys/time.h> #ifdef _WIN32 #else #include <sys/resource.h> #endif #include <unistd.h> #include <signal.h> #include <gsl/gsl_rng.h> #ifndef NOMPI #include <mpi.h> #endif #include "allvars.h" #include "proto.h" /*...
{ "alphanum_fraction": 0.6804236669, "avg_line_length": 19.9854014599, "ext": "c", "hexsha": "f7c3d584f10d1dfaf42f634668b716076bc35e0e", "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:0...
#include <stdio.h> #include <cblas.h> #define M 2 #define N 2 #define K 3 #define X 4 #define Y 5 void print_mat(const char *name, int r, int c, float *m) { printf("%s =\n", name); for (int i = 0; i < r; i++) { for (int j = 0; j < c; j++) { printf("%.2lf ", m[i * c + j]); } ...
{ "alphanum_fraction": 0.4097452935, "avg_line_length": 17.3653846154, "ext": "c", "hexsha": "a79e231e37f2630e5e77952a010dedeea6408ebe", "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_MATERIAL_H #define OPENMC_TALLIES_FILTER_MATERIAL_H #include <cstdint> #include <unordered_map> #include <gsl/gsl> #include "openmc/tallies/filter.h" #include "openmc/vector.h" namespace openmc { //============================================================================== //! Spec...
{ "alphanum_fraction": 0.5324292453, "avg_line_length": 27.3548387097, "ext": "h", "hexsha": "65bfce04eb455a97454475ad957db5ec11551a04", "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":...
/* linalg/gsl_linalg.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2006, 2007, 2019 Gerard Jungman, Brian Gough, Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; eithe...
{ "alphanum_fraction": 0.5938533997, "avg_line_length": 39.4670588235, "ext": "h", "hexsha": "ebe3f607ee7049111caa5f7a5935c016e46d83bb", "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:...
/* * Copyright 2017 RIS. * Authored by Ron Dahlgren <ron@red83.net> */ #include "entities.h" #include "utility/lists.h" #include <stdlib.h> #include <string.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> vector* entity_vec; entity_info entity_template; entity_info** working_copy; static void no_op_re...
{ "alphanum_fraction": 0.7039711191, "avg_line_length": 28.2292993631, "ext": "c", "hexsha": "b9b92e1c3c3d09a350b6477756cc34e55e28e91c", "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":...
static char help[] = "Solves the p-Helmholtz equation in 2D using Q_1 FEM. Option prefix -ph_.\n" "Problem is posed as minimizing this objective functional over W^{1,p}\n" "for p>1:\n" " I[u] = int_Omega (1/p) |grad u|^p + (1/2) u^2 - f u.\n" "The strong form equation, namely setting the gradient to zero, is a PDE\...
{ "alphanum_fraction": 0.5394302101, "avg_line_length": 39.4127764128, "ext": "c", "hexsha": "02251bd1617d52ff3b21433a630b59f449f4d055", "lang": "C", "max_forks_count": 46, "max_forks_repo_forks_event_max_datetime": "2022-03-22T07:43:17.000Z", "max_forks_repo_forks_event_min_datetime": "2016-07-23T09:26...
/* Author: G. Jungman */ #include <config.h> #include <stdlib.h> #include <string.h> #include <gsl/gsl_errno.h> /* Compile all the inline functions */ #define COMPILE_INLINE_STATIC #include "build.h" #include <gsl/gsl_qrng.h>
{ "alphanum_fraction": 0.7086956522, "avg_line_length": 16.4285714286, "ext": "c", "hexsha": "5b9c8b560b964cd4588d28763bc962d37f92c35f", "lang": "C", "max_forks_count": 14, "max_forks_repo_forks_event_max_datetime": "2020-03-12T12:31:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T04:47...
#include <ceed.h> #include <petsc.h> #include "../include/bcfunctions.h" // ----------------------------------------------------------------------------- // Boundary Conditions // ----------------------------------------------------------------------------- // Diff boundary condition function PetscErrorCode BCsDiff(P...
{ "alphanum_fraction": 0.4882842026, "avg_line_length": 30.7674418605, "ext": "c", "hexsha": "4d5f60b1d996a39b8307e39e549cb3edb30d7bf3", "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...
/* matrix/gsl_matrix_complex_float.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the ...
{ "alphanum_fraction": 0.7110196978, "avg_line_length": 37.399408284, "ext": "h", "hexsha": "3f4a66e658bd75b6b435e641039b8d52e4a3ff7b", "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 "iarg.h" #include "optioninfo.h" #include "configaccess.h" #include "format.h" #include "streamreader.h" #include <gsl/gsl> #include <cmdlime/errors.h> #include <cmdlime/customnames.h> #include <sstream> #include <functional> #include <memory> namespace cmdlime::detail{ template <typename T> cla...
{ "alphanum_fraction": 0.5741911491, "avg_line_length": 23.796460177, "ext": "h", "hexsha": "2919c483ba83fb5c0d0142986ceda1fd39e23d6d", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-05-22T00:36:08.000Z", "max_forks_repo_forks_event_min_datetime": "2021-05-22T00:36:0...
#ifndef OPENMC_TALLIES_FILTER_MU_H #define OPENMC_TALLIES_FILTER_MU_H #include <vector> #include <gsl/gsl> #include "openmc/tallies/filter.h" namespace openmc { //============================================================================== //! Bins the incoming-outgoing direction cosine. This is only used for s...
{ "alphanum_fraction": 0.4718934911, "avg_line_length": 25.5094339623, "ext": "h", "hexsha": "7f6f29e5f7e581ae6ef5d59c2feb92ccd694ec5b", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2020-03-22T20:54:48.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-31T21:03:...
/* gsl_histogram2d_oper.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 version. ...
{ "alphanum_fraction": 0.5956898571, "avg_line_length": 20.9264705882, "ext": "c", "hexsha": "bd6b72e8cf8338d3730ec402f82209de9bd9dcd3", "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...
/* (c) 2016 Greg Lee */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_sf_bessel.h> // union cast macro from Matt Gallagher #define UNION_CAST(x, destType) \ (((union {__typeof__(x) a; destType b;})x).b) long int gsl_sf_bessel_J0_c( long int i) { double result = gsl_sf_bessel_J0(...
{ "alphanum_fraction": 0.6674757282, "avg_line_length": 17.9130434783, "ext": "c", "hexsha": "9684492f0978f5ad30ce6bd759397f4da53417d6", "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 SOURCE_UTILS_H_ #define SOURCE_UTILS_H_ // *** source/utils.h *** // Author: Kevin Wolz, date: 08/2018 // // Various utilities used in the code. #include <fstream> #include <iostream> #include <iomanip> #include <sstream> #include <vector> #include <string> #include <unistd.h> #include <algorithm> #include <s...
{ "alphanum_fraction": 0.6759880686, "avg_line_length": 30.8275862069, "ext": "h", "hexsha": "fbdd3642a4708ea56c46ca728debcbeef8727ca1", "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 "mersenne.h" //#include <lapacke/lapacke.h> #include <stdbool.h> #include <lapacke.h> #include <time.h> #include <sys/time.h> #ifndef M_PI #define M_PI 3.14159265358979323846264338327 #endif /* Lattice size and dimensions */ #define ND 4 /* Size of th...
{ "alphanum_fraction": 0.7474533107, "avg_line_length": 26.1777777778, "ext": "h", "hexsha": "ce1a920d4c7954545fa7df2deb8d38c430541cd8", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
{ "alphanum_fraction": 0.5656752979, "avg_line_length": 43.9786975046, "ext": "c", "hexsha": "aafd579899ad023de7cbc7e0c843b75bab09215d", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-05-30T08:01:04.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-06T16:35:...
#pragma once #include "commons.h" #include "Instancing.h" #include <renderer/VertexSpecification.h> #include <gsl/gsl> namespace ad { namespace vertex3D { struct Data { Vec<3, GLfloat> mPosition; Vec<3, GLfloat> mNormal{0.f, 0.f, 1.f}; }; constexpr AttributeDescriptionList gDescription = { { 0, 3, o...
{ "alphanum_fraction": 0.4968253968, "avg_line_length": 23.6842105263, "ext": "h", "hexsha": "8207777c743a3f66bd60df04d04401d5eabdbdc2", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-03-31T13:17:54.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-31T13:17:...
/* This file is auto-generated from countpairs_s_mu_mocks_impl.c.src */ #ifndef DOUBLE_PREC #define DOUBLE_PREC #endif // # -*- mode: c -*- /* File: countpairs_s_mu_mocks_impl.c.src */ /* This file is a part of the Corrfunc package Copyright (C) 2015-- Manodeep Sinha (manodeep@gmail.com) License: MIT LICENSE. See...
{ "alphanum_fraction": 0.5406177311, "avg_line_length": 38.9483944954, "ext": "c", "hexsha": "0cda749c5cdf450bb0175acf7b7aca87d156f069", "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_BLOCK_H__ #define __GSL_BLOCK_H__ #include <gsl/gsl_block_complex_long_double.h> #include <gsl/gsl_block_complex_double.h> #include <gsl/gsl_block_complex_float.h> #include <gsl/gsl_block_long_double.h> #include <gsl/gsl_block_double.h> #include <gsl/gsl_block_float.h> #include <gsl/gsl_block_ulong.h> ...
{ "alphanum_fraction": 0.7931034483, "avg_line_length": 23.2, "ext": "h", "hexsha": "c9cc863a3b6fa34082af3d03be8c1268c8b4d7ba", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-08-30T20:40:25.000Z", "max_forks_repo_forks_event_min_datetime": "2020-08-30T20:40:25.000Z",...
#include <string.h> #include <cblas.h> #include "util.h" #include "dense.h" denseLayer denseLayer_init(int M, int N) { denseLayer dl; DENSEL_INIT(dl); dl.M=M; dl.N=N; return dl; } void denseLayer_free(denseLayer *dl) { ftens_free(&dl->W); ftens_free(&dl->b); ftens_free(&dl->dW); ftens_free(&...
{ "alphanum_fraction": 0.5595744681, "avg_line_length": 21.3636363636, "ext": "c", "hexsha": "756e6a6ee92cad93f48719a129c1b4da115dd782", "lang": "C", "max_forks_count": 21, "max_forks_repo_forks_event_max_datetime": "2021-09-16T17:50:19.000Z", "max_forks_repo_forks_event_min_datetime": "2017-06-10T17:50...
#pragma once #include "Cesium3DTiles/BoundingVolume.h" #include "Cesium3DTiles/Library.h" #include "Cesium3DTiles/TileContentLoadInput.h" #include "Cesium3DTiles/TileContentLoadResult.h" #include "Cesium3DTiles/TileContentLoader.h" #include "Cesium3DTiles/TileID.h" #include "Cesium3DTiles/TileRefine.h" #include <gsl/...
{ "alphanum_fraction": 0.7317131858, "avg_line_length": 37.1071428571, "ext": "h", "hexsha": "b31547acd92529f04d3f0eced7efb0ca9eac9598", "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":...
/* Starting from version 7.8, MATLAB BLAS expects ptrdiff_t arguments for integers */ #if MATLAB_VERSION >= 0x0708 #include <stddef.h> #include <stdlib.h> #endif #include <string.h> /* Define MX_HAS_INTERLEAVED_COMPLEX for version <9.4 */ #ifndef MX_HAS_INTERLEAVED_COMPLEX #define MX_HAS_INTERLEAVED_COMPLEX 0...
{ "alphanum_fraction": 0.5583026777, "avg_line_length": 27.830952381, "ext": "h", "hexsha": "ecf044e0dad5a907b905d22af3196620a6b91880", "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 class introduces a method to work with experimental fitness landscapes given in a data file in the format sequence fitness 1 0 1 ... 1.987 and brings the adjacency matrix as well as other helpful properties (cc) Johannes Neidhart, 2012*/ #ifndef LANDSCAPE_H #define LANDSCAPE_H #include <ios...
{ "alphanum_fraction": 0.6439490446, "avg_line_length": 28.5454545455, "ext": "h", "hexsha": "09c619fe9bb89fe84364b070910fcd750ef400cf", "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 setup_h #define setup_h #include <ceed.h> #include <petsc.h> #include <petscdmplex.h> #include <petscfe.h> #include <petscksp.h> #include <stdbool.h> #include <string.h> #include "problems/problems.h" #include "include/cl-options.h" #include "include/matops.h" #include "include/misc.h" #include "include/struct...
{ "alphanum_fraction": 0.7362385321, "avg_line_length": 20.7619047619, "ext": "h", "hexsha": "0a669982c9f8056bbc547874abd1d230d724cc7b", "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 <cblas.h> const char* dgemm_desc = "Reference dgemm."; /* * This routine performs a dgemm operation * C := C + A * B * where A, B, and C are lda-by-lda matrices stored in column-major format. * On exit, A and B maintain their input values. * This function wraps a call to the BLAS-3 routine DGEMM, * vi...
{ "alphanum_fraction": 0.6837294333, "avg_line_length": 34.1875, "ext": "c", "hexsha": "9b51a7ba6317aa9009c0d0ee80722fda14870c8f", "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": "8086...
#ifndef UTILS_STRINGS_ONE_AWAY_H_INCLUDED #define UTILS_STRINGS_ONE_AWAY_H_INCLUDED #include <string> // std::string #include <gsl/gsl> bool isOneAway(const std::string &, const std::string &); #endif
{ "alphanum_fraction": 0.7832512315, "avg_line_length": 22.5555555556, "ext": "h", "hexsha": "66c45af4f7eca129391903c33945d2fa632f6aca", "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":...
/*========================================================== * pca.c - Principal component analysis of diffraction data * * Calculates the two main components of the data * by Principal Component Analysis, as detailed in * Bernhardt et.al (2016), Biophys. J. * * The calling syntax is: * * pca(data, mask, qx, ...
{ "alphanum_fraction": 0.6004056795, "avg_line_length": 33.8333333333, "ext": "c", "hexsha": "b0c5b3b0766e0d030e5a1c89575743c94b97655f", "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 "redisgears.h" #include "redisai.h" #include "minmax_heap.h" #include <math.h> #include "redisgears_memory.h" #include <cblas.h> #include <sys/time.h> #define STR1(a) #a #define STR(e) STR1(e) #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b)) static RedisModuleCtx* staticCtx; static...
{ "alphanum_fraction": 0.6442170133, "avg_line_length": 29.3602584814, "ext": "c", "hexsha": "59eb1169f5a4e54c213cf5dd2a2d328614b3fd66", "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> #include <easy_rng.h> #include <time.h> #ifndef NRUNS #define NRUNS 10000000 #endif void run_test(const gsl_rng_type *gtype, const easy_rng_type *etype) { gsl_rng *grng = gsl_rng_alloc(gtype); easy_rng *erng = easy_rng_alloc(etype); clock_t gstart, gend; clock_t estart, eend; int i; ...
{ "alphanum_fraction": 0.7011070111, "avg_line_length": 20.8461538462, "ext": "c", "hexsha": "53211377baf400b0a0165245cbd26841e11d2e60", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2017-05-05T15:10:38.000Z", "max_forks_repo_forks_event_min_datetime": "2017-05-05T15:10:...
/* poly/demo.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) ...
{ "alphanum_fraction": 0.6672117743, "avg_line_length": 29.8292682927, "ext": "c", "hexsha": "17dc6937a661422d3f9118313b6134dae540ce59", "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 2016 Maikel Nadolski * * 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 t...
{ "alphanum_fraction": 0.6147990256, "avg_line_length": 35.6956521739, "ext": "h", "hexsha": "5324a9848f106308ab45c80cb687fa40b22a6ffb", "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_interp.h> #include <gsl/gsl_bspline.h> #include <gsl/gsl_version.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_multifit.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_types.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_statistics_double....
{ "alphanum_fraction": 0.7592592593, "avg_line_length": 24.9230769231, "ext": "h", "hexsha": "dab18ed0f036c9b06de144a3e6bc30eec9dc5660", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-10-12T12:27:46.000Z", "max_forks_repo_forks_event_min_datetime": "2020-05-02T14:35:...
/* test.c * * Copyright (C) 2018 Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. * * This pr...
{ "alphanum_fraction": 0.5719795684, "avg_line_length": 27.2528409091, "ext": "c", "hexsha": "760afc03330aca0887f726b847abc75367ef73bc", "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:...
/* combination/init.c * based on permutation/init.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 version 2 of the Li...
{ "alphanum_fraction": 0.6054446461, "avg_line_length": 21.6929133858, "ext": "c", "hexsha": "6bac2d459b12d5c9c7ae908791f7b4f828e9b8c1", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
/* Copyright 2016. The Regents of the University of California. * Copyright 2016. Martin Uecker. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2016 Jonathan Tamir <jtamir@eecs.berkeley.edu> * 2016 Martin Uecker <martin.u...
{ "alphanum_fraction": 0.6343656344, "avg_line_length": 30.8, "ext": "c", "hexsha": "89cb1d0694f0deb5f8fdbec7d76b3c2f2469b115", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-04-05T22:36:49.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-05T22:36:49.000Z",...
#include <sys/types.h> // per utilizzare variabili di tipo pthread_t #include <stdlib.h> // utilità generale (allocazione, controllo processi, etc.) #include <pthread.h> // per utilizzo dei thread #include <string.h> // per elaborazione su stringhe #include <math.h> #include <gsl/gsl_vector.h> // per usare i vet...
{ "alphanum_fraction": 0.6524752475, "avg_line_length": 35.8344283837, "ext": "c", "hexsha": "289fbc7bfea9296cfc50e5163c558e0a2a8f56b0", "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 __ARNOLDI_Implicit_restart_Arnoldi_H__ #define __ARNOLDI_Implicit_restart_Arnoldi_H__ #include "Macros.h" #include "timer.h" #include "cuda_supp.h" #include "memory_operations.h" #include "Arnoldi_Driver.h" #include "Select_Shifts.h" #include "QR_Shifts.h" #include "Matrix_Vector_emulator.h" #include "file_ope...
{ "alphanum_fraction": 0.8095238095, "avg_line_length": 46.0384615385, "ext": "h", "hexsha": "3a070be274b5d85d8da3698c4afa8eb54a6808ae", "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) 2017, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights // reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for effic...
{ "alphanum_fraction": 0.614527027, "avg_line_length": 40.2416918429, "ext": "c", "hexsha": "5c1ddb07bd5cbec42d95d4bc1ba0e34ad117bb3b", "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:...
/* learn.c */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_multifit.h> #include "learn.h" #include "feature.h" #include "imatrix.h" #include "dmatrix.h" #include "util.h" #include "likelihood.h" #include "hyper.h" void mvslda_learn(documen...
{ "alphanum_fraction": 0.4718234981, "avg_line_length": 35.1588785047, "ext": "c", "hexsha": "2871dce7add65922b146db4426992c6b6cc23990", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <stdlib.h> #include <gsl/gsl_rng.h> #include <math.h> #include <time.h> #include <stdbool.h> #include "bb_smc.h" /* ========================================================== Last update: 1.5.20 -- v2.0 ABC-SMC (parallel version) Author: Marco Esposito ======================...
{ "alphanum_fraction": 0.4944989593, "avg_line_length": 25.4772727273, "ext": "c", "hexsha": "e84bf5b73813a527fa340866227ec191a0d45d77", "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 is part of the Visual Computing Library (VCL) release under the * license. * * Copyright (c) 2017 Basil Fierz * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software with...
{ "alphanum_fraction": 0.6796941376, "avg_line_length": 29.7974683544, "ext": "h", "hexsha": "897dea644f05f6c34e8b6edcfac59913ac39d8f8", "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_statistics.h> #include <stdlib.h> #include <float.h> #include <assert.h> #ifndef N #define N 64 #endif #define K N/2 #ifndef S #define S K/2 #endif #ifndef SEED #define SEED 1 #endif #include <klee/klee.h> int main(int argc, char* argv[]) { double data[K], w[K]; int i, j; ...
{ "alphanum_fraction": 0.5543568465, "avg_line_length": 16.7361111111, "ext": "c", "hexsha": "9e4455a8202275b9cbb425adaf3fa1e2d56e3685", "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:...
/* * BaseMaster.h * * Created on: Aug 7, 2014 * Author: thardin */ #ifndef BASEMASTER_H_ #define BASEMASTER_H_ #include "FMIClient.h" #include <zmq.hpp> #ifdef USE_GPL #include <gsl/gsl_multiroots.h> #include "common/fmigo_storage.h" using namespace fmigo_storage; #endif #include <chrono> namespace fmitcp...
{ "alphanum_fraction": 0.6154440154, "avg_line_length": 30.3515625, "ext": "h", "hexsha": "eb1c3878cac74782d368c6ecf7a82c816c73a82a", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-02-20T15:50:01.000Z", "max_forks_repo_forks_event_min_datetime": "2022-02-20T15:50:01....
#pragma once #include <gsl/pointers> // contains gsl::not_null class Consultant; class PaymentCalculator { public: double calculate() const { return {}; } void setConsultant(const Consultant &c) { consultant_ = &consultant_; } void setTaxPercentage(double tax) { taxPercentage_ = tax; } private: gsl::no...
{ "alphanum_fraction": 0.7242268041, "avg_line_length": 20.4210526316, "ext": "h", "hexsha": "7a8dc4d5139a41470352459ed09935176eb5376a", "lang": "C", "max_forks_count": 64, "max_forks_repo_forks_event_max_datetime": "2022-03-14T12:32:29.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-01T02:18...
/* histogram/file.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.6348803481, "avg_line_length": 21.546875, "ext": "c", "hexsha": "031d81f4ba5d5cde5dd1b6699f5e04a090fb65de", "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.0...
#include <gsl/gsl_math.h> #include "gsl_cblas.h" #include "cblas.h" void cblas_zgemv (const enum CBLAS_ORDER order, const enum CBLAS_TRANSPOSE TransA, const int M, const int N, const void *alpha, const void *A, const int lda, const void *X, const int incX, const void *beta, void *Y, const int incY) {...
{ "alphanum_fraction": 0.7068062827, "avg_line_length": 25.4666666667, "ext": "c", "hexsha": "7f3fb75ac8578125217f8dabb075749940548726", "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:...
/* * dotProduct.c * * An MPI program that computes the inner product of two vectors * * 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[]) { int i; int rank, size; ...
{ "alphanum_fraction": 0.6061285501, "avg_line_length": 25.2452830189, "ext": "c", "hexsha": "ab4a042d178005e343c35c34269251b141e036cf", "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 CTETRA_DOS_H #define CTETRA_DOS_H #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include "input.h" #include "ecache.h" #include "tetra.h" #include "submesh.h" #include "fermi.h" double* Tetra_AllDosList(InputFn Efn, int na, int nb, int nc, ...
{ "alphanum_fraction": 0.7640232108, "avg_line_length": 43.0833333333, "ext": "h", "hexsha": "6e1e7ceacb93251c35bbcf615ead443ff4b38056", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* matrix/gsl_matrix_complex_double.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the...
{ "alphanum_fraction": 0.6842969493, "avg_line_length": 34.2337278107, "ext": "h", "hexsha": "87dda05a44c420778fb87656055a12dacf8051f7", "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":...
/*========================================================== * pca.c - Principal component analysis of diffraction data * * Calculates the two main components of the data * by Principal Component Analysis, as detailed in * Bernhardt et.al (2016), Biophys. J. * * The calling syntax is: * * pca(data, mask, qx, ...
{ "alphanum_fraction": 0.5855811672, "avg_line_length": 32.1102362205, "ext": "c", "hexsha": "076743762e3cde9ca4e78a1d35e74b14e3cd1bf3", "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":...
/* Leaf bindings for the GNU Scientific Library Note that the GSL is GPL, not LGPL!. If you include this code in the libprim build, the result will be covered under the GPL. */ #ifndef _LEAF_GSL_H_ #define _LEAF_GSL_H_ #include <gsl/gsl_math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_linalg.h> #include...
{ "alphanum_fraction": 0.7188264059, "avg_line_length": 31.4615384615, "ext": "h", "hexsha": "e39ee3779582a7242433990533213a8a3833bdf9", "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 __RNG_H__ #define __RNG_H__ #include <gsl/gsl_rng.h> extern const gsl_rng_type *rng_T; extern gsl_rng *rng_R; #endif
{ "alphanum_fraction": 0.792, "avg_line_length": 17.8571428571, "ext": "h", "hexsha": "7cc081bb3622b9a218ea0eca57172adc536d0de3", "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": "4b7a1...
#include <stdio.h> #include <gsl/gsl_fit.h> int main (void) { int n = 11; double x[11] = {10.0, 8.0, 13.0, 9.0,11.0,14.0,6.0,4.0 ,12.0,7.0,5.0}; double y[11] = { 8.04, 6.95,7.68, 8.81, 8.33,9.96,7.24,4.26,10.84,4.82,5.68 }; double c0, c1, cov00, cov01, cov11, sumsq; gsl_fit_linear (x, 1, y, ...
{ "alphanum_fraction": 0.4783281734, "avg_line_length": 23.9259259259, "ext": "c", "hexsha": "a8a3dcbff72d2790cd1122987f206ceff1949d63", "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 <string.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_matrix_double.h> int main() { int ret; gsl_matrix A; double data[9]; int i, j; memset(&A, 0, sizeof(gsl_matrix)); A.size1 = 3; A.size2 = 3; A.tda = 3; A.data = data; gsl_matrix_set(&A, 0, 0, 3...
{ "alphanum_fraction": 0.5409356725, "avg_line_length": 19.358490566, "ext": "c", "hexsha": "83a281097c3b48101c8b78d4fa880f7da9fb0a64", "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:01...
#include <pygsl/solver.h> #include <gsl/gsl_multiroots.h> static PyObject * module = NULL; /* accessor methods */ #define _SOLVER_METH(solver, name) \ static PyObject* \ PyGSL_multiroot_ ## solver ## _ ## name(PyGSL_solver *self, PyObject *args) \ { return PyGSL_solver_ret_vec(self, args, (ret_vec)gsl_multiroot_## s...
{ "alphanum_fraction": 0.6299876956, "avg_line_length": 34.5835866261, "ext": "c", "hexsha": "8c15b317ff89f8515537b155f8c893315144513b", "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:...
#ifndef ARRUS_CORE_COMMON_COLLECTIONS_H #define ARRUS_CORE_COMMON_COLLECTIONS_H #include <string> #include <vector> #include <numeric> #include <unordered_set> #include <type_traits> #include <bitset> #include <stdexcept> #include <gsl/span> #include <boost/range/combine.hpp> namespace arrus { /** * Returns an arr...
{ "alphanum_fraction": 0.6236620795, "avg_line_length": 26.9690721649, "ext": "h", "hexsha": "186a92777ad45a8b11d6b50e693a7b84a6ef030e", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-12-13T08:53:31.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-22T16:13:...
#include <math.h> #include <stdlib.h> #include <string.h> #include <gsl/gsl_siman.h> /* set up parameters for this simulated annealing run */ /* how many points do we try before stepping */ #define N_TRIES 200 /* how many iterations for each T? */ #define ITERS_FIXED_T 1000 /* max step size in random w...
{ "alphanum_fraction": 0.6049461002, "avg_line_length": 19, "ext": "c", "hexsha": "50f08e06ef9fb8bb1349822c3132d9c2093e5d1f", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31:16.000Z", ...
/* * \file base.h * \brief Header file with base requirements for codes * * */ #ifndef BASE_H #define BASE_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <getopt.h> #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <time.h> #include <bzlib.h> #inc...
{ "alphanum_fraction": 0.6810344828, "avg_line_length": 14.9677419355, "ext": "h", "hexsha": "b8a96b9407f886b2853618dd43380efb2a3d629d", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#pragma once #ifndef _NOGSL #include <gsl/gsl_vector.h> #else #include "CustomSolver.h" #endif #include "ValueGrad.h" #include "BooleanNodes.h" #include "BooleanDAG.h" #include "NodeVisitor.h" #include "VarStore.h" #include <map> #include <set> #include "SymbolicEvaluator.h" #include "Interface.h" #include <iostream>...
{ "alphanum_fraction": 0.6434814953, "avg_line_length": 25.9758454106, "ext": "h", "hexsha": "a7e20d44f25996e815c100f7260a4d06e9ab3b58", "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:...
/* specfunc/gsl_sf_result.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * you...
{ "alphanum_fraction": 0.7438118812, "avg_line_length": 26.064516129, "ext": "h", "hexsha": "305b75ad5bfdf170011362245e0781e7f6e43c8d", "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.h> #include <msgpack.hpp> #include <type_traits> #include <typeindex> #include <unordered_map> #include <cstddef> // somehow needed for size_t? namespace meta { using packer = msgpack::packer<std::ostream>; using unpacker = msgpack::unpacker; struct Attribute { std::type_index typein...
{ "alphanum_fraction": 0.6628256513, "avg_line_length": 26.7919463087, "ext": "h", "hexsha": "3f24416f84cf6b717ea0c456a31bd8f8524ab916", "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":...
// align.h // // prototypes for align.cc // // dw, 12/12/3 #include <gsl/gsl_matrix.h> #include "pdb.h" #include <map> // find rigid body transformation z=Rx+t minimizing // least squares error ||y-z||**2 // find rigid body transformation z=Rx+t minimizing // least squares error ||y-z||**2 void align(gsl_matrix_co...
{ "alphanum_fraction": 0.6776699029, "avg_line_length": 24.5238095238, "ext": "h", "hexsha": "67f809f264cc93e146ab0cedabf6bc7d107e5701", "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, Patrick Weltevrede All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
{ "alphanum_fraction": 0.6861646433, "avg_line_length": 47.1789052069, "ext": "c", "hexsha": "393ea22da10936e432e4a1ea070145001b3c3e34", "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 <getopt.h> #include <stdio.h> #include <list> #include <gsl/gsl_rng.h> //#include "utils.h" #include "data.h" #include "model.h" // helper function to write out per-user info void log_user(FILE* file, Data *data, int user, int heldout, double rmse, double mae, double rank, int first, double crr, double nc...
{ "alphanum_fraction": 0.734375, "avg_line_length": 40.7272727273, "ext": "h", "hexsha": "1afd4fa015955408d09caf5f2a38d82f675c7093", "lang": "C", "max_forks_count": 10, "max_forks_repo_forks_event_max_datetime": "2021-04-06T20:17:32.000Z", "max_forks_repo_forks_event_min_datetime": "2015-08-13T00:22:21....
#ifndef VM_CALL_STACK_H #define VM_CALL_STACK_H #include "function/WasmFunction.h" #include "utilities/SimpleVector.h" #include "utilities/ListStack.h" #include "vm/alloc/StackResource.h" #include <gsl/span> #include <sstream> namespace wasm { namespace ex { template <class Container, class Index> decltype(auto) at...
{ "alphanum_fraction": 0.6802292589, "avg_line_length": 26.2232142857, "ext": "h", "hexsha": "43869dcf61c45c855b76509d0f3643e6f5aed525", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
// The MIT License (MIT) // // Copyright (c) 2018 Mateusz Pusz // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, co...
{ "alphanum_fraction": 0.6089608517, "avg_line_length": 37.2603305785, "ext": "h", "hexsha": "53e4fdf46b79ae0f6000c31fe5fb0c158f6ef171", "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 DEINOS_CHESS_H #define DEINOS_CHESS_H #include <optional> #include <array> #include <vector> #include <string> #include <cassert> #include <iostream> #include <gsl/gsl_assert> #include <cstddef> namespace chess { enum class Almnt : uint8_t; enum class AlRes : uint8_t; enum class GameResult : uint8_t; enum ...
{ "alphanum_fraction": 0.6731968655, "avg_line_length": 43.8807017544, "ext": "h", "hexsha": "f185d03b60247466e765c3af8551e9fb7efcef0a", "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 <petsc.h> static PetscErrorCode SetInitialCondition(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, PetscScalar *u, void *ctx){ u[0] = x[0]; return 0; } static PetscErrorCode PrintFVGradients(DM dm){ PetscFunctionBeginUser; PetscErrorCode ierr; // Convert the dm to a pl...
{ "alphanum_fraction": 0.6513075965, "avg_line_length": 31.801980198, "ext": "c", "hexsha": "2fcf99d20c7ccbf6fa018e91ada2371d3b07b4d7", "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_math.h> #include "gsl_cblas.h" #include "cblas.h" void cblas_cswap (const int N, void *X, const int incX, void *Y, const int incY) { #define BASE float #include "source_swap_c.h" #undef BASE }
{ "alphanum_fraction": 0.7169811321, "avg_line_length": 17.6666666667, "ext": "c", "hexsha": "a965a3ce622e77632bac3d2e5a7a99e71dcbcbd5", "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:...