Search is not available for this dataset
text
string
meta
dict
#ifndef SurrogateHeatFluidDriver_h #define SurrogateHeatFluidDriver_h #include <memory> #include <vector> #include "Teuchos_ParameterList.hpp" #include "Teuchos_RCP.hpp" #include <gsl/gsl> #include "Assembly_Model.h" #include "Single_Pin_Subchannel.h" #include "Single_Pin_Conduction.h" namespace enrico { //! Driv...
{ "alphanum_fraction": 0.6527422563, "avg_line_length": 30.6, "ext": "h", "hexsha": "f7d8355ba4fb251fcd2d83006e447117d0ba3c7f", "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": "7a346c1...
#include <stdio.h> #include <gsl/gsl_spline.h> void spline_interp(long data_size, long out_size, \ double *data_x, double *data_y, \ double *out_x, double *out_y) { // initialize gsl_interp_accel *acc = gsl_interp_accel_alloc(); gsl_spline *spline = gsl_spline_alloc(gsl_interp_cspline, ...
{ "alphanum_fraction": 0.6567656766, "avg_line_length": 26.347826087, "ext": "c", "hexsha": "c82e728105b6e60147d57cd7309a6e171c3be763", "lang": "C", "max_forks_count": 9, "max_forks_repo_forks_event_max_datetime": "2022-01-25T10:17:02.000Z", "max_forks_repo_forks_event_min_datetime": "2019-12-05T20:00:0...
#ifndef __Q_INCS #define __Q_INCS #include <alloca.h> #include <assert.h> #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <float.h> // #include <gsl/gsl_vector.h> // #include <gsl/gsl_matrix.h> // #include <gsl/gsl_blas.h> // #include <gsl/gsl_linalg.h> #include <inttypes.h> #include <limits.h> // TOD...
{ "alphanum_fraction": 0.7006622517, "avg_line_length": 21.5714285714, "ext": "h", "hexsha": "e8002a17807ccfc6e4436a08bc56fe64386b947a", "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:...
#include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_math.h> #include "allvars.h" #include "proto.h" /*! \file snIa_heating.c * \brief routines for heating by type Ia supernovae */ #if defined(SNIA_HEATING) static struct snheatingdata_in { MyDouble Po...
{ "alphanum_fraction": 0.6099789178, "avg_line_length": 23.2516339869, "ext": "c", "hexsha": "b5d51237ff4148fff3e8a989da2e6e63585ce2ed", "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 "q_incs.h" #include <lapacke.h> #include "eigenvectors.h" int eigenvectors( uint64_t n, double *W, double *A, double **X ) { int status = 0; char jobz = 'V'; /*want eigenvectors, use 'N' for eigenvalues only*/ char uplo = 'U'; /*'U' for up...
{ "alphanum_fraction": 0.5171875, "avg_line_length": 22.0689655172, "ext": "c", "hexsha": "af05da0d24845d91e2eb24735b1b0e4094ba8bd9", "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:13....
/* statistics/gsl_statistics_double.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Jim Davies, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lic...
{ "alphanum_fraction": 0.7881200245, "avg_line_length": 68.7578947368, "ext": "h", "hexsha": "43074e9f0faa38d2856f3cc6e0ccf7b877044834", "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 __INTEGRAL_H__ #define __INTEGRAL_H__ #include "integral.h" #endif #ifndef __GSLEXTRA_H__ #define __GSLEXTRA_H__ #include "../include/gslextra.h" #endif #ifndef __GSLPRINT_H__ #define __GSLPRINT_H__ #include "../include/gslprint.h" #endif #include <gsl/gsl_eigen.h> // calculate the attraction energy matrix ...
{ "alphanum_fraction": 0.7980314961, "avg_line_length": 46.1818181818, "ext": "h", "hexsha": "7543a96b4e9681c54f1a84790f15e5a75721d91e", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-10-16T03:11:07.000Z", "max_forks_repo_forks_event_min_datetime": "2020-03-18T13:50:...
#pragma once #include "exp_curve_fitter.h" #include "optimizer_job.h" #include "random_utils.h" #include "schedule_params.h" #include <gsl/gsl-lite.hpp> #include <vector> namespace angonoka::stun { /** How many iterations without improvement before considering optimization complete. */ enum class MaxIdleIters...
{ "alphanum_fraction": 0.6299606721, "avg_line_length": 22.7398373984, "ext": "h", "hexsha": "5af8326b86d9cf57d283c530fba41dbb5bec1719", "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":...
/* multimin/diff.c * * Copyright (C) 2000 David Morrison * * 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.6536030341, "avg_line_length": 26.813559322, "ext": "c", "hexsha": "f6937245206c3ee9768445df93e6b6293fbab307", "lang": "C", "max_forks_count": 14, "max_forks_repo_forks_event_max_datetime": "2020-03-12T12:31:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T04:47:...
#include <stdio.h> //#ifndef DARWIN //#include <malloc.h> //#endif #include <stddef.h> #include <Python.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_blas.h> #include <string.h> #include <math.h> /* void inplace(double* npyArray3D, int npyLength1D, int npylength2D, int n...
{ "alphanum_fraction": 0.6351959967, "avg_line_length": 30.0250417362, "ext": "c", "hexsha": "b682b3ed3f68e784ac48ec43dcc9399d6d5c079e", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifdef __cplusplus #include <string> #include <algorithm> #include "halley/data_structures/vector.h" #include <map> #include <set> #include <array> #include <charconv> #include <gsl/gsl> #include <cstddef> #include <limits> #include <memory> #include <chrono> #include <thread> #include <mutex> #include <iomanip> #inclu...
{ "alphanum_fraction": 0.7373068433, "avg_line_length": 18.12, "ext": "h", "hexsha": "127ce8261a30819fcffa8a7b0431c36f9d7826be", "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": "5f6a5d...
#ifndef SIR_H #define SIR_H #include <gsl/gsl_odeiv.h> #include <gsl/gsl_errno.h> #include <iostream> #include "DiffEq_Sim.h" using namespace std; class SIR : public DiffEq_Sim { private: const double beta; const double gamma; public: SIR() : beta(0.0), gamma(0.0) { nbins=3;} ...
{ "alphanum_fraction": 0.512, "avg_line_length": 20.8333333333, "ext": "h", "hexsha": "59effc687880d42f30e6de9ca85cafe4dbd8bfde", "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:00.000...
#include <math.h> #include <galpy_potentials.h> #include <stdio.h> #include <gsl/gsl_sf_gegenbauer.h> #include <gsl/gsl_sf_legendre.h> #ifndef GSL_MAJOR_VERSION #define GSL_MAJOR_VERSION 1 #endif #ifndef M_PI #define M_PI 3.14159265358979323846 #endif //SCF Disk potential //4 arguments: amp, Acos, Asin, a const int F...
{ "alphanum_fraction": 0.5420273667, "avg_line_length": 26.3308823529, "ext": "c", "hexsha": "e441c2536a54bbb1178e32d08c61d067350ffd15", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-07-30T06:14:31.000Z", "max_forks_repo_forks_event_min_datetime": "2020-07-30T06:14:...
/* integration/qk21.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 o...
{ "alphanum_fraction": 0.759971254, "avg_line_length": 35.6794871795, "ext": "c", "hexsha": "1e263ed7b5116554306876f50d8cc101fd052c43", "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:...
#ifndef __GSL_VECTOR_H__ #define __GSL_VECTOR_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_vecto...
{ "alphanum_fraction": 0.7413394919, "avg_line_length": 24.0555555556, "ext": "h", "hexsha": "a6a361469e15439b283ff1c79d32114eb963f8db", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_odeiv2.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_roots.h> #include "ccl.h" /* --------- ROUTINE: h_over_h0 --------- INPUT: scale factor, cosmology TASK: C...
{ "alphanum_fraction": 0.6556804708, "avg_line_length": 31.8030726257, "ext": "c", "hexsha": "43b56d4ad72350ba6f88792d331103bc863acf68", "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) 2013-2017 Anton Kozhevnikov, Thomas Schulthess // 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 notic...
{ "alphanum_fraction": 0.4591994854, "avg_line_length": 38.2156424581, "ext": "h", "hexsha": "cb60d6ea1547ef8d83b5272daa38e97003c6e8c6", "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: model_utils.c * Subroutines to calculate the * various contamination models */ #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_interp.h> #include "model_utils.h" #include "fitsio.h" #include "inout_aper.h" #include "aXe_grism.h" #include "spce_PET.h" #include...
{ "alphanum_fraction": 0.6506262859, "avg_line_length": 30.0609367894, "ext": "c", "hexsha": "9e10f93a67b72dd46281e2e9d85cf73ba84c8f1b", "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 takes the output of window_univar, and applies the 1D FFT to each row or col. //The input dim is which dim to take the 1D FFT along (0->along cols, 1->along rows). //The output Y is power (real-valued), i.e. the FFT squared, Y = X*conj(X) element-wise. //The size of Y must be FxC if dim==0, and RxF if dim==1, wh...
{ "alphanum_fraction": 0.4811533052, "avg_line_length": 35.198019802, "ext": "c", "hexsha": "bce175ea640fbb3644ae6cc02c7089c4615af465", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-10-05T13:50:32.000Z", "max_forks_repo_forks_event_min_datetime": "2021-10-05T13:50:3...
// Copyright 2018 Jeremy Mason // // Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or // http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or // http://opensource.org/licenses/MIT>, at your option. This file may not be // copied, modified, or distributed except according to those...
{ "alphanum_fraction": 0.5957389501, "avg_line_length": 27.2391782832, "ext": "c", "hexsha": "3e9ef1289d61fb849bfc7fcad3d679323c6aab22", "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 _HEX_GRAPH_H_ #define _HEX_GRAPH_H_ #include <stdlib.h> #include <gsl/gsl_spmatrix.h> struct graph_t { size_t num_vertices; // Number of vertices in the graph gsl_spmatrix* t; // Sparse matrix of size n*n, // t[i][j] == 1 means there is an edge from i to j gsl_spmatrix* o; ...
{ "alphanum_fraction": 0.6133056133, "avg_line_length": 30.0625, "ext": "h", "hexsha": "478ab3f470b6773778c7357dcf5f34cd45804779", "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": "2c2e...
#pragma once #include "Cesium3DTiles/Library.h" #include "Cesium3DTiles/RasterOverlay.h" #include "Cesium3DTiles/RasterOverlayTileProvider.h" #include <gsl/span> #include <memory> #include <vector> namespace Cesium3DTiles { class Tileset; /** * @brief A collection of {@link RasterOverlay} instances that are associ...
{ "alphanum_fraction": 0.7188081937, "avg_line_length": 28.64, "ext": "h", "hexsha": "6a55d2da06de2a50bde943ba75062858e15b233f", "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": "d7b02d...
#pragma once #include "table.h" #include <gsl/span> #include <new> template <typename T> T* CreateTypeBuffer(std::size_t rowCount) { return new T[rowCount](); } template <typename T> struct CreateTypeBuffers { }; template <typename... Ts> struct CreateTypeBuffers<std::tuple<Ts...>> { static void** exec(std:...
{ "alphanum_fraction": 0.6178861789, "avg_line_length": 27.3333333333, "ext": "h", "hexsha": "122b49f163a55809a0c4b6093eee6d936d4af435", "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_complex_long_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 o...
{ "alphanum_fraction": 0.7075052607, "avg_line_length": 34.7723577236, "ext": "h", "hexsha": "fdb6059904005b8e3f24106646bc9ec69b90497d", "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 <RInside.h> #include <gsl/gsl_rng.h> void inclusiveValue ( struct INCV &incv, double *deltaIn, struct PAR &par, struct VAR &var, double *nu //======================================================= ); void inclusiveValue ( //======================================================= struct INCV &incv, d...
{ "alphanum_fraction": 0.4812473662, "avg_line_length": 16.3092783505, "ext": "h", "hexsha": "d0252d0d624cc782746718164e810da09a3e3a55", "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 EXOBJ_H #define EXOBJ_H #include <unistd.h> #include <iostream> #include <fstream> #include <float.h> #include <math.h> #include <complex> #include <vector> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_multimin.h> //#include <string> #include <SQuIDS/SQuIDS.h> #include <nuSQuIDS/nu...
{ "alphanum_fraction": 0.7895142637, "avg_line_length": 31.6341463415, "ext": "h", "hexsha": "9673fcf289f1d99e78e4dce717ff9413258db50b", "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":...
/* fp-win.c * * Author: Brian Gladman * * 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. * * This program is ...
{ "alphanum_fraction": 0.7253275109, "avg_line_length": 30.1315789474, "ext": "c", "hexsha": "a4a522df2922830b94e47a07c3277ae423a1e550", "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:...
#pragma once #include "halley/plugin/iasset_importer.h" #include <gsl/gsl> #include "halley/file_formats/config_file.h" #include <yaml-cpp/node/node.h> namespace Halley { class ConfigFile; class ConfigImporter : public IAssetImporter { public: ImportAssetType getType() const override { return ImportAssetType::C...
{ "alphanum_fraction": 0.7666068223, "avg_line_length": 25.3181818182, "ext": "h", "hexsha": "49ff2dc35c4219fb706b754e2d4fcb5309100912", "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 utils.h *\author weckyy702 (weckyy702@gmail.com) *\brief Utility and core Header file *\date 2021-03-25 * *MIT License *Copyright (c) [2021] [Weckyy702 (weckyy702@gmail.com | https://github.com/Weckyy702)] *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and ass...
{ "alphanum_fraction": 0.6406076325, "avg_line_length": 32.7151515152, "ext": "h", "hexsha": "60e3805333892f708cb7b0e8a63be7d5afc45dcf", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-06T09:23:32.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-08T12:05:...
/** * * @file testing_spemv.c * * PLASMA testing routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Dulceneia Becker * @date 2011-10-06 * @generated s Tue Jan 7 11:45:19 2014 * **/ #include <st...
{ "alphanum_fraction": 0.3865992742, "avg_line_length": 29.9069767442, "ext": "c", "hexsha": "ca4807bc72262ea536e464eec7dc6b3872eb57dc", "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":...
/* im_invfft * * Copyright: 1990, N. Dessipris. * * Author: Nicos Dessipris * Written on: 12/04/1990 * Modified on : * 28/6/95 JC * - rewritten, based on new im_fwfft() code * 10/9/98 JC * - frees memory more quickly * 2/4/02 JC * - fftw code added * 13/7/02 JC * - Type reset * 27/2/03 JC * - tiny spee...
{ "alphanum_fraction": 0.5992799778, "avg_line_length": 24.2348993289, "ext": "c", "hexsha": "444495d79c8c2bde1a553d39047d640f480bd0a8", "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 __GSL_SORT_VECTOR_H__ #define __GSL_SORT_VECTOR_H__ #include <gsl/gsl_sort_vector_long_double.h> #include <gsl/gsl_sort_vector_double.h> #include <gsl/gsl_sort_vector_float.h> #include <gsl/gsl_sort_vector_ulong.h> #include <gsl/gsl_sort_vector_long.h> #include <gsl/gsl_sort_vector_uint.h> #include <gsl/gsl_...
{ "alphanum_fraction": 0.8161350844, "avg_line_length": 25.380952381, "ext": "h", "hexsha": "d65a9ee9bb97679e47bd3ebd5f85f187f240d593", "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 // std #include <optional> // GSL #include <gsl/gsl_assert> // EnTT #include <entt/entt.hpp> // Qt #include <QtWidgets>
{ "alphanum_fraction": 0.6691176471, "avg_line_length": 10.4615384615, "ext": "h", "hexsha": "884d94e5d48a1680b1d6fdf282df072c9bf1e996", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* * Copyright 2021-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance with the Business Source License, use of this * software will be governed by...
{ "alphanum_fraction": 0.6113013082, "avg_line_length": 34.385377943, "ext": "h", "hexsha": "a263c61ae81223aab6c49dbead144df9e936eff9", "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_vector.h> #include <gsl/gsl_statistics_double.h> #include <math.h> #include "tz_error.h" #include "tz_constant.h" #include "tz_voxel_linked_list.h" #include "tz_stack_sampling.h" #include "tz_voxel_graphics.h" #include "tz_neurotrace.h" #include "tz_stack_math.h"...
{ "alphanum_fraction": 0.6385857704, "avg_line_length": 23.2588832487, "ext": "c", "hexsha": "4145af91ae99428183e3711e216913e4bc7cfe93", "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 <petscksp.h> #include "AFS.h" #include "AFS_ctmc_petsc.h" #include "im_clam.h" #include "sparseExp.h" #include "cs.h" #include "AFS_ctmc.h" #include "nlopt.h" #include "adkGSL.h" #include <gsl/gsl_linalg.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_cblas.h> #include <gsl/gsl_blas.h> //Functions for jointly co...
{ "alphanum_fraction": 0.6512323944, "avg_line_length": 31.086786552, "ext": "c", "hexsha": "3e3e61b526d4f215854e1fc5730e6621426051b1", "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_vector.h> #include <stdio.h> #include "vector.h" #include "api.h" static void ke_vector_alloc(sml_t* sml) { int n = sml_pop_int(sml); gsl_vector * v = gsl_vector_alloc(n); sml_mem_inc(sml); sml_push_vector(sml, v) } static void ke_vector_int_alloc(sml_t* sml) { int n = sml_pop_int(sml); gs...
{ "alphanum_fraction": 0.7265905593, "avg_line_length": 30.6326129666, "ext": "c", "hexsha": "d800b64778fb64bf8d6fe69fa72c43f3088b27fc", "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, Kevin Lang, Oath Research /* gcc -Wall -pedantic -Iinclude -Llib -o multi_reading_linsolve multi_reading_linsolve.c -lgsl -lgslcblas */ #include <stdio.h> #include <assert.h> #include <gsl/gsl_linalg.h> /*****************************************************************************/ #ifdef EXAMPLE...
{ "alphanum_fraction": 0.5445424141, "avg_line_length": 28.3534482759, "ext": "c", "hexsha": "41e8ede97c4cbb876127e4ea988b820c6cedc502", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-12-05T09:23:02.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-06T19:57:...
//STARTWHOLE static char help[] = "Solve a 4x4 linear system using KSP.\n"; #include <petsc.h> int main(int argc,char **args) { PetscErrorCode ierr; Vec x, b; Mat A; KSP ksp; PetscInt i, j[4] = {0, 1, 2, 3}; // j = column index PetscReal ab[4] = {7.0, 1.0...
{ "alphanum_fraction": 0.5859007833, "avg_line_length": 38.3, "ext": "c", "hexsha": "10d8f2d7455bf859fbf725bbd5348b64cf575c74", "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:58.000Z"...
#ifdef USE_MKL #include <mkl_lapacke.h> #else #include <lapacke.h> #endif // contains all calls to C-interface LAPACK functions (LAPACKE) // https://www.netlib.org/lapack/lapacke.html // returns the solution, x, to a real system of linear equations // A * x = b, // solution is returned in b, i.e. b --> x, for retur...
{ "alphanum_fraction": 0.691740413, "avg_line_length": 28.25, "ext": "c", "hexsha": "fbbdc947561fcadb6e1ddc03f6be29af14ec9904", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-07-18T16:32:34.000Z", "max_forks_repo_forks_event_min_datetime": "2016-06-16T17:43:38.000Z",...
static char help[] = "Time-dependent advection equation, in flux-conservative form, in 2D.\n" "Option prefix -adv_. Domain is (-1,1) x (-1,1). Equation is\n" " u_t + div(a(x,y) u) = g(x,y,u).\n" "Boundary conditions are periodic in x and y. Cells are grid-point centered.\n" "Allows flux-limited (non-oscillatory) me...
{ "alphanum_fraction": 0.5177168348, "avg_line_length": 41.6181434599, "ext": "c", "hexsha": "640df925640adf44bfd709158c85bd8b68e8f885", "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_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 License...
{ "alphanum_fraction": 0.6479712475, "avg_line_length": 30.8250728863, "ext": "h", "hexsha": "dc063943d49efec5a35b4120c6162d3fe35ba0a9", "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":...
// cosmo.h // written by Suman Bhattacharya (https://github.com/bsuman79), modified by Samuel Flender // defines the cosmology and allows calculations of various cosmological params #ifndef cosmo_Header_included #define cosmo_Header_included #include <stdio.h> #include <math.h> #include <iostream> #include <stdlib.h...
{ "alphanum_fraction": 0.6403340873, "avg_line_length": 25.3171806167, "ext": "h", "hexsha": "6a3992d927cdc28282686e4491ed682ed86a4d29", "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 2011, 2012 by the CALATK development team * * 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 a...
{ "alphanum_fraction": 0.6999327957, "avg_line_length": 22.3759398496, "ext": "h", "hexsha": "c8fa9403754e3e643d60893da781788594d5df14", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-10-20T16:38:28.000Z", "max_forks_repo_forks_event_min_datetime": "2018-10-20T16:38:...
#ifndef STK_Matrix_h #define STK_Matrix_h #include "common.h" #include "Error.h" #include "BasicVector.h" #include <stddef.h> #include <stdlib.h> #include <stdexcept> #include <iostream> #ifdef HAVE_ATLAS extern "C"{ #ifdef USE_MKL #include "mkl.h" #else #include <cblas.h> #include <atlas/clapack.h> ...
{ "alphanum_fraction": 0.5020971801, "avg_line_length": 24.7555910543, "ext": "h", "hexsha": "86f6ef1164a2e00dfaa1c90fd14cfe00b1a6196e", "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 <mex.h> #include <matrix.h> #include <math.h> #include <string.h> #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <blas.h> // dgemv #include <lapack.h> // dstegr #define abs1(a) ((a) < 0.0 ? -(a) : (a)) #define sign1(a) ((a)==0) ? 0 : (((a)>0.0)?1:(-1)) #de...
{ "alphanum_fraction": 0.4836471754, "avg_line_length": 27.123655914, "ext": "c", "hexsha": "213592acd160ae587d0bc2d9bff38d8a0e7400a1", "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 // v1.4 By Ook // #include <gsl/gsl> #include "EnumConcepts.h" // this enum is here to simplify debugging enum class WindowMessages : DWORD { eWM_NULL, eWM_CREATE, // lParam = LPCREATESTRUCT eWM_DESTROY, eWM_MOVE, eWM_SIZEWAIT, eWM_SIZE, // lParam = width/height eWM_ACTIVATE,...
{ "alphanum_fraction": 0.8039099292, "avg_line_length": 21.9539530843, "ext": "h", "hexsha": "8a2459930ef480c27c7746c66169811319f7d35a", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2018-08-04T23:53:29.000Z", "max_forks_repo_forks_event_min_datetime": "2018-04-01T09:39:...
#ifndef _MATH_UTIL_EULER_H_ #define _MATH_UTIL_EULER_H_ /* space group numbers for structures known by this program */ /* these are from the International Tables, allowed values are [1-230] */ /* * #define FCC 225 * #define BCC 229 * #define DIA 227 * #define SIMPLE_CUBIC 221 * #define HEX 194 * #define SAPPHIR...
{ "alphanum_fraction": 0.6815874481, "avg_line_length": 31.8676470588, "ext": "h", "hexsha": "55549a6f6fcf40456aa88b437145e6a4ee48be76", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-01-21T17:48:28.000Z", "max_forks_repo_forks_event_min_datetime": "2022-01-21T17:48:...
#ifndef __QBLAS_EXTEND__CD #define __QBLAS_EXTEND__CD #ifdef HAVE_CBLAS_H #include <cblas.h> #elif (defined HAVE_MKL_CBLAS_H) #include <mkl_cblas.h> #elif (defined HAVE_GSL_CBLAS_H) #include <gsl_cblas.h> #endif /* some convenience functions for the case where all vectors are continguous in memory */ inline v...
{ "alphanum_fraction": 0.6123755334, "avg_line_length": 25.1071428571, "ext": "h", "hexsha": "75b83e51976eb063ca39b9a0c9e7f4e27c16f971", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-12-02T20:41:09.000Z", "max_forks_repo_forks_event_min_datetime": "2020-03-16T05:55:...
#pragma once #include <ntdll.h> #include <gsl/span> #include <gsl/span_ext> #include "module.h" namespace pe { class module; class segment : public IMAGE_SECTION_HEADER { public: segment() = delete; const class module *module() const; class module *module(); std::string_view name() const; ...
{ "alphanum_fraction": 0.6768447837, "avg_line_length": 21.8333333333, "ext": "h", "hexsha": "183e1c83ff5727f20044694505e3942a549371ab", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-18T18:03:36.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-18T18:03:...
/* The VCL screen capture library is released under the MIT license. * * Copyright(c) 2018 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 without restriction, including ...
{ "alphanum_fraction": 0.7328027288, "avg_line_length": 29.0743801653, "ext": "h", "hexsha": "ac315c9de64ecea793b8feaea01b3d962e9b3030", "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":...
// MILOS v2.0 (2020) // Milne-Eddington inversion code (based on IDL MILOS code by D. Orozco) // Manuel Cabrera, Juan P. Cobos, Luis Bellot (IAA-CSIC) // For questions, please contact lbellot@iaa.es // /* ; eta0 = line-to-continuum absorption coefficient ratio ; B = magnetic field strength [Gauss] ; ...
{ "alphanum_fraction": 0.5961538462, "avg_line_length": 45.2888086643, "ext": "c", "hexsha": "0bae2d261a2dd53ef00669b83dc2ffd3a231143a", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-09-09T19:10:00.000Z", "max_forks_repo_forks_event_min_datetime": "2021-06-14T12:12:...
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement" /* * ocl_model_maintenance.c * * Created on: 09.02.2014 * Author: mheimel */ #include "ocl_model_maintenance.h" #include <math.h> #include <stdlib.h> #include <sys/time.h> #include "ocl_adaptive_bandwidth.h" #include "ocl_error_metrics.h" #inc...
{ "alphanum_fraction": 0.7051532942, "avg_line_length": 40.4485488127, "ext": "c", "hexsha": "219fcefe57f852bd7be448f7cb57b8dc2f37279c", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-12-18T12:42:07.000Z", "max_forks_repo_forks_event_min_datetime": "2020-11-17T16:06:...
#ifndef SOURCE_ROBANALYT_H_ #define SOURCE_ROBANALYT_H_ // *** source/rob_analyt.h *** // Author: Kevin Wolz, date: 08/2018 // // Class RobAnalyt: analytical algorithm to calculate distribution in the WPL. #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <stdlib.h...
{ "alphanum_fraction": 0.7120921305, "avg_line_length": 32.9746835443, "ext": "h", "hexsha": "2066804bf1fe918d02a2c32f2b38d51d95f32d81", "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 "lah.h" #ifdef HAVE_LAPACK /* Use a LAPACK package to do the heavy work */ #include <lapacke.h> lah_Return lah_chol(lah_mat *P, lah_index setZero) { lah_index i, j; lapack_int res; if (P == NULL || !LAH_ISTYPE(P, lahTypeSquare)) return lahReturnParameterError; res = POTRF(LAH_LAPA...
{ "alphanum_fraction": 0.4708029197, "avg_line_length": 25.1954022989, "ext": "c", "hexsha": "0e01cb15c7605ec5c64e174b300b34d41d5408a3", "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_drotg (double *a, double *b, double *c, double *s) { #define BASE double #include "source_rotg.h" #undef BASE }
{ "alphanum_fraction": 0.7083333333, "avg_line_length": 16, "ext": "c", "hexsha": "f7103bf0e6259780d693a1d4c5e5b4c6a9a355d9", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:59.000Z", ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <assert.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include "core_allvars.h" #include "model_dust.h" #include "model_misc.h" double integrate_arr(const double arr1[MAX_STRING_LEN], const double arr2[...
{ "alphanum_fraction": 0.5913998339, "avg_line_length": 40.137037037, "ext": "c", "hexsha": "dc131b623a368b12f7af320d97a8e8dc5eb52b7b", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-04-09T11:12:02.000Z", "max_forks_repo_forks_event_min_datetime": "2020-02-14T05:45:4...
/* * Copyright (c) 2018-2021 Aleksas Mazeliauskas, Stefan Floerchinger, * Eduardo Grossi, and Derek Teaney * All rights reserved. * * FastReso is distributed under MIT license; * see the LICENSE file that should be present in the root * of the source distribution, or alternately available at:...
{ "alphanum_fraction": 0.6540639351, "avg_line_length": 42.3188679245, "ext": "h", "hexsha": "a5f1d28467534230bb1a36879c57887bddd435fe", "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 "common.h" #include <gsl/gsl_rng.h> #define ALT_CNT 4 enum categorical_flags { TEST_TYPE_CODOMINANT = 1, TEST_TYPE_RECESSIVE = 2, TEST_TYPE_DOMINANT = 4, TEST_TYPE_ALLELIC = 8 }; struct categorical_supp { uint8_t *phen_bits; size_t *filter, *table, *phen_mar, *outer; }...
{ "alphanum_fraction": 0.739625712, "avg_line_length": 26.7173913043, "ext": "h", "hexsha": "7b74ff12800836a07f09d29ef4d8acabd0853347", "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": ...
/* multifit_nlinear/lm.c * * Copyright (C) 2014, 2015, 2016 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 la...
{ "alphanum_fraction": 0.6380186283, "avg_line_length": 27.3855072464, "ext": "c", "hexsha": "b76f0d9f6c9ae40d488ecce458039729268ad0b8", "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:...
/** * @file mcc_localizer.h * @brief grid search based localization * @author Kenichi Kumatani */ #ifndef MCC_LOCALIZER_H #define MCC_LOCALIZER_H #include <stdio.h> #include <assert.h> #include <float.h> #include <gsl/gsl_block.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_complex.h...
{ "alphanum_fraction": 0.7377329783, "avg_line_length": 33.4904458599, "ext": "h", "hexsha": "9ab97bbf46c78338266f33917b940d9e5fb29b29", "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...
/* roots/gsl_roots.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Reid Priedhorsky, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the Li...
{ "alphanum_fraction": 0.7246102976, "avg_line_length": 30.6811594203, "ext": "h", "hexsha": "b8e516b40d7360fa312d18b166833e53dd81a94d", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
#include <stdio.h> #include <math.h> #include <gsl/gsl_integration.h> void integral_recur ( int nmin, int nmax, double vals[]); void integral_recur (int nmin, int nmax, double vals[]) { double IN = 0; int i = nmax - 1; vals [nmax] = IN; while ( i >= nmin) { vals[i] = (IN + exp (-1.))/((dou...
{ "alphanum_fraction": 0.5434173669, "avg_line_length": 18.7894736842, "ext": "c", "hexsha": "e559e3267f0bf0779a78e50c9cf0fa8a409ef63a", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2017-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance...
{ "alphanum_fraction": 0.5169124986, "avg_line_length": 34.6807692308, "ext": "h", "hexsha": "089bc26994b5256b13ddae5c355145ed0f0e4c29", "lang": "C", "max_forks_count": 71, "max_forks_repo_forks_event_max_datetime": "2022-03-29T10:34:32.000Z", "max_forks_repo_forks_event_min_datetime": "2017-05-22T20:41...
/** * * @file * * 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.7.1 * @author Mathieu Faverge * @date 2010-11-15 **/ /* * @precisions normal z -> c d s */ #include <cblas.h> #include "dpla...
{ "alphanum_fraction": 0.4677846425, "avg_line_length": 29.9735449735, "ext": "c", "hexsha": "fc5fe0518aac5d11d9092c7518a00980a3f5eb18", "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":...
/* 生成sample for Regression */ /* theta12, m21 fixed */ /* theta23, theta13, m31 flat distribution in 3 sigma range */ /* deltacp flat distribution in 0~360 */ /* 使用方式(產100K組) : ./sample_regression <filename.h5> <num> */ /* Caution: `num` should not greater than 1000. */ #include <stdio.h> #include <stdlib.h> #includ...
{ "alphanum_fraction": 0.6348389387, "avg_line_length": 32.382183908, "ext": "c", "hexsha": "220db0958479fe160b00cea89050cfc03d188791", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-02-16T16:25:35.000Z", "max_forks_repo_forks_event_min_datetime": "2022-02-16T16:25:3...
/*! \file Fitting.h * \brief header file for fitting functions to data. */ #ifndef FITTING_H #define FITTING_H #include <cmath> #include <iostream> #include <limits> #include <gsl/gsl_math.h> #include <gsl/gsl_interp.h> #include <gsl/gsl_monte.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_cdf.h> #include <gsl/...
{ "alphanum_fraction": 0.7337468983, "avg_line_length": 51.6666666667, "ext": "h", "hexsha": "71df27100cfd473e0e9e3bddc8ad2197c90c1455", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2020-10-23T00:21:57.000Z", "max_forks_repo_forks_event_min_datetime": "2019-04-23T02:58:...
#include <cblas.h> #include <assert.h> #include <unistd.h> #include "benchmark.hpp" void dot_cblas(const double *A, const size_t A_m, const size_t A_n, const double *B, const size_t B_m, const size_t B_n, double *C) { UNUSED(B...
{ "alphanum_fraction": 0.4483985765, "avg_line_length": 29.5789473684, "ext": "c", "hexsha": "49c73c0fe7f2a8d14900ee0c87f967c485d323c8", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-10-22T03:19:44.000Z", "max_forks_repo_forks_event_min_datetime": "2020-03-12T05:10:...
#ifndef __GSL_VECTOR_H__ #define __GSL_VECTOR_H__ #include <gsl/gsl_vector_complex_long_double.h> #include <gsl/gsl_vector_complex_double.h> #include <gsl/gsl_vector_complex_float.h> #include <gsl/gsl_vector_long_double.h> #include <gsl/gsl_vector_double.h> #include <gsl/gsl_vector_float.h> #include <gsl/gsl_vector_...
{ "alphanum_fraction": 0.7976588629, "avg_line_length": 23, "ext": "h", "hexsha": "cf762e42fa949be09907f99b62ef90e9e2fede31", "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:54.000Z",...
/*-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. File Name : leef.c Purpose: embedding learning on a weighted graph Creation Date : 15-01-2017 Last Modified : Wed 15 Mar 2017 03:07:53 PM CDT Created By : Huan Gui (huangui2@illinois.edu) _._._._._._._._._._._._._._._._._._._._._.*/ #include <assert.h> #include <gsl...
{ "alphanum_fraction": 0.6224248892, "avg_line_length": 30.6755952381, "ext": "c", "hexsha": "3a514542d10a948c9bf1924cc5f32d94bc358824", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2020-12-29T21:31:52.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-14T21:46:...
/* 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 program is distributed in the hope that it will be useful, ...
{ "alphanum_fraction": 0.6564483947, "avg_line_length": 33.2108433735, "ext": "c", "hexsha": "10d15e76a4a5db253dc1505de5d267d2efe9f931", "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...
#ifndef STRUCTURES_H #define STRUCTURES_H #include <string> #include <vector> #include <gsl/gsl_matrix.h> #define NSYSTEMS 5 #define T 3 #define UI 5 #define UJ 1 struct grain { //Euler angles in radians double phi1, phi, phi2; gsl_matrix *rot_mat; std::vector<double> crss; grain() {} grain(double p1, doubl...
{ "alphanum_fraction": 0.6824902724, "avg_line_length": 15.4819277108, "ext": "h", "hexsha": "d4ba34c5ef27851b939d1ca1257ad706fa17a6b1", "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 <chrono> #include <fmt/printf.h> #include <gsl/gsl-lite.hpp> namespace angonoka::cli { /** Pretty-print values with as much info as possible. @var value Value to be pretty-printed */ template <typename T> struct verbose { T value; }; template <typename T> verbose(T) -> verbose<T>; ...
{ "alphanum_fraction": 0.5939422622, "avg_line_length": 27.8026315789, "ext": "h", "hexsha": "6520e7a892d8c4d64d1a0186ab88c70c0b9893eb", "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) 2009-2013 Thierry Sousbie # University of Tokyo / CNRS, 2009 # # This file is part of porject DisPerSE # # Author : Thierry Sousbie # Contact : tsousbie@gmail.com # # Licenses : This file is 'dual-licensed', you have to choose one # of the two...
{ "alphanum_fraction": 0.624719489, "avg_line_length": 25.1869565217, "ext": "c", "hexsha": "a183449a4b9a44ee2c5c1187df0af24c00a1e156", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-30T18:12:10.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-30T13:12:2...
/* multilarge/test.c * * Copyright (C) 2015 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.6093942339, "avg_line_length": 29.9127906977, "ext": "c", "hexsha": "02651e57fb958d4976f564fd7b32d76347d18d73", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
{ "alphanum_fraction": 0.6449659349, "avg_line_length": 41.9365079365, "ext": "c", "hexsha": "2ce12e7a24bad82a3deb24145eb23b6117ed6a70", "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 "mpi.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include <string.h> #include <stdbool.h> #ifdef __APPLE__ #include <cblas.h> #include <libiomp/omp.h> #define set_num_threads(x) openblas_set_num_threads(x) #define get_num_threads() openblas_get_num_threads() #else #includ...
{ "alphanum_fraction": 0.5837407014, "avg_line_length": 35.7794676806, "ext": "c", "hexsha": "c56c9f57c5199c8fb6239b47e7fe53140843286c", "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 STDAFX__H #define STDAFX__H #if defined(_WIN32) #include <SDKDDKVer.h> #if !defined(_STL_EXTRA_DISABLED_WARNINGS) #define _STL_EXTRA_DISABLED_WARNINGS 4061 4324 4365 4514 4571 4582 4583 4623 4625 4626 4710 4774 4800 4820 4987 5026 5027 5039 #endif #if !defined(_SCL_SECURE_NO_WARNINGS) #define _SCL_SECURE_NO...
{ "alphanum_fraction": 0.770637239, "avg_line_length": 55.6807228916, "ext": "h", "hexsha": "be0f69a5a8b08f4eefe44903c18d7986446db67a", "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": ...
/* * Simple example of NLopt usage from: * http://nlopt.readthedocs.io/en/latest/NLopt_Tutorial/ */ #include <stdio.h> #include <math.h> #include <nlopt.h> int count = 0; // // Objective function. // double myfunc(unsigned n, const double *x, double *grad, void *my_func_data) { count++; if (grad) { ...
{ "alphanum_fraction": 0.6670388566, "avg_line_length": 38.2735042735, "ext": "c", "hexsha": "79cca56a6a49b54735e9ee4515612fed72c3095f", "lang": "C", "max_forks_count": 19, "max_forks_repo_forks_event_max_datetime": "2021-11-13T15:00:41.000Z", "max_forks_repo_forks_event_min_datetime": "2017-06-19T23:04...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
{ "alphanum_fraction": 0.6468165628, "avg_line_length": 36.0803212851, "ext": "h", "hexsha": "7950ea4a4a5b0d70ccb33f09735bd1731b9f7a9c", "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":...
/* * siegert_neuron.h * * This file is part of NEST. * * Copyright (C) 2004 The NEST Initiative * * NEST 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.6711841813, "avg_line_length": 26.7916666667, "ext": "h", "hexsha": "63abd1f5d4561c837d70a35c506183c036528c03", "lang": "C", "max_forks_count": 10, "max_forks_repo_forks_event_max_datetime": "2021-03-25T09:32:56.000Z", "max_forks_repo_forks_event_min_datetime": "2019-12-09T06:45...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
{ "alphanum_fraction": 0.6038296467, "avg_line_length": 42.0694444444, "ext": "c", "hexsha": "2632ac1401ba59fa5a4879cccf87f05a4556875d", "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 <float.h> #include <math.h> #include <gsl/gsl_interp.h> #include "field.h" #define StartTest -4E-7 #define StopTest 4E-7 signal_type * formatExpImpResp(int numPnts, double *timeValues, double *voltageValues, int samplingFrequencyHz, int verbose) { double *newTimeValues...
{ "alphanum_fraction": 0.6855670103, "avg_line_length": 26.7586206897, "ext": "c", "hexsha": "d2fc470ee82e82564aa6327660eed830b5d7958e", "lang": "C", "max_forks_count": 28, "max_forks_repo_forks_event_max_datetime": "2021-08-12T23:43:39.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-19T00:30...
// File: nlopt_wrapper.c // Author: Jannis Harder // Description: Wrapper for nlopt using context switching #include <stdlib.h> #include <ucontext.h> #include <string.h> #include <stdio.h> // For debugging TODO: remove #include <nlopt.h> #define STACKSIZE (8 * 1024 * 1024) enum status { ST_IDLE = 0, ST_RUNNING, S...
{ "alphanum_fraction": 0.6967572305, "avg_line_length": 22.9346733668, "ext": "c", "hexsha": "cf3845311235dd9f655ea7f40145ff573905584f", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-10-01T18:11:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-10-01T18:11:...
#define _MAIN #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gbpLib.h> #include <gbpHalos.h> #include <sys/stat.h> #include <gsl/gsl_errno.h> #define GADGET_BUFFER_SIZE_LOCAL 128 * SID_SIZE_OF_MEGABYTE #define _FILE_OFFSET_BITS 64 typedef struct params_info_local params_info_l...
{ "alphanum_fraction": 0.531727889, "avg_line_length": 48.8392685274, "ext": "c", "hexsha": "a2e494dd31ff356109cb2382aa63b68b301e93d7", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2016-08-01T08:14:24.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-23T00:50:4...
#include <netlib-jni.h> #include <cblas.h> // these CBLAS get* helpers are really irritating because // the first thing the cblas_ methods do is to do a reverse // lookup for the char and then pass it to the fortran lib! CBLAS_TRANSPOSE getCblasTrans(const char * fortranChar) { switch (fortranChar[0]) { case 'N...
{ "alphanum_fraction": 0.6521164021, "avg_line_length": 23.625, "ext": "c", "hexsha": "1484635fc3668147aaa66f0ccc9e8177e987846e", "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": "f6973...
#include <bindings.cmacros.h> #include <gsl/gsl_math.h> BC_INLINE2(GSL_FN_EVAL,gsl_function*,double,double) BC_INLINE2(GSL_FN_FDF_EVAL_F,gsl_function_fdf*,double,double) BC_INLINE2(GSL_FN_FDF_EVAL_DF,gsl_function_fdf*,double,double) BC_INLINE3(GSL_FN_VEC_EVAL,gsl_function_vec*,double,double*,double) BC_INLINE4VOID(GSL...
{ "alphanum_fraction": 0.8552631579, "avg_line_length": 42.2222222222, "ext": "c", "hexsha": "466477ace05a07cd918df4873eb76b59226eee42", "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...
#include "ccv.h" #include <ctype.h> #include <getopt.h> #ifdef HAVE_GSL #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #endif #ifdef HAVE_GSL static ccv_dense_matrix_t* _ccv_aflw_slice_with_rect(gsl_rng* rng, ccv_dense_matrix_t* image, ccv_rect_t rect, ccv_size_t size, ccv_margin_t margin, float deform_angle, f...
{ "alphanum_fraction": 0.6731097214, "avg_line_length": 40.9069767442, "ext": "c", "hexsha": "e729cef61fa6d8bad2dbac7d6b6201041421cccf", "lang": "C", "max_forks_count": 940, "max_forks_repo_forks_event_max_datetime": "2022-03-24T23:27:43.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-02T02:2...
/** @file @brief Utilities to perform vectorized LU and LDU decomposition with complete row and column pivoting, based on nonvectorized version of LU decomposition with complete row and column pivoting written by Roger Wehage. @author Kristopher Wehage @date 2016 @version 1.1 @remark THIS SOFTWARE IS PROVIDED BY THE AU...
{ "alphanum_fraction": 0.5810988943, "avg_line_length": 32.5507319536, "ext": "c", "hexsha": "64185021cd9d9b8b4e5347764b016140682d5768", "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":...
/* A simple example program to square a number using GSL. */ #include <gsl/gsl_math.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { double x; char *startptr, *endptr; if (argc != 2) { fputs("Expected exactly one command line argument\n", stderr); return EXI...
{ "alphanum_fraction": 0.5949367089, "avg_line_length": 19.75, "ext": "c", "hexsha": "04ea917f70dc15956ec1ee7598b67dd370513e81", "lang": "C", "max_forks_count": 110, "max_forks_repo_forks_event_max_datetime": "2022-02-23T11:58:21.000Z", "max_forks_repo_forks_event_min_datetime": "2016-03-16T11:33:18.000...
#include <stdlib.h> #include <stddef.h> #include <assert.h> #include <stdio.h> #include <string.h> #include <cblas.h> #include "LCP_Solver.h" #include "debug.h" void numericsError(char * functionName, char* message) { char output[200] = "Numerics error - "; strcat(output, functionName); strcat(output, message); ...
{ "alphanum_fraction": 0.5145768258, "avg_line_length": 27, "ext": "c", "hexsha": "06d261667033f9295a553048e6bbf8bfbe5a4863", "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": "653c19c65...
/* * rand.h * Random number generation * * Created by OKAMOTO Kenji, SAKO Yasushi and RIKEN * Copyright 2011-2015 * Cellular Informatics Laboratory, Advance Science Institute, RIKEN, Japan. * All rights reserved. * * Ver. 1.0.0 * Last modified on 2015.09.17 */ #ifndef DEF_RAND #define DEF_RAND #inc...
{ "alphanum_fraction": 0.6984126984, "avg_line_length": 17.3793103448, "ext": "h", "hexsha": "be253ea9c2ac08faf28eb6483fb0320b023dbc1c", "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":...
/* gsl_histogram_copy.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 2 of the * License, or (at your option) any later version. *...
{ "alphanum_fraction": 0.6070763501, "avg_line_length": 23.347826087, "ext": "c", "hexsha": "848dcf10a31d33b80300c4bc5cc6c0734fbc988c", "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 GBNET_RVNODE #define GBNET_RVNODE #include <string> #include <vector> #include <gsl/gsl_rng.h> #include <gsl/gsl_histogram.h> #include <gsl/gsl_rstat.h> extern gsl_rng *rng; namespace gbn { class RVNode { private: protected: public: unsigned int var_size, n_o...
{ "alphanum_fraction": 0.572, "avg_line_length": 22.3214285714, "ext": "h", "hexsha": "14b194ed9d26e9b2663b762aa44ef6c533ce87a0", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-06-10T16:19:58.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-10T16:19:58.000Z...
#pragma once #include <thrust/host_vector.h> #include <sstream> #include "IsingLattice2D.h" #include "class_mc_io.h" #include "Matrix.h" #include "MemTimeTester.h" extern "C" { #include "random.h" } #include <gsl/gsl_sf_zeta.h> #include <cmath> #include "obs_calc_fast.cuh" double real_trigamma_cmplxarg(d...
{ "alphanum_fraction": 0.6990669823, "avg_line_length": 35.905, "ext": "h", "hexsha": "9011c2f7eacd1e14ff8af3e05b129e1c84478f9a", "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": "0d47b...
/************************************************************************************************************* Calculate shear Gaussian + non-Gaussian covariance using CosmoLike. Gaussian, super-sample and connected non-Gaussian contributions can each be switched on and off independently. This loops over all combinatio...
{ "alphanum_fraction": 0.6285656688, "avg_line_length": 35.9456521739, "ext": "c", "hexsha": "0a4b361726669c5c70f7a17f93bcd91c16876777", "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 #pragma once #include "core/math/vec3.h" #include "core/math/vec4.h" #include "core/container/vector.h" #include "core/memory/linear_allocator.h" #include <lapacke.h> /* void compute_spline_coeff(uint n, float* coeff, float* y, uint stride, float* h, float constant_h) { LinearRegion region(get_temporar...
{ "alphanum_fraction": 0.4967257627, "avg_line_length": 24.5529411765, "ext": "h", "hexsha": "d7b6dd042588529bdff46de232826ba35f88bd91", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-06-17T16:47:57.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-02T06:46:...
/** * * @file core_scasum.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 Mathieu Faverge * @date 2010-11-15 * @generated c Tue Jan 7 11:44:46 2014 * **/ #include <cblas...
{ "alphanum_fraction": 0.4495087336, "avg_line_length": 29.5483870968, "ext": "c", "hexsha": "65dd0bd9db8878c0f6f5405cc8bf8c80323e6f1f", "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":...
// // main.c // ODE_MODEL // // Created by Kari Heine on 28/10/2020. // Copyright © 2020 Kari Heine. All rights reserved. // #include <gsl/gsl_sf_bessel.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_eigen.h> #include <math.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #in...
{ "alphanum_fraction": 0.5881454453, "avg_line_length": 29.9288888889, "ext": "c", "hexsha": "e2d0a1ea9aed0400ad74366fd009f0e1082d88f9", "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.6624954879, "avg_line_length": 37.269058296, "ext": "h", "hexsha": "3d91c886dd68b125ff192ec9a86cb579171ffc18", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2016-10-19T15:20:58.000Z", "max_forks_repo_forks_event_min_datetime": "2016-10-19T15:20:5...