Search is not available for this dataset
text
string
meta
dict
#pragma once #include <DirectXMath.h> #include <d3d11.h> #include <gsl\gsl> namespace Library { class Mesh; template <typename T> struct VertexDeclaration { static constexpr uint32_t VertexSize() { return gsl::narrow_cast<uint32_t>(sizeof(T)); } static constexpr uint32_t VertexBufferByteWidth(size_t vertexC...
{ "alphanum_fraction": 0.7873223842, "avg_line_length": 44.4180327869, "ext": "h", "hexsha": "a035a08b94d9cd4d8f7d47c84e8fde9b538d0b2d", "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":...
/* -*- linux-c -*- */ /* fewbody_int.c Copyright (C) 2002-2004 John M. Fregeau 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.7131147541, "avg_line_length": 29.7043478261, "ext": "c", "hexsha": "6ed036af99fdaf766253eefbefba5fe21019d24c", "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 <Runtime/Runtime.h> #include <napi/napi.h> #include <memory> #include <gsl/gsl> namespace babylon { class ScriptHost final { public: explicit ScriptHost(RuntimeImpl&); ScriptHost(const ScriptHost&) = delete; ~ScriptHost(); void RunScript(gsl::czstring...
{ "alphanum_fraction": 0.6052060738, "avg_line_length": 17.7307692308, "ext": "h", "hexsha": "d2c32c51b9792abfdfcd25c710f5eedcd1dfa528", "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 math_utility_c__H #define math_utility_c__H /********************************* TRICK HEADER ******************************* PURPOSE: (Math functions C Version) LIBRARY DEPENDENCY: ((../src/math_utility_c.c) (../../cad/src/global_constants.c)) *************************************************...
{ "alphanum_fraction": 0.746993988, "avg_line_length": 42.4680851064, "ext": "h", "hexsha": "9fc111a79890e2932aaa77f2cd79384c0a9b15c5", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-06-17T03:19:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-05-05T14:59:3...
/* * 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.7042348803, "avg_line_length": 42.2342857143, "ext": "h", "hexsha": "8684c33bdb8e67fca410beea097ef0788c3ce9b0", "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...
/** * @file localization.h * @brief source localization * @author Ulrich Klee */ #ifndef LOCALIZATION_H #define LOCALIZATION_H #include <stdio.h> #include <assert.h> #include <gsl/gsl_block.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_complex.h> #include <gsl/gsl_complex_math.h> #...
{ "alphanum_fraction": 0.7594936709, "avg_line_length": 42.0136363636, "ext": "h", "hexsha": "4ec24a2a529181ab177981bce300fc9ac6ff1d4c", "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...
/** * * @file core_stsmqr_sytra1.c * * PLASMA core_blas kernel * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Hatem Ltaief * @author Mathieu Faverge * @author Jakub Kurzak * @author Azzam Haidar * @d...
{ "alphanum_fraction": 0.5083978109, "avg_line_length": 31.3550295858, "ext": "c", "hexsha": "ec6873b0606f48eadec0e0fe8f80b184fbeb010c", "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_gbmv (void) { const double flteps = 1e-4, dbleps = 1e-6; { int order = 101; int trans = 111; int M = 3; int N = 4; int KL = 1; int KU = 1; int lda = 4; floa...
{ "alphanum_fraction": 0.4965078061, "avg_line_length": 35.7941176471, "ext": "c", "hexsha": "9baf6c6834f1d8f245ed7a158dc0424efd372c85", "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:...
#include <math.h> #include <gsl/gsl_ntuple.h> #include <gsl/gsl_histogram.h> struct data { double x; double y; double z; }; int sel_func (void *ntuple_data, void *params); double val_func (void *ntuple_data, void *params); int main (void) { struct data ntuple_row; gsl_ntuple *ntuple = gsl_ntuple_open...
{ "alphanum_fraction": 0.6209302326, "avg_line_length": 17.6712328767, "ext": "c", "hexsha": "a92652203fd5e0ab71201bd19c35cb1d269b5239", "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...
/* cheb/deriv.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) an...
{ "alphanum_fraction": 0.6345707657, "avg_line_length": 28.262295082, "ext": "c", "hexsha": "8f7c223cc1dc073fc987a87bf0a5f3c09149d9b6", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:5...
/** * @file cblas.h * @brief Header file to handle Intel MKL, OpenBLAS, or Netlib includes. * * `npypacke` can be linked with a reference CBLAS implementation, OpenBLAS, or * Intel MKL, but Intel MKL uses a different header file, `mkl.h`, while * OpenBLAS uses the CBLAS header `cblas.h`. This file includes the c...
{ "alphanum_fraction": 0.7585078534, "avg_line_length": 33.9555555556, "ext": "h", "hexsha": "0ad607e338e58b73488d483638879be63f57b80c", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* * Copyright (c) 2016-2021 lymastee, All rights reserved. * Contact: lymastee@hotmail.com * * This file is part of the gslib project. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in t...
{ "alphanum_fraction": 0.5363972463, "avg_line_length": 29.2141527002, "ext": "h", "hexsha": "41f5107bd6e46a35286ec70a36f48b47319ccfd2", "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:...
/*! \file allvars.h * \brief declares global variables. * * This file declares all global variables and structures. Further variables should be added here, and declared as * \e \b extern. The actual existence of these variables is provided by the file \ref allvars.cxx. To produce * \ref allvars.cxx from \ref a...
{ "alphanum_fraction": 0.7077574072, "avg_line_length": 37.259399684, "ext": "h", "hexsha": "4399334b85ceeafea581c9c3d64107d52b19391c", "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": ...
/* LODO library: laser-stabilized odometry Copyright (C) 2004 Andrew Howard ahoward@usc.edu 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 o...
{ "alphanum_fraction": 0.7364584502, "avg_line_length": 30.0235690236, "ext": "h", "hexsha": "21bd37474a8d2c9368b23530c0fe103fd62ede74", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* ode-initval/rk4.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your optio...
{ "alphanum_fraction": 0.5824514991, "avg_line_length": 21.8076923077, "ext": "c", "hexsha": "ae944e7a20e5650d14a69272dc74e3c4e66181aa", "lang": "C", "max_forks_count": 14, "max_forks_repo_forks_event_max_datetime": "2021-06-10T03:09:53.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-29T20:31...
///////////////// //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 *a; //y=a[0]x[0]+a[1]x[1]+...a[ka]y[ka]+b[0]u[0]+b[1]u[1]+...+b[kb]u[kb] // double *a; //y[t+1]=a[0]y[t]+a[1]y[t-1]+...a...
{ "alphanum_fraction": 0.478868439, "avg_line_length": 28.6243902439, "ext": "c", "hexsha": "7c249549c414946aa8c96a53ab8088c7ebb042f7", "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:1...
#ifndef OPT_H #define OPT_H #include <gsl/gsl_vector.h> void optimize_simplex(const gsl_vector* gamma, const gsl_vector* v, double lambda, gsl_vector* opt_x); double f_simplex(const gsl_vector* gamma, const gsl_vector* v, double lambda, const gsl_vector* opt_x); void df_simplex(const gsl_vector* gamma, const gsl_vecto...
{ "alphanum_fraction": 0.7822736031, "avg_line_length": 39.9230769231, "ext": "h", "hexsha": "01897849382f8a9040b5a3ddae1a71323d78b0f1", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/** * \author Sylvain Marsat, University of Maryland - NASA GSFC * * \brief C header for functions manipulating waveforms. * */ #ifndef _WAVEFORM_H #define _WAVEFORM_H #define _XOPEN_SOURCE 500 #ifdef __GNUC__ #define UNUSED __attribute__ ((unused)) #else #define UNUSED #endif #include <stdio.h> #include <stdl...
{ "alphanum_fraction": 0.6380847204, "avg_line_length": 62.4482758621, "ext": "h", "hexsha": "bd07a483f7deca91b139b32ce8c58af501b8d839", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-07-20T02:56:30.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-20T14:19:...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
{ "alphanum_fraction": 0.7477713686, "avg_line_length": 30.2698412698, "ext": "h", "hexsha": "34f98017655cb56730cc24264ba412d49ac3c3ef", "lang": "C", "max_forks_count": 190, "max_forks_repo_forks_event_max_datetime": "2020-06-15T12:26:12.000Z", "max_forks_repo_forks_event_min_datetime": "2017-06-08T19:3...
/* +---------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | ...
{ "alphanum_fraction": 0.6689858999, "avg_line_length": 29.105734767, "ext": "c", "hexsha": "a144d6b8b5439240aebe3db6da58f9bb9a859eb1", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2022-02-22T08:56:28.000Z", "max_forks_repo_forks_event_min_datetime": "2018-06-08T07:55:5...
#ifndef _COMMON_ #define _COMMON_ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_roots.h> #include "params.h" //#include "dam_utils.h" #include "cosmo_mad.h" #define DTOR 0.01745329251 typedef struct { gsl_interp_accel *intacc; gsl_splin...
{ "alphanum_fraction": 0.7158211522, "avg_line_length": 20.4035087719, "ext": "h", "hexsha": "405a29ad7fff5f172fbea368d9499f6f41d333eb", "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...
// Authors: David Blei (blei@cs.princeton.edu) // Sean Gerrish (sgerrish@cs.princeton.edu) // // Copyright 2011 Sean Gerrish and David Blei // All Rights Reserved. // // See the README for this package for details about modifying or // distributing this software. #include "lda-seq.h" #include "gflags.h" #inc...
{ "alphanum_fraction": 0.6232351361, "avg_line_length": 29.8599562363, "ext": "c", "hexsha": "256d320a4727041030c9af457f58117b4f84ca46", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2020-07-10T09:29:17.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-15T04:11:...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_interp.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_errno.h> #include <class.h> /* from extern/ */ #include "ccl.h" #include "ccl_params.h" #include "ccl_emu17.h" #include "ccl_emu17_params.h" /*------ R...
{ "alphanum_fraction": 0.6798442794, "avg_line_length": 34.4705221786, "ext": "c", "hexsha": "dc94d25ad58a1729b94c81c6c1638c3c9b2caaeb", "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 matrix.i * @brief Wrapper for GSL matrix objects. * @author John McDonough, Kenichi Kumatani */ #ifndef GSLMATRIX_H #define GSLMATRIX_H #include <gsl/gsl_matrix.h> #define GSL_MATRIX_NROWS(x) ((x)->size2) #define GSL_MATRIX_NCOLS(x) ((x)->size2) gsl_matrix_float* gsl_matrix_float_resize(gsl_matrix_f...
{ "alphanum_fraction": 0.7705167173, "avg_line_length": 27.4166666667, "ext": "h", "hexsha": "1fafaf1d67dc9a5867daff2a853536be54a8634f", "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...
// Copyright 2011-2021 GameParadiso, Inc. All Rights Reserved. #pragma once #include <map> #include <unordered_map> #include <ranges> #include <glm/vec3.hpp> #include <glm/vec4.hpp> #include <glm/mat4x4.hpp> #include <glm/gtc/quaternion.hpp> #include <glm/ext/matrix_transform.hpp> #include <glm/ext/matrix_clip_space...
{ "alphanum_fraction": 0.76, "avg_line_length": 21.25, "ext": "h", "hexsha": "704bd572205d273c6ffd942c467acd9b46fa4a86", "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": "81d620e95fa677...
/// /// @file /// /// @author Mirko Myllykoski (mirkom@cs.umu.se), Umeå University /// @author Lars Karlsson (larsk@cs.umu.se), Umeå University /// /// @internal LICENSE /// /// Copyright (c) 2019-2020, Umeå Universitet /// /// Redistribution and use in source and binary forms, with or without /// modification, are per...
{ "alphanum_fraction": 0.6506592407, "avg_line_length": 27.0291858679, "ext": "c", "hexsha": "68f61733a7a549282ce9d54fc13897f21269c69c", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2020-04-14T09:41:23.000Z", "max_forks_repo_forks_event_min_datetime": "2019-04-30T12:14:...
#include <gsl/gsl_sf_erf.h> #include <gsl/gsl_cdf.h> #include <stdio.h> void evaluate(double x) { double probability = gsl_sf_erf(x); printf( "The probability that Normal(0, 1) random variable has a value " "between %g and %g is: %g\n", -x, x, probability ); double area = 1 - 2 * gsl_cdf_gaussian_P(-...
{ "alphanum_fraction": 0.6194331984, "avg_line_length": 19.76, "ext": "c", "hexsha": "4e5748d489872be88b504747411a943d30235e7b", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-01-09T02:51:16.000Z", "max_forks_repo_forks_event_min_datetime": "2016-06-15T10:13:12.000Z"...
/** * author: Jochen K"upper * created: Jan 2002 * file: pygsl/src/statistics/longmodule.c * $Id: longmodule.c,v 1.10 2004/03/24 08:40:45 schnizer Exp $ * * optional usage of Numeric module, available at http://numpy.sourceforge.net *" */ #include <Python.h> #include <pygsl/error_helpers.h> #include <pygsl/bl...
{ "alphanum_fraction": 0.7122940431, "avg_line_length": 20.2307692308, "ext": "c", "hexsha": "8c2a3ed02e2eea51367675fb23fcaa930b2a1d72", "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:...
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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.6626947754, "avg_line_length": 22.9684210526, "ext": "h", "hexsha": "c8559eefd8378450fc18c2ba821c65b39c8cc046", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2016-10-07T00:50:53.000Z", "max_forks_repo_forks_event_min_datetime": "2016-10-07T00:50:...
/* spdgemv.c * * Copyright (C) 2012-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.4738491203, "avg_line_length": 24.8443113772, "ext": "c", "hexsha": "cadb57c31df873752b130de3610c213a74862dca", "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":...
/* multiroots/broyden.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...
{ "alphanum_fraction": 0.5881405416, "avg_line_length": 21.7352297593, "ext": "c", "hexsha": "65c96478d7ef7296a84752bb2c703f624b46bce1", "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...
#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_trsv (void) { const double flteps = 1e-4, dbleps = 1e-6; { int order = 101; int trans = 111; int uplo = 121; int diag = 131; int N = 1; int lda = 1; float ...
{ "alphanum_fraction": 0.4972220127, "avg_line_length": 22.8603448276, "ext": "c", "hexsha": "39f5083b3c9feff9c8000ab65afca9d6baadefcc", "lang": "C", "max_forks_count": 224, "max_forks_repo_forks_event_max_datetime": "2022-03-30T00:57:48.000Z", "max_forks_repo_forks_event_min_datetime": "2015-11-12T21:1...
#include <config.h> #include <math.h> #include <gsl/gsl_statistics.h> #define BASE_LONG_DOUBLE #include "templates_on.h" #include "wskew_source.c" #include "templates_off.h" #undef BASE_LONG_DOUBLE #define BASE_DOUBLE #include "templates_on.h" #include "wskew_source.c" #include "templates_off.h" #undef BASE_DOUBLE ...
{ "alphanum_fraction": 0.7767653759, "avg_line_length": 19.0869565217, "ext": "c", "hexsha": "9e747c6cdc594d0cbc15597fbcd0e836a2ebcabb", "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...
#ifndef SPECTRALFUNCTIONS #define SPECTRALFUNCTIONS #include <string> #include <iostream> #include <vector> #include <gsl/gsl_complex.h> #include <tuple> #include "Constants.h" #include "NuclearUtilities.h" namespace bsg { /** * Namespace containing all correction factors to the allowed beta spectrum shape * as d...
{ "alphanum_fraction": 0.7169724469, "avg_line_length": 44.4649122807, "ext": "h", "hexsha": "772f9387dcacd0e346a28cc4dd135465d03f2bdd", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2021-08-24T00:55:59.000Z", "max_forks_repo_forks_event_min_datetime": "2018-10-29T16:49:...
#include <stdio.h> #include <gsl/gsl_vector.h> int sum(double* arr, int size) { for (int i=0; i<size ; i++) { arr[i] += 10; } return 0; } gsl_vector* get_vector( int size ) { int i; gsl_vector * v = gsl_vector_alloc (size); for (i = 0; i < size; i++) { gsl_vector_set (v, ...
{ "alphanum_fraction": 0.5863486842, "avg_line_length": 17.6231884058, "ext": "c", "hexsha": "e0e840f6723afb80cdf3946a3ffe3bcd1f84b9b7", "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:...
#ifndef LOGSUMEXP_INCLUDED #define LOGSUMEXP_INCLUDED #include <limits> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <cmath> #include "vguard.h" /* uncomment to disable lookup table */ /* #define LOG_SUM_EXP_SLOW */ /* uncomment to catch NaN errors */ /* #define NAN_DEBUG */ #define LOG_SUM_EXP_...
{ "alphanum_fraction": 0.698159083, "avg_line_length": 33.2832369942, "ext": "h", "hexsha": "8b50bf0641ca8ddcacbf5b3458e8592ab8134e72", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2021-04-13T05:24:48.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-05T01:39:5...
/** * This file is part of the Contour terminal project * Copyright (c) 2019-2021 Christian Parpart <christian@parpart.family> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed t...
{ "alphanum_fraction": 0.6558543067, "avg_line_length": 30.6076555024, "ext": "h", "hexsha": "162bdf592babbc636b8c2efebc8c5f2956c9bd0c", "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 "ui/detail/ui_helpers_native.h" #include <gsl/gsl> struct Tcl_Interp; namespace cws80 { class TkUI : public NativeUI { public: std::string choose_file(gsl::span<const FileChooserFilter> filters, const std::string &directory, const std::string &title, FileChooserMode mode) override; cxx::optional<std:...
{ "alphanum_fraction": 0.7519623234, "avg_line_length": 33.5263157895, "ext": "h", "hexsha": "cf622d674424d715a99afab86243632c6eaa4aba", "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 2015 The TensorFlow 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 a...
{ "alphanum_fraction": 0.7176321928, "avg_line_length": 42.1639344262, "ext": "h", "hexsha": "268f729acf811a4de7512ee055e79d3e29095e7c", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-03-09T19:15:20.000Z", "max_forks_repo_forks_event_min_datetime": "2021-02-20T12:10:...
/* * 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.57239819, "avg_line_length": 30.6496350365, "ext": "h", "hexsha": "7c8b9a0bd42850685a998d1a0808e13d41606f52", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2016-10-19T15:20:58.000Z", "max_forks_repo_forks_event_min_datetime": "2016-10-19T15:20:58...
/* multimin/vector_bfgs.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Fabrice Rossi * * 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 o...
{ "alphanum_fraction": 0.6436835891, "avg_line_length": 24.9117647059, "ext": "c", "hexsha": "bbcbed5e23a8f81ab840ee392ccb3c0dcf244ccc", "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:...
/* randist/discrete.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007, 2009 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 Lice...
{ "alphanum_fraction": 0.6219076006, "avg_line_length": 32.972972973, "ext": "c", "hexsha": "a1400eebade8ace37e0c7dee8e68f1f6f040dbb3", "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:...
/* $Id$ */ /*--------------------------------------------------------------------*/ /*; Copyright (C) 2012-2018 */ /*; Associated Universities, Inc. Washington DC, USA. */ /*; */ /*; This pr...
{ "alphanum_fraction": 0.5543792657, "avg_line_length": 35.2907211075, "ext": "c", "hexsha": "f697932a75854d23bb9b36ebc38c6cfef5235876", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-12-22T14:07:41.000Z", "max_forks_repo_forks_event_min_datetime": "2021-12-22T14:07:...
#include <math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include "regional.h" void init_weights(t_stochasticity_grid *g) { /* The weights will be normalized s.t. the sum of squared weights is one */ g->weights[0] = 1.0; double sum = 1.0; for (int i = 1; i<g->depth; i++) { ...
{ "alphanum_fraction": 0.5639989902, "avg_line_length": 30.4692307692, "ext": "c", "hexsha": "b873455e0f118fa1d6d577cfa59ee13101e2e346", "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 #if SEAL_COMPILER == SEAL_COMPILER_GCC // We require GCC >= 6 #if (__GNUC__ < 6) || not defined(__cplusplus) #error "SEAL requires __GNUC__ >= 6" #endif // Read in config.h #include "config.h" // Are we using MSGSL? #ifdef SEAL_USE_MSGSL #include <gsl/gsl> #endif // Are intrinsics enabled? #ifdef SEA...
{ "alphanum_fraction": 0.5468526466, "avg_line_length": 39.9428571429, "ext": "h", "hexsha": "1b2d4390f306d35eb8480635069e3cc80ca828c2", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-11-26T02:31:56.000Z", "max_forks_repo_forks_event_min_datetime": "2021-05-29T10:15:...
/* fft/bitreverse.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.5387058356, "avg_line_length": 24.6960784314, "ext": "c", "hexsha": "15e0e8a2510e862a741cabdd8a25b5910a3f19e9", "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 "schedule.h" #include <boost/random/uniform_01.hpp> #include <boost/random/uniform_int_distribution.hpp> #include <gsl/gsl-lite.hpp> #include <pcg_random.hpp> #include <random> namespace angonoka::stun { using RandomEngine = pcg32; /** Miscellaneous random number generators. */ class Random...
{ "alphanum_fraction": 0.6663708962, "avg_line_length": 20.8703703704, "ext": "h", "hexsha": "f315cd7ba8c20b4d10e612b92c08fa84d6821e1b", "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":...
#undef FP_T #undef FP_ID #undef VECTOR_T #undef VECTOR_ID #undef MATRIX_T #undef MATRIX_ID #ifdef GSL_FLOAT #define MATLAB_NAMESPACE matlab_float #define BCT_NAMESPACE bct_float #define FP_T float #define FP_ID(id) id##_##float #define VECTOR_T gsl_vector_float #define VECTOR_ID(id) gsl_vector_float##_##id #define MAT...
{ "alphanum_fraction": 0.8139723802, "avg_line_length": 26.7608695652, "ext": "h", "hexsha": "582a96f20e3931fc048d90b2b5304cf0b2bd815c", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* vector/gsl_vector_long.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, ...
{ "alphanum_fraction": 0.6750873421, "avg_line_length": 31.6680851064, "ext": "h", "hexsha": "cc1ee2d75ff1faa20fc278bcd8e5d513baeaa5c5", "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 bfkl_H_INCLUDED #define bfkl_H_INCLUDED #include <stdio.h> #include <math.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_math.h> #include <gsl/gsl_errno.h> #include "cubature.h" #include "string.h" #include "alphas.h" #include "wf.h" //number of tabulated points in z and x f...
{ "alphanum_fraction": 0.7179856115, "avg_line_length": 19.3055555556, "ext": "h", "hexsha": "13ff8d1013a1cae53b1bfafa8d6d7f3ad59369c7", "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":...
/* randist/gsl_randist.h * * 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 (...
{ "alphanum_fraction": 0.7677774317, "avg_line_length": 51.7903225806, "ext": "h", "hexsha": "712ed5135f786a13ef248149f1bc47b7662dc111", "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":...
/* sys/ldfrexp.c * * Copyright (C) 2002, Gert Van den Eynde * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. ...
{ "alphanum_fraction": 0.5968772179, "avg_line_length": 23.0983606557, "ext": "c", "hexsha": "c5ba3a6a734193e06fa88580b807ca3c961545b8", "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...
/* histogram/gsl-histogram.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 *...
{ "alphanum_fraction": 0.5941470928, "avg_line_length": 24.0462962963, "ext": "c", "hexsha": "0897883b356dcbef6f7eec611fa435448ad86c39", "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 <linux/types.h> #include <linux/types.h> #include <stdio.h> #include <gsl/gsl_rng.h> #include <math.h> #include "sweeny_dc.h" #include "timeseries.h" #include "extract_args.h" #define BUF_LEN 512 char fn[BUF_LEN]; char verbose = 0; #define TS_FILE_D "../time_series/dc/simulation_l%u_q%.4f_b%.4f_c%.4f_s%u....
{ "alphanum_fraction": 0.7105263158, "avg_line_length": 21.5094339623, "ext": "c", "hexsha": "e3d7bf6111e5d0f541f444ec03c73574c66097b8", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2017-04-10T14:18:57.000Z", "max_forks_repo_forks_event_min_datetime": "2017-04-10T14:18:...
/*****************************************************************\ __ / / / / __ __ / /______ _______ / / / / ________ __ __ / ______ \ /_____ \ / / / / / _____ | / / / / / / | / _______| / / / / / / /____/ / / / / / / / / /...
{ "alphanum_fraction": 0.5301204819, "avg_line_length": 29.5747126437, "ext": "h", "hexsha": "d933de766cfaac3352d80d081a2b65766648aeb3", "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 <gsl/gsl_matrix.h> #include <gsl/gsl_cblas.h> #include <gsl/gsl_sf.h> #include "adkGSL.h" #include "AFS.h" #include "cs.h" #include "adkCSparse.h" #include "AFS_ctmc.h" #include <pthread.h> void coalMarkovChainTopologyMatrix_pth...
{ "alphanum_fraction": 0.5809721092, "avg_line_length": 31.9550827423, "ext": "c", "hexsha": "3efad2141106ddd96fb2155e6e9044a24f2ce551", "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 <stdio.h> #include <stdlib.h> #include <string.h> #include <cblas.h> #include <time.h> void random_matrix(double *matrix, int N); void print_vector(double *vector, int N); void print_matrix(double *matrix, int N); void matrix_vector_mult(double *matrix, double *vector, do...
{ "alphanum_fraction": 0.6547169811, "avg_line_length": 31.1764705882, "ext": "h", "hexsha": "94e855ce350a8a964ab684a3b162f885d4014dc3", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
 /** *************************************************************************** * * Copyright 2018 Jose Fernando Lopez Fernandez - All Rights Reserved * See the file AUTHORS included with the application distribution for * specific information. * * Redistribution and use in source and binary forms, with or withou...
{ "alphanum_fraction": 0.6981808865, "avg_line_length": 31.7317073171, "ext": "h", "hexsha": "0834b773d5dc8665d4f2fd0a0024788d27d4819a", "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_zlantr.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 Mathieu Faverge * @date 2010-11-15 * @precisions normal z -> c d s * **/ #include <la...
{ "alphanum_fraction": 0.484430512, "avg_line_length": 34.4244604317, "ext": "c", "hexsha": "ad29e4db1d4448c9a1fe697b309aadc11f484905", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
/* Copyright (C) 2019-2020 JingWeiZhangHuai <jingweizhanghuai@163.com> Licensed under the Apache License, Version 2.0; 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 in wri...
{ "alphanum_fraction": 0.606279672, "avg_line_length": 37.674796748, "ext": "c", "hexsha": "ad4982a1d814a11e94acdd8b4175f8f906f3540a", "lang": "C", "max_forks_count": 35, "max_forks_repo_forks_event_max_datetime": "2022-03-22T11:34:47.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-26T05:09:2...
#ifndef STATEMENT_INCLUDE #define STATEMENT_INCLUDE #include <string> #include <gsl/gsl> #include "executionContent.h" #include "yaml.h" namespace execHelper { namespace test { namespace baseUtils { using StatementKey = std::string; using StatementCollection = ExecutionContent::ConfigCommand; class Statement { p...
{ "alphanum_fraction": 0.7245934959, "avg_line_length": 24, "ext": "h", "hexsha": "4a01ca7037b4ed8248ba6aae98bdbe30676f84c2", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-07-03T11:11:19.000Z", "max_forks_repo_forks_event_min_datetime": "2018-07-03T11:11:19.000Z", ...
#ifndef __GSL_MANAGED_H__ #define __GSL_MANAGED_H__ #include "cuda.h" #include <gsl/gsl_matrix_double.h> #include <gsl/gsl_vector_double.h> gsl_matrix *gsl_matrix_alloc_managed(const size_t n1, const size_t n2); gsl_matrix *gsl_matrix_calloc_managed(const size_t n1, const size_t n2); void gsl_matrix_free_managed(gsl_...
{ "alphanum_fraction": 0.8222523745, "avg_line_length": 38.7894736842, "ext": "h", "hexsha": "c49cba6d6401042760ab8fbe1fd591e0815d8ed6", "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_hemm (void) { const double flteps = 1e-4, dbleps = 1e-6; { int order = 101; int side = 141; int uplo = 121; int M = 1; int N = 2; float alpha[2] = {0.0f, 0.1f}; ...
{ "alphanum_fraction": 0.5070364238, "avg_line_length": 28.2242990654, "ext": "c", "hexsha": "ce1b888927ad6eb977a517f1df88552697b93cd5", "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:...
/* specfunc/bessel_K0.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * Copyright (C) 2016 Pavel Holoborodko, 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 Foundat...
{ "alphanum_fraction": 0.6717303999, "avg_line_length": 27.5336538462, "ext": "c", "hexsha": "127fcb9efcaa30165a191e8f533340bb0d80dd64", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
#ifndef DBJ_VARIOUS_SIMPLE_MATMULS_INC #define DBJ_VARIOUS_SIMPLE_MATMULS_INC // not using any kind of "matrix framework" #include "../dbj_matmul_common.h" // DBJ_MATRIX_DATA_TYPE #include <stdlib.h> #include <intrin.h> // #define __SSE__ 1 #ifdef HAVE_CBLAS #include <cblas.h> #endif #undef DBJ_API #define DBJ_API ...
{ "alphanum_fraction": 0.679201639, "avg_line_length": 35.2703962704, "ext": "h", "hexsha": "db4362cb1894d2c795fd39ee8901e5dfae1b04f8", "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 <utility> #include <cuda/define_specifiers.hpp> #include <cuda/runtime_api.hpp> #include <gsl-lite/gsl-lite.hpp> namespace thrustshift { namespace kernel { template <typename SrcT, typename DstT, class F> __global__ void transform(gsl_lite::span<const SrcT> src, ...
{ "alphanum_fraction": 0.6369912791, "avg_line_length": 25.247706422, "ext": "h", "hexsha": "bd0c8e69731f2359c238e5275e56f83c4d51ee2f", "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 gps_single.c Implements GPS single point solution using Least Squares * \author Duncan Greer * $Id: gps_single.c 3579 2010-06-26 10:57:31Z greerd $ */ #include <stdio.h> #include <sys/types.h> #include <sys/mman.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #includ...
{ "alphanum_fraction": 0.6689590624, "avg_line_length": 25.1525076766, "ext": "c", "hexsha": "375d5fdd4ef5832668405b6429acc6fd62f3334f", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2019-11-14T08:30:11.000Z", "max_forks_repo_forks_event_min_datetime": "2016-12-01T20:17:...
// Copyright (c) 2005 Stanford University (USA). // All rights reserved. // // This file is part of CGAL (www.cgal.org); you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 3 of the License, // or (at your ...
{ "alphanum_fraction": 0.6467075279, "avg_line_length": 27.7860262009, "ext": "h", "hexsha": "6808909e1a27c243c20d416af9319309f2048ea6", "lang": "C", "max_forks_count": 34, "max_forks_repo_forks_event_max_datetime": "2022-02-28T03:29:40.000Z", "max_forks_repo_forks_event_min_datetime": "2019-02-13T01:11...
/* This file forms part of hpGEM. This package has been developed over a number of years by various people at the University of Twente and a full list of contributors can be found at http://hpgem.org/about-the-code/team This code is distributed using BSD 3-Clause License. A copy of which can found below. Copyr...
{ "alphanum_fraction": 0.6892173583, "avg_line_length": 37.6928571429, "ext": "h", "hexsha": "0c2a331b3719d0e0062451d01f1ed3341377db95", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-08-21T07:20:42.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-10T09:19:...
#ifndef __Rand_H__ #define __Rand_H__ #define RAND Rand::Instance() #include <gsl/gsl_rng.h> // GSL random number generator #include <gsl/gsl_randist.h> /* * Rand Singleton - interface to GSL rng (random number generator) * * Singletons and global variables are sometimes frowne...
{ "alphanum_fraction": 0.5993527508, "avg_line_length": 29.1509433962, "ext": "h", "hexsha": "f0701820022338e5413cd8789cd5fe6e464d4575", "lang": "C", "max_forks_count": 34, "max_forks_repo_forks_event_max_datetime": "2022-03-23T00:50:08.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-05T03:36...
/* ----------------------------------------------------------------------------- JAM_AXI_VEL_LOSINT Calculates integrand for line-of-sight integral required for first moment calculation. INPUTS zp : line-of-sight coordinate z' (integration variable) params : function parameters p...
{ "alphanum_fraction": 0.5527440026, "avg_line_length": 28.4392523364, "ext": "c", "hexsha": "477498c004427fa754ebcaf77be672c1958a7991", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-02T13:33:21.000Z", "max_forks_repo_forks_event_min_datetime": "2019-07-25T09:30:...
#ifndef LVV_MULTIMIN_H #define LVV_MULTIMIN_H #include <stdlib.h> #include <iostream> using std::cerr; #include <gsl/gsl_errno.h> #include <gsl/gsl_math.h> #include <gsl/gsl_multimin.h> #include <lvv/lvv.h> #include <lvv/math.h> namespace lvv { class f_minimizer { public: f_minimizer (const int N, double F(...
{ "alphanum_fraction": 0.6276978417, "avg_line_length": 31.2359550562, "ext": "h", "hexsha": "9abb437794040b886210ef854900638defd96ba2", "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 contains functions used to call sequential MKL/BLAS/LAPACK routines * * Authors : Sebastien Cayrols * : Olivier Tissot * Email : sebastien.cayrols@[(gmail.com) | (inria.fr)] * : olivier.tissot@inria.fr */ /******************************************************************************/ ...
{ "alphanum_fraction": 0.4774004591, "avg_line_length": 25.2912912913, "ext": "c", "hexsha": "3269027a064936109e98df63d62cfd7f0b20b209", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-10-05T11:22:04.000Z", "max_forks_repo_forks_event_min_datetime": "2020-11-17T22:41:...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
{ "alphanum_fraction": 0.4635273725, "avg_line_length": 31.9621421976, "ext": "c", "hexsha": "dce1cb7bec0068f6672b7089803cda297135c232", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-02-08T00:11:00.000Z", "max_forks_repo_forks_event_min_datetime": "2022-02-08T00:11:...
/* ** conversions: p->z, z->p, t->z ** ** G.Lohmann, April 2007 */ #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <gsl/gsl_math.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_cdf.h> #include <gsl/gsl_errno.h> #define ABS(x) ((x) > 0 ? (x) : -(x)) /* ** convert t to p valu...
{ "alphanum_fraction": 0.5601710446, "avg_line_length": 13.5289256198, "ext": "c", "hexsha": "28bd7a1062073adfbbb5604cd49e6b11f5c1b7f0", "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:...
/** \file real-compressor.c */ #ifndef __COMPLEARN_REALCOMPRESSOR_H #define __COMPLEARN_REALCOMPRESSOR_H #define COMPLEARN_REAL_COMPRESSOR_TYPE (real_compressor_get_type ()) #define COMPLEARN_TYPE_REAL_COMPRESSOR (real_compressor_get_type ()) #define COMPLEARN_REAL_COMPRESSOR(obj) (G_TYPE_CHECK_IN...
{ "alphanum_fraction": 0.7897845172, "avg_line_length": 49.7222222222, "ext": "c", "hexsha": "f2d36ae62bfc1f6c6b6297528178f442284fb8de", "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":...
/* ** Read design file ** ** G.Lohmann, MPI-KYB 2018 */ #include <viaio/Vlib.h> #include <viaio/VImage.h> #include <viaio/mu.h> #include <viaio/option.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_blas.h> typ...
{ "alphanum_fraction": 0.5709556389, "avg_line_length": 24.1010638298, "ext": "c", "hexsha": "ebce82618e3fdf8a8c6f287bf8cbd161e59a29d3", "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:...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
{ "alphanum_fraction": 0.5159310143, "avg_line_length": 33.8712871287, "ext": "c", "hexsha": "5eada56943e4fd292aa7cad9eedb43b8e855649c", "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...
#include <stdio.h> //printf #include <string.h> //memset #include <time.h> //time #include <cblas.h> //cblas_scopy, cblas_sscal, cblas_sgemm #include <sys/times.h> //times #include <unistd.h> //sysconf #include <math.h> //fabsf #include <xmmintrin.h> //_mm_malloc #define ALIGN 16 float...
{ "alphanum_fraction": 0.5692834563, "avg_line_length": 33.8928571429, "ext": "c", "hexsha": "75fe4a97069673b58d7e329731cf66d1375bd197", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-09-29T08:17:38.000Z", "max_forks_repo_forks_event_min_datetime": "2020-09-29T08:17:...
/*========================================================== * arrayStxmWithMask.c - example in MATLAB External Interfaces * * Multiplies an input scalar (multiplier) * times a 1xN matrix (inMatrix) * and outputs a 1xN matrix (outMatrix) * * The calling syntax is: * * outMatrix = arrayStxmWithMask(multiplier...
{ "alphanum_fraction": 0.5418125243, "avg_line_length": 28.2527472527, "ext": "c", "hexsha": "ba51a7b9093f4558f0eabc15ffe67c04cf9aae83", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef NETWORK_CANUDPRECEIVER_H #define NETWORK_CANUDPRECEIVER_H #include <cstdint> #include <gsl/gsl> #include <QObject> #include "tincan/canrawframe.h" #include "network/udpasyncreceiver.h" namespace network { class Can_udp_receiver final : public QObject, public udp::Async_receiver { Q_OBJECT public: Ca...
{ "alphanum_fraction": 0.7680412371, "avg_line_length": 20.4210526316, "ext": "h", "hexsha": "c8e0455aeb8649a42437bd6005a4fb5ee83ce82a", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2019-08-30T07:57:19.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-23T11:05:...
#include "utils.h" #include <assert.h> #include "stdio.h" #include "string.h" #include "cosmosis/datablock/c_datablock.h" #include <gsl/gsl_math.h> #include <gsl/gsl_interp2d.h> #include <gsl/gsl_spline2d.h> gsl_spline * spline_from_arrays(int n, double * x, double *y) { gsl_spline * output = gsl_spline_alloc(gsl_int...
{ "alphanum_fraction": 0.6452002415, "avg_line_length": 24.5180921053, "ext": "c", "hexsha": "b10b0ef5d35fd4b4b49bd20cb6048233fa74d213", "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:...
static char help[] = "Unstructured 2D FEM solution of nonlinear Poisson problem. Option prefix un_.\n" "Equation is\n" " - div( a(u,x,y) grad u ) = f(u,x,y)\n" "on arbitrary 2D polygonal domain, with boundary data g_D(x,y), g_N(x,y).\n" "Functions a(), f(), g_D(), g_N(), and u_exact() are given as formulas.\n" "Inp...
{ "alphanum_fraction": 0.5718275193, "avg_line_length": 41.263671875, "ext": "c", "hexsha": "37fdead61538d62835913426be4c4aa1d7f5e0e0", "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/householder.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004, 2007, 2010 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of...
{ "alphanum_fraction": 0.5125166284, "avg_line_length": 24.3205882353, "ext": "c", "hexsha": "65a6385cc91be94a7959a8831939e19c2ac82d27", "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...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2017 Couchbase, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
{ "alphanum_fraction": 0.7263693849, "avg_line_length": 35.9203539823, "ext": "h", "hexsha": "cfc39b5183b0b6c86252ae23dce7e6fa7168ce5f", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-01-15T16:52:37.000Z", "max_forks_repo_forks_event_min_datetime": "2020-01-15T16:52:...
#include <math.h> #include <string.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_roots.h> #include <gsl/gsl_sf_hyperg.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_math.h> #include <fastpm/libfastpm.h> #include <fastpm/prof.h> #include <fastpm/lightcone.h> #include <fastpm/logging.h> #include <gsl/gsl_linalg...
{ "alphanum_fraction": 0.5128526272, "avg_line_length": 28.5153061224, "ext": "c", "hexsha": "1230a22028697d4125b688fcc47117b88a0a09b2", "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 LIC_CALL_STACK_FRAME #define LIC_CALL_STACK_FRAME #include <stack> #include <gsl/gsl> #include "format/Opcodes.h" #include "loader/MethodDefinition.h" #include "EvaluationStack.h" namespace lic { class CallStackFrame { public: CallStackFrame(MethodDefinition& method, gsl::span<TypedValue> args, Opcode* ...
{ "alphanum_fraction": 0.7415458937, "avg_line_length": 21.7894736842, "ext": "h", "hexsha": "ce37797f5cc4133019c329905c678708ce50beaa", "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>
{ "alphanum_fraction": 0.6764705882, "avg_line_length": 6.8, "ext": "h", "hexsha": "5246ae4c8d35bb690b270bf2151fdd92f5bbfffd", "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": "628e9aed...
#if !defined(SM_H) #define SM_H #include <gsl/gsl_matrix.h> /** * @brief Class describing the Standard Model * * This class holds all the parameters specifying the Standard Model, and * methods to access them in convenient ways. * */ class SM { public: /// Default value for EM coupling \f$ \alpha_{\rm{EM}}...
{ "alphanum_fraction": 0.6166420924, "avg_line_length": 26.7106164384, "ext": "h", "hexsha": "6bbd352ae85c89cab08828313f8eb904a604fd14", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-11-27T14:59:29.000Z", "max_forks_repo_forks_event_min_datetime": "2019-11-27T14:59:...
/* rng/rand48.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 * you...
{ "alphanum_fraction": 0.6593207156, "avg_line_length": 26.7847222222, "ext": "c", "hexsha": "f01a351f0210a6c9298cd7d3100e6190ee2e2e32", "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 "CesiumUtility/Library.h" #include <cmath> #include <cstdint> #include <gsl/narrow> #include <initializer_list> #include <map> #include <optional> #include <stdexcept> #include <string> #include <string_view> #include <type_traits> #include <variant> #include <vector> namespace CesiumUtility { ...
{ "alphanum_fraction": 0.6465978699, "avg_line_length": 29.3220064725, "ext": "h", "hexsha": "52748dc5ff07cb94be61faebed67ca507446647f", "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 <errno.h> // errno #include <fcntl.h> // open, write #include <unistd.h> // getpid #include <sstream> #include <boost/filesystem.hpp> #include <gsl/gsl_util> #include "do_persistence.h" #include "error_macros.h" // RAII wrapper for creating, writing and deleting the file that will // contain t...
{ "alphanum_fraction": 0.5864774001, "avg_line_length": 34.3205128205, "ext": "h", "hexsha": "3767db9ab52f65cb9dd1f683534d25f6e42bd81e", "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":...
/* 10 Sept 08: Process_Error_Code is now static and thus private to this library. */ #include <cblas.h> #include "lbl.h" #include "ma57.h" #ifdef __cplusplus extern "C" { /* To prevent C++ compilers from mangling symbols */ #endif /* ===============================================================...
{ "alphanum_fraction": 0.5205853777, "avg_line_length": 30.4962962963, "ext": "c", "hexsha": "6b1014f9d0dfdf905abb48eb14cf57ae7170a05c", "lang": "C", "max_forks_count": 30, "max_forks_repo_forks_event_max_datetime": "2022-03-02T20:30:20.000Z", "max_forks_repo_forks_event_min_datetime": "2015-08-06T22:57...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <gsl/span> #include "core/common/common.h" #include "core/optimizer/graph_transformer.h" namespace onnxruntime { struct FreeDimensionOverride; /** @Class FreeDimensionOverrideTransformer Transfor...
{ "alphanum_fraction": 0.7992656059, "avg_line_length": 25.53125, "ext": "h", "hexsha": "d92ac47a08455c5f01f65a7a755a18285e2f0c68", "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": "9ed...
#include <stdio.h> #include <stdlib.h> #include <cblas.h> #include <math.h> #include "../inc/knnring.h" // Application Entry Point knnresult kNN(double * X, double * Y, int n, int m, int d, int k) { // Calculate distances matrix D - D is row-major and nxm double* tempD = calculateD(X, Y, n, m, d, k); double* D =...
{ "alphanum_fraction": 0.6151902998, "avg_line_length": 28.0094339623, "ext": "c", "hexsha": "a67eb8ec71b4a34f42f85f1fdaae3a1c5cd5499c", "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_PERMUTE_MATRIX_H__ #define __GSL_PERMUTE_MATRIX_H__ #if !defined( GSL_FUN ) # if !defined( GSL_DLL ) # define GSL_FUN extern # elif defined( BUILD_GSL_DLL ) # define GSL_FUN extern __declspec(dllexport) # else # define GSL_FUN extern __declspec(dllimport) # endif #endif #include <gsl/gsl_pe...
{ "alphanum_fraction": 0.8053830228, "avg_line_length": 27.6, "ext": "h", "hexsha": "4710f1465cae35ec9f9dccb5e2d8c81248cee972", "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:35.000Z",...
/*insert GNU extensions*/ #define _GNU_SOURCE /*in particular, use of NAN extension*/ /* used by <errno.h> */ extern int errno; /* GSL ----------- */ #include <gsl/gsl_vector.h> #include <gsl/gsl_multimin.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_blas.h> /* --------------- */ #defin...
{ "alphanum_fraction": 0.6655172414, "avg_line_length": 23.5135135135, "ext": "h", "hexsha": "d88f271f4180bfdb4e4c1a74573ec8015c886ff8", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-09-15T10:37:33.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-15T10:37:...
#ifndef SOURCE_LINGAUSS_H_ #define SOURCE_LINGAUSS_H_ // *** source/lin_gauss.h *** // Author: Kevin Wolz, date: 06/2018 // // This program defines the class "LinGauss" describing linear Gaussian models. #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <stdlib.h> ...
{ "alphanum_fraction": 0.7589336358, "avg_line_length": 31.4821428571, "ext": "h", "hexsha": "edbadb77b2734deb02fc0ad889303c350e08f6ea", "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 <renderer/Shading.h> #include <renderer/VertexSpecification.h> #include <gsl/span> #include <cassert> namespace ad { namespace graphics { struct GenericDrawer { VertexArrayObject mVertexArray; Program mProgram; std::size_t mVertexCount{0}; std::size_t mInstanceCount{1}; t...
{ "alphanum_fraction": 0.5495011512, "avg_line_length": 23.6909090909, "ext": "h", "hexsha": "997337dfc002e2c161fbfe54d833bee0b3c87869", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-03-18T10:56:05.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-18T10:56:...
/** * @file coroutine/linux.h * @author github.com/luncliff (luncliff@gmail.com) * @copyright CC BY 4.0 */ #ifndef COROUTINE_SYSTEM_WRAPPER_H #define COROUTINE_SYSTEM_WRAPPER_H #if !(defined(__linux__)) #error "expect Linux platform for this file" #endif #include <sys/epoll.h> // for Linux epoll #include <coroutin...
{ "alphanum_fraction": 0.5911210217, "avg_line_length": 26.1005291005, "ext": "h", "hexsha": "b6b45fe249e33da7d1117ca53ffb13db9a5b1af4", "lang": "C", "max_forks_count": 29, "max_forks_repo_forks_event_max_datetime": "2022-02-11T17:36:55.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-26T14:03...