Search is not available for this dataset
text
string
meta
dict
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #pragma once #include <mcbp/protocol/status.h> #include <cstdint> #include <functional> #include <gsl/gsl> struct EngineIface; /** * Callback for any function producing stats. * * @param key the stat's key * @param value the stat's val...
{ "alphanum_fraction": 0.579293836, "avg_line_length": 39.7857142857, "ext": "h", "hexsha": "43dec8d6476e663c226c7e5af071d4ae81ceeff3", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-04-06T09:20:15.000Z", "max_forks_repo_forks_event_min_datetime": "2019-10-11T14:00:4...
// Copyright The Authors 2018. // Distributed under the 3-Clause BSD License. // (See accompanying file LICENSE or copy at // https://opensource.org/licenses/BSD-3-Clause) #pragma once #include <cstdint> // for std::uint8_t etc. #include <type_traits> // for std::underlying_type_t<> #include <gs...
{ "alphanum_fraction": 0.723773842, "avg_line_length": 32.3823529412, "ext": "h", "hexsha": "417dcb82aaf2aab11c2c506ff7b7d72e687a32ec", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2021-11-27T19:37:05.000Z", "max_forks_repo_forks_event_min_datetime": "2018-07-13T17:55:3...
// mathematical routines #include "../include/bjutils.h" double integrate_qag(double (*func)(double, void*),void *par,double low,double up,double *error) { const int lim=2000; const int key=5; const double eabs=0.0; const double erel=1.e-4; double res,err; gsl_integration_workspace *work=gsl_integration...
{ "alphanum_fraction": 0.6121933242, "avg_line_length": 26.1986206897, "ext": "c", "hexsha": "afb69ce5f525235dc8d5d2b040b98569f7db220e", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-02T01:40:13.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-09T13:30:...
/* ----------------------------------------------------------------------------- * Copyright 2021 Jonathan Haigh * SPDX-License-Identifier: MIT * ---------------------------------------------------------------------------*/ #ifndef SQ_INCLUDE_GUARD_system_linux_SqPrimitiveTypeSchemaImpl_h_ #define SQ_INCLUDE_GUARD_...
{ "alphanum_fraction": 0.6811023622, "avg_line_length": 29.0285714286, "ext": "h", "hexsha": "3928ecc5e879f588423f27cfcf3f6604770f20ae", "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":...
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* Contains collection of low-level routines for handling lists, one-hot matrices, evaluation metrics (f1-scores), and other. Dimitris Berberidis University of Minnesota 2017-2018 */ //////////...
{ "alphanum_fraction": 0.6447718126, "avg_line_length": 27.0133333333, "ext": "c", "hexsha": "b37971f90182c8b293ba329799567964eb51b95f", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2019-05-16T08:23:52.000Z", "max_forks_repo_forks_event_min_datetime": "2018-05-24T03:55:...
//#include "readArray.h" //#include "tensor_train.h" #include "matrix.h" #include "tensor.h" #include "sketch.h" #include "tt.h" #include "VTime.h" #include "readArray_MPI.h" #include "PSTT.h" #include "my_io.h" #include "SSTT.h" #include <omp.h> #include <stdio.h> #include <cblas.h> #include <lapacke.h> #include <m...
{ "alphanum_fraction": 0.5611402095, "avg_line_length": 27.5013850416, "ext": "c", "hexsha": "4758cfe08a6c6c0140505ffef86bf10eb6c0f9cb", "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 <assert.h> #include <gsl/gsl_sf_gamma.h> #include <inttypes.h> #include <math.h> #include <stdlib.h> #include "index.h" #include "parse_mmaps.h" #include "probability.h" double reference_probability(const struct mmap_info* mmap_info, struct revision_assignment* parent, struct revision_assign...
{ "alphanum_fraction": 0.7252465217, "avg_line_length": 41.0138504155, "ext": "c", "hexsha": "1fc1561359513e0248373b6283e2b662604383db", "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-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 ...
{ "alphanum_fraction": 0.6405859235, "avg_line_length": 25.9166666667, "ext": "h", "hexsha": "af41d971b190a08c9b46960b5c224837806a6b2f", "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 <stdlib.h> #include <drfftw_mpi.h> #include <mpi.h> #include <gsl/gsl_rng.h> #include "allvars.h" #include "proto.h" int main(int argc, char **argv) { MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &ThisTask); MPI_Comm_size(MPI_COMM_WORLD, &NTask); if(argc < 2) { ...
{ "alphanum_fraction": 0.5248847618, "avg_line_length": 24.3398373984, "ext": "c", "hexsha": "4807e3b72dcb381d0b78aecd26a34813e7d1b018", "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/bessel.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your optio...
{ "alphanum_fraction": 0.5676032933, "avg_line_length": 28.440386681, "ext": "c", "hexsha": "c46f5630923a8144ca9138d87a1933bb0663e501", "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...
/* * Gsl_blas_dgemm: test gsl_blas_dgemm (matrix . matrix) * * Copyright (c) 2012 Jérémie Decock * * Required: GSL library (libgsl0-dev) * Usage: gcc gsl_blas_dgemm.c -lgsl -lgslcblas -lm * or: gcc gsl_blas_dgemm.c $(pkg-config --libs gsl) */ #include <stdio.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_m...
{ "alphanum_fraction": 0.5630769231, "avg_line_length": 21.1956521739, "ext": "c", "hexsha": "2450d841660dbf213800ebb918e765554911e4ce", "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:...
/* * ----------------------------------------------------------------- * ODE Solver Library --- ode_lib.h * Version: 1.6180 * Date: Feb 19, 2010 * ----------------------------------------------------------------- * Programmer: Americo Barbosa da Cunha Junior * americo.cunhajr@gmail.com * ------------...
{ "alphanum_fraction": 0.4749839641, "avg_line_length": 26.4237288136, "ext": "h", "hexsha": "8c122e981c9a357ea57dccd3d3ccf5b17c8811a4", "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:...
#if !defined(PETIGAPART_H) #define PETIGAPART_H #include <petsc.h> PETSC_EXTERN PetscErrorCode IGA_Partition(PetscInt,PetscInt, PetscInt,const PetscInt[], PetscInt[],PetscInt[]); PETSC_EXTERN PetscErrorCode IGA_Distribute(PetscInt, ...
{ "alphanum_fraction": 0.5238095238, "avg_line_length": 36, "ext": "h", "hexsha": "9083cb2e3368c5162612e98c8c3651e46c541b0a", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2021-06-14T10:40:40.000Z", "max_forks_repo_forks_event_min_datetime": "2016-11-08T12:55:17.000Z", ...
#ifndef DEINOS_ALGORITHM_H #define DEINOS_ALGORITHM_H #include "chess.h" #include <vector> #include <array> #include <gsl/pointers> #include <mutex> #include <variant> #include <functional> #include <string> #include <thread> #include <future> #include <condition_variable> //memory consmption ideas: //can halve Move s...
{ "alphanum_fraction": 0.7180921053, "avg_line_length": 34.3502824859, "ext": "h", "hexsha": "39b310a3cd8acf6cbfaaa560661fc6366e2a1e36", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* * Gsl_vector: test gsl_vector * * Copyright (c) 2012 Jérémie Decock * * Required: GSL library (libgsl0-dev) * Usage: gcc gsl_vector.c -lgsl -lgslcblas -lm * or: gcc gsl_vector.c $(pkg-config --libs gsl) */ #include <stdio.h> #include <gsl/gsl_vector.h> static double v2; int main(int argc, char * argv[...
{ "alphanum_fraction": 0.6454918033, "avg_line_length": 16.8275862069, "ext": "c", "hexsha": "4c6ad92bf7e7c3d4fb2fab268e19a634b3bae779", "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:...
//============================================== //---------- by Dmitry R. Gulevich ------------- //--------- drgulevich@corp.ifmo.ru ------------ //--- ITMO University, St Petersburg, Russia --- //============================================== // Translation to C++ and augmentation // S. R. Whiteley, wrcad.com, Synop...
{ "alphanum_fraction": 0.5249011147, "avg_line_length": 28.6701030928, "ext": "h", "hexsha": "39f8292bb4bda46806a0b67e46867f89e78a1d0c", "lang": "C", "max_forks_count": 34, "max_forks_repo_forks_event_max_datetime": "2022-02-18T16:22:03.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-06T17:04...
/** * * @file qwrapper_zlansy.c * * PLASMA core_blas quark wrapper * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Julien Langou * @author Henricus Bouwmeester * @author Mathieu Faverge * @date 2010-11...
{ "alphanum_fraction": 0.4912446758, "avg_line_length": 33.5396825397, "ext": "c", "hexsha": "8f9356168cfb447f4ebc46a6d7ca75f3c5eb2627", "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 "gl_helpers.h" #include "GL_Loader.h" #include "MappedGL.h" #include "Range.h" #include <handy/Guard.h> #include <gsl/span> #include <type_traits> #include <vector> namespace ad { namespace graphics { struct [[nodiscard]] VertexArrayObject : public ResourceGuard<GLuint> { /// \note Del...
{ "alphanum_fraction": 0.6794999172, "avg_line_length": 33.364640884, "ext": "h", "hexsha": "9600657d0ee6899ec9f923fed1d37ade2df50556", "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 __INC_MODELSTRUCT__ #define __INC_MODELSTRUCT__ #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> /** * @file modelstruct.h * \brief defines modelstruct which contains the raw data to be worked on by emulator and estimator */ struct optstruct; //! holds the main data structures for a single model ...
{ "alphanum_fraction": 0.7325424643, "avg_line_length": 29.9112903226, "ext": "h", "hexsha": "82507837b2518f8291d3a676b83b83a97fe31f68", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-30T16:43:33.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-30T16:43:...
#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 free_MCMC_covariance(MCMC_info *MCMC) { int i_DS; MCMC_DS_info *current_DS; ...
{ "alphanum_fraction": 0.5727762803, "avg_line_length": 22.4848484848, "ext": "c", "hexsha": "82cd405f583b650f2e03497b5c41b193aaa27a08", "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:...
#ifndef _GDRDGEMM_H #define _GDRDGEMM_H #ifndef MKL #include <cblas.h> #else #include <mkl_cblas.h> #endif #define NMAT 2048 void gdr_check_and_restart(double a[][NMAT], double b[][NMAT], double c[][NMAT]); void gdrblas_dgemm ( #ifndef MKL const enum CBLAS_ORDER ORDER, const enum CBLA...
{ "alphanum_fraction": 0.4847693647, "avg_line_length": 22.0961538462, "ext": "h", "hexsha": "d38e25d0d43d1e0588799a36dbcf0d4e6d745d7f", "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:...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <dirent.h> #include "hdf5.h" #include <math.h> #include <time.h> #include <gsl/gsl_math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #incl...
{ "alphanum_fraction": 0.5234012975, "avg_line_length": 42.1073170732, "ext": "c", "hexsha": "0e4bd46ffa6b5526621a48eee13e0de5a40dcb16", "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:...
#include "gemm.h" #include "utils.h" #include "cuda.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #include <time.h> #include <omp.h> #ifdef OPENBLAS #include <cblas.h> #endif #ifdef OPENGEMM #include "gemm_kernels.h" #endif void gemm_bin(int M, int N, int K, real_t ALPHA, char *A, ...
{ "alphanum_fraction": 0.5750756811, "avg_line_length": 25.0886075949, "ext": "c", "hexsha": "bd15bcab5210d8c558ae7aec7fa749f5f11dc34d", "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":...
/* Foundation and miscellenea for the statistics modules. * * Contents: * 1. Summary statistics (means, variances) * 2. Special functions * 3. Standard statistical tests * 4. Data fitting. * 5. Unit tests. * 6. Test driver. * 7. Examples. * - driver for linear regression * - driver f...
{ "alphanum_fraction": 0.5533476152, "avg_line_length": 34.9793281654, "ext": "c", "hexsha": "7fc7801b80674a19c7b6126676aa4c30dec601b9", "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":...
// stdafx.h // (c) 2008-2020, Charles Lechasseur // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, me...
{ "alphanum_fraction": 0.7619954303, "avg_line_length": 29.8409090909, "ext": "h", "hexsha": "48d4cdd58b68cfde97f0271e3c8404cb58b43f4e", "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 Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
{ "alphanum_fraction": 0.7155536252, "avg_line_length": 52.4831516353, "ext": "c", "hexsha": "ddc707e0e2a541e8a85a9cf9c84049f0f31842ae", "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 <math.h> #include <gsl/gsl_integration.h> #include "timer.h" void integral_recur (int nmin, int nmax, double vals[]); void integral_gen (int nmin, int nmax, double vals[]); double ff (double x, void *params); int adjust_rep_count (int count, double time, double tmin, double tmax); double ...
{ "alphanum_fraction": 0.522614841, "avg_line_length": 21.7692307692, "ext": "c", "hexsha": "5452be17b35a0a77f91c5ca536862b2a0b8eadae", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
#include <stdlib.h> #include <stdio.h> #include <sys/time.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_multilarge_nlinear.h> #include <gsl/gsl_spblas.h> #include <gsl/gsl_spmatrix.h> /* parameters for functions */ struct model_params { double alpha; gsl_spm...
{ "alphanum_fraction": 0.6441530447, "avg_line_length": 25.3045454545, "ext": "c", "hexsha": "558c72f25d5488c8c4d4897c70ba9e7b93ad7d0a", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
/// @file Error.h /// @author Braxton Salyer <braxtonsalyer@gmail.com> /// @brief Basic high-level types for communicating recoverable errors /// @version 0.1 /// @date 2021-11-03 /// /// MIT License /// @copyright Copyright (c) 2021 Braxton Salyer <braxtonsalyer@gmail.com> /// /// Permission is hereby granted, free of...
{ "alphanum_fraction": 0.6919273557, "avg_line_length": 32.917057903, "ext": "h", "hexsha": "fce65b7998e6640713833dc7d48761411181d892", "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 <cstdint> #include <gsl/gsl> #include "utils.h" #include "halley/text/halleystring.h" struct XXH64_state_s; typedef struct XXH64_state_s XXH64_state_t; namespace Halley { class Hash { public: static uint64_t hash(const Bytes& bytes); static uint64_t hash(gsl::span<const ...
{ "alphanum_fraction": 0.6407960199, "avg_line_length": 18.9622641509, "ext": "h", "hexsha": "3b08669d4d1bc01064a996ef570cd66a7894a8e9", "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 <gsl/gsl_interp.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_interp2d.h> #include <gsl/gsl_spline2d.h> const gsl_interp_type *types[7]; const gsl_interp2d_type *types2d[2]; void init(void) { types[0] = gsl_interp_linear; types[1] = gsl_interp_polynomial; types[2] = gsl_interp_cspline; typ...
{ "alphanum_fraction": 0.7197496523, "avg_line_length": 24.3728813559, "ext": "c", "hexsha": "56e90900cdc1528fd23ae8563fea18e6a6f51d47", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifdef __LOCAL_SIMULATION_ENV__ #include "model.h" #endif //############# START DYNAMIC_CLAMP CODE ################## /*! Dynamic clamp model for a current generated by multiple clusters of cooperative ion channels: I_{coop} = -g*N_{open}*(V-E) where the number of open channels N_{open} changes due to the stochasti...
{ "alphanum_fraction": 0.658853706, "avg_line_length": 29.2144702842, "ext": "c", "hexsha": "9514abc613b2b0fac8c4a67bffb14c0f2d3f8f11", "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 "Buffer.h" #include "Enum.h" #include "Error.h" #include "detail/Defaulted.h" #include <boost/hana/define_struct.hpp> #include <gsl/span> #include <json.hpp> namespace gltfpp { inline namespace v1 { BETTER_ENUM(BufferViewTarget, int32_t, ARRAY_BUFFER = 34962, ELEMENT_ARRAY_BUFFER = 34963) s...
{ "alphanum_fraction": 0.5950226244, "avg_line_length": 27.625, "ext": "h", "hexsha": "8a4b8516451bb719037f95d352e79e3d1be9781c", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2019-09-18T07:04:15.000Z", "max_forks_repo_forks_event_min_datetime": "2017-06-01T14:38:11.000Z...
/** * @file batchv_zdotu_sub.c * * Part of API test for Batched BLAS routines. * * @author Samuel D. Relton * @author Pedro V. Lara * @author Mawussi Zounon * @date * * @precisions normal z -> c d s * **/ #include <cblas.h> #include "bblas.h" #define COMPLEX void batchv_zdotu_sub( const int *n...
{ "alphanum_fraction": 0.6266747868, "avg_line_length": 21.8933333333, "ext": "c", "hexsha": "43b310e7fdb1facbd21a9c1796d77da26d73277e", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/** * \author Sylvain Marsat, University of Maryland - NASA GSFC * * \brief C code for EOBNRv2HM reduced order model (non-spinning version). * See CQG 31 195010, 2014, arXiv:1402.4146 for details on the reduced order method. * See arXiv:1106.1021 for the EOBNRv2HM model. * * Borrows from the SEOBNR ROM LAL code ...
{ "alphanum_fraction": 0.677926532, "avg_line_length": 46.8557599226, "ext": "c", "hexsha": "4a2ccdc80ec653068bfb72b7b9e2868ccebd036d", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-07-20T02:56:30.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-20T14:19:1...
/*! \file profile_coord_map.h \brief Grid initialization, finding flux coordinates, and getting profile data Called by all the top-level functions. */ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <Python.h> #include <gsl/gsl_vector.h> // needed for 2-d root-finding #include <gsl/gsl_mul...
{ "alphanum_fraction": 0.6501252382, "avg_line_length": 34.1704462326, "ext": "h", "hexsha": "9562952cb36ad57e5a65c755de34fa60f211dfd9", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2020-01-10T03:38:30.000Z", "max_forks_repo_forks_event_min_datetime": "2018-04-29T12:35:...
/* * author: Pierre Schnizer * created: March 2004 * file: pygsl/src/initmodule.c * $Id: initmodule.c,v 1.14 2008/10/25 20:45:04 schnizer Exp $ * * Changes: * 7. October 2003: * Removed the error handler from this file. It is now in * Lib/error_helpers.c Each module must call init_pygsl() * ...
{ "alphanum_fraction": 0.6267974479, "avg_line_length": 38.6066176471, "ext": "c", "hexsha": "d8106275cd753188cab47de5b5b6b20cbdd0d349", "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:...
/* stable/stable_pdf.c * * Functions wrappers of GSL routines for random sample generation of * alpha-stable random variable. * * Copyright (C) 2013. Javier Royuela del Val * Federico Simmross Wattenberg * * This program is free software; you can redistribute it and/or modify * it under ...
{ "alphanum_fraction": 0.6899320568, "avg_line_length": 25.6984126984, "ext": "c", "hexsha": "555393d74fc68e29f0eed56bca44eb889a8cff06", "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. All rights reserved. // #pragma once #include <intsafe.h> #include <gsl/gsl> namespace arcana { void set_thread_name(DWORD threadId, gsl::czstring<> threadName); }
{ "alphanum_fraction": 0.714953271, "avg_line_length": 15.2857142857, "ext": "h", "hexsha": "a7f1bf67394b74eede48e93c888f615b749816e0", "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:...
/* vector/gsl_vector_complex_double.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 ...
{ "alphanum_fraction": 0.6650084794, "avg_line_length": 33.7595419847, "ext": "h", "hexsha": "4b84c426598cd20834348fcf906ee884ad86e5b5", "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":...
/* * rw.c -- Loesung des Randwertproblems mit der GSL * * (c) 2016 Prof Dr Andreas Mueller, Hochschule Rapperswil */ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_odeiv2.h> static double g = 9.81; static long fcounter = 0; static int f(double x, const doubl...
{ "alphanum_fraction": 0.5527103425, "avg_line_length": 22.7803030303, "ext": "c", "hexsha": "1b3585103e60fc84aaf354c6f3718b3511faa386", "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 GSLUtility_h #define GSLUtility_h /** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top level of this repository....
{ "alphanum_fraction": 0.6706763504, "avg_line_length": 32.637037037, "ext": "h", "hexsha": "3a69856878857e8e3873db45682b483242dfffd0", "lang": "C", "max_forks_count": 164, "max_forks_repo_forks_event_max_datetime": "2022-03-23T10:22:29.000Z", "max_forks_repo_forks_event_min_datetime": "2017-11-30T21:15...
#include <stdio.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_matrix.h> #include <time.h> #define N_OF_RUNS 10 #define RUSAGE_DIFF(r1, r2) \ ((double) ((r1).tv_sec - (r2).tv_sec) + (double) ((r1).tv_nsec - (r2).tv_nsec)/(double)1E9) gsl_matrix* random_matrix(size_t); inline gsl_matrix* zero_matrix(const size_t...
{ "alphanum_fraction": 0.6220989936, "avg_line_length": 30.43125, "ext": "c", "hexsha": "6d88989bbf2330eefacc8f28ee4764e288fe340f", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-12-13T10:05:17.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-13T10:05:17.00...
/* * ----------------------------------------------------------------- * ell_lib.h * Ellipsoid Library * Version: 2.0 * Last Update: July 22, 2020 * * Programmer: Americo Barbosa da Cunha Junior * americo.cunhajr@gmail.com * ----------------------------------------------------------------- * Copyr...
{ "alphanum_fraction": 0.4555822329, "avg_line_length": 23.1388888889, "ext": "h", "hexsha": "6823576e98ea245ec2a20313a4c3284070673390", "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:...
#include <gsl/gsl_integration.h> #include <pygsl/error_helpers.h> #include <pygsl/function_helpers.h> #include <setjmp.h> PyObject *module = NULL; typedef struct{ PyObject * callback; PyObject * args; jmp_buf buffer; }pygsl_function_args; static double pygsl_function_callback(double x, void *p) { double value;...
{ "alphanum_fraction": 0.659315148, "avg_line_length": 20.5119047619, "ext": "c", "hexsha": "bc269007b6be4cf5edf283932406c598fd4ed421", "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:0...
#include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <sys/stat.h> #include <sys/types.h> #include <gsl/gsl_math.h> #include <inttypes.h> #include "allvars.h" #include "proto.h" #include "domain.h" #ifdef HAVE_HDF5 #include <hdf5.h> #endif /*! \file fof.c * \brief p...
{ "alphanum_fraction": 0.6115144583, "avg_line_length": 25.3029254483, "ext": "c", "hexsha": "214355d9685bbbdf2023bab919754e07b0f0d9c4", "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":...
/* Ballistic: a software to benchmark ballistic models. AUTHORS: Javier Burguete Tolosa. Copyright 2018, AUTHORS. 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 c...
{ "alphanum_fraction": 0.5987975592, "avg_line_length": 29.5596816976, "ext": "c", "hexsha": "90ec7774bb2f40bedf6db0f0f2b8dbab8028b5e8", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-06-24T07:19:47.000Z", "max_forks_repo_forks_event_min_datetime": "2020-06-24T07:19:...
#pragma once #include "halley/plugin/iasset_importer.h" #include <gsl/gsl> namespace Halley { class Animation; class AnimationImporter : public IAssetImporter { public: ImportAssetType getType() const override { return ImportAssetType::Animation; } void import(const ImportingAsset& asset, IAssetCollector& co...
{ "alphanum_fraction": 0.7679814385, "avg_line_length": 22.6842105263, "ext": "h", "hexsha": "24b8b0a40e6e2de606ee8376fdb96004a33efaab", "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...
/* multifit/fdfsolver.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your...
{ "alphanum_fraction": 0.5956411342, "avg_line_length": 24.8083989501, "ext": "c", "hexsha": "88136e9e4659519d67bb53698c15f656f403d295", "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 CONTROLLERS_IMAGEOPERATIONTOGGLECONTROLLER_H #define CONTROLLERS_IMAGEOPERATIONTOGGLECONTROLLER_H #include "imageoperationactioncontroller.h" #include "s3d/cv/image_operation/image_operation.h" #include <QAction> #include <gsl/gsl> class ImageOperationToggleController : public ImageOperationActionControlle...
{ "alphanum_fraction": 0.7927631579, "avg_line_length": 26.4347826087, "ext": "h", "hexsha": "4bdbe13ac04c507a2596c026eea936f500f2896f", "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:...
/* * particle_filters.c * * Created on: 18 Sep 2020 * Author: heine */ #include <gsl/gsl_randist.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_eigen.h> #include <math.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include "particle_filters.h" void MLbootstrapfilter(double* y, double sig_std, ...
{ "alphanum_fraction": 0.5587492875, "avg_line_length": 27.1703539823, "ext": "c", "hexsha": "2827859bebc3751ef8cc25f89f7b4a5a4292c34a", "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 <gsl/gsl_math.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_spmatrix.h> #include <gsl/gsl_splinalg.h> int main() { const size_t N = 100; /* number of grid points */ const size_t n = N - 2; /* subtract 2 ...
{ "alphanum_fraction": 0.574822695, "avg_line_length": 27.6470588235, "ext": "c", "hexsha": "5d9ba81827f0f25a57bb2b453645c0514d97eaa2", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:5...
/** * @file ica.h * @brief PCA and ICA * @author Kenichi Kumatani and John McDonough */ #ifndef ICA_H #define ICA_H #include <gsl/gsl_block.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_complex.h> #include <gsl/gsl_complex_math.h> #include "common/refcount.h" #include "common/jexce...
{ "alphanum_fraction": 0.7039106145, "avg_line_length": 20.1690140845, "ext": "h", "hexsha": "3159da06f62a1b16941b2c6d03880f29547ffed4", "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...
// Implementation of the interface described in viewer_window.h. #include <fcntl.h> #include <math.h> #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <gtk/gtkgl.h> #include <gdk/gdk.h> #include <gdk/gdkkeysyms.h> #include <GL/gl.h> #include <GL/glu.h> #include <gsl/gsl_...
{ "alphanum_fraction": 0.6645742706, "avg_line_length": 35.6970156803, "ext": "c", "hexsha": "fe4490c23159b9cb222f603fb8e3a0c51be06ff2", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2020-05-15T08:01:09.000Z", "max_forks_repo_forks_event_min_datetime": "2017-04-26T18:18:...
#pragma once #include <type_traits> #include <cuda/define_specifiers.hpp> #include <cuda/runtime_api.hpp> #include <gsl-lite/gsl-lite.hpp> #include <thrustshift/fill.h> namespace thrustshift { namespace kernel { template <typename SrcT, typename DstT> __global__ void copy(gsl_lite::span<const SrcT> src, gsl_lite...
{ "alphanum_fraction": 0.5613518332, "avg_line_length": 32.9948849105, "ext": "h", "hexsha": "844663e3f8b7a21b27248c516b7ba6dee4e1ac8c", "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 "cones.h" #ifdef LAPACK_LIB_FOUND #include <cblas.h> #include <lapacke.h> #endif void projectsdc(double * X, int n, Work * w); /* in place projection (with branches) */ void projCone(double *x, Cone * k, Work * w, int iter) { int i; int count; /* project onto positive orthant */ for(i = k->f...
{ "alphanum_fraction": 0.4504780115, "avg_line_length": 25.1442307692, "ext": "c", "hexsha": "8e8e6015542f63aed6bd3d53c0f3ed36edec3374", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2019-12-20T19:38:22.000Z", "max_forks_repo_forks_event_min_datetime": "2015-11-26T23:10:...
/* siman/test.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Mark Galassi * * 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.6331367788, "avg_line_length": 27.1128526646, "ext": "c", "hexsha": "cd6d69efc24aa0ae67fb003eb655946f728c9bd2", "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 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
{ "alphanum_fraction": 0.7290870488, "avg_line_length": 32.7083333333, "ext": "h", "hexsha": "b33370cb8e65de5231e13bdb299ec8b153d9fd0a", "lang": "C", "max_forks_count": 10, "max_forks_repo_forks_event_max_datetime": "2020-02-28T17:32:26.000Z", "max_forks_repo_forks_event_min_datetime": "2015-03-24T03:30...
/** * @file constants.h * @brief Public header file defining constants */ #ifndef CONSTANTS_H #define CONSTANTS_H #include <petsc.h> #define epsilon 1E-8 /**< epsilon value for finite differences */ #define MAXLINE 1000 /**< Max. number of characters in a line */ #define ISOLATED_BUS 4 /**< Isolated bus */ #define...
{ "alphanum_fraction": 0.6984848485, "avg_line_length": 31.4285714286, "ext": "h", "hexsha": "3a91e67b703e6ba3780dff218cf329e827d99eb3", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-09-11T00:24:08.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-11T00:24:...
#ifndef OPENMC_TALLIES_FILTER_CELL_INSTANCE_H #define OPENMC_TALLIES_FILTER_CELL_INSTANCE_H #include <cstdint> #include <unordered_map> #include <gsl/gsl> #include "openmc/cell.h" #include "openmc/tallies/filter.h" #include "openmc/vector.h" namespace openmc { //====================================================...
{ "alphanum_fraction": 0.5809069212, "avg_line_length": 29.5070422535, "ext": "h", "hexsha": "d74850df757f86b713592394121a7772615d5e7b", "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 <math.h> #include <gbpLib.h> #include <gsl/gsl_math.h> #include <gsl/gsl_deriv.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_min.h> #include <gbpInterpolate.h> double interpolate_maximum_function(double x, void *params); double interpolate_maximum_function(doub...
{ "alphanum_fraction": 0.536809816, "avg_line_length": 34.9285714286, "ext": "c", "hexsha": "497710af990f089d6371f218f6e37365c4701f69", "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...
#define ORIGIN_DATE "2012.01.05" #define ORIGIN_VERSION "2.1" #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <pthread.h> #include <assert.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include "common.h" #include "ivector.h" #include "species.h" #include "specieslist.h" #inclu...
{ "alphanum_fraction": 0.4811286973, "avg_line_length": 35.9871134021, "ext": "c", "hexsha": "a172244958e240675fddc28f1c062fabcf327eec", "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 MOVE_H #define MOVE_H #include <cmath> #include "param.h" #include "mpiutils.h" #include <gsl/gsl_rng.h> namespace weakarg { extern gsl_rng * rng; /** @brief This virtual class represents a move of the MCMC */ class Move { protected: std::string name;///<The moves name std::string description;///<...
{ "alphanum_fraction": 0.644200627, "avg_line_length": 26.5833333333, "ext": "h", "hexsha": "f7c128d59204c3ad4007d481edc427b0f21c1d6c", "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 <string> #include <string_view> #include <memory> #include "aas/aas_math.h" namespace aas { /** * Animations can either be advanced by time (automatic), distance moved, or object rotation. */ enum class SkelAnimDriver : uint8_t { Time = 0, Distance, Rotation }...
{ "alphanum_fraction": 0.6967071057, "avg_line_length": 21.8560606061, "ext": "h", "hexsha": "d6410b750401694cc8a3a3a11a9881013efee2c4", "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...
/* ============================================================ * * decomp_eb.h * * Martin Kilbinger, Liping Fu 2008, 2009 * * ============================================================ */ #ifndef __DECOMP_EB_H #define __DECOMP_EB_H #include <stdio.h> #include <math.h> #include <assert.h> #include <gsl...
{ "alphanum_fraction": 0.6573446328, "avg_line_length": 32.1818181818, "ext": "h", "hexsha": "e8bf11de8630470371c59dedeba769aff9f7ecfe", "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_rng.h> #include <gsl/gsl_randist.h> int main (void) { const gsl_rng_type * T; gsl_rng * r; int i, n = 10; double mu = 3.0; /* create a generator chosen by the environment variable GSL_RNG_TYPE */ gsl_rng_env_setup(); T = gsl_rng_default; r = gsl_rng_alloc ...
{ "alphanum_fraction": 0.6, "avg_line_length": 16.5277777778, "ext": "c", "hexsha": "ef69b72f1ad8a86549ef33df84567e83682fdc03", "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"...
/* Utility functions for working with GSL data types. */ #include <math.h> #include <stdio.h> #include <unistd.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_permutation.h> #include <gsl/gsl_sort_vector.h> #include <gsl/gsl_spmatrix.h> #include <gsl/gsl_statistics.h> #include <hdf5.h> #inc...
{ "alphanum_fraction": 0.5968980103, "avg_line_length": 17.9802816901, "ext": "c", "hexsha": "9ca42ca63b8d10ff4b2a944c6de755acf3b9f36a", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
// Copyright 2018-2019 TAP, Inc. All Rights Reserved. #pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN #define NOMINMAX #include <Windows.h> #include <cstdint> #include <cassert> #include <cstdlib> #include <cstdio> #include <corecrt_math_defines.h> #include <array> #include <vector> #include <iost...
{ "alphanum_fraction": 0.7595486111, "avg_line_length": 20.9454545455, "ext": "h", "hexsha": "ec047ee08b5200476a76b3c3a1257d68428b91d8", "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 "../configuration.h" #include <chrono> #include <gsl/gsl-lite.hpp> #include <string_view> #include <utility> #include <yaml-cpp/yaml.h> namespace angonoka { /** Load Configuration from a YAML string. @param text Null-terminated string @return An instance of Configuration */ Configu...
{ "alphanum_fraction": 0.6832721552, "avg_line_length": 21.1888888889, "ext": "h", "hexsha": "e44866e3f215e024a96d3a314f055045e59d4175", "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.6766078255, "avg_line_length": 49.2060857538, "ext": "h", "hexsha": "44d442cd7d0d597c7dc9753870ead1027c8310b0", "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:...
#pragma once #include "ui/detail/nki_image.h" #include "ui/detail/nk_essential.h" #include <gsl/gsl> #include <nuklear.h> namespace cws80 { class UIController; struct FontRequest; enum class GraphicsType { Other, OpenGL, Cairo, Gdiplus, }; // class GraphicsDevice { public: explicit GraphicsDevic...
{ "alphanum_fraction": 0.6352389078, "avg_line_length": 23.9183673469, "ext": "h", "hexsha": "230b50aa5efb5312ce78517ccbaba0d945e50ca8", "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 <string.h> #include <gsl/gsl_matrix.h> #include <gpc/gpc.h> #include <egsl/egsl_macros.h> #include "../csm_all.h" #include "icp.h" int icp_loop(struct sm_params*params, const double*q0, double*x_new, double*total_error, int*valid, int*iterations) { if(any_nan(q0,3)) { sm_error("icp_...
{ "alphanum_fraction": 0.6490652347, "avg_line_length": 29.6637168142, "ext": "c", "hexsha": "f64d17a9a321c76e90c47f6494f68967bd10161a", "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":...
/****************************************************************************** CosmoLike Configuration Space Covariances for Projected Galaxy 2-Point Statistics https://github.com/CosmoLike/CosmoCov by CosmoLike developers ******************************************************************************/ #include <gsl/g...
{ "alphanum_fraction": 0.6512849296, "avg_line_length": 36.8434268833, "ext": "c", "hexsha": "09d728e80952ca088e238b68c81fdad0455f68b4", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2022-01-27T11:30:53.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-21T20:17:...
#ifndef _SEARCHBEST_ #define _SEARCHBEST_ #include <assert.h> #include <cmath> #include <float.h> #include <climits> // use openblas #include <cblas.h> #include "cosine_similarity.h" // Step 1, g++ main.cpp search_best.cpp cosine_similarity.cpp -std=c++11 // Step 2, g++ main.cpp search_best.cpp cosine_similarity.cpp ...
{ "alphanum_fraction": 0.6494405967, "avg_line_length": 30.7704918033, "ext": "h", "hexsha": "c44fcfc2c76173817807e1835f75e36b3fb3c9d2", "lang": "C", "max_forks_count": 171, "max_forks_repo_forks_event_max_datetime": "2022-03-23T06:37:02.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-30T01:3...
#include "linearwaves.h" #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #define FREAD_CHECK(i,j) ((i) >= (j)) ? (void) 0 : printf("fread returned read fewer items than expected (%zu < %zu) at line %d in %s of %s\n",i,j,__LINE__,__func__,__FILE__) void interpolation(double *xd, double *yd, int nd, double *x, ...
{ "alphanum_fraction": 0.5495838288, "avg_line_length": 26.9551282051, "ext": "c", "hexsha": "86a41c2ac23bd3168b9889654afd8e6aca1b1b0a", "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 <math.h> #include <gsl/gsl_integration.h> #include "CosmoCalcs.h" int main() { UniverseLCDM myU; double err = 0.0; double x, y, z; double Wl = 0.75; double Wm = 0.05; double Wr = 1e-6; double Wk = 1.0 - Wl - Wm - Wr; InitUniverse( &myU, 70.0 * MpcPerMeter * 1e3, Wl, Wm, Wr, fals...
{ "alphanum_fraction": 0.5503355705, "avg_line_length": 27.9375, "ext": "c", "hexsha": "9995d3e844fc9c0ac8bf2bdde2862f846420c4f8", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2019-11-27T09:04:25.000Z", "max_forks_repo_forks_event_min_datetime": "2017-08-22T05:19:03.000...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <nlopt.h> // System definition and dimension int mysys = 0; int dim = 3; // Semi-empirical method and parameter variation range char * method = "pm7"; double pdev = 0.7; // Algorithm parameters nlopt_algorithm global_alg = NLOPT_GD_MLSL_LDS; nlop...
{ "alphanum_fraction": 0.6280400572, "avg_line_length": 20.8656716418, "ext": "h", "hexsha": "8f1b0c610ac05c256ee5d15fac05277e7d32a312", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix_double.h> #include <gsl/gsl_vector_double.h> #include <gsl/gsl_blas.h> int main() { int ret; int i, j; gsl_vector* tau; gsl_matrix *A; gsl_matrix...
{ "alphanum_fraction": 0.5586813187, "avg_line_length": 20.4954954955, "ext": "c", "hexsha": "5b292a542ff5d487b10ffd22e948440723544a59", "lang": "C", "max_forks_count": 173, "max_forks_repo_forks_event_max_datetime": "2022-03-27T07:27:04.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-08T18:0...
#include <petsc.h> #include "plexview.h" PetscErrorCode PlexViewFromOptions(DM plex) { PetscErrorCode ierr; PetscBool cell_cones = PETSC_FALSE, closures_coords = PETSC_FALSE, coords = PETSC_FALSE, points = PETSC_FALSE, use_height = PETSC_FALSE, ...
{ "alphanum_fraction": 0.5949594959, "avg_line_length": 44.979757085, "ext": "c", "hexsha": "2274c7980a115fd26c4162b952bb8df199493467", "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:...
/** */ #include <math.h> #include "fitsio.h" #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_interp.h> #include "spc_cfg.h" #include "aXe_utils.h" #include "aXe_errors.h" #include "fringe_conf.h" #define AXE_CONFIG_PATH "AXE_CONFIG_PATH" /** * Function: load_CCD_layer * The function creat...
{ "alphanum_fraction": 0.6598574654, "avg_line_length": 26.2201665125, "ext": "c", "hexsha": "282f11717402dab6027a8f7a59b567f52478e01c", "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":...
//Gets deltas (1st order) and delta-deltas (2nd order) differences of X, //which is assumed to be pre-allocated of triple size, //Thus, for dim==0, C%3 must equal 0, and C/3 is the original ncols of X. //And, for dim==1, R%3 must equal 0, and R/3 is the original nrows of X. //I implement this just like FIR for speed ...
{ "alphanum_fraction": 0.4263228399, "avg_line_length": 44.073800738, "ext": "c", "hexsha": "034f3bd9e1df2b49103599995c17a68af6c78950", "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 "Periodic.h" #include <gsl/gsl> #include <algorithm> #include <vector> namespace ad { class Rythm { public: explicit Rythm(duration_t aPeriod, int aDuration) : mMetronom(aPeriod), mDuration(aDuration) {} Rythm & note(int aTime); template <class T_functor, c...
{ "alphanum_fraction": 0.6233148295, "avg_line_length": 20.6721311475, "ext": "h", "hexsha": "6d76da887b53447cebef75d03e41445dd3471ea6", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-03-31T13:17:54.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-31T13:17:...
/** * Drizzle utilities */ #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_statistics.h> #include <math.h> #include "aXe_grism.h" #include "aXe_utils.h" #include "spc_trace_functions.h" #include "crossdisp_utils.h" #include "aper_conf.h" #include "trace_conf.h" #include "disp_conf.h" #includ...
{ "alphanum_fraction": 0.6344242632, "avg_line_length": 30.6754270696, "ext": "c", "hexsha": "bad8d0a226c22cdaba6de26b3cb279ff3c340f4d", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdlib.h> #include <stdio.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_multiroots.h> int rosenbrock_f (const gsl_vector * x, void *params, gsl_vector * f); int print_state (size_t iter, gsl_multiroot_fsolver * s); struct rparams { double a; double b; }; int rosenbrock_f (const gsl_vecto...
{ "alphanum_fraction": 0.606199187, "avg_line_length": 21.3913043478, "ext": "c", "hexsha": "0852fadc566bcf9d0887e82c16b7e89783c0ac81", "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 likelihood.c * @brief base functions to calculate the likelihood for general multitype OU processes on a phylogenetic tree * @author Carl Boettiger <cboettig@gmail.com> * @version 0.1 * @date 2011-04-22 * * @section LICENSE * * Copyright (C) * 2011 - Carl Boettiger * This program is free software; you can...
{ "alphanum_fraction": 0.6985796949, "avg_line_length": 28.3731343284, "ext": "h", "hexsha": "d4ee09b4fd9df82367028d964824d906d75a4053", "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_vector.h> #include <gsl/gsl_statistics_double.h> #include <cmath> #include <memory> #include <cassert> namespace halo { // A simple wrapper for gsl_vector to manage its memory, and also some user-friendly additions. class GSLVector { public: GSLVector(size_t Sz, bool Zeroed=true) ...
{ "alphanum_fraction": 0.6760168303, "avg_line_length": 29.4628099174, "ext": "h", "hexsha": "90ba2ba7c741ed8d0decad6d8ed54c2a3441e422", "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 the Soft...
{ "alphanum_fraction": 0.718687207, "avg_line_length": 30.6256410256, "ext": "h", "hexsha": "f345a188a1be66b410e88d483aaa0bd74382897a", "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...
#include <math.h> #include <stdlib.h> #include <assert.h> #include <cconfigspace.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_cdf.h> #define NUM_SAMPLES 10000 static void test_create_normal_distribution() { ccs_distribution_t distrib = NULL; ccs_result_t err = CC...
{ "alphanum_fraction": 0.6901977021, "avg_line_length": 29.5443425076, "ext": "c", "hexsha": "053b068166c1dec2976086f9cdfb4818ab1c25a7", "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 <config.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_interp.h> static double fun(double x) { return x + cos(x*x); } int main (void) { const double a = 1.0; const double b = 10.0; const int steps = 10; double x...
{ "alphanum_fraction": 0.6538607836, "avg_line_length": 26.8265306122, "ext": "c", "hexsha": "5bcf894dab5d501d101b6239f8dd34fcce255438", "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 _PARRSB_H_ #define _PARRSB_H_ #include <gslib.h> typedef struct { /* General options */ int global_partitioner; // -1 - None, 0 - RSB, 1 - RCB, 2 - RIB (Default: 0) int local_partitioner; // -1 - None, 0 - RSB, 1 - RCB, 2 - RIB (Default: -1) int debug_level; // 0, 1, 2, .. etc (Default: 0) i...
{ "alphanum_fraction": 0.5998828354, "avg_line_length": 41.6341463415, "ext": "h", "hexsha": "412f69437c84f83ff31d8a84a5e13760ec97fe30", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-09-10T20:12:48.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-10T20:12:...
/** * * @file core_slauum.c * * PLASMA core_blas kernel * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Julien Langou * @author Henricus Bouwmeester * @author Mathieu Faverge * @date 2010-11-15 * @gen...
{ "alphanum_fraction": 0.5658163265, "avg_line_length": 32.131147541, "ext": "c", "hexsha": "166c5ee81acfd749a2feb83b5464aa5f133bebf0", "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 "ccv_nnc.h" #include "ccv_nnc_easy.h" #include "ccv_nnc_internal.h" #include "ccv_internal.h" #include "3rdparty/khash/khash.h" #ifdef HAVE_GSL #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #else #include "3rdparty/sfmt/SFMT.h" #endif KHASH_MAP_INIT_INT64(ctx, ccv_array_t*) struct ccv_cnnp_dataframe_...
{ "alphanum_fraction": 0.7487695585, "avg_line_length": 42.9432176656, "ext": "c", "hexsha": "124e8d44eab6b54337b7ee813d7f479b876d5e5a", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-05-18T15:50:49.000Z", "max_forks_repo_forks_event_min_datetime": "2019-05-18T15:50:...
/*! /file global.h * /brief Declarations of global variables and functions. */ #ifndef GLOBAL_H #define GLOBAL_H #ifdef COOLING_CPU #include <gsl/gsl_spline.h> #include <gsl/gsl_spline2d.h> #endif #if PRECISION==1 #ifndef TYPEDEF_DEFINED_REAL typedef float Real; #endif #endif #if PRECISION==2 #ifndef TYPEDEF_DE...
{ "alphanum_fraction": 0.7577495562, "avg_line_length": 25.1649484536, "ext": "h", "hexsha": "c5b9ea82c5d69e4f358426f1637f774391626d07", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2020-02-26T18:06:59.000Z", "max_forks_repo_forks_event_min_datetime": "2019-10-11T09:35:...
#pragma once #include <gsl/gsl> #include <map> #include "halley/text/halleystring.h" #include "halley/maths/vector4.h" namespace Halley { class Path; class Image; struct ImageData; class AsepriteReader { public: static std::vector<ImageData> importAseprite(String baseName, gsl::span<const gsl::byte> fileData,...
{ "alphanum_fraction": 0.7374631268, "avg_line_length": 17.8421052632, "ext": "h", "hexsha": "637b311e4692c9183cd844869c628d846c6104b1", "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" /*! \file conduction.c * \brief Computes conduction bases on an implicit diffusion solver * */ #ifdef CONDUCTION #define MAX_COND_ITER 25 #define COND_ITER...
{ "alphanum_fraction": 0.62487946, "avg_line_length": 25.2486956522, "ext": "c", "hexsha": "3f26b42b9de229e9a3740926cb678ca21ed2f421", "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 <petsc.h> // TODO: include this in a different header? #ifdef PETSC_USE_64BIT_INDICES #define builtin_parity __builtin_parityl #else #define builtin_parity __builtin_parity #endif /* define a struct & enum to hold subspace information */ // TODO: more descriptive name? typedef enum _subspa...
{ "alphanum_fraction": 0.7044787078, "avg_line_length": 25.9428571429, "ext": "h", "hexsha": "76e76716c58a69dd1810d5a1d5059eb2b4bf03d7", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-01-26T21:38:18.000Z", "max_forks_repo_forks_event_min_datetime": "2018-02-21T19:36:...
#ifndef L_1_LASSO_C_H #define L_1_LASSO_C_H #include "Matrix.h" #include "PDCD.h" #include <string> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <stdio.h> /* printf */ #include <time.h> #include <fstream> #include <algorithm> #include <iomanip> #include <ctime> #include <math.h...
{ "alphanum_fraction": 0.5872796405, "avg_line_length": 20.2307692308, "ext": "h", "hexsha": "e4a34d0aadc60714e4a49a46f94e090c4c9af24a", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-15T04:23:24.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-15T04:23:...
/**************************************************************** gsl.h Defines wrappers for gsl functions. Language: C++ Mark A. Caprio University of Notre Dame - 3/26/17 (mac): Created, based on code from spncci utilities (aem). ****************************************************************/ #ifnd...
{ "alphanum_fraction": 0.5633802817, "avg_line_length": 18.0727272727, "ext": "h", "hexsha": "03a40cff4c05c1aae403c15398c9334cd01681fe", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2019-07-10T23:34:16.000Z", "max_forks_repo_forks_event_min_datetime": "2019-02-24T20:11:...
#pragma once #include <cmath> #include <gsl/gsl_math.h> bool to_fraction(double num, long& numerator, long& denominator){ double sign = num < 0 ? -1 : 1; double g = std::abs(num); long a = 0, b = 1, c = 1, d = 0; long s; int iter = 0; numerator = 0, denominator = 1; while (iter++ < 1e6){ ...
{ "alphanum_fraction": 0.4910979228, "avg_line_length": 22.4666666667, "ext": "h", "hexsha": "1dfa3017a97e49ab2474b5ce53831c5f683b7583", "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_blas.h> #include "qdm.h" #define TAU_INITIAL_GUESS 0.5 #define TAU_EPS 0.001 #define TAU_ITERATION_MAX 1000 #define RESET_SIZE 30 const double RESET_VALUES[RESET_SIZE] = { 0.010000000000000000, 0.010100000000000000, 0.010200000000000001, 0.010300000000000000, 0.01040000...
{ "alphanum_fraction": 0.6288879989, "avg_line_length": 20.8083333333, "ext": "c", "hexsha": "0f59d37a59e4b5676b920fff0ce5522a2698ce42", "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":...