Search is not available for this dataset
text
string
meta
dict
#include <fftw.h> #include <stdio.h> #include <stdlib.h> #define N 16 main() { int i; fftw_complex in[N], out[N]; float fact; fftw_plan p,p2; printf(" stuff in data\n"); for (i=0;i<N;i++) { in[i].re=(i*i); in[i].im=1; } printf(" create plans\n"); p = fftw_create_plan(N, FF...
{ "alphanum_fraction": 0.5520702635, "avg_line_length": 22.1388888889, "ext": "c", "hexsha": "e7449135f54e272a173fd37c062aa1b94697c671", "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":...
// lasp_math_raw.c // // last-edit-by: J.A. de Jong // // Description: // Operations working on raw arrays of floating point numbers ////////////////////////////////////////////////////////////////////// #define TRACERPLUS (-5) #include "lasp_math_raw.h" #if LASP_USE_BLAS #include <cblas.h> #endif void d_elem_prod_d...
{ "alphanum_fraction": 0.4711321606, "avg_line_length": 30.1632653061, "ext": "c", "hexsha": "196895a5be32c4d5be4870ab0aa95e084a3927a7", "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 modalbeamformer.h * @brief Beamforming in the spherical harmonics domain. * @author Kenichi Kumatani */ #ifndef MODALBEAMFORMER_H #define MODALBEAMFORMER_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> #incl...
{ "alphanum_fraction": 0.7449180328, "avg_line_length": 42.0275590551, "ext": "h", "hexsha": "45e5149a732c0d925f3d287dfc18b5730f41c166", "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...
/** * Created: Wed Aug 31 20:27:45 CST 2016 * @author: Lie Yan * @email: robin.lie.yan@outlook.com * */ #pragma once #include <gsl.h> namespace formulae { namespace interm { enum class ItemTag : uint8_t { INoad, IPen, ISpace, IStyle }; struct Item { virtual ItemTag tag() const = 0; virtual gsl::owner<Item...
{ "alphanum_fraction": 0.6161417323, "avg_line_length": 21.1666666667, "ext": "h", "hexsha": "3f9441e687ee82181c2b499de3c199b1b0694493", "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 @ 2012 Zhi Qiu and Chun Shen // Ver 2.1 // Note the version used in iSS is slightly slower than the one // used in iS, do not mix them unless necessary. #ifndef SRC_EMISSIONFUNCTION_H_ #define SRC_EMISSIONFUNCTION_H_ #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <string> #include <vecto...
{ "alphanum_fraction": 0.6986883763, "avg_line_length": 37.8595890411, "ext": "h", "hexsha": "9e16a606f80d86a8e594df63058e2898d563d846", "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) Microsoft Corporation. // Licensed under the MIT License. //------------------------------------------------------------------------------ // Intrinsics.h //------------------------------------------------------------------------------ #pragma once #include <arcana/analysis/introspector.h> #include...
{ "alphanum_fraction": 0.6080038573, "avg_line_length": 37.0357142857, "ext": "h", "hexsha": "40b9cfb2bda57a3c8f1b939eac85eb8ab4620f55", "lang": "C", "max_forks_count": 16, "max_forks_repo_forks_event_max_datetime": "2022-03-31T15:36:49.000Z", "max_forks_repo_forks_event_min_datetime": "2020-05-07T03:09...
#include <stdio.h> #include <stdarg.h> #include <string.h> #include <math.h> #include <gbpLib.h> #include <gbpMisc.h> #include <gbpRNG.h> #include <gsl/gsl_linalg.h> void add_gaussian_noise(double *data, int n_data, int *seed, double sigma, double *covariance) { int i_data; int j_data; double *...
{ "alphanum_fraction": 0.604610951, "avg_line_length": 32.7358490566, "ext": "c", "hexsha": "83798b8d7de7259404bcc40fd88af6ecdbb19ecb", "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...
// // Engine.hpp // PretendToWork // // Created by tqtifnypmb on 14/12/2017. // Copyright © 2017 tqtifnypmb. All rights reserved. // #pragma once #include "../rope/Rope.h" #include "../types.h" #include "Revision.h" #include <gsl/gsl> #include <vector> #include <map> namespace brick { class Engine { public:...
{ "alphanum_fraction": 0.6461971831, "avg_line_length": 23.0519480519, "ext": "h", "hexsha": "1dae3cb7a6fc570a07749a7d3a14ced553c64897", "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/qr_ud.c * * Copyright (C) 2020 Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. * *...
{ "alphanum_fraction": 0.5394871795, "avg_line_length": 31.8298969072, "ext": "c", "hexsha": "8a4280badb381fa1257155d8093bbb04b95b316b", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
/* * Copyright (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.650229635, "avg_line_length": 28.3356164384, "ext": "h", "hexsha": "c089e9c017acb995a57160cb07cf0135d5ce0e07", "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...
/* Copyright (C) 2002 M. Marques, A. Castro, A. Rubio, G. Bertsch This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distr...
{ "alphanum_fraction": 0.6030491248, "avg_line_length": 29.5166666667, "ext": "c", "hexsha": "45f616548e4e59d5466d7bb2b098f652c5fc3f0f", "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 <string> #include <vector> #include <set> #include <map> #include <gsl/gsl> #include <gamesystems/map/sector.h> #include "streams.h" #include "animgoals/anim.h" struct QuestSave { GameTime acceptedTime; uint32_t acceptedArea; uint32_t state; }; struct ObjRefSave { ObjectId id; uint32_t...
{ "alphanum_fraction": 0.7658382066, "avg_line_length": 21.1546391753, "ext": "h", "hexsha": "c2ba229d4a88fed1dbf60009c50992c28bef6de9", "lang": "C", "max_forks_count": 25, "max_forks_repo_forks_event_max_datetime": "2021-11-15T23:14:51.000Z", "max_forks_repo_forks_event_min_datetime": "2016-02-04T21:19...
#include <stdio.h> #include <math.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_math.h> #include <gsl/gsl_roots.h> #include <gsl/gsl_math.h> #include <gsl/gsl_eigen.h> double f (double px, void * par) { double ep=-.9, ed=.0, tsp=1.63, tpd=1.13, tpp=.2; stru...
{ "alphanum_fraction": 0.5263305584, "avg_line_length": 28.5093333333, "ext": "c", "hexsha": "7f2abe896ad24908a93952b40123ce2237a656c4", "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 UTILS_H #define UTILS_H #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <dirent.h> #include <memory.h> #include <time.h> #include <math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_permutation.h> #in...
{ "alphanum_fraction": 0.5858009276, "avg_line_length": 23.9572649573, "ext": "h", "hexsha": "9bccd57b40c41a7c64cb4d0fc9bbf98ae3954eb6", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2018-10-17T07:16:52.000Z", "max_forks_repo_forks_event_min_datetime": "2018-04-14T10:00:...
#pragma once #include <gsl/gsl_assert> #include <src/util/Logging.h> #ifndef NDEBUG //#define RNR_EXPECTS(x) Expects(x) //#define RNR_ENSURES(x) Ensures(x) /** * specifies a precondition that is expected to be true * terminates the program if the condition is not met and the program is compiled in debug m...
{ "alphanum_fraction": 0.6228956229, "avg_line_length": 23.4473684211, "ext": "h", "hexsha": "6d74cf7601712c0cf27ec24f5c65c2c51a2ba4a6", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2022-03-21T20:53:11.000Z", "max_forks_repo_forks_event_min_datetime": "2019-07-30T21:33:...
// @file utils.h // // \date Created on: Sep 23, 2017 // \author Gopalakrishna Hegde // // Description: // // // #ifndef INC_UTILS_H_ #define INC_UTILS_H_ #include "common_types.h" #include <cblas.h> void PrintMat(char *name, const float *ptr, int H, int W, CBLAS_LAYOUT layout); void RandInitF32(float *p_data, in...
{ "alphanum_fraction": 0.7208872458, "avg_line_length": 23.5217391304, "ext": "h", "hexsha": "7a2c7002d195dad371ffb732f11f089f377db257", "lang": "C", "max_forks_count": 23, "max_forks_repo_forks_event_max_datetime": "2021-12-21T14:16:14.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-24T05:17...
#ifndef __FFT_DECON_OPERATOR_H__ #define __FFT_DECON_OPERATOR_H__ #include <string> #include <gsl/gsl_errno.h> #include <gsl/gsl_fft_complex.h> #include "mspass/seismic/TimeWindow.h" #include "mspass/utility/Metadata.h" #include "mspass/seismic/CoreTimeSeries.h" #include "mspass/algorithms/deconvolution/ComplexArray.h"...
{ "alphanum_fraction": 0.7523291925, "avg_line_length": 38.64, "ext": "h", "hexsha": "63fca050efe49bae7365bc547eff8a10060a308e", "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": "11bd29...
/** * @file coroutine/net.h * @brief Async I/O operation support with system socket functions * @author github.com/luncliff (luncliff@gmail.com) * @copyright CC BY 4.0 */ #pragma once #ifndef COROUTINE_NET_IO_H #define COROUTINE_NET_IO_H #include <gsl/gsl> #include <coroutine/return.h> /** * @defg...
{ "alphanum_fraction": 0.630420712, "avg_line_length": 26.970074813, "ext": "h", "hexsha": "3c44827d01ad5fd5091201b0ec77f43543479b09", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "...
/*! @copyright (c) 2017 King Abdullah University of Science and * Technology (KAUST). All rights reserved. * * STARS-H is a software package, provided by King Abdullah * University of Science and Technology (KAUST) * * @file testing/rndtiled.c * @version 1.3.0 * @author Aleksand...
{ "alphanum_fraction": 0.6248875562, "avg_line_length": 29.7767857143, "ext": "c", "hexsha": "b4068be615b1d1327244cfd1a48f7b2d57ddc4ed", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-11-09T10:54:18.000Z", "max_forks_repo_forks_event_min_datetime": "2020-11-09T10:54:...
/** * * @file qwrapper_dlantr.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 * @generated d Tue Jan 7 11:44:57 2014 * **/ #inc...
{ "alphanum_fraction": 0.4758972181, "avg_line_length": 33.8776978417, "ext": "c", "hexsha": "9d1e9d141ef71efd478094ba5f3c06740b64dfe1", "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 S3D_DISPARITY_VIEWER_DEPTH_CONVERTER_H #define S3D_DISPARITY_VIEWER_DEPTH_CONVERTER_H #include <s3d/utilities/eigen.h> #include <vector> #include <gsl/gsl> namespace s3d { struct ViewerContext; class ViewerDepthConverter { public: using Point = Eigen::Vector2d; using Pointf = Eigen::Vector2f; expl...
{ "alphanum_fraction": 0.7536101083, "avg_line_length": 26.380952381, "ext": "h", "hexsha": "2459cef6d834706fe79e469e01f13bff13ff4d58", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2021-05-18T16:22:03.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-13T21:51:0...
/* rstat/rquantile.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.5150239234, "avg_line_length": 25.1201923077, "ext": "c", "hexsha": "0c4e84ad43c87d400e138d25345a727fa720e8b3", "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:...
/* Matrix multiplication. Based on the amazing: https://github.com/HandsOnOpenCL/Exercises-Solutions/tree/a908ac3f0fadede29f2735eb1264b0db7f4311a0/Solutions/Exercise08 The most basic / useful application where OpenCL might be faster than CPU. TODO: make a SERIOUS matrix implementation. Also compare with existing SER...
{ "alphanum_fraction": 0.5865091927, "avg_line_length": 34.4120111732, "ext": "c", "hexsha": "2dfd4757560ee25430cd77fb4c395de420429ca1", "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 matops_h #define matops_h #include <ceed.h> #include <petsc.h> #include "../include/structs.h" // This function uses libCEED to compute the local action of an operator PetscErrorCode ApplyLocalCeedOp(Vec X, Vec Y, UserMult user); // This function uses libCEED to compute the non-linear residual PetscErrorCode...
{ "alphanum_fraction": 0.7518694765, "avg_line_length": 38.7105263158, "ext": "h", "hexsha": "83981758bc8e5f81847f73d9bd4e601aa046bc20", "lang": "C", "max_forks_count": 41, "max_forks_repo_forks_event_max_datetime": "2022-03-01T13:02:07.000Z", "max_forks_repo_forks_event_min_datetime": "2017-12-27T22:35...
// // her2.h // Linear Algebra Template Library // // Created by Rodney James on 12/23/11. // Copyright (c) 2011 University of Colorado Denver. All rights reserved. // #ifndef _her2_h #define _her2_h /// @file her2.h Performs complex outer product of two vectors. #include <cctype> #include "latl.h" namespace L...
{ "alphanum_fraction": 0.4742019302, "avg_line_length": 27.7731958763, "ext": "h", "hexsha": "3e1487bbf01c9c3abf256d774d1e03a60f92486e", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-02-09T23:18:24.000Z", "max_forks_repo_forks_event_min_datetime": "2019-02-01T06:46:...
/* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of ...
{ "alphanum_fraction": 0.7301784973, "avg_line_length": 37.0615384615, "ext": "h", "hexsha": "14443ca7d4dc6db7ba0b2fe0a30789b47c38ec17", "lang": "C", "max_forks_count": 112, "max_forks_repo_forks_event_max_datetime": "2022-03-31T21:46:46.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-16T11:0...
#include <stdbool.h> #include <stdio.h> #include <math.h> #include <gsl/gsl_math.h> #include <gsl/gsl_vector.h> #include "numstates.h" int main(int argc, char *argv[]) { int num_bands = 2; double t = 1.0; double E0 = 6.0; double deltaE = 14.0; void Efn(double k[3], gsl_vector *energies) { d...
{ "alphanum_fraction": 0.5550978373, "avg_line_length": 27.7428571429, "ext": "c", "hexsha": "c050bdb9f2ee2842d3a68da0b5b776b0b2ffa84b", "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":...
/* * ----------------------------------------------------------------- * pmsr_lib.c * Pairwise Mixing Stirred Reactor Library * Version: 2.0 * Last Update: Oct 1, 2019 * * This is a computational library with routines to implement * a Pairwise Mixing Stirred Reactor (PMSR) model. * -----------------------------...
{ "alphanum_fraction": 0.4623423909, "avg_line_length": 24.2733224223, "ext": "c", "hexsha": "dbc1d75578e5591b2872a36617f0ce49e5236732", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-30T01:44:13.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-15T03:57:...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
{ "alphanum_fraction": 0.4103547459, "avg_line_length": 47.4090909091, "ext": "h", "hexsha": "05fd731f905e837a47875efb443a4c0c9d9ee8ea", "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...
/* ode-initval/test_odeiv.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * you...
{ "alphanum_fraction": 0.588741363, "avg_line_length": 24.0423452769, "ext": "c", "hexsha": "2f0c08cab7ef7a7e0e6bcc37d4d66bfdb561a7c4", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:5...
#include <stdio.h> #include <gsl/gsl_cblas.h> int main () { int lda = 3; float A[] = { 0.11, 0.12, 0.13, 0.21, 0.22, 0.23 }; int ldb = 2; float B[] = { 1011, 1012, 1021, 1022, 1031, 1032 }; int ldc = 2; float C[] = { 0.00, 0.00, 0.00, 0...
{ "alphanum_fraction": 0.4290909091, "avg_line_length": 17.1875, "ext": "c", "hexsha": "111c4e5c6141834be9e0082606408843644f3a4d", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:57.000...
#include <stdio.h> #include <stdarg.h> #include <string.h> #include <math.h> #include <gbpLib.h> #include <gbpRNG.h> #include <gbpMCMC.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_fit.h> #include <gsl/gsl_interp.h> void init_MCMC(MCMC_info * MCMC, const char *problem_name, void * ...
{ "alphanum_fraction": 0.5510462175, "avg_line_length": 41.419047619, "ext": "c", "hexsha": "762c8b634dcd1ebfbb205d83e352e17192ca2ef4", "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...
#ifndef WILCOXONPARALLELTESTS_H #define WILCOXONPARALLELTESTS_H #include <fstream> #include <cmath> #include <iostream> #include <sstream> #include <cstdlib> #include <vector> #include <cstring> #include <gsl/gsl_cdf.h> using namespace std; struct approximatePosition { int x; double y; }; class WilcoxonTest ...
{ "alphanum_fraction": 0.719, "avg_line_length": 31.746031746, "ext": "h", "hexsha": "4533fc72b586c0b9bff88e59029dd69ef0c1a481", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2020-05-21T09:45:52.000Z", "max_forks_repo_forks_event_min_datetime": "2017-08-01T07:57:52.000Z"...
/* integration/qcheb.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option...
{ "alphanum_fraction": 0.4955031393, "avg_line_length": 25.6217391304, "ext": "c", "hexsha": "a6564f7640f9a8e1ebde49e831c3c4c5f2abdbbc", "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...
//---------------------------------------------------------------------------- // History: 2018-04-30 Dwayne Robinson - Created //---------------------------------------------------------------------------- #pragma once #include <iterator> #include <memory> // For uninitialized_move/copy and std::unique_pt...
{ "alphanum_fraction": 0.6247732485, "avg_line_length": 37.1717557252, "ext": "h", "hexsha": "375fb87421f4193cfcb2a8d0b1614ca96d3ba1d3", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <assert.h> #include <gsl/gsl_math.h> #include <gsl/gsl_integration.h> #include <stdbool.h> #include "core_allvars.h" #include "core_proto.h" #define IMF_CONSTANT IMF_norm/(IMF_slope + 1.0) // Local Proto-Types //...
{ "alphanum_fraction": 0.6958190149, "avg_line_length": 42.3786407767, "ext": "c", "hexsha": "b7db9f59026869032e934f489097c08d01410794", "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 "JsonHandler.h" #include "Library.h" #include <gsl/span> #include <cstddef> #include <optional> #include <string> #include <vector> namespace rapidjson { struct MemoryStream; } namespace CesiumJsonReader { /** * @brief The result of {@link Reader::readJson}. */ template <typename T> struct...
{ "alphanum_fraction": 0.6675811614, "avg_line_length": 22.3163265306, "ext": "h", "hexsha": "3680acaa0166d19ddf6a8c651687bde1f3dd1cca", "lang": "C", "max_forks_count": 66, "max_forks_repo_forks_event_max_datetime": "2022-03-31T13:38:41.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-30T15:14...
/* multifit_nlinear/trust.c * * Copyright (C) 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 later versi...
{ "alphanum_fraction": 0.622255346, "avg_line_length": 29.6146010187, "ext": "c", "hexsha": "2d42ff70121bd02192fcfb6cf44d2c2ac74132bf", "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...
/* * Monte Carlo.cpp * * Copyright 2017 Benjamin Church <ben@U430> * * 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 vers...
{ "alphanum_fraction": 0.5785313085, "avg_line_length": 28.7414050822, "ext": "c", "hexsha": "8befb792ad5166c15b81728c399c6590217d7a92", "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 <ceed.h> #include <petsc.h> #include "../problems/neo-hookean.h" // Build libCEED context object PetscErrorCode PhysicsContext_NH(MPI_Comm comm, Ceed ceed, Units *units, CeedQFunctionContext *ctx) { PetscErrorCode ierr; Physics_NH phys; PetscFunctionBegin; ierr = Pet...
{ "alphanum_fraction": 0.6631840796, "avg_line_length": 34.358974359, "ext": "c", "hexsha": "f0b8af460785299d157503ab9b251e97b182846a", "lang": "C", "max_forks_count": 41, "max_forks_repo_forks_event_max_datetime": "2022-03-01T13:02:07.000Z", "max_forks_repo_forks_event_min_datetime": "2017-12-27T22:35:...
#ifdef USING_FFTW #include <fftw.h> #elif defined USING_FFTW3 #include <fftw3.h> #else typedef double fftw_real; typedef struct { fftw_real re, im; } fftw_complex_orig; typedef fftw_real HPCC_Complex[2]; typedef HPCC_Complex fftw_complex; #endif typedef enum { FFTW2_FORWARD = -1, FFTW2_BACKWARD = 1 } ff...
{ "alphanum_fraction": 0.7567567568, "avg_line_length": 20.1818181818, "ext": "h", "hexsha": "ead5d698c3db6b47471d849c2268aa0a27fcc1fb", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-05-14T01:30:03.000Z", "max_forks_repo_forks_event_min_datetime": "2021-05-14T01:30:...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <iniparser.h> #include "parmt_utils.h" #include "prepmt/prepmt_dataArchive.h" #include "prepmt/prepmt_greens.h" #include "prepmt/prepmt_hudson96.h" #include "prepmt/prepmt_commands.h" #ifdef PARMT_USE_INTEL #include <mkl_cblas.h> #else #include <cblas....
{ "alphanum_fraction": 0.466284587, "avg_line_length": 37.8628461043, "ext": "c", "hexsha": "fa76bdcee250062b2a7319dc2628eb548cf8782c", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
#include <math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include "cconfigspace_internal.h" #include "distribution_internal.h" struct _ccs_distribution_normal_data_s { _ccs_distribution_common_data_t common_data; ccs_float_t mu; ccs_float_t sigma; ccs_scale_ty...
{ "alphanum_fraction": 0.5435438991, "avg_line_length": 40.8983050847, "ext": "c", "hexsha": "70bf285405a4d99cfef966c451a85a63cc856e33", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-07T17:54:11.000Z", "max_forks_repo_forks_event_min_datetime": "2021-09-16T18:20:...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #define qh_QHimport #include <libqhull_r/qhull_ra.h> void print_summary(qhT *qh); double findDelaunay(qhT *qh, int dim, coordT *TargetCoord); double findNearestVertices(qhT *qh,...
{ "alphanum_fraction": 0.549937578, "avg_line_length": 32.3636363636, "ext": "c", "hexsha": "2699eb7c3df4abd88f9a995b864e885f75e19e3e", "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 _PROBABILITY_H_ #define _PROBABILITY_H_ #include <gsl/gsl_rng.h> // Non-uniform distributions: //There are a HUGE variety of distributions to choose from, which are // documented at the gsl website. #include <gsl/gsl_randist.h> // Seeding: #include <sys/time.h> //When using ANY gsl code, must add -lgsl -lgsl...
{ "alphanum_fraction": 0.7099884304, "avg_line_length": 31.6219512195, "ext": "h", "hexsha": "326c075a3511cb5559a9f3e269f1b49dafd2c44d", "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":...
/* * BRAINS * (B)LR (R)everberation-mapping (A)nalysis (I)n AGNs with (N)ested (S)ampling * Yan-Rong Li, liyanrong@ihep.ac.cn * Thu, Aug 4, 2016 */ /*! * \file allvars.h * \brief header file of allvars.c. */ #ifndef _ALLVARS_H #define _ALLVARS_H #include <stdio.h> #include <stdlib.h> #include <float.h> #in...
{ "alphanum_fraction": 0.7765096218, "avg_line_length": 26.9107142857, "ext": "h", "hexsha": "a006924822da3da9ab340daf05bb4e04aecb9ac2", "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":...
/* eigen/gensymmv.c * * Copyright (C) 2007 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.6492057489, "avg_line_length": 26.0492610837, "ext": "c", "hexsha": "b8d575de8630838958eba2de73c21252c8afe4a3", "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> #include <gsl/gsl_math.h> #include <gsl/gsl_eigen.h> int main (void) { double data[] = { 1.0 , 1/2.0, 1/3.0, 1/4.0, 1/2.0, 1/3.0, 1/4.0, 1/5.0, 1/3.0, 1/4.0, 1/5.0, 1/6.0, 1/4.0, 1/5.0, 1/6.0, 1/7.0 }; gsl_matrix_view m = gsl_mat...
{ "alphanum_fraction": 0.526032316, "avg_line_length": 21.8431372549, "ext": "c", "hexsha": "a24c912fce7b7dea2b5714fff9fd8c6d583a9f2a", "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:...
/* vector/gsl_vector_uint.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the Lic...
{ "alphanum_fraction": 0.6761257661, "avg_line_length": 32.4935064935, "ext": "h", "hexsha": "d2f6cb35e38ea5da48f6d91b3e4614fe26cd949b", "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...
#ifdef ESL_WITH_GSL /* interface_gsl.h * Easel's interfaces to the GNU Scientific Library * * SRE, Tue Jul 13 15:36:48 2004 * SVN $Id: interface_gsl.h 11 2005-01-06 11:44:17Z eddy $ */ #ifndef ESL_INTERFACE_GSL_INCLUDED #define ESL_INTERFACE_GSL_INCLUDED #include <stdlib.h> #include <easel/easel.h> #include <eas...
{ "alphanum_fraction": 0.7555555556, "avg_line_length": 24.375, "ext": "h", "hexsha": "1e65a0c7e950a71e4550f357c134c8388d57fccf", "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": "d9cfd...
/* * gsl_binomial_randomdev.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, ...
{ "alphanum_fraction": 0.7073477604, "avg_line_length": 26.1447368421, "ext": "h", "hexsha": "599acb36350cc74a3ad1fb70d234901b02d8e6c6", "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...
#include "pyactpol.h" #include <gsl/gsl_linalg.h> /* sync.c * * scan-synchronous mode fitting and removal. */ static int fit_poly(float *x, double *y, int n, int order, int samp, double *fit); static int fit_sine(double *t, double *y, int n, double f, double *fit, double *coe...
{ "alphanum_fraction": 0.5695847924, "avg_line_length": 27.160326087, "ext": "c", "hexsha": "68703dc560dc6753eb9f380ec7dd5f356a9f4e44", "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": ...
/*****************************************************************\ __ / / / / __ __ / /______ _______ / / / / ________ __ __ / ______ \ /_____ \ / / / / / _____ | / / / / / / | / _______| / / / / / / /____/ / / / / / / / / /...
{ "alphanum_fraction": 0.5092036427, "avg_line_length": 21.776371308, "ext": "h", "hexsha": "8d01b47a291dce252bf0eaa48f6a02f91d9d80d1", "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/rayleigh.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 James Theiler, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at ...
{ "alphanum_fraction": 0.6310054482, "avg_line_length": 23.476744186, "ext": "c", "hexsha": "1600d5b3638d51e308f917bed742e6502e1bdb31", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:5...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "compearth.h" /* #ifdef COMPEARTH_USE_MKL #include <mkl_cblas.h> #else #include <cblas.h> #endif */ /*! * @brief Converts a moment tensor, M, from input system defined by i1in * to moment tensor, Mout, to output system defind by i2in. * * @...
{ "alphanum_fraction": 0.3423898707, "avg_line_length": 30.9048913043, "ext": "c", "hexsha": "506fc89de15df26755ed819545994301bd3a5f4d", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-02-28T13:42:40.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-08T00:13:...
#ifndef _AVA_COMMON_SUPPORT_STD_SPAN_H_ #define _AVA_COMMON_SUPPORT_STD_SPAN_H_ #pragma once #include <gsl/span> #include <gsl/span_ext> namespace std { using gsl::span; } // namespace std #define EMPTY_CHAR_SPAN std::span<const char>() #define STRING_AS_SPAN(STR_VAR) std::span<const char>((STR_VAR).data(), (STR_V...
{ "alphanum_fraction": 0.6913580247, "avg_line_length": 31.6956521739, "ext": "h", "hexsha": "b8866689a561b1bd664830566ae5eb361449b5be", "lang": "C", "max_forks_count": 15, "max_forks_repo_forks_event_max_datetime": "2021-11-18T03:35:13.000Z", "max_forks_repo_forks_event_min_datetime": "2020-01-31T21:25...
#ifndef OPENMC_TALLIES_FILTER_SURFACE_H #define OPENMC_TALLIES_FILTER_SURFACE_H #include <cstdint> #include <unordered_map> #include <gsl/gsl> #include "openmc/tallies/filter.h" #include "openmc/vector.h" namespace openmc { //============================================================================== //! Specif...
{ "alphanum_fraction": 0.5137908916, "avg_line_length": 27.350877193, "ext": "h", "hexsha": "368fd09d064f65d9e380f207abee41b0b24a018b", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
#ifndef CWANNIER_BAND_ENERGY #define CWANNIER_BAND_ENERGY #include <stdbool.h> #include <stdio.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_sort_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_eigen.h> #include "HTightBinding.h" #include "ctetra/sum.h" double BandEnergy(double *E_Fermi, HTightBinding *Hrs...
{ "alphanum_fraction": 0.7731481481, "avg_line_length": 27, "ext": "h", "hexsha": "463f8a348ec229f99922bf481ad5c8a88164fbb9", "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": "96b9719b0...
/* * 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.7302100162, "avg_line_length": 29.4761904762, "ext": "h", "hexsha": "0196e761dd225145e262627f934eeb879afa61ca", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#pragma once #include <gsl/span> /** * This header is mainly for shorthands when dealing with `gsl::span`s * see the `gsl` or c++ core guidelines for more info on what a `gsl::span` is/does. */ namespace riner { template<class T, std::ptrdiff_t Extent = gsl::dynamic_extent> using span = gsl::span<T, Ext...
{ "alphanum_fraction": 0.6894639556, "avg_line_length": 25.7619047619, "ext": "h", "hexsha": "81a1ee0b959d615c447d1260fdb3527a7692033f", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2022-03-21T20:53:11.000Z", "max_forks_repo_forks_event_min_datetime": "2019-07-30T21:33:...
#ifndef _PC_PATCH_H #define _PC_PATCH_H #include <petsc.h> PETSC_EXTERN PetscErrorCode PCPatchInitializePackage(void); PETSC_EXTERN PetscErrorCode PCCreate_PATCH(PC); PETSC_EXTERN PetscErrorCode PCPatchSetCellNumbering(PC, PetscSection); PETSC_EXTERN PetscErrorCode PCPatchSetDiscretisationInfo(PC, PetscInt, DM *, Petsc...
{ "alphanum_fraction": 0.7652173913, "avg_line_length": 53.6666666667, "ext": "h", "hexsha": "b9327d07e6c4eee8e810a6f46c270d86fc7565a1", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-01-23T15:21:31.000Z", "max_forks_repo_forks_event_min_datetime": "2018-01-23T15:21:...
/* sys/pow_int.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 option) a...
{ "alphanum_fraction": 0.6685714286, "avg_line_length": 31.8181818182, "ext": "c", "hexsha": "ebcb0c7e2df1186a012321f73eeb4b35e0d97bba", "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/gsl_sf_mathieu.h * * Copyright (C) 2002 Lowell Johnson * * 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 ver...
{ "alphanum_fraction": 0.7051964512, "avg_line_length": 36.5277777778, "ext": "h", "hexsha": "99217b31fda87ff5a75e39f0c435f1199ad42345", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-08-30T20:40:25.000Z", "max_forks_repo_forks_event_min_datetime": "2020-08-30T20:40:...
#ifndef BSPTN_H #define BSPTN_H #include <vector> #include <gsl/gsl_sf_bessel.h> #include "SpecialFunctions.h" // NUMERICAL KERNELS ///// /// CREATION OF KERNEL ARRAYS //// //Kernel array sizes // 1st ORDER extern double F1b_k1; extern double G1b_k1; extern double F1b_k2; extern double G1b_k2; extern double F1b_k...
{ "alphanum_fraction": 0.7589204026, "avg_line_length": 19.8727272727, "ext": "h", "hexsha": "826f7860f42a30fb670c48d3db79658c4490685a", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-08-31T15:35:28.000Z", "max_forks_repo_forks_event_min_datetime": "2021-08-31T15:35:...
/* $Id$ */ /*--------------------------------------------------------------------*/ /*; Copyright (C) 2013-2020 */ /*; Associated Universities, Inc. Washington DC, USA. */ /*; */ /*; This pr...
{ "alphanum_fraction": 0.6054401261, "avg_line_length": 37.0004290004, "ext": "c", "hexsha": "5e486e4b687338e6754e2332f03e485084fa130d", "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:...
#pragma once #include <gsl/gsl> namespace Halley { // Note: it's important that this class has the same layout and binary structure as a plain pointer template <typename T> class MaybeRef { public: MaybeRef() : pointer(nullptr) {} MaybeRef(T* pointer) : pointer(pointer) {} Mayb...
{ "alphanum_fraction": 0.4764808362, "avg_line_length": 18.5161290323, "ext": "h", "hexsha": "a94b7761b05b6c767802f85f40f8fef8e00a5995", "lang": "C", "max_forks_count": 193, "max_forks_repo_forks_event_max_datetime": "2022-03-22T12:59:58.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-23T06:0...
#include <stdio.h> #include <stdlib.h> #include <gsl/gsl_math.h> #include <gsl/gsl_movstat.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_vector.h> int main(void) { const size_t N = 500; /* length of time series */ const size_t K = 11; /* wind...
{ "alphanum_fraction": 0.5996944232, "avg_line_length": 24.6981132075, "ext": "c", "hexsha": "2d119c2a18a9ca017db386071c8c6fae8d4e2489", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
/* Copyright (C) 2006-2008 Luis Matos, A. Castro This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hop...
{ "alphanum_fraction": 0.5555962295, "avg_line_length": 27.1141439206, "ext": "c", "hexsha": "0871f593349a1d15bc3684a30f87142c80f03f9e", "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":...
/* # Program to run a Monte Carlo radiation transfer through the 2D # simulations of GRB jets. # # Python code written by D. Lazzati at Oregonstate, C code written by Tyler Parsotan @ Oregon State # ver 0.1 July 8, 2015 # ver 1.1 July 20, 2015: added record of number of scatterings, included # all terms in weight. Sh...
{ "alphanum_fraction": 0.556128507, "avg_line_length": 54.0862385321, "ext": "c", "hexsha": "b4b3f1255deb88a6b16e0ee470e868df11112435", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-11-20T09:12:08.000Z", "max_forks_repo_forks_event_min_datetime": "2021-06-09T16:11:5...
#ifndef PROXIMAL_MATRIX_H_GUARD #define PROXIMAL_MATRIX_H_GUARD #include <math.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 <gsl/gsl_eigen.h> void project_sdc(gsl_matrix *X); void project_spectral_norm_ball(gsl_matrix *X)...
{ "alphanum_fraction": 0.7784946237, "avg_line_length": 24.4736842105, "ext": "h", "hexsha": "36937e8731134253393eda4e54cf9fcf918b53e7", "lang": "C", "max_forks_count": 81, "max_forks_repo_forks_event_max_datetime": "2022-03-20T15:22:27.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-13T07:26...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <string> #include <gsl/gsl> #include "onnx/onnx_pb.h" #include "core/graph/basic_types.h" namespace onnxruntime::utils { // keep these signatures in sync with DECLARE_MAKE_ATTRIBUTE_FNS below /**...
{ "alphanum_fraction": 0.7582733813, "avg_line_length": 40.0961538462, "ext": "h", "hexsha": "94242e8d264043ef1615797384a65efa790ac6fe", "lang": "C", "max_forks_count": 140, "max_forks_repo_forks_event_max_datetime": "2019-05-06T18:02:36.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-03T21:1...
#include <stdio.h> #include <gsl/gsl_statistics.h> int main(void) { double data[5] = {17.2, 18.1, 16.5, 18.3, 12.6}; double mean, variance, largest, smallest; mean = gsl_stats_mean(data, 1, 5); variance = gsl_stats_variance(data, 1, 5); largest = gsl_stats_max(data, 1, 5); smallest = gsl...
{ "alphanum_fraction": 0.5994065282, "avg_line_length": 28.0833333333, "ext": "c", "hexsha": "f5a7558a7b6e52fec2399901a2d954d31bf28da1", "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 <pygsl/error_helpers.h> #include <pygsl/function_helpers.h> #include <pygsl/pygsl_features.h> #ifdef PyGSL_DERIV_MODULE #if ( _PYGSL_GSL_HAS_DERIV == 0 ) #error "The deriv module was only introduced by GSL 1.5. You seem to compile against an older verion!" #endif #include <gsl/gsl_deriv.h> #endif /* PyGSL_DER...
{ "alphanum_fraction": 0.6912153236, "avg_line_length": 21.7841726619, "ext": "c", "hexsha": "736e882b0a2fe01e1f4e5e9f9fb22c402780e67c", "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:...
#include <asm/types.h> #include <glib.h> #include <stdio.h> #include <assert.h> #include <inttypes.h> #include <float.h> #include <gsl/gsl_histogram.h> #include <blktrace_api.h> #include <blktrace.h> #include <plugins.h> #include <utils.h> #include <list_plugins.h> #include <reqsize.h> #define DECL_ASSIGN_I2C(name,d...
{ "alphanum_fraction": 0.6679206566, "avg_line_length": 22.0679245283, "ext": "c", "hexsha": "d2277330ac024540f9129c6710effd163bd27131", "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":...
/*****************************************************************************/ #define this_is "FDBinary v.3 beta (test version of 21 Feb 2010)" /*****************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/g...
{ "alphanum_fraction": 0.4986057729, "avg_line_length": 36.9610027855, "ext": "c", "hexsha": "3d4e91d4b1c11430119a6f9454f787ab6de15a1b", "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 <stdlib.h> #include <stdio.h> #include <MathLib/MathLibDll.h> #include <MathLib/MathLib.h> #include <MathLib/ThreeTuple.h> #include <gsl/matrix/gsl_matrix.h> #include <gsl/vector/gsl_vector.h> #include <MathLib/Matrix.h> #define VECTOR_AT(v, i) (*((v->data + (i * v->tda )))) /*===========...
{ "alphanum_fraction": 0.6058015267, "avg_line_length": 27.9914529915, "ext": "h", "hexsha": "2696f5ef87e564756f40fa92006bf73f145bc137", "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 "arcana/expected.h" #include "arcana/functional/inplace_function.h" #include "arcana/iterators.h" #include "arcana/type_traits.h" #include "cancellation.h" #include <gsl/gsl> #include <memory> #include <stdexcept> #include <atomic> namespace arcana { template<typename ResultT, typename Er...
{ "alphanum_fraction": 0.5649636775, "avg_line_length": 33.124260355, "ext": "h", "hexsha": "762fa6872797110f9a87fe010cb6f4aaf96bc728", "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/exppow.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 James Theiler, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at *...
{ "alphanum_fraction": 0.6242707118, "avg_line_length": 25.7744360902, "ext": "c", "hexsha": "af085aab04c966073ef2dff1cb98e2e08bf03c41", "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:...
/* AFS.c These are definitions / methods of the AFS object for a markov chain representation of the AFS statespace during the coalecsent process A. Kern 2012 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_matrix_int.h> #include <gsl/gsl...
{ "alphanum_fraction": 0.6309567248, "avg_line_length": 30.478202847, "ext": "c", "hexsha": "760486cb1be8248845bf1e44ea710e67a3f80c97", "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 <stdbool.h> #include <math.h> #include <time.h> #include <fftw3.h> #include <assert.h> #include <complex.h> #include <gsl/gsl_math.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include...
{ "alphanum_fraction": 0.574661048, "avg_line_length": 32.2958579882, "ext": "c", "hexsha": "730ca6abf2e985f37a0d72d83e497d8240644907", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-06-03T05:29:23.000Z", "max_forks_repo_forks_event_min_datetime": "2021-06-03T05:29:2...
/* ################################################# * # stochastic simulation of adapting populations # * # with variing constraint type # * # and exponential mutation kernel # * ################################################# * * 2012-2014, Lukas Geyrhofer * * * ##########...
{ "alphanum_fraction": 0.5907142161, "avg_line_length": 25.2162162162, "ext": "c", "hexsha": "c5685b5f0df44b6602c29a987f349dfe0bd621ae", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef __CNN_FC_H__ #define __CNN_FC_H__ #include <cblas.h> #include "cnn_types.h" #ifdef CNN_WITH_CUDA #include <cublas_v2.h> #include <cuda_runtime.h> #include "cnn_init.h" #endif static inline void cnn_forward_fc(union CNN_LAYER* layerRef, struct CNN_CONFIG* cfgRef, int layerI...
{ "alphanum_fraction": 0.4829129981, "avg_line_length": 41.1104294479, "ext": "h", "hexsha": "23386098bc4bdffd4ffdd51c73acd759d22341c5", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#pragma once #include <gsl\gsl> #include <winrt\Windows.Foundation.h> #include <d3d11.h> #include "DrawableGameComponent.h" #include "MatrixHelper.h" #include "DirectionalLight.h" namespace Library { class ProxyModel; } namespace Rendering { class DiffuseLightingMaterial; class DiffuseLightingDemo final : public...
{ "alphanum_fraction": 0.7819467102, "avg_line_length": 30.65, "ext": "h", "hexsha": "88dc06f1c53a9bf100911b31a670792aaf12fa86", "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": "05a05c...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_interp.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_errno.h> #include "ccl.h" /* * Spline the linear power spectrum for mu-Sigma MG cosmologies. * @param cosmo Cosmological parameter...
{ "alphanum_fraction": 0.5519230769, "avg_line_length": 30.9523809524, "ext": "c", "hexsha": "5c36cb56e3f31f087deb53bf5722eda4896ab5a9", "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 "matrix_support.h" #include <cblas.h> int main(int argc, char *argv[]) { /* enum CBLAS_ORDER {CblasRowMajor=101, CblasColMajor=102}; */ /* enum CBLAS_TRANSPOSE {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113}; */ /* enum CBLAS_UPLO {CblasUpper=121, CblasLower=122}; */ /* enum CBLAS_DIAG ...
{ "alphanum_fraction": 0.5182481752, "avg_line_length": 29.8909090909, "ext": "c", "hexsha": "5d00e4ba6843ad99e30784cf1fd9fb57a1bdd057", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <config.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_complex.h> #include <gsl/gsl_fft_complex_float.h> #define BASE_FLOAT #include "templates_on.h" #include "c_pass.h" #include "c_init.c" #include "c_main.c" #include "c_pass_2....
{ "alphanum_fraction": 0.7335766423, "avg_line_length": 18.8965517241, "ext": "c", "hexsha": "ada9db42cb824fd984fa233abcc725f3506e34ad", "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 KGS_NULLSPACE_H #define KGS_NULLSPACE_H #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <string> #include <vector> #include "math/SVD.h" //#include "math/QR.h" class Molecule; //Forward declaration /** * Computes, stores, and maintains the nullspace of a gsl_matrix. * Supports projection...
{ "alphanum_fraction": 0.7451990632, "avg_line_length": 39.537037037, "ext": "h", "hexsha": "640f597e629bfd35e8ab3df3d4f73706fe5f1ab1", "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 [2019-2021] [IBM Corporation] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
{ "alphanum_fraction": 0.6270276317, "avg_line_length": 36.6352459016, "ext": "h", "hexsha": "370371288bc7f1de5552622ed5b3685f8d1222b3", "lang": "C", "max_forks_count": 13, "max_forks_repo_forks_event_max_datetime": "2022-01-26T01:56:42.000Z", "max_forks_repo_forks_event_min_datetime": "2019-11-02T06:30...
/* block/gsl_block_uint.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the Licen...
{ "alphanum_fraction": 0.7660393499, "avg_line_length": 35.4242424242, "ext": "h", "hexsha": "268cf15783ee2dd2311a9c77a8c7ff7bace2a201", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2022-01-04T19:22:30.000Z", "max_forks_repo_forks_event_min_datetime": "2020-06-27T11:11:...
#include <gsl/gsl_math.h> #include "gsl_cblas.h" #include "cblas.h" void cblas_dcopy (const int N, const double *X, const int incX, double *Y, const int incY) { #define BASE double #include "source_copy_r.h" #undef BASE }
{ "alphanum_fraction": 0.7074235808, "avg_line_length": 17.6153846154, "ext": "c", "hexsha": "271d78fec0cf7dea4dea703d8dc4a4c36adc51f5", "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:...
#pragma once #include <cassert> #include <cstdio> #include <cstdlib> #include <cfloat> #include <algorithm> #include <vector> #include <memory> #include <stdexcept> #include <map> #include <hip/hip_runtime.h> #include <hiprand_kernel.h> #include <gsl/gsl_assert.h> #include <nonstd/byte.hpp> #include <nonstd/expected...
{ "alphanum_fraction": 0.7502439024, "avg_line_length": 24.6987951807, "ext": "h", "hexsha": "3e55968407980c42c47ed31f58b2a1498b17bb14", "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 _SPC_FITTING_H #define _SPC_FITTING_H #include <math.h> #include <gsl/gsl_fit.h> #include <gsl/gsl_multifit.h> #include "aXe_errors.h" extern void comp_vector_average (const double *xs, double *ys, double *ws, double *yi, const int n, const int final); extern void comp_vector_median (const double *...
{ "alphanum_fraction": 0.7106357695, "avg_line_length": 29.5263157895, "ext": "h", "hexsha": "971f39ea279c6b20de8202e3a035a4ba6fc77ad3", "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 VolViz_Types_h #define VolViz_Types_h #include <Eigen/Core> #include <Eigen/Geometry> #include <gsl/gsl> #include <phys/units/quantity.hpp> #include <array> namespace VolViz { using namespace gsl; using Vector3f = Eigen::Vector3f; using Matrix3 = Eigen::Matrix3f; using Matrix4 = Eigen::Matrix4f; /// Posi...
{ "alphanum_fraction": 0.669300556, "avg_line_length": 25.125, "ext": "h", "hexsha": "c4ce5c3e99e47159b6be918969c3eb4d50f4d338", "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": "e79f36...
/* min/test.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) a...
{ "alphanum_fraction": 0.6454121306, "avg_line_length": 29.6313364055, "ext": "c", "hexsha": "d9b037d27c343608b3064ef37bb031c44dd80195", "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 "userFunc.h" #include <math.h> #include <gsl/gsl_sf_bessel.h> /**************************************************************************/ /* This defines userFunc routines for the Pringle (1981) ring test */ /**************************************************************************/ void userEOS(con...
{ "alphanum_fraction": 0.6457667732, "avg_line_length": 31.3, "ext": "c", "hexsha": "fdb71f804a765b28d4ea00458cba6a866793a348", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-11-20T02:11:17.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-19T04:41:37.000Z",...
#ifndef SOURCE_ROBUSTNESSMAIN_H_ #define SOURCE_ROBUSTNESSMAIN_H_ // *** source/robustness_main.h *** // Author: Kevin Wolz, date: 08/2018 // // Numerical sampling of the Robustness distribution (GP and WPL). #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <stdli...
{ "alphanum_fraction": 0.5419407895, "avg_line_length": 36.8484848485, "ext": "h", "hexsha": "04788522157481a7bf5e8ae650e8bd8ef30a948f", "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.6184608885, "avg_line_length": 38.4384303112, "ext": "h", "hexsha": "a01c74c8802f296ec612857acf2f305d90968dde", "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:...
/* vector/gsl_vector_int.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, o...
{ "alphanum_fraction": 0.6689938398, "avg_line_length": 31.085106383, "ext": "h", "hexsha": "1e0f9050075c913fd074ff5fc46f63769c830af5", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
{ "alphanum_fraction": 0.6617647059, "avg_line_length": 32.9356521739, "ext": "c", "hexsha": "1f251de581cd666e5a00877a47bbc8e93696793d", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2021-10-16T04:05:07.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-11T17:18:...
#pragma once #include <set> #ifndef _NOGSL #include <gsl/gsl_vector.h> #endif #include "Util.h" using namespace std; class Interface; #ifdef _NOGSL class gsl_vector; #endif class LocalState { public: vector<gsl_vector*> startStates; vector<gsl_vector*> localSols; // local sol for different betas vector<double>...
{ "alphanum_fraction": 0.6955414013, "avg_line_length": 28.5454545455, "ext": "h", "hexsha": "01f04c189225d4c449302e0da0581bc9fab8177e", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-12-06T01:45:04.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-04T20:47:...