Search is not available for this dataset
text
string
meta
dict
// This matrix class is a C++ wrapper for the GNU Scientific Library // Copyright (C) ULP-IPB Strasbourg // 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.7351524157, "avg_line_length": 55.2462686567, "ext": "h", "hexsha": "f421ee0b7eb1b986147496102a95e3b1a0eeac78", "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 <string.h> #include <math.h> #include <gsl/gsl_math.h> #include "allvars.h" #include "proto.h" #if (defined(SMOOTH_PHI) || defined(SMOOTH_ROTB) || defined(BSMOOTH)) /*! Structure for communication during the density computation. Holds data that is sent...
{ "alphanum_fraction": 0.6215463697, "avg_line_length": 25.5602189781, "ext": "c", "hexsha": "cc606fa734470c2cc5dfc836a24e5dc3f446dfe7", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/** * This file is part of the "libterminal" project * Copyright (c) 2019-2020 Christian Parpart <christian@parpart.family> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to i...
{ "alphanum_fraction": 0.6102959099, "avg_line_length": 32.2531446541, "ext": "h", "hexsha": "4fed5a55a0ec588e181f75fe7ee06edeb4973cfa", "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_uchar.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 ...
{ "alphanum_fraction": 0.6487566607, "avg_line_length": 37.6378830084, "ext": "h", "hexsha": "8183f1b13354d74700382f48f58943a3b603cfee", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
static char help[] = "Solves a 1D advection plus diffusion problem using FD discretization\n" "and a structured-grid (DMDA). Option prefix -b1_. Equation is\n" " - eps u'' + (a(x) u)' = 0\n" "with a(x)=1, on domain [-1,1], and with Dirichlet boundary conditions\n" "u(-1) = 1, u(1) = 0. Default eps=0.01. The diffus...
{ "alphanum_fraction": 0.5271613117, "avg_line_length": 39.4640522876, "ext": "c", "hexsha": "8f1fc8dc8643381857654576acbda7f3c6845643", "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...
/* * 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.6429932444, "avg_line_length": 37.9802631579, "ext": "h", "hexsha": "46174f5fa068275d52a85c8ffc77be91f6045a3c", "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:...
#include <string.h> #include <math.h> #include <mpi.h> #include <gsl/gsl_rng.h> #include <fastpm/libfastpm.h> #include <fastpm/logging.h> #include "pmpfft.h" /* The following functions fill the gaussian field*/ static void pmic_fill_gaussian_gadget(PM * pm, FastPMFloat * delta_k, int seed); static void pmic_fill_gau...
{ "alphanum_fraction": 0.523115948, "avg_line_length": 32.4164456233, "ext": "c", "hexsha": "f6ad5f73defe060cc32bd1d3183f8dd78246dbcc", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-04-14T23:24:19.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-14T23:24:1...
/* Copyright (c) 2015, Patrick Weltevrede All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
{ "alphanum_fraction": 0.6340679866, "avg_line_length": 33.5463659148, "ext": "c", "hexsha": "f4bda75a0080a41a5d800021b1eabd1838e91981", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2020-06-16T15:24:07.000Z", "max_forks_repo_forks_event_min_datetime": "2018-04-09T09:04:...
/* * SPDX-License-Identifier: BSD-3-Clause * * example_08-StructOfArrays-CellLinkedList-OuterOmp.c : * Example of SPH Density Calculation using * fast neighbor search the main density loop via * Cell Linked List method, Struct of Arrays (SoA) * data layout, OpenMP parallelization at the ...
{ "alphanum_fraction": 0.5638479784, "avg_line_length": 48.6032171582, "ext": "c", "hexsha": "8ad322d32feafff0e75aa34ddc00d60a491a02b5", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <omp.h> #include <gsl/gsl_math.h> #include <gsl/gsl_sf_erf.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> /* Begin constants */ #define VERBOSE 0 //when set to 1, running smc_sampler(...) will generate A LOT of output. #defin...
{ "alphanum_fraction": 0.643991063, "avg_line_length": 31.4962962963, "ext": "c", "hexsha": "fe6b7a838ae429c840e8f32acda2a933f4c59c88", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
/* specfunc/coupling.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 opt...
{ "alphanum_fraction": 0.5827046772, "avg_line_length": 30.4915254237, "ext": "c", "hexsha": "d5799933f6a0a0d650d8779d408afe140c328903", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:...
/* Copyright Koby Hayashi 2018 */ #ifndef DIMTREE_DDTTENSOR_H_ #define DIMTREE_DDTTENSOR_H_ #include <cblas.h> #include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <time.h> /** This is a header file that contains defiition for: 1) KTENSO...
{ "alphanum_fraction": 0.6587934887, "avg_line_length": 38.6790123457, "ext": "h", "hexsha": "eba67f878c0029be5bc4d95080cfecdf83984f1f", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-08-02T21:30:15.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-29T21:55:...
#include <stdio.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <getopt.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_rng.h> #include "../fewbody.h" int calc_units(fb_hier_t hier, fb_units_t *units) { /* mass unit is total system mass */ units->m = hier...
{ "alphanum_fraction": 0.6113861386, "avg_line_length": 34.3829787234, "ext": "c", "hexsha": "03a7df093c76187cd9eeb54cdec70cca409d9cc1", "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":...
/* Simbicon 1.5 Controller Editor Framework, Copyright 2009 Stelian Coros, Philippe Beaudoin and Michiel van de Panne. All rights reserved. Web: www.cs.ubc.ca/~van/simbicon_cef This file is part of the Simbicon 1.5 Controller Editor Framework. Simbicon 1.5 Controller Editor Framework is free software: you can ...
{ "alphanum_fraction": 0.6420251961, "avg_line_length": 30.2661870504, "ext": "h", "hexsha": "d14eebe9379293100eb71d25b8be87785a6693b1", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_linalg.h> #include <time.h> #include <string.h> /* * A benchmark to test performance of calculating determinants of * 6x6 matrices with the GNU Scientific Library (GSL) package. */ int main(int argc, char * argv[]) { if (argc != 3 || strcmp(argv[1...
{ "alphanum_fraction": 0.6253270539, "avg_line_length": 25.8243243243, "ext": "c", "hexsha": "babf7aac016c6cb971b618926a9fe5ab6af96896", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-02-25T06:53:52.000Z", "max_forks_repo_forks_event_min_datetime": "2016-04-21T08:25:...
#ifndef boundary_h #define boundary_h #include <petsc.h> typedef PetscErrorCode BCFunc(PetscInt, PetscReal, const PetscReal *, PetscInt, PetscScalar *, void *); BCFunc BCMMS, BCZero, BCClamp; // ----------------------------------------------------------------------------- // Boundary Fu...
{ "alphanum_fraction": 0.5765217391, "avg_line_length": 38.3333333333, "ext": "h", "hexsha": "7b01dd91374f319dd34d12a931e19bd5f3f19681", "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...
/* interpolation/interp.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 ...
{ "alphanum_fraction": 0.5932932072, "avg_line_length": 23.7346938776, "ext": "c", "hexsha": "036173084e52d01e3cd37e88faf4d0490634735b", "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 _PYGSL_SOLVER_INTERN_H_ #define _PYGSL_SOLVER_INTERN_H_ 1 #define _PyGSL_SOLVER_API_MODULE 1 #include <pygsl/solver.h> #undef _PyGSL_SOLVER_API_MODULE #include <pygsl/general_helpers.h> #include <pygsl/block_helpers.h> #include <pygsl/function_helpers.h> #include <setjmp.h> #include <gsl/gsl_math.h> /* * Co...
{ "alphanum_fraction": 0.7718484145, "avg_line_length": 23.9444444444, "ext": "h", "hexsha": "defb339559517946c313395a098ed63f3c30b839", "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:...
/* * Gsl_matrix: test gsl_matrix * * Copyright (c) 2012 Jérémie Decock * * Required: GSL library (libgsl0-dev) * Usage: gcc gsl_matrix.c -lgsl -lgslcblas -lm * or: gcc gsl_matrix.c $(pkg-config --libs gsl) */ #include <gsl/gsl_matrix.h> #define N 10 int main(int argc, char * argv[]) { gsl_matrix * m...
{ "alphanum_fraction": 0.6487804878, "avg_line_length": 18.6363636364, "ext": "c", "hexsha": "de51be421571c225c779abd09afcf256fc20c470", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-01-04T15:59:45.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-31T09:48:...
#pragma once #include <type_traits> #include <cuda/define_specifiers.hpp> #include <cuda/runtime_api.hpp> #include <thrust/iterator/counting_iterator.h> #include <thrust/iterator/transform_iterator.h> #include <thrust/iterator/zip_iterator.h> #include <gsl-lite/gsl-lite.hpp> #include <cub/cub.cuh> #include <thrus...
{ "alphanum_fraction": 0.5660554772, "avg_line_length": 34.868852459, "ext": "h", "hexsha": "979fb31c72865e21886693c5aeb8b7d937eaf467", "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": ...
/* * testgen.c * Patrick Alken * * Compile: gcc -g -O2 -Wall -o testgen testgen.c -lm -lgsl -llapack -lf77blas -lcblas -latlas -lg2c * * Usage: testgen [options] * * -i : incremental matrices * -z : compute Schur vectors and test them * -n size : size of matrices * -l lower-bou...
{ "alphanum_fraction": 0.5316567395, "avg_line_length": 22.552238806, "ext": "c", "hexsha": "9d12d93d51a0afe1e9940e2d7003eac6fb5e0f30", "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...
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * Program fwhm_by_modsq * to compute the Full Width at Half Maximum of an equivalent long exposure * with the power spectrum (square modulus of the FFT) * (by fitting a Kolmogorof law) * * JLP * Version 11-05-99 ------------------------------------...
{ "alphanum_fraction": 0.5397056874, "avg_line_length": 26.7482269504, "ext": "c", "hexsha": "cab274427daf51309424d98dc9001c0b7c3dfc2d", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_cblas.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_eigen.h> #include "chisq_dist.h" int chisq_dist(int mode, int do_chisq, int nophotoerr, int ncalc, int ncol, double *covmat, double ...
{ "alphanum_fraction": 0.5971135205, "avg_line_length": 26.1785714286, "ext": "c", "hexsha": "a64d701bc9fad0f95192df3b709ee8d5b2c4b2d4", "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 <ceed.h> #include <petsc.h> // Translate PetscMemType to CeedMemType static inline CeedMemType MemTypeP2C(PetscMemType mem_type) { return PetscMemTypeDevice(mem_type) ? CEED_MEM_DEVICE : CEED_MEM_HOST; } #endif // utils_h
{ "alphanum_fraction": 0.7865168539, "avg_line_length": 22.25, "ext": "h", "hexsha": "4d85e777c503eb9b153b80196e1ca79a110ccae7", "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:13.000Z...
/// @file PosixDomain.h /// @author Braxton Salyer <braxtonsalyer@gmail.com> /// @brief `StatusCodeDomain` supporting platform-implementation-specific values of `errno` in /// addition to those __required__ by POSIX /// @version 0.1 /// @date 2021-11-10 /// /// MIT License /// @copyright Copyright (c) 2021 Braxton Saly...
{ "alphanum_fraction": 0.7240264986, "avg_line_length": 40.9867549669, "ext": "h", "hexsha": "ffd5987b7b5d1bd2630a600edca5a772f9c80518", "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 __MATHINT_H_ #define __MATHINT_H_ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <immintrin.h> #include <stdbool.h> #if (defined __AVX__ || defined __SSE4_2__) #include "math_x86.h" #endif #include <gsl/gsl_math.h> #include <gsl/gsl_sf.h> #include <gsl/gsl_integration.h> #define pi 3.1...
{ "alphanum_fraction": 0.7162661738, "avg_line_length": 25.1627906977, "ext": "h", "hexsha": "dfc3f78ed63ebfb64bfcfb7e4f9d086340fad47b", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2020-07-19T12:40:10.000Z", "max_forks_repo_forks_event_min_datetime": "2016-12-03T11:56:...
#ifndef TTT_GFX_TEXT_H #define TTT_GFX_TEXT_H #include <SDL_render.h> #include <SDL_ttf.h> #include <gsl/pointers> #include <gsl/util> #include <memory> #include <string_view> #include <string> #include <stdexcept> #include <cstdint> namespace ttt::gfx { class TextError final : public std::runtime_error { public...
{ "alphanum_fraction": 0.7376445846, "avg_line_length": 29.2615384615, "ext": "h", "hexsha": "77efc761b40b7c99f1d6c5d57f187ce4c4f22390", "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":...
/* $Id$ */ /*--------------------------------------------------------------------*/ /*; Copyright (C) 2013 */ /*; Associated Universities, Inc. Washington DC, USA. */ /*; */ /*; This pr...
{ "alphanum_fraction": 0.6097273397, "avg_line_length": 40.3869047619, "ext": "h", "hexsha": "714d54462a6b48faf1e612dbbbf5f1ba7de04f0c", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2022-03-31T12:16:08.000Z", "max_forks_repo_forks_event_min_datetime": "2017-08-29T15:12:...
/* multifit_nlinear/svd.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 version...
{ "alphanum_fraction": 0.607208589, "avg_line_length": 24.1481481481, "ext": "c", "hexsha": "6c2131bb505437b51e9366e3a329354570f4a8bc", "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...
#pragma once #include "Cesium3DTilesReader/Library.h" #include <Cesium3DTiles/Tileset.h> #include <CesiumJsonReader/ExtensionReaderContext.h> #include <gsl/span> #include <functional> #include <memory> #include <optional> #include <string> #include <unordered_map> #include <vector> namespace Cesium3DTilesReader { ...
{ "alphanum_fraction": 0.7077483099, "avg_line_length": 23.1686746988, "ext": "h", "hexsha": "967fb3b36ddc2f900c3361f4396b2ce781bc4daa", "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 __TEST_UTILS_H__ #define __TEST_UTILS_H__ #define THEN_WHEN(x) #define THEN_CHECK(x) #include <initializer_list> #include <memory> #include <string> #include <vector> #include <gsl/gsl> #include <gsl/string_span> #include "base-utils/yaml.h" #include "config/path.h" #include "config/pattern.h" #include "plu...
{ "alphanum_fraction": 0.6790356394, "avg_line_length": 34.3165467626, "ext": "h", "hexsha": "ef5f96a411e4563b2b675c0e2541a9416b0922e8", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-07-03T11:11:19.000Z", "max_forks_repo_forks_event_min_datetime": "2018-07-03T11:11:...
/* * Copyright 2016 Couchbase, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
{ "alphanum_fraction": 0.6472044099, "avg_line_length": 29.8288590604, "ext": "h", "hexsha": "fa3590e1155abee6f28ca58c202f9bedb30788fb", "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":...
/* $Id$ */ /* * Copyright (c) 2014, 2015 Kristaps Dzonsons <kristaps@kcons.eu> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOF...
{ "alphanum_fraction": 0.6065528252, "avg_line_length": 23.5008156607, "ext": "c", "hexsha": "adf305b5dcacb45a315a9348aa38727ed51b654f", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdlib.h> #include <stddef.h> #include <stdio.h> #include <math.h> #include <gsl/gsl_sf_gamma.h> #include <gsl/gsl_sf_hyperg.h> #include <gsl/gsl_errno.h> void inc_gamma_error_msg(const char* fn_name, const char* reason, const char* file, int line, int gsl_errno) { fprintf(stderr, "Error in GSL %s\n", fn_na...
{ "alphanum_fraction": 0.6602428722, "avg_line_length": 35.4018691589, "ext": "h", "hexsha": "0201c106289582ebecbc11a21186ae93c1a5850d", "lang": "C", "max_forks_count": 16, "max_forks_repo_forks_event_max_datetime": "2022-02-05T01:25:15.000Z", "max_forks_repo_forks_event_min_datetime": "2016-11-23T05:06...
#ifndef AMICI_SUNDIALS_MATRIX_WRAPPER_H #define AMICI_SUNDIALS_MATRIX_WRAPPER_H #include <sunmatrix/sunmatrix_band.h> // SUNMatrix_Band #include <sunmatrix/sunmatrix_dense.h> // SUNMatrix_Dense #include <sunmatrix/sunmatrix_sparse.h> // SUNMatrix_Sparse #include <gsl/gsl-lite.hpp> #include <vector> #include "ami...
{ "alphanum_fraction": 0.6336696536, "avg_line_length": 30.3490364026, "ext": "h", "hexsha": "2ccc7622ab0daf286d01e33268a228bf01751632", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-09-20T14:53:43.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-20T14:53:...
#include <stdio.h> #include <gsl/gsl_monte.h> #include <gsl/gsl_monte_vegas.h> #include <gsl/gsl_math.h> #include "timer.c" #include "timer.h" #include "integrand.h" double dipole_approx (double r); double gaussian (double *x, int dim); int main (void) { double res, err; size_t dim = 6; double x1[] = ...
{ "alphanum_fraction": 0.5120593692, "avg_line_length": 21.2204724409, "ext": "c", "hexsha": "203653a9221b232312e86eb8e6d70e951e3c8efe", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights // reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for effic...
{ "alphanum_fraction": 0.6334608945, "avg_line_length": 38.1826484018, "ext": "h", "hexsha": "df2a7ecae0b48bf7a5c8a18d701d5ef12827b9c7", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-03-30T23:13:18.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-30T23:13:...
#include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_math.h> #include "allvars.h" #include "proto.h" #ifdef COSMIC_RAYS #include "cosmic_rays.h" #endif void reconstruct_timebins(void) { int i, n, prev, bin; long long glob_sum1, glob_sum2; for(bin = 0; ...
{ "alphanum_fraction": 0.5992787626, "avg_line_length": 32.9742120344, "ext": "c", "hexsha": "d068ee12c4691618618da4f4651c1dff85907ce7", "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":...
// rand.h #ifndef RAND_H #define RAND_H #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #define URNG generator class generator{ const gsl_rng_type * T; public: gsl_rng * r; generator(); ~generator(); void seed(unsigned long int s); }; #include "types.h" class r_lognorm{ double zet...
{ "alphanum_fraction": 0.6629732225, "avg_line_length": 17.1904761905, "ext": "h", "hexsha": "5af17fc1bf3f6b8d8c6052117690b559b350beb6", "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":...
/*********************************** V2 IMPLEMENTATION USING DATASETS ************************************/ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include <cblas.h> #include <string.h> #include <mpi.h> #include "../inc/knnring.h" #include "../inc/readlib.h" #include "../inc/vptring...
{ "alphanum_fraction": 0.6330275229, "avg_line_length": 27.9487179487, "ext": "c", "hexsha": "18174ebbb2469d963109edde8e8037eadeb83ff3", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* -*- linux-c -*- */ /* fewbody.h Copyright (C) 2002-2004 John M. Fregeau This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any ...
{ "alphanum_fraction": 0.7469591994, "avg_line_length": 41.6346153846, "ext": "h", "hexsha": "a4b4a5dcef440b54f73a6fa2831aca74a7887d88", "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) 2010-2021 Barcelona Supercomputing Center and University of * Illinois at Urbana-Champaign * SPDX-License-Identifier: MIT */ /** \file * \brief Wrapper routines for GSL random number functions. */ /* clang-format off */ #include <gsl/gsl_errno.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_r...
{ "alphanum_fraction": 0.697470207, "avg_line_length": 30.4649681529, "ext": "c", "hexsha": "72fbff71413533f863891d19914b6865dbd13edd", "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": ...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2015 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
{ "alphanum_fraction": 0.5581704308, "avg_line_length": 23.2114537445, "ext": "h", "hexsha": "eb127bec2ede780e3660e9ee136a5c3fc23a36da", "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 <codecvt> #include <locale> #include <string> #ifdef _MSC_VER #include <string_view> #else // llvm-libc++ included with Android NDK r15c hasn't yet promoted the C++1z library fundamentals // technical specification to the final C++17 specification for string_view. // Force pro...
{ "alphanum_fraction": 0.6566018424, "avg_line_length": 28.7352941176, "ext": "h", "hexsha": "1b904e395f912b86fa7dd067bda198ca07208736", "lang": "C", "max_forks_count": 18, "max_forks_repo_forks_event_max_datetime": "2021-12-26T14:24:29.000Z", "max_forks_repo_forks_event_min_datetime": "2019-05-09T23:07...
/// @brief Hyperion logging facilities. /// /// Hyperion's logging facilities are robust and composable. /// Behavioral (Policy) configuration is configurable at compile time with via template parameters, /// and output configuration is configurable by supplying the desired `Sink`s on creation #pragma once #include <H...
{ "alphanum_fraction": 0.6805702067, "avg_line_length": 34.1196498054, "ext": "h", "hexsha": "a8a83c2a7ff9868dacf75122bb340d3dc24bd5cd", "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 CONTROLLERS_FEATURE_DETECTOR_CONTROLLER_H #define CONTROLLERS_FEATURE_DETECTOR_CONTROLLER_H #include <QObject> #include <QAction> #include <s3d/cv/features/match_finder_cv.h> #include <s3d/cv/disparity/disparity_analyzer_stan.h> #include <gsl/gsl> class FeatureDetectorControllerBase : QObject { Q_OBJECT ...
{ "alphanum_fraction": 0.7584973166, "avg_line_length": 27.95, "ext": "h", "hexsha": "8ddcf142e539f731153a3f815775d2db7e5ebdb0", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2021-05-18T16:22:03.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-13T21:51:09.000Z"...
/** * Created when : 2021.11.19; * Last Update : 2021.12.02; * Author : G. Marino <gcmarino404@gmail.com>; * Notes : Header to the program Newton-main and correlated files. */ #include <stdlib.h> #include <stdio.h> #include <time.h> #include <math.h> #include <comp...
{ "alphanum_fraction": 0.586017282, "avg_line_length": 28.9318181818, "ext": "h", "hexsha": "f8ac5c47a256e9183ee2b4cd1dd85f4021312351", "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 MOBULA_INC_CONTEXT_CPU_CTX_H_ #define MOBULA_INC_CONTEXT_CPU_CTX_H_ #define MOBULA_KERNEL void #define MOBULA_DEVICE #include <algorithm> #include <cmath> #include <cstring> #include <mutex> #include <thread> #include "../ctypes.h" #include "./common.h" namespace mobula { #if USING_CBLAS #include <cblas.h> ...
{ "alphanum_fraction": 0.6767878546, "avg_line_length": 26.0729166667, "ext": "h", "hexsha": "816b34cea4aa44e6358e4822ffb0d64524d57739", "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) 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved. */ /* * 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.719227675, "avg_line_length": 28.9069767442, "ext": "c", "hexsha": "210ce79eda7a0c5e7986dc05d19a292c965625e8", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2021-12-07T12:39:23.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-19T16:42:5...
#include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> #include <cstdlib> #include <algorithm> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <time.h> #include <math.h> using namespace std;
{ "alphanum_fraction": 0.7317073171, "avg_line_length": 17.5714285714, "ext": "h", "hexsha": "53dcf4a1124be3a4eb5e390c3a1471ef375cdddf", "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":...
/* cdf/tdist.c * * Copyright (C) 2002 Jason H. Stover. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. * * Th...
{ "alphanum_fraction": 0.5623907725, "avg_line_length": 21.0367647059, "ext": "c", "hexsha": "b324482986c8c94ce36a7161f9e9efe9a74d5e61", "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:...
#define _GNU_SOURCE #include <cblas.h> #include <lapacke.h> int main(int argc, char **argv) { int N = 3; double X[] = { 1, 2, 3 }; int INCX = 1; double res = cblas_dnrm2(N, X, INCX); return 0; }
{ "alphanum_fraction": 0.6, "avg_line_length": 15.7692307692, "ext": "c", "hexsha": "d9dab9486c5752401702a71fcec2a0687fe7d173", "lang": "C", "max_forks_count": 1019, "max_forks_repo_forks_event_max_datetime": "2022-03-30T15:38:56.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-01T18:23:07.000...
/* Copyright (c) 2015, Patrick Weltevrede All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
{ "alphanum_fraction": 0.6629479636, "avg_line_length": 36.1519337017, "ext": "c", "hexsha": "109b189caa6cc68848181c78224f6222bbe6578b", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2020-06-16T15:24:07.000Z", "max_forks_repo_forks_event_min_datetime": "2018-04-09T09:04:...
// Copyright Jean Pierre Cimalando 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at // http://www.boost.org/LICENSE_1_0.txt) #pragma once #include <SimpleIni.h> #include <gsl/gsl> #include <string> #include <memory> const std::str...
{ "alphanum_fraction": 0.7696551724, "avg_line_length": 34.5238095238, "ext": "h", "hexsha": "0f0bbe191b872a5688209e9e64efd5a6a34b3bae", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-11-22T08:05:13.000Z", "max_forks_repo_forks_event_min_datetime": "2020-07-10T18:48:...
/* specfunc/gsl_sf_coupling.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * y...
{ "alphanum_fraction": 0.625, "avg_line_length": 29.3636363636, "ext": "h", "hexsha": "50dd1b881e498ce951d6583e4919be6e0709ade9", "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...
// Distributed under MIT License, see LICENSE file // (c) 2018 Zbigniew Skowron, zbychs@gmail.com #pragma once #include "text_buffer.h" #include "text_parser.h" #include "text_renderer.h" #include "geometry.h" #include <string> #include <vector> #include <iostream> #include <gsl/span> namespace terminal_editor { ...
{ "alphanum_fraction": 0.6992570078, "avg_line_length": 44.8636363636, "ext": "h", "hexsha": "fd74b73a29b9364c3d421b1c9ffd904e10c750f7", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-12-21T00:37:06.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-21T00:37:...
/* * PARTICLE SWARM OPTIMIZATION * =========================== * * Author: Gabriel E Leventhal, 2011-12-02 * * adapted from * Author: Tomas V. Arredondo * SimPSOLib: A simple yet flexible PSO implementation in C++. * */ #ifndef __PSO_SWARM__ #define __PSO_SWARM__ #include <iostream> #include <iomanip>...
{ "alphanum_fraction": 0.5478297514, "avg_line_length": 29.2962962963, "ext": "h", "hexsha": "26d6a2f301cf2843ea6fc8a7ef7ae7de8c2e8660", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2022-03-17T09:34:55.000Z", "max_forks_repo_forks_event_min_datetime": "2017-11-11T13:00:...
#include <config.h> #include <stddef.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_complex.h> #include <gsl/gsl_fft_real.h> #include <gsl/gsl_fft_real_float.h> #define BASE_DOUBLE #include "templates_on.h" #include "real_pass.h" #include "real_init.c" #include "real_main.c" #i...
{ "alphanum_fraction": 0.7557077626, "avg_line_length": 21.3658536585, "ext": "c", "hexsha": "512f8b25fc10ca6c7273c630922e7ef8e92d158b", "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:...
/* NAME: logsum PURPOSE: calculate the log of the sum of numbers which are given as logs using as much of the dynamic range as possible CALLING SEQUENCE: logsum(gsl_matrix * q, int row, bool isrow,bool partial, int partial_indx[3]) INPUT: q - matrix of which we will sum a row/colu...
{ "alphanum_fraction": 0.6184419714, "avg_line_length": 25.16, "ext": "c", "hexsha": "824e2f4c31dac0cd076da74cd492cc1025a79b96", "lang": "C", "max_forks_count": 26, "max_forks_repo_forks_event_max_datetime": "2021-12-13T03:37:58.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-05T22:21:22.000Z...
/* Author: Edward Hutter */ #ifndef SHARED #define SHARED // System includes #include <fstream> #include <iostream> #include <cstring> #include <cstdlib> #include <stdio.h> #include <complex> #include <vector> #include <map> #include <algorithm> #include <utility> #include <tuple> #include <cmath> #include <string> #...
{ "alphanum_fraction": 0.7331081081, "avg_line_length": 16.7547169811, "ext": "h", "hexsha": "b7aa2beca2ddc97fbdd412b63d0590300b4017ab", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-03-20T01:13:23.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-20T01:13:...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #include <math.h> #include <gsl/gsl_integration.h> #include <sys/time.h> // *************************************************************************************** // * Pre-Port Entwicklung und Testen eines OMP-parallisierten, adaptiven Simpso...
{ "alphanum_fraction": 0.5365078178, "avg_line_length": 30.4834663626, "ext": "c", "hexsha": "ff471e5ec64b45f7b10b410406dac0fe1f07dbbd", "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 <sys/time.h> #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_cdf.h> #include <omp.h> #include "util.h" int main(int argc, char *argv[]) { char* inp...
{ "alphanum_fraction": 0.5585177286, "avg_line_length": 35.165625, "ext": "c", "hexsha": "31fd86512611923e8739731be2727105d4670c8d", "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": "39...
/*solver/fixed_point.c * Solves a fixed point equation using * sequence acceleration. * * Author: Benjamin Vatter j. * email : benjaminvatterj@gmail.com * date: 15 August 2015 */ #include <math.h> #include <stdlib.h> #include <gsl/gsl_math.h> #include "fixed_point.h" /* * Finds the fixed point of a function f * Trans...
{ "alphanum_fraction": 0.5455197133, "avg_line_length": 17.8846153846, "ext": "c", "hexsha": "1c2c9a9bc56735e984aac4839f8fe516e44d208c", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* ODE: a program to get optime Runge-Kutta and multi-steps methods. Copyright 2011-2019, Javier Burguete Tolosa. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above cop...
{ "alphanum_fraction": 0.5890761681, "avg_line_length": 25.5422343324, "ext": "c", "hexsha": "34f65a4bd481a8ff05fa18b4d79593e5e70d9fce", "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 <gbpLib.h> #include <gbpMisc.h> #include <gsl/gsl_math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_eigen.h> #include <gsl/gsl_spline.h> void compute_triaxiality(double *x_in, double *y_in, double *z_in, double x_cen, ...
{ "alphanum_fraction": 0.469928108, "avg_line_length": 37.2745098039, "ext": "c", "hexsha": "0fc7f329993a9ac7daae2dbdacb82efbe12cef39", "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...
/* ode-initval/bsimp.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004 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 * yo...
{ "alphanum_fraction": 0.5753513983, "avg_line_length": 24.2992957746, "ext": "c", "hexsha": "235519505192c1f1f58e1c857062788e1b9e2b85", "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...
/* eigen/nonsymm.c * * Copyright (C) 2006 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 2 of the License, or (at * your option) any later version. * ...
{ "alphanum_fraction": 0.6479827089, "avg_line_length": 24.2657342657, "ext": "c", "hexsha": "de9088a4588bf1caae3de3267af914d51bf6a8dd", "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...
/* randist/logarithmic.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 (...
{ "alphanum_fraction": 0.630777903, "avg_line_length": 23.038961039, "ext": "c", "hexsha": "37dffbdab209fd7a97497361a3188e18fd5bc7e2", "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...
#include <gsl/gsl_combination.h> #include <gsl/gsl_errno.h> #include <stdio.h> int mgsl_combination_fwrite(const char *filename, const gsl_combination *p) { FILE *fp; if((fp = fopen(filename, "w")) == NULL) return GSL_EFAILED; if(gsl_combination_fwrite(fp, p) != GSL_SUCCESS) return GSL_EFAILED; fclose(fp); r...
{ "alphanum_fraction": 0.7226596675, "avg_line_length": 28.575, "ext": "c", "hexsha": "2e54e30c238c19d64b576665364f12b108024d8a", "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": "3e14b...
/** * @file square_root.h * @brief Updating complex Cholesky factorizations. * @author John McDonough and Kenichi Kumatani */ #ifndef SQUARE_ROOT_H #define SQUARE_ROOT_H #include <stdio.h> #include <assert.h> #include <gsl/gsl_block.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_com...
{ "alphanum_fraction": 0.597869102, "avg_line_length": 38.1976744186, "ext": "h", "hexsha": "94fe3110f274bc47281a886775a3dec9ecfa5610", "lang": "C", "max_forks_count": 68, "max_forks_repo_forks_event_max_datetime": "2021-11-17T09:33:10.000Z", "max_forks_repo_forks_event_min_datetime": "2019-01-08T06:33:...
#include <assert.h> #include <math.h> #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <gsl/gsl_math.h> #include "gaussianInt2.h" #include "blit3.h" #ifndef verbose #define verbose 1 #endif double rand_range(double A, double B) // A random number between A a...
{ "alphanum_fraction": 0.5069513406, "avg_line_length": 23.3281853282, "ext": "c", "hexsha": "b8b881adfa02ad0ef9d92886688826ba3f0d6521", "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":...
/* normal.c * * Copyright (C) 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 later version. * *...
{ "alphanum_fraction": 0.6507629153, "avg_line_length": 24.8288461538, "ext": "c", "hexsha": "64cd3bce2725bef8231df885b16a7af75408e82a", "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:...
/* bst/gsl_bst_rb.h * * Copyright (C) 2018 Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. * ...
{ "alphanum_fraction": 0.6926369863, "avg_line_length": 31.5675675676, "ext": "h", "hexsha": "a581ffe16c38cedccdc57f1078811a040024e832", "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":...
/* randrand - how random is rand(), mostly for comparison with the * random numbers signal/jitterbits.c produces. produces 256 different * random values which in an ideal world should be evenly distributed * * ./randrand | r-fu equichisq * * even with gsl_rng_uniform_int() and the "maximally equidistributed" *...
{ "alphanum_fraction": 0.6346666667, "avg_line_length": 26.3157894737, "ext": "c", "hexsha": "939612c6925087f575461ccdc3a53ce39bce7ded", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-04-17T09:25:48.000Z", "max_forks_repo_forks_event_min_datetime": "2020-01-03T15:58:...
#include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <galpy_potentials.h> // Reflex Motion potential - based on Moving Object Potential // 3 arguments: amp, t0, tf void constrain_range2(double * d) { // Constrains index to be within interpolation range if (*d < 0) *d = 0.0; if (*d > 1...
{ "alphanum_fraction": 0.6619009263, "avg_line_length": 34.4861111111, "ext": "c", "hexsha": "401f0f0445e19b4ac851b12a01774927adb9b9cb", "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 <time.h> #include <string.h> #include <stdarg.h> #include <stdio.h> #include <gsl/gsl_vector.h> // #include "libiomp/omp.h" #include <omp.h> #include "../include/type.h" #include "../include/util.h" #include "../include/global.h" extern clock_t dur; extern char *optarg; extern int optind; ...
{ "alphanum_fraction": 0.5839157665, "avg_line_length": 31.2982954545, "ext": "c", "hexsha": "df8c01b5adbe9b099531d7e18c91a725a38eb28c", "lang": "C", "max_forks_count": 39, "max_forks_repo_forks_event_max_datetime": "2022-03-19T09:14:46.000Z", "max_forks_repo_forks_event_min_datetime": "2020-06-01T20:25...
/* histogram/test1d_resample.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 * you...
{ "alphanum_fraction": 0.5931748466, "avg_line_length": 26.08, "ext": "c", "hexsha": "525c1266103738fef2f12bbfe15d0777eb19cb59", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31:16.000Z...
#ifndef AMICI_SUNDIALS_MATRIX_WRAPPER_H #define AMICI_SUNDIALS_MATRIX_WRAPPER_H #include <sunmatrix/sunmatrix_band.h> // SUNMatrix_Band #include <sunmatrix/sunmatrix_dense.h> // SUNMatrix_Dense #include <sunmatrix/sunmatrix_sparse.h> // SUNMatrix_Sparse #include <gsl/gsl-lite.hpp> #include <vector> #include "ami...
{ "alphanum_fraction": 0.6224572823, "avg_line_length": 25.4979253112, "ext": "h", "hexsha": "aeb04643c61915743aa8136ad12d872967951d7b", "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 <viaio/Vlib.h> #include <viaio/VImage.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_cdf.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_math.h> #include "gsl_utils.h" #define ROUND(x) (int)(((x) >= 0)...
{ "alphanum_fraction": 0.6903225806, "avg_line_length": 30.3608247423, "ext": "c", "hexsha": "4e06cff82b3453288272e51cf2642078012c8669", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2022-03-22T08:05:46.000Z", "max_forks_repo_forks_event_min_datetime": "2017-09-29T10:33:...
/* matrix/gsl_matrix_short.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.6796686227, "avg_line_length": 33.7842565598, "ext": "h", "hexsha": "ab72bd196f23b47dc0ee1b64bd2d9a39432fadba", "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.c - Matrix class for mruby */ /* Copyright (C) 2015 Paolo Bosetti */ /* paolo...
{ "alphanum_fraction": 0.6700971984, "avg_line_length": 35.1076642336, "ext": "c", "hexsha": "8a2d3fbeb800515f90ded14838d75c37f5a6bb11", "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":...
// // gemmtest.c // // J. Makino // Time-stamp: <10/10/17 13:43:33 makino> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <timerlib.h> #ifndef NOBLAS #include <cblas.h> #endif #ifdef USEGDR #include "gdrdgemm.h" #endif #define FTYPE double #include <emmintrin.h> typedef double v2df __attribute__(...
{ "alphanum_fraction": 0.5203683418, "avg_line_length": 21.6545589325, "ext": "c", "hexsha": "7d7d7b9fb10172eb495caf9f87536322499a71dc", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-12-13T15:31:32.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-13T15:31:...
//This does CELL (~soma) stage of LSTM (long short-term memory) model. //This requires each neuron to have 4 input time series, Xc, Xi, Xf, Xo, //where Xc is the usual (or "cellular") input and Xi, Xf, Xo the inputs for the input, forget, output gates. //Xc, Xi, Xf, Xo are the output of separate linear IN stages (weigh...
{ "alphanum_fraction": 0.4562564633, "avg_line_length": 47.3246329527, "ext": "c", "hexsha": "39f8e0cf75a1ca866ec87380caca6679ed13e2e5", "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 <stdio.h> #include <stdlib.h> #include <time.h> //#define DEBUG #ifndef DEBUG #define IN 64 #define OUT 32 #define NUM_ITS 1000000 #else #define IN 4 #define OUT 2 #define NUM_ITS 1 #endif #define INIT_VAL 0.4711 #ifdef USE_BLAS #include <cblas.h> #endif double * mtrx(int rows, int cols) {...
{ "alphanum_fraction": 0.4796929965, "avg_line_length": 20.5723684211, "ext": "c", "hexsha": "7345bd7037abdc8fb2383a77b55eb799349bc1df", "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 SCOL_H #define SCOL_H #include "Common.h" // SP_IVP.h // Spherical Collapse IVP //#include <omp.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/gsl_math.h> #include <gsl/gsl_deriv.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <cvode/cvode.h> ...
{ "alphanum_fraction": 0.6591422122, "avg_line_length": 34.4077669903, "ext": "h", "hexsha": "e76371f440afb43eba7b66abaae0969a7df34cdf", "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:...
/* interpolation/accel.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 o...
{ "alphanum_fraction": 0.6765316719, "avg_line_length": 23.2048192771, "ext": "c", "hexsha": "72d9345971c111ef580c8e3d60e68b1e930ed9c7", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
#include<stdio.h> #include<sys/time.h> #include <stdlib.h> #include <cblas.h> #include "LibShalom.h" static double gtod_ref_time_sec = 0.0; double dclock() { double the_time, norm_sec; struct timeval tv; gettimeofday( &tv, NULL ); if ( gtod_ref_time_sec == 0.0 ) gt...
{ "alphanum_fraction": 0.4725433526, "avg_line_length": 18.4182509506, "ext": "c", "hexsha": "d9fe6942102e7e6b4b185451c1ba9c1c97270132", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2022-02-28T02:32:05.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-17T15:31:...
#ifndef DATA_STRUCTURES_LINKED_LIST_SINGLY_LINKED_LIST_WITH_TAIL_H_INCLUDED #define DATA_STRUCTURES_LINKED_LIST_SINGLY_LINKED_LIST_WITH_TAIL_H_INCLUDED #include <gsl/gsl> #include <iostream> #include <memory> #include <utility> #include <stdexcept> namespace datastructures { template <typename T> struct Node { T...
{ "alphanum_fraction": 0.4813191629, "avg_line_length": 25.2127071823, "ext": "h", "hexsha": "e4802fcfc19a9edd38bf3731fb12311b40e69bca", "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":...
/** * Subroutines to calculate the * various contamination models */ #include <time.h> #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_interp.h> #include "inout_aper.h" #include "spc_model.h" #include "spce_sect.h" #include "spc_back.h" #include "spce_PET.h" #include "a...
{ "alphanum_fraction": 0.630129802, "avg_line_length": 31.2262026612, "ext": "c", "hexsha": "2b73214ae22f141d4bebff7eed34bc612f250bca", "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 PINHOLE_H_I3RZULX9 #define PINHOLE_H_I3RZULX9 #include <cmath> #include <gsl/gsl> #include <sens_loc/camera_models/concepts.h> #include <sens_loc/math/constants.h> #include <sens_loc/math/coordinate.h> #include <type_traits> namespace sens_loc { /// This namespace contains all camera and projection models an...
{ "alphanum_fraction": 0.6279298246, "avg_line_length": 34.5873786408, "ext": "h", "hexsha": "b28fabce0e3550de8bf384e5b9e17b2452c3eca6", "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 program is the first step in solving the Merlin-Salgado equation. It produces a .dat file with the scale factor in terms of the conformal time and the cosmic time. The .dat file columns are formatted in the next way: cosmic_time conformal_fime scale_factor cosmic_time_der_scale_factor*/ #include <stdlib.h...
{ "alphanum_fraction": 0.7225721785, "avg_line_length": 33.4210526316, "ext": "c", "hexsha": "b4b0a3a47866bdbded83e16e74f31fba1ae1ed36", "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":...
/* Odeint solver */ #include <pygsl/utils.h> #include <pygsl/block_helpers.h> #include <pygsl/error_helpers.h> #include <Python.h> #include <gsl/gsl_odeiv.h> #include <gsl/gsl_errno.h> char odeiv_module_doc[] = "XXX odeiv module doc missing!\n"; static char this_file[] = __FILE__; static PyObject *module = NULL; /* s...
{ "alphanum_fraction": 0.6543136868, "avg_line_length": 34.1233183857, "ext": "c", "hexsha": "639f8d785c9647ec0b184433c005d64be88bf22b", "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 <stdio.h> #include <stdlib.h> #include <gsl/gsl_histogram.h> #include <gsl/gsl_histogram2d.h> #include <gsl/gsl_errno.h> int mgsl_histogram_fwrite(const char *filename, const gsl_histogram *h) { FILE *fp; if((fp = fopen(filename, "w")) == NULL) return GSL_EFAILED; if(gsl_histogram_fwrite(fp, h) != GSL_S...
{ "alphanum_fraction": 0.7248927039, "avg_line_length": 29.8717948718, "ext": "c", "hexsha": "f8f3a850ce81db515eef0731f2ae8d367e6e5fa9", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-02-05T07:22:44.000Z", "max_forks_repo_forks_event_min_datetime": "2022-02-05T07:22:...
#ifndef __MAIN_H__ #define __MAIN_H__ 1 #ifdef PARALLEL #include "mpi.h" #endif #include <stdio.h> #include <math.h> #include <iostream> #include <stdlib.h> #include <time.h> #include <string.h> #include <gsl/gsl_randist.h> //#include "NNopt.h" #include "bambi.h" #ifdef __INTEL_COMPILER // if the MultiNest librar...
{ "alphanum_fraction": 0.6626966292, "avg_line_length": 38.6956521739, "ext": "h", "hexsha": "0d7c26eaa948fd299c720ff32efd840857d50a42", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T13:20:56.000Z", "max_forks_repo_forks_event_min_datetime": "2018-03-06T20:20:...
#ifndef DELTAFREADER_H #define DELTAFREADER_H #include "ParameterReader.h" #include "readindata.h" #include "GaussThermal.h" #include <fstream> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_interp.h> using namespace std; class Deltaf_Data { private: ParameterReader * paraRdr;...
{ "alphanum_fraction": 0.6429109159, "avg_line_length": 36.5596330275, "ext": "h", "hexsha": "a9e990a24c9283955d966cf04a70ec1ca0cb3c33", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-02-13T21:36:16.000Z", "max_forks_repo_forks_event_min_datetime": "2022-02-13T21:36:...
/* Copyright 2019-2020 Canaan Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
{ "alphanum_fraction": 0.716069271, "avg_line_length": 30.2804878049, "ext": "h", "hexsha": "a068ba12cdecc781c4ed8a2a8e1c318d9971a571", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-31T09:48:53.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-21T01:27:3...
/* * The MIT License (MIT) * * Copyright (c) 2016 Josef Gajdusek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
{ "alphanum_fraction": 0.708743323, "avg_line_length": 30.4017094017, "ext": "c", "hexsha": "ffb7541524ccd66aa868a27a01e41b86bf9e8973", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-07-29T06:28:25.000Z", "max_forks_repo_forks_event_min_datetime": "2019-07-29T06:28:2...
#ifndef _ASA_H #define _ASA_H #include <iostream> #include <memory> #include <type_traits> #include <vector> #include <array> #include <gsl/gsl_siman.h> namespace gsl{ class SimulatedAnnealing{ public: SimulatedAnnealing(); virtual ~SimulatedAnnealing(); typedef gsl_siman_params_t Parameters; /* S...
{ "alphanum_fraction": 0.5533915379, "avg_line_length": 28.0943396226, "ext": "h", "hexsha": "8a9dd9728953ab4aac4d575a0ad0663f26f088b0", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-02-01T21:38:12.000Z", "max_forks_repo_forks_event_min_datetime": "2019-07-01T12:38:...
/* * Copyright (c) 2011-2020 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2013 Inria. All rights reserved. * * @precisions normal z -> c d s * */ #include <lapacke.h> #include "dpl...
{ "alphanum_fraction": 0.5139036621, "avg_line_length": 32.1024390244, "ext": "c", "hexsha": "aee6e782a3821da8ed2fa82387da6ae80d30209d", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2022-03-30T01:53:32.000Z", "max_forks_repo_forks_event_min_datetime": "2022-02-28T21:24:...
#ifndef PETSC4PY_COMPAT_H #define PETSC4PY_COMPAT_H #include <petsc.h> #include "compat/mpi.h" #include "compat/hdf5.h" #include "compat/tao.h" #endif/*PETSC4PY_COMPAT_H*/
{ "alphanum_fraction": 0.7643678161, "avg_line_length": 17.4, "ext": "h", "hexsha": "b55a49da37318045d2910ef4fc0e2879621e9833", "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": "33408c7...