Search is not available for this dataset
text string | meta dict |
|---|---|
/*
* 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.578285098,
"avg_line_length": 32.9171597633,
"ext": "h",
"hexsha": "e5d5b7c42a2471a119f566b577133a4348dc4148",
"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 <assert.h>
#include <gsl/gsl_statistics_double.h>
#include <hdf5.h>
#include <hdf5_hl.h>
#include <qdm.h>
qdm_evaluation *
qdm_evaluation_new(const qdm_parameters *parameters)
{
qdm_evaluation *e = malloc(sizeof(qdm_evaluation));
e->parameters = *parameters;
e->rng = gsl_rng_alloc(gsl_rng_default);
... | {
"alphanum_fraction": 0.6371809745,
"avg_line_length": 22.7140974967,
"ext": "c",
"hexsha": "e4805061d6ef1609b84678abd62ff2083b455cc7",
"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.h"
#include "ccv_internal.h"
#if defined(HAVE_SSE2)
#include <xmmintrin.h>
#elif defined(HAVE_NEON)
#include <arm_neon.h>
#endif
#ifdef HAVE_GSL
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#endif
#ifdef USE_OPENMP
#include <omp.h>
#endif
#ifdef USE_DISPATCH
#include <dispatch/dispatch.h>
#endif
... | {
"alphanum_fraction": 0.6747504479,
"avg_line_length": 50.9331884845,
"ext": "c",
"hexsha": "cf45599adf04f48cae0650810b5d6f2a314a5a4e",
"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:... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2018-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance... | {
"alphanum_fraction": 0.6462650602,
"avg_line_length": 34.2975206612,
"ext": "h",
"hexsha": "4e13611789b8369032653a54a9be5585f8d94562",
"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":... |
/* bspline/gsl_bspline.h
*
* 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.7259450172,
"avg_line_length": 30.6315789474,
"ext": "h",
"hexsha": "26794ecb9b28ef924b2af48bf7a09ef89db5b651",
"lang": "C",
"max_forks_count": 40,
"max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31... |
#ifndef GSL_INTERFACE_H
#ifdef HAVE_GSL
#include <gsl/gsl_errno.h>
#include <gsl/gsl_integration.h>
namespace GSL{
static std::string errMsg;
static int gsl_errno;
void error_handler(const char* reason, const char* file, int line, int gsl_errno){
GSL::gsl_errno=gsl_errno;
errMsg=file+std::string(":")+std::to_s... | {
"alphanum_fraction": 0.7160389336,
"avg_line_length": 31.0921052632,
"ext": "h",
"hexsha": "047af7da8362d82b58c03b571468afc4da6d3e46",
"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":... |
/* histogram/test2d_trap.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
* y... | {
"alphanum_fraction": 0.6962480964,
"avg_line_length": 35.4068627451,
"ext": "c",
"hexsha": "0e2929c17d818ad200bd536cf01d55d6cfe033a8",
"lang": "C",
"max_forks_count": 224,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T00:57:48.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-11-12T21:1... |
/* hmm.c v0.0
Andrew D. Kern 8/24/05
*/
#include "hmm.h"
#include "adkGSL.h"
#include <math.h>
#include <assert.h>
#include <string.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_randist.h>
/* returns a pointer to a new instance of an HMM.
Currently an HMM is defined by a transition matrix (pMatrix),
and ... | {
"alphanum_fraction": 0.6803213794,
"avg_line_length": 33.865938431,
"ext": "c",
"hexsha": "0fbd9c01646dfa064fb1e3d34aadba8c6ba483be",
"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 GMM_MODEL_H
#define GMM_MODEL_H
#include "DoubleVector.h"
#include "GMM/GmmAggregateNewComp.h"
#include "Handle.h"
#include "LambdaCreationFunctions.h"
#include "Object.h"
#include "PDBVector.h"
#include <gsl/gsl_blas.h>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_permutation.h>
... | {
"alphanum_fraction": 0.6154643927,
"avg_line_length": 28.5460526316,
"ext": "h",
"hexsha": "0a723e111b71b105679ac5eabf0864ce5ee071d5",
"lang": "C",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-03-06T19:28:19.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-01-18T02:13:... |
#pragma once
/*** mathematics.h:
Mathematical and statistical functions. ***/
/** Avoid including this file twice. **/
#ifndef MATHEMATICS_H
#define MATHEMATICS_H
/** Libraries. **/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <complex.h>
#include <gsl/gsl_rng.h>
#inc... | {
"alphanum_fraction": 0.6834913477,
"avg_line_length": 37.0704934542,
"ext": "h",
"hexsha": "32f3cf1c0ec8ca27053d3f8245143b0c190c85aa",
"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) 2006 by Reed A. Cartwright *
* reed@scit.us *
* *
* Permiss... | {
"alphanum_fraction": 0.5961777116,
"avg_line_length": 30.0671641791,
"ext": "h",
"hexsha": "6c6da23916b19c8f5f6d97d5ca43730a7a81f4c2",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
/* linalg/exponential.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 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 L... | {
"alphanum_fraction": 0.6673973695,
"avg_line_length": 26.6914893617,
"ext": "c",
"hexsha": "3d0df25c6521684ce0fb306d90d7c523b03a5655",
"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... |
/* Cholesky Decomposition
*
* Copyright (C) 2000 Thomas Walter
*
* 3 May 2000: Modified for GSL by Brian Gough
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2, or (at your op... | {
"alphanum_fraction": 0.5341454411,
"avg_line_length": 24.7397260274,
"ext": "c",
"hexsha": "f7c2203d70cb2cf33d6aa67ac1e169f751c9a6e7",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:... |
#include <stdio.h>
#include <stdlib.h>
#include <gsl/gsl_sf_expint.h>
#include <math.h>
/* Calculate the exponential integral function by invoking the GNU scientific
library */
/* Only intended to be used with R; not the most elegant integration but it
may do for now */
/* One argument, the value (double) at wh... | {
"alphanum_fraction": 0.6654719235,
"avg_line_length": 25.3636363636,
"ext": "c",
"hexsha": "fc547bcf167f05fbd4eb0ae81a8e7a62454527a6",
"lang": "C",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2022-03-02T10:29:33.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-05-12T08:50:... |
/*
* Copyright 2021 The DAPHNE Consortium
*
* 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.5766170169,
"avg_line_length": 48.0490196078,
"ext": "h",
"hexsha": "cfccb6c9e890096b68933db7dbe15dc6f16bbe88",
"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 _EM_IO_H_
#define _EM_IO_H_ 1
#include <petsc.h>
struct EMContext;
PetscErrorCode read_mdl(const char *, EMContext *);
PetscErrorCode read_emd(const char *, EMContext *);
PetscErrorCode save_mesh(EMContext *, const char *, int);
PetscErrorCode save_rsp(EMContext *, const char *);
#endif
| {
"alphanum_fraction": 0.7574750831,
"avg_line_length": 20.0666666667,
"ext": "h",
"hexsha": "5a00e207e9c061b20a77a9a3d1eac29d53c88a98",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
#pragma once
#include <gsl\gsl>
#include <winrt\Windows.Foundation.h>
#include <d3d11.h>
#include "DrawableGameComponent.h"
#include "MatrixHelper.h"
#include "PointLight.h"
namespace Library
{
class ProxyModel;
}
namespace Rendering
{
class PointLightMaterial;
class PointLightDemo final : public Library::Drawab... | {
"alphanum_fraction": 0.7708634829,
"avg_line_length": 29.1971830986,
"ext": "h",
"hexsha": "c8fcd269d5d9b11afa656905216b2cf99c3033bb",
"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 GBNET_MODELBASE
#define GBNET_MODELBASE
#include <algorithm>
#include <cmath>
#include <csignal>
#include <time.h>
#include <gsl/gsl_rstat.h>
#include "GraphBase.h"
namespace gbn
{
typedef std::pair<std::string, double> varid_stat_pair_t;
typedef std::vector<varid_stat_pair_t> posterior_stat_vect... | {
"alphanum_fraction": 0.6332103321,
"avg_line_length": 24.6363636364,
"ext": "h",
"hexsha": "35e06761c2894e56e54b4068bb21e63d75a38418",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-06-10T16:19:58.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-06-10T16:19:... |
#pragma once
#include <halley/maths/vector2.h>
#include <halley/time/halleytime.h>
#include <halley/core/graphics/sprite/sprite.h>
#include <gsl/gsl>
#include <thread>
#include <mutex>
#include <atomic>
namespace Halley
{
class RenderContext;
class TextureDescriptor;
class VideoAPI;
class AudioAPI;
class Streami... | {
"alphanum_fraction": 0.7469996756,
"avg_line_length": 21.865248227,
"ext": "h",
"hexsha": "cff2dbf6798721f85a293f3f1341ce3ea8cecb75",
"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:08... |
/* This file is auto-generated from weight_functions.h.src */
#ifndef DOUBLE_PREC
#define DOUBLE_PREC
#endif
// # -*- mode: c -*-
#pragma once
#include "defs.h"
#include <stdint.h>
#include <gsl/gsl_matrix_double.h>
#include <gsl/gsl_linalg.h>
// Info about a particle pair that we will pass to the weight function
... | {
"alphanum_fraction": 0.5750684355,
"avg_line_length": 29.1349693252,
"ext": "h",
"hexsha": "e390852fee795a92a27be6f6ed6469308fbd29e9",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
/* -*- mode: C; c-basic-offset: 4 -*- */
/* ex: set shiftwidth=4 tabstop=4 expandtab: */
/*
* Copyright (c) 2018, Colorado School of Mines
* All rights reserved.
*
* Author(s): Neil T. Dantam <ndantam@miens.edu>
* Georgia Tech Humanoid Robotics Lab
* Under Direction of Prof. Mike Stilman <mstilman@cc.gatech.edu>
... | {
"alphanum_fraction": 0.5378104101,
"avg_line_length": 25.5167064439,
"ext": "c",
"hexsha": "b3291373a492b8f84300d23f0eab446b921be827",
"lang": "C",
"max_forks_count": 20,
"max_forks_repo_forks_event_max_datetime": "2022-02-22T01:32:20.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-01-05T18:55... |
#include <gsl/gsl_math.h>
#include "gsl_cblas.h"
#include "cblas.h"
float
cblas_sdsdot (const int N, const float alpha, const float *X, const int incX,
const float *Y, const int incY)
{
#define INIT_VAL alpha
#define ACC_TYPE double
#define BASE float
#include "source_dot_r.h"
#undef ACC_TYPE
#undef BASE
#und... | {
"alphanum_fraction": 0.7335329341,
"avg_line_length": 19.6470588235,
"ext": "c",
"hexsha": "e7277e2a12703713e1db3518a3a5382d86d88346",
"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 (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.6451038576,
"avg_line_length": 36.2365591398,
"ext": "h",
"hexsha": "3b6023e80d8cb955bf252424c052a36573101218",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2016-10-19T15:20:58.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-10-19T15:20:... |
/**
* @file MeshHelpers.h
*
* @brief This header contains mesh related helper functions
*
* @author Stefan Reinhold
* @copyright Copyright (C) 2018 Stefan Reinhold -- All Rights Reserved.
* You may use, distribute and modify this code under the terms of
* the AFL 3.0 license; ... | {
"alphanum_fraction": 0.6949632145,
"avg_line_length": 33.3396226415,
"ext": "h",
"hexsha": "33771933e0c95cc666b514fd1711bb10a6e617eb",
"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 core_stsmlq_corner.c
*
* PLASMA core_blas kernel
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @version 2.6.0
* @author Hatem Ltaief
* @author Mathieu Faverge
* @author Azzam Haidar
* @date 2010-11-15
* @gener... | {
"alphanum_fraction": 0.4874692163,
"avg_line_length": 31.6651376147,
"ext": "c",
"hexsha": "65f1fcba3e50f15d82db4eb4b60876989d7d104f",
"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":... |
//
// Created by Harold on 2020/10/7.
//
#ifndef M_MATH_M_HIST_H
#define M_MATH_M_HIST_H
#include <gsl/gsl_histogram.h>
#include <gsl/gsl_histogram2d.h>
#include <vector>
#include <utility>
namespace M_MATH {
template<typename T>
class Histogram1D {
public:
// [min, max), it: <x>
template... | {
"alphanum_fraction": 0.5730943265,
"avg_line_length": 37.0709677419,
"ext": "h",
"hexsha": "230cd969a6ac33eaa0861e870a66f7f73909f339",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-07-04T12:26:12.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-07-04T12:26:... |
/* include */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <globes/globes.h> /* GLoBES library */
#include <gsl/gsl_math.h> /* GNU Scientific library (required for root finding) */
#include <gsl/gsl_roots.h>
#include <gsl/gsl_errno.h... | {
"alphanum_fraction": 0.6690884433,
"avg_line_length": 31.8611111111,
"ext": "c",
"hexsha": "64829f2d8c97c24141d299e0ab14456c129d99e6",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-02-16T16:25:35.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-02-16T16:25:... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#pragma once
#include <event.h>
#include <memcached/engine_error.h>
#include <memcached/types.h>
#include <platform/socket.h>
#include <subdoc/operations.h>
#include <gsl/gsl>
#include <mutex>
#include <queue>
#include <unordered_map>
#in... | {
"alphanum_fraction": 0.7443257677,
"avg_line_length": 27.2363636364,
"ext": "h",
"hexsha": "a6070a2b3b84f160c982cbc3e0154b6bb0c67cb2",
"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:... |
/* Output the current topic and POV assignments in text in text form
to stdout, optionally iteratively maximizing the assignments first
(to find a high-probability assignments). Even if performing
maximization, the current assignments should be post-burn-in for
best results. */
#include <assert.h>
#include... | {
"alphanum_fraction": 0.7174041298,
"avg_line_length": 31.3888888889,
"ext": "c",
"hexsha": "3dbb9e17a4a712d6e24a9119daa9168aead08f81",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
/*
* BRAINS
* (B)LR (R)everberation-mapping (A)nalysis (I)n AGNs with (N)ested (S)ampling
* Yan-Rong Li, liyanrong@ihep.ac.cn
* Thu, Aug 4, 2016
*/
/*!
* \file init.c
* \brief initialize the program.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <string.h>
#include <... | {
"alphanum_fraction": 0.6151792864,
"avg_line_length": 25.6598173516,
"ext": "c",
"hexsha": "03f1650637216a22978725ec594d2f61ec794fdf",
"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 <stdarg.h>
#include <math.h>
#include <string.h>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_odeiv.h>
#include <gsl/gsl_spline.h>
#include <gsl/gsl_interp2d.h>
#include <gsl/gsl_spline2d.h>
#include <gsl/gsl_integration.h>
#include "ccl.h"
//
// Macros for replacing r... | {
"alphanum_fraction": 0.6752116977,
"avg_line_length": 26.1951515152,
"ext": "c",
"hexsha": "961ede46a4d121cda8053746cb3c9ee906e300bb",
"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 <cblas.h>
#include <stdio.h>
double m[] = {
3, 1, 3,
1, 5, 9,
2, 6, 5
};
double x[] = {
-1, 3, -3
};
#ifdef __cplusplus
extern "C" {
#endif
void dgesv_(int *n, int *nrhs, double *a, int *lda,
int *ipivot, double *b, int *ldb, int *info);
#ifdef __cplusplus
}
#endif
int main(voi... | {
"alphanum_fraction": 0.4763513514,
"avg_line_length": 17.76,
"ext": "c",
"hexsha": "2cb90fb8830c56a0089f3c027c4e114acc06e4f5",
"lang": "C",
"max_forks_count": 1793,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T14:31:53.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-11-04T07:45:50.00... |
/* 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 3 of the License, or (at
* your o... | {
"alphanum_fraction": 0.7074324324,
"avg_line_length": 25.0847457627,
"ext": "c",
"hexsha": "00063fd8c9c56882827ac1ebf2c65a5ea9b877db",
"lang": "C",
"max_forks_count": 14,
"max_forks_repo_forks_event_max_datetime": "2020-03-12T12:31:25.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-07-21T04:47... |
#include <qdm.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_randist.h>
#include <hdf5.h>
#include <hdf5_hl.h>
static
void
qdm_mcmc_workspace_init(
qdm_mcmc *mcmc
)
{
mcmc->w.xi = gsl_vector_calloc(mcmc->p.xi->size);
mcmc->w.xi_acc = gsl_vector_calloc(mcmc->p.xi->size);
mcmc->w.xi_p = gsl_vector_ca... | {
"alphanum_fraction": 0.6002835986,
"avg_line_length": 22.9963768116,
"ext": "c",
"hexsha": "c9bece99e5317496e5efc4c5a813b9fed28f439e",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_blas.h>
#define RESOLUTION 28 // bmp image 28*28
#define LINE_LEN (RESOLUTION * RESOLUTION * 4) // All the pixel ... | {
"alphanum_fraction": 0.6895519836,
"avg_line_length": 30.6178010471,
"ext": "c",
"hexsha": "383408d22bc1028a7d480ffe9283a15dbfaa90c2",
"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 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.6819225861,
"avg_line_length": 34.2711370262,
"ext": "h",
"hexsha": "6a0809c33f8f26399d0f10fb1b2792da1ad2552a",
"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":... |
/* Dickman's rho function (to compute probability of success of ecm).
Copyright 2004, 2005, 2006, 2008, 2009, 2010, 2011, 2012, 2013
Alexander Kruppa, Paul Zimmermann.
This file is part of the ECM Library.
The ECM Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser Ge... | {
"alphanum_fraction": 0.5436487193,
"avg_line_length": 27.5534979424,
"ext": "c",
"hexsha": "e32ee2bef9658da79835b389d14fd1deb28f348b",
"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 matrix3d.c
* @author T J Atherton
*
* @brief Matrix math for 3d graphics
*/
#include "matrix3d.h"
#include <math.h>
#include <string.h>
/** Use Apple's Accelerate library for LAPACK and BLAS */
#ifdef __APPLE__
#include <Accelerate/Accelerate.h>
#else
#include <cblas.h>
#include <lapacke.h>
#define U... | {
"alphanum_fraction": 0.5785972692,
"avg_line_length": 33.8695652174,
"ext": "c",
"hexsha": "3f555cf409690def174c0c3f4e3dd1401f913610",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-10-31T19:55:27.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-10-05T16:56:... |
#ifndef H_LASER_DATA_INLINE
#define H_LASER_DATA_INLINE
//#include <gsl/gsl_math.h>
//#include <gsl/gsl_vector.h>
#include <limits>
//#include "csm.h"
/* Simple inline functions */
/*#warning Seen ld_valid_ray*/
INLINE int ld_valid_ray(LDP ld, int i) { return (i >= 0) && (i < ld->nrays) && (ld->valid[i]); }
INLIN... | {
"alphanum_fraction": 0.6361365529,
"avg_line_length": 25.5531914894,
"ext": "h",
"hexsha": "20384def0e35a5b2919a86964d82c1d9035d8185",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-02-14T01:59:48.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-09-23T06:35:... |
#pragma once
#include <gsl/gsl>
#include <iostream>
#include "General.h"
#include "HyperionUtils/Concepts.h"
#include "Random.h"
namespace hyperion::math {
using gsl::narrow_cast;
using utils::concepts::SignedNumeric, utils::concepts::Integral,
utils::concepts::SignedIntegral, utils::concepts::FloatingPoint;
e... | {
"alphanum_fraction": 0.6378533993,
"avg_line_length": 32.8810679612,
"ext": "h",
"hexsha": "1ea115dfc03f339817f0a5a9a58fddca7d7632ab",
"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 <nextalign/nextalign.h>
#include <gsl/string_span>
#include <string>
#include "../nextalign_private.h"
#include "../utils/to_underlying.h"
using AminoacidSequenceSpan = SequenceSpan<Aminoacid>;
Aminoacid charToAa(char aa);
char aaToChar(Aminoacid aa);
inline std::ostream& operator<<(std::os... | {
"alphanum_fraction": 0.7423167849,
"avg_line_length": 20.1428571429,
"ext": "h",
"hexsha": "50e6079acc129efb0d1c5e36ac5ef7a4feec5fac",
"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_histogram2d_copy.c
* Copyright (C) 2000 Simone Piccardi
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
... | {
"alphanum_fraction": 0.6115879828,
"avg_line_length": 24.0206185567,
"ext": "c",
"hexsha": "96086601240a7befaa18147ea727e72b7e5d707b",
"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:... |
/* interpolation/interp_poly.c
*
* Copyright (C) 2001 DAN, HO-JIN
*
* 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 vers... | {
"alphanum_fraction": 0.5396669931,
"avg_line_length": 23.7441860465,
"ext": "c",
"hexsha": "54f8024cff1af884d912c354e1aafcf3e12f96cd",
"lang": "C",
"max_forks_count": 14,
"max_forks_repo_forks_event_max_datetime": "2020-03-12T12:31:25.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-07-21T04:47... |
#include <stdio.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_permutation.h>
int
main (void)
{
const size_t N = 10;
const gsl_rng_type * T;
gsl_rng * r;
gsl_permutation * p = gsl_permutation_alloc (N);
gsl_permutation * q = gsl_permutation_alloc (N);
gsl_rng_env_setup();
T... | {
"alphanum_fraction": 0.6655211913,
"avg_line_length": 21.2926829268,
"ext": "c",
"hexsha": "72478641d42975cc83d252fc68cf693c87c37400",
"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... |
#define _USE_MATH_DEFINES
#include <cmath>
#include <Eigen/Core>
#include <gsl/gsl_sf_gamma.h>
#include <gsl/gsl_sf_zeta.h>
#include <gsl/gsl_sf_fermi_dirac.h>
#include <vector>
//#include <iostream>
using Eigen::Matrix;
using Eigen::VectorXd;
void li(size_t k, double x, Matrix<double, -1, 1> &ans);
template<typenam... | {
"alphanum_fraction": 0.407644477,
"avg_line_length": 29.3978494624,
"ext": "h",
"hexsha": "889fa09c299f79c9713da38dd26ae3e81b5e1eff",
"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) 2011-2019, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | {
"alphanum_fraction": 0.6238848213,
"avg_line_length": 39.6737184703,
"ext": "h",
"hexsha": "7d8a47a67148565ba7cf880f8583f2498477c78f",
"lang": "C",
"max_forks_count": 112,
"max_forks_repo_forks_event_max_datetime": "2022-03-31T21:46:46.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-10-16T11:0... |
#include <math.h>
#include <string.h>
#include <cblas.h>
#include "cnn.h"
#include "cnn_builtin_math.h"
#include "cnn_builtin_math_inline.h"
#include "cnn_config.h"
#include "cnn_init.h"
#include "cnn_macro.h"
#ifdef CNN_WITH_CUDA
#include <cuda_runtime.h>
#include "cnn_builtin_math_cu.h"
#endif
CNN_ACTIV_DEF((*cnn... | {
"alphanum_fraction": 0.5420789554,
"avg_line_length": 20.8574468085,
"ext": "c",
"hexsha": "5a82313ac036b6741264beb3d0dce42d17db1fe9",
"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.6394473874,
"avg_line_length": 30.5087235996,
"ext": "c",
"hexsha": "ed47c8b20ab5d53c115e6ee40b8583772e17d618",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2018-10-02T06:18:07.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-10-02T06:18:... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "arcana/functional/inplace_function.h"
#include "arcana/sentry.h"
#include "affinity.h"
#include "blocking_concurrent_queue.h"
#include <gsl/gsl>
#include <vector>
namespace mira
{
template<size_t WorkSize>
cla... | {
"alphanum_fraction": 0.5320348539,
"avg_line_length": 24.0864197531,
"ext": "h",
"hexsha": "53bf072b80cabc35b2e4da579bcdc900a5ee97c0",
"lang": "C",
"max_forks_count": 16,
"max_forks_repo_forks_event_max_datetime": "2022-03-31T15:36:49.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-05-07T03:09... |
/** @file */
#ifndef __CCL_UTILS_H_INCLUDED__
#define __CCL_UTILS_H_INCLUDED__
#include <gsl/gsl_spline.h>
#define CCL_MIN(a, b) (((a) < (b)) ? (a) : (b))
#define CCL_MAX(a, b) (((a) > (b)) ? (a) : (b))
CCL_BEGIN_DECLS
typedef enum ccl_integration_t {
ccl_integration_qag_quad = 500, // GSL's quad
ccl_integra... | {
"alphanum_fraction": 0.7086256707,
"avg_line_length": 35.115942029,
"ext": "h",
"hexsha": "f26b1684e5220fb961a2b76db51e1305f96f23bf",
"lang": "C",
"max_forks_count": 54,
"max_forks_repo_forks_event_max_datetime": "2022-02-06T13:12:10.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-07-12T13:08:... |
/* fft/gsl_fft_halfcomplex.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
*... | {
"alphanum_fraction": 0.7024842861,
"avg_line_length": 34.4432989691,
"ext": "h",
"hexsha": "f80611da2ea7b27eef8568cc30d3b4b025bd8b17",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2020-10-14T12:45:35.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-10-14T12:45:... |
#pragma once
#include <random>
#include <type_traits>
#include <gsl-lite/gsl-lite.hpp>
namespace thrustshift {
namespace random {
template <class Range, class Distribution, class Engine>
void generate(Range&& range, Distribution& dist, Engine& rng) {
for (size_t i = 0; i < range.size(); ++i) {
range[i] = dist(r... | {
"alphanum_fraction": 0.6015533981,
"avg_line_length": 33.8815789474,
"ext": "h",
"hexsha": "ef2624f2c16be97a955e701ce7c3fea9d9a1168b",
"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 kjg_fpca.h
* @brief Runs fastPCA.
* This module also has methods to multiply a genotype matrix against the GSL
* matrices.
*/
#ifndef KJG_FPCA_H_
#define KJG_FPCA_H_
#include <gsl/gsl_matrix.h>
extern size_t KJG_FPCA_ROWS; // number of rows to process at once
/** Performs a fast PCA
* @param *eval ei... | {
"alphanum_fraction": 0.6934441367,
"avg_line_length": 23.0425531915,
"ext": "h",
"hexsha": "ed36845807f8e94b8adf913414f61945599956cf",
"lang": "C",
"max_forks_count": 63,
"max_forks_repo_forks_event_max_datetime": "2022-01-31T18:57:58.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-04-20T08:57... |
/* randist/hyperg.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 James Theiler, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
*... | {
"alphanum_fraction": 0.5224302367,
"avg_line_length": 22.648,
"ext": "c",
"hexsha": "c15de09c43159f26e77b1b2372c91d4e94035adb",
"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.000... |
////////////////////////////////////////////////////////////
//
// Copyright (c) 2018 Jan Filipowicz, Filip Turobos
//
// 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, ... | {
"alphanum_fraction": 0.7383847833,
"avg_line_length": 37.7294117647,
"ext": "h",
"hexsha": "8699e6a0ffded186ca97e3178cbe7c77ba21cb33",
"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 "BasicBox.h"
#include "BasicTypes.h"
#include "BoxTypes.h"
#include "General.h"
#include "NodeDim.h"
#include "NodeListDim.h"
#include <gsl.h>
namespace formulae{ namespace node {
/**
*
* @param width
* @param node center node -> reference point, (must be Box0 or Rule !!!)
* @param upList a... | {
"alphanum_fraction": 0.6889320388,
"avg_line_length": 29.2613636364,
"ext": "h",
"hexsha": "1e7e7738656a99aa861ef37138e2663468cffde2",
"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 __COMPLEX_ARRAY_H__
#define __COMPLEX_ARRAY_H__
#include <complex>
#include <vector>
#include <iostream>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_fft_complex.h>
#define REAL(z,i) ((z)[2*(i)])
#define IMAG(z,i) ((z)[2*(i)+1])
namespace mspass::algorithms::deconvolution{
typedef std::complex<double> Complex... | {
"alphanum_fraction": 0.6468977141,
"avg_line_length": 32.2891156463,
"ext": "h",
"hexsha": "d301584273f6220d0a8bf0b33bb12939cbcad7e0",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-10-01T05:59:50.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-08-03T18:40:... |
#pragma once
#include <SDL2/SDL.h>
#include <SDL2/SDL_audio.h>
#include <chrono>
#include <cstdint>
#include <gsl/span>
#include <queue>
class CSound
{
private:
static constexpr std::int32_t Frequency{ 44100 };
struct SBeep
{
double Frequency;
std::uint32_t SamplesLeft;
};
SDL_AudioDeviceID mDeviceID;
std:... | {
"alphanum_fraction": 0.7242524917,
"avg_line_length": 17.2,
"ext": "h",
"hexsha": "4933509cf87bcbf8b47cac72f2a09d4db2eeb5a7",
"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": "56ad906... |
/* Author: G. Jungman
*/
#include <config.h>
#include <gsl/gsl_ieee_utils.h>
#include "gsl_qrng.h"
int test_sobol(void)
{
int status = 0;
double v[3];
/* int i; */
/* test in dimension 2 */
gsl_qrng * g = gsl_qrng_alloc(gsl_qrng_sobol, 2);
gsl_qrng_get(g, v);
gsl_qrng_get(g, v);
gsl_qrng_get(g, v);... | {
"alphanum_fraction": 0.5554359526,
"avg_line_length": 21.1136363636,
"ext": "c",
"hexsha": "915ef76419ab6ac2de2c1d21bc46e1109eba0a90",
"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 2014 Marc Normandin
*
* 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 agr... | {
"alphanum_fraction": 0.6751140395,
"avg_line_length": 25.6233766234,
"ext": "h",
"hexsha": "e087cccaba8bbf2e06ba7c4cceef2b8311871da0",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
#include <gsl/gsl_qrng.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[]) {
if (argc < 3) {
printf("Usage: ./sampling <dimensions> <samples>\n");
return 0;
}
int dimensions = atoi(argv[1]);
int samples = atoi(argv[2]);
if (samples < 0) {
printf("Inv... | {
"alphanum_fraction": 0.56069869,
"avg_line_length": 25.4444444444,
"ext": "c",
"hexsha": "f5160fbd05a4fceefb0545bb803d34940cf5d306",
"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": "... |
/*
FRACTAL - A program growing fractals to benchmark parallelization and drawing
libraries.
Copyright 2009-2021, 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 mus... | {
"alphanum_fraction": 0.5638490323,
"avg_line_length": 23.9058056872,
"ext": "c",
"hexsha": "f68511d16a91a5adced31ec3afe7fbb5fbe6e12c",
"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 bcfunctions_h
#define bcfunctions_h
#include <petsc.h>
PetscErrorCode BCsDiff(PetscInt dim, PetscReal time, const PetscReal x[],
PetscInt num_comp_u, PetscScalar *u, void *ctx);
PetscErrorCode BCsMass(PetscInt dim, PetscReal time, const PetscReal x[],
PetscInt num... | {
"alphanum_fraction": 0.6884816754,
"avg_line_length": 31.8333333333,
"ext": "h",
"hexsha": "b272a64db6da1b4d5e702712e7c1f67b380bfd06",
"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... |
//
// trsm.h
// Linear Algebra Template Library
//
// Created by Rodney James on 1/5/12.
// Copyright (c) 2012 University of Colorado Denver. All rights reserved.
//
#ifndef _trsm_h
#define _trsm_h
/// @file trsm.h Solves triangular matrix equations.
#include <cctype>
#include "latl.h"
namespace LATL
{
/// @... | {
"alphanum_fraction": 0.3354482967,
"avg_line_length": 31.3349112426,
"ext": "h",
"hexsha": "3a23de1de6c3c1e8b3dae441f9ff3c300b37a2c1",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-02-09T23:18:24.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-02-01T06:46:... |
/* bst/gsl_bst.h
*
* Copyright (C) 2018, 2019 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.7119764879,
"avg_line_length": 34.8974358974,
"ext": "h",
"hexsha": "c5988a6e802fcc41e2d13b4c8467ae61dd2d381c",
"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[] =
"Coupled reaction-diffusion equations (Pearson 1993). Option prefix -ptn_.\n"
"Demonstrates form F(t,Y,dot Y) = G(t,Y) where F() is IFunction and G() is\n"
"RHSFunction(). Implements IJacobian() and RHSJacobian(). Defaults to\n"
"ARKIMEX (= adaptive Runge-Kutta implicit-explicit) TS type.\n\n"... | {
"alphanum_fraction": 0.5609999288,
"avg_line_length": 43.6055900621,
"ext": "c",
"hexsha": "1d06e3b273ac32c4b77d192457ba15534dd1cd43",
"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... |
/* ode-initval/rk4imp.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 op... | {
"alphanum_fraction": 0.591735864,
"avg_line_length": 24.0857142857,
"ext": "c",
"hexsha": "7f31eac0ff5a598906bdbf7ccbc9ff42a6a67716",
"lang": "C",
"max_forks_count": 14,
"max_forks_repo_forks_event_max_datetime": "2021-06-10T03:09:53.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-04-29T20:31:... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* Copyright (c) 2012,2013, by the GROMACS development team, l... | {
"alphanum_fraction": 0.515555915,
"avg_line_length": 29.7449879711,
"ext": "c",
"hexsha": "d9e69984502dc1f6ad5855c63de2ac8aa62625fe",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-02-08T00:11:00.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-02-08T00:11:0... |
/* matrix/gsl_matrix_float.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.6791411572,
"avg_line_length": 33.8104956268,
"ext": "h",
"hexsha": "d1f912004027f52e84b7029e7142ad96415f9517",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
/* vector/gsl_vector_short.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.6689840224,
"avg_line_length": 34.4495798319,
"ext": "h",
"hexsha": "51218c5543da469d23cca218a90d3e32c5593f39",
"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 mooney_rivlin_h
#define mooney_rivlin_h
#include <petsc.h>
#include "../include/structs.h"
#ifndef PHYSICS_STRUCT_MR
#define PHYSICS_STRUCT_MR
typedef struct Physics_MR_ *Physics_MR;
struct Physics_MR_ {
// Material properties for MR
CeedScalar mu_1;
CeedScalar mu_2;
CeedScalar lambda;
};
#endif // PH... | {
"alphanum_fraction": 0.7692307692,
"avg_line_length": 27.8571428571,
"ext": "h",
"hexsha": "1ca82e829413f2372b30349cb2602247f265fc61",
"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... |
#ifndef SVGP_H
#define SVGP_H
#define M_PI 3.14159265358979323846
#include "Vector.h"
#include "Matrix.h"
#include "GaussianProcess.h"
#include <gsl/gsl_math.h>
class SVGP //: public GaussianProcess
{
protected:
Matrix X; ///< Samples (N x M)
Vector Y; ///< Output (N x 1)
int N; ///< Number of samples
int ... | {
"alphanum_fraction": 0.6973518285,
"avg_line_length": 30.8961038961,
"ext": "h",
"hexsha": "1fe0f3e8d38fafd7a4c86095104f4d8d5289504c",
"lang": "C",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2018-10-29T12:46:41.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-01-14T14:23:... |
#include "ccv.h"
#include "ccv_internal.h"
#if defined(HAVE_SSE2)
#include <xmmintrin.h>
#elif defined(HAVE_NEON)
#include <arm_neon.h>
#endif
#ifdef HAVE_GSL
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#endif
#ifdef USE_DISPATCH
#include <dispatch/dispatch.h>
#endif
#include "3rdparty/sqlite3/sqlite3.h"
con... | {
"alphanum_fraction": 0.6625981099,
"avg_line_length": 40.6975228162,
"ext": "c",
"hexsha": "11c2bb3df1b7b0b4fbc7a23d1062fef91b15f92c",
"lang": "C",
"max_forks_count": 18,
"max_forks_repo_forks_event_max_datetime": "2021-07-11T17:57:28.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-02-18T08:34... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iniparser.h>
#include "parmt_utils.h"
#include "tdsearch_greens.h"
#include "tdsearch_commands.h"
#ifdef TDSEARCH_USE_INTEL
#include <mkl_blas.h>
#else
#include <cblas.h>
#endif
#include "tdsearch_struct.h"
#include "tdsearch_hudson.h"
#include "ispl/... | {
"alphanum_fraction": 0.4762627164,
"avg_line_length": 38.8086580087,
"ext": "c",
"hexsha": "ae3e33e621a99d46f63828cecef62e86a5679c46",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
/* linalg/test_lq.c
*
* 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.6484963215,
"avg_line_length": 26.716091954,
"ext": "c",
"hexsha": "ba673a9d616e2dc795012af2a9e8c601075bfcc4",
"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... |
/* randist/test.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007, 2010 James Theiler, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License,... | {
"alphanum_fraction": 0.6688211441,
"avg_line_length": 20.6727659574,
"ext": "c",
"hexsha": "10800a0ad4129e11ccae7d35d767bbf004fb4cbd",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
#ifndef __MATH_FUNCTINS_H__
#define __MATH_FUNCTINS_H__
#include <stdint.h>
#include <cmath> // for std::fabs and std::signbit
#include <cblas.h>
#include <cudnn.h>
#include <cublas_v2.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <curand.h>
#include <driver_types.h> // cuda driver types
#i... | {
"alphanum_fraction": 0.6630785791,
"avg_line_length": 33.9051094891,
"ext": "h",
"hexsha": "82d73a61d10e6ec509bed909fa21fdccc25a7046",
"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_histogram2d.h>
int
main (void)
{
const gsl_rng_type * T;
gsl_rng * r;
gsl_histogram2d * h = gsl_histogram2d_alloc (10, 10);
gsl_histogram2d_set_ranges_uniform (h,
0.0, 1.0,
... | {
"alphanum_fraction": 0.5612840467,
"avg_line_length": 20.1568627451,
"ext": "c",
"hexsha": "3fcabb48efb1e0cb169938ebfba0d161bc1e82cf",
"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... |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#ifndef _HEBench_ClearText_BE_DataPack_H_7e5fa8c2415240ea93eff148ed73539b
#define _HEBench_ClearText_BE_DataPack_H_7e5fa8c2415240ea93eff148ed73539b
#include <memory>
#include <vector>
#include <gsl/gsl>
#include "clear_error.h"
#includ... | {
"alphanum_fraction": 0.7054404735,
"avg_line_length": 39.5765765766,
"ext": "h",
"hexsha": "fccdf51c73f1c521ee6a89d79ba8a55df7ec15c4",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-05T18:01:48.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-05T18:01:... |
#pragma once
#include "poll_event.h"
#include "poll_response.h"
#include "poll_target.h"
#include <cstddef>
#include <optional>
#include <string>
#include <vector>
#include <gsl/span>
namespace wrappers::zmq {
class context;
class socket final {
public:
enum class type {
pair,
pub,
su... | {
"alphanum_fraction": 0.6328571429,
"avg_line_length": 21.5384615385,
"ext": "h",
"hexsha": "f7b41233c09db224b291b007d63906e9dc56e837",
"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":... |
/*
* MathUtils.h
*
* Author:
* Oleg Kalashev
*
* Copyright (c) 2020 Institute for Nuclear Research, RAS
*
* 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, ... | {
"alphanum_fraction": 0.7249659611,
"avg_line_length": 30.6022727273,
"ext": "h",
"hexsha": "f13823e35d28d82e7f2a60e324dd0bb45af6da6e",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-01-10T21:05:54.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-12-16T08:23:... |
/* multimin/simplex2.c
*
* Copyright (C) 2007, 2008, 2009 Brian Gough
* Copyright (C) 2002 Tuomo Keskitalo, Ivo Alxneit
*
* 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 ... | {
"alphanum_fraction": 0.6339389704,
"avg_line_length": 24.4615384615,
"ext": "c",
"hexsha": "59dd57dbe6a8d3e02b14e4595f75165bd728380d",
"lang": "C",
"max_forks_count": 14,
"max_forks_repo_forks_event_max_datetime": "2020-03-12T12:31:25.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-07-21T04:47... |
#ifndef LIB_INCLUDE_TICK_ARRAY_VECTOR_OPERATIONS_H_
#define LIB_INCLUDE_TICK_ARRAY_VECTOR_OPERATIONS_H_
// License: BSD 3 clause
#include <atomic>
#include <vector>
#include <numeric>
#include <algorithm>
#include <type_traits>
#include "promote.h"
#include "tick/base/defs.h"
#if defined(TICK_USE_MKL)
#include "m... | {
"alphanum_fraction": 0.7751152074,
"avg_line_length": 20.0925925926,
"ext": "h",
"hexsha": "bb288e98d09b991dacd20587d2b805bfeb4df702",
"lang": "C",
"max_forks_count": 102,
"max_forks_repo_forks_event_max_datetime": "2022-02-15T11:45:49.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-04-25T11:4... |
#ifndef __MATH_LOGSPACE_H__
#define __MATH_LOGSPACE_H__
#include <cmath>
#include <vector>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_sf_gamma.h>
#include "logspace_base.h"
#include "specialfunc.h"
// Given two log vectors, log a_i and log b_i, compute
// log sum (a_i * b_i).
double log... | {
"alphanum_fraction": 0.6433978133,
"avg_line_length": 33.9714285714,
"ext": "h",
"hexsha": "4d6589b54d39d7403a6c094b31d7953624c993f4",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2018-11-27T01:35:33.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-11-27T01:35:... |
/*
* iaf_cond_exp_sfa_rr.h
*
* This file is part of NEST.
*
* Copyright (C) 2004 The NEST Initiative
*
* NEST is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
... | {
"alphanum_fraction": 0.6767481248,
"avg_line_length": 31.6301020408,
"ext": "h",
"hexsha": "557edfecf4a927a58f3fce27a1ff1d93278dee06",
"lang": "C",
"max_forks_count": 10,
"max_forks_repo_forks_event_max_datetime": "2021-03-25T09:32:56.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-12-09T06:45... |
#ifndef S3D_VIDEO_FILE_PARSER_FFMPEG_SEEKER_H
#define S3D_VIDEO_FILE_PARSER_FFMPEG_SEEKER_H
#include <chrono>
#include <gsl/gsl>
struct AVFormatContext;
namespace s3d {
class Seeker {
public:
Seeker(gsl::not_null<AVFormatContext*> formatContext, int streamIndex);
void seekTo(std::chrono::microseconds timesta... | {
"alphanum_fraction": 0.7870967742,
"avg_line_length": 17.8846153846,
"ext": "h",
"hexsha": "96826a11d548a66cbe606a0776def2f9d8d0f711",
"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:... |
#pragma once
#include <cstddef>
#include <memory>
#include <iostream>
#include <array>
#include <gsl\gsl>
#include "../utils/CRSP.h"
#include "./Pool.h"
#include "../math/OtherMath.h"
#include "../types/def.h"
namespace config {
/**
Default pool size for our Small Memory Allocator pools.
*/
constexpr... | {
"alphanum_fraction": 0.7092008059,
"avg_line_length": 22.5606060606,
"ext": "h",
"hexsha": "26d6192988ec2d6bb228cceb4cf28b351461eb63",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-05-14T14:57:31.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-03-07T12:53:... |
#pragma once
#if __has_include(<span>) && (__cplusplus > 201703L)
#include <span>
#else
#include <gsl/span>
namespace std {
template <class T, std::size_t Extent = gsl::dynamic_extent>
using span = gsl::span<T, Extent>;
}
#endif
| {
"alphanum_fraction": 0.7043478261,
"avg_line_length": 19.1666666667,
"ext": "h",
"hexsha": "66496e0962b5343c2cee36d8457d15f55ceeb6b5",
"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":... |
/*
The following program solves the second-order nonlinear
Van der Pol oscillator equation (see Landau/Paez 14.12, part 1),
x"(t) + \mu x'(t) (x(t)^2 - 1) + x(t) = 0
This can be converted into a first order system suitable for
use with the library by introducing a separate variable for
the velocit... | {
"alphanum_fraction": 0.5656383328,
"avg_line_length": 34.0446927374,
"ext": "c",
"hexsha": "a5b01333cdbddf1636a688e19c65379f33df0429",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-19T01:22:06.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-19T01:22:... |
#ifdef __cplusplus
extern "C" {
#endif
#include "src/allvars.h"
#include "src/proto.h"
#include "src/tags.h"
#include <gsl/gsl_rng.h>
typedef struct {
double mass; /// mass
double x, y, z; /// position
double vx, vy, vz; ... | {
"alphanum_fraction": 0.5237659963,
"avg_line_length": 27.35,
"ext": "h",
"hexsha": "cadbb4a388cc45104d9e59cef4d58c2c89b2de0d",
"lang": "C",
"max_forks_count": 102,
"max_forks_repo_forks_event_max_datetime": "2022-02-09T13:29:43.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-22T10:00:29.000... |
#include <petsc.h>
#include <petscmath.h>
#include "compressibleFlow.h"
#include "mesh.h"
#include "petscdmplex.h"
#include "petscts.h"
//MMS from Verification of a Compressible CFD Code using the Method of Manufactured Solutions, Christopher J. Roy,† Thomas M. Smith,‡ and Curtis C. Ober§
// Define
#define Pi PETSC_P... | {
"alphanum_fraction": 0.5167544497,
"avg_line_length": 54.113022113,
"ext": "c",
"hexsha": "70551590619ff2c38b05f12f08d7f3c08f7e073d",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha": ... |
#include <gsl/gsl_sf_bessel.h>
#include "ccl.h"
#include "ctest.h"
#include "ccl_params.h"
#include "ccl_core.h"
CTEST(spacing_tests, linear_spacing_simple) {
double * m = ccl_linear_spacing(0.0, 1.0, 5);
ASSERT_NOT_NULL(m);
ASSERT_DBL_NEAR_TOL(0.0, m[0], 1e-10);
ASSERT_DBL_NEAR_TOL(0.25, m[1], 1e-10);
ASSER... | {
"alphanum_fraction": 0.6379027854,
"avg_line_length": 27.328358209,
"ext": "c",
"hexsha": "4e2b24fb2f877edb3546912fb7e5dc6528a878c5",
"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.6426801058,
"avg_line_length": 32.6253369272,
"ext": "h",
"hexsha": "500ac343ec67d82c40987990553549c8c38de395",
"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 _DSGLD_LDA_MODEL_H__
#define _DSGLD_LDA_MODEL_H__
#include <El.hpp>
#include <gsl/gsl_rng.h>
#include "sgld_model.h"
using std::string;
using std::vector;
namespace dsgld {
class LDAModel : public SGLDModel<double, int> {
public:
LDAModel(
const El::Matrix<int>& X,
const int K,
con... | {
"alphanum_fraction": 0.690625,
"avg_line_length": 20.9836065574,
"ext": "h",
"hexsha": "4302e04af7637837aad70ef5430057bec248a87a",
"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": "24... |
/* spgetset.c
*
* Copyright (C) 2012 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.
*
* Thi... | {
"alphanum_fraction": 0.5265760198,
"avg_line_length": 25.1828793774,
"ext": "c",
"hexsha": "2c5d2ea6d35a29f43cd83064aa298775524a7672",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
#pragma once
#include <gsl/span>
#include "aas/aas_math.h"
namespace aas {
struct AnimPlayerStream;
class AnimatedModel;
struct SkelAnim;
struct SkelAnimEvent;
struct SkelBoneState;
class IAnimEventHandler;
class Skeleton;
struct AnimEvent;
class AnimPlayer {
public:
AnimatedModel * ownerAnim;
char ... | {
"alphanum_fraction": 0.7639784946,
"avg_line_length": 25.4794520548,
"ext": "h",
"hexsha": "7ffe2196addf9d6b71f7951a4b993e3c86a23f33",
"lang": "C",
"max_forks_count": 25,
"max_forks_repo_forks_event_max_datetime": "2021-11-15T23:14:51.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-02-04T21:19... |
#include <stdio.h>
#include <string.h>
#include <gsl/gsl_eigen.h>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
#include "chmath.h"
#include "err.h"
static char* me = "chmath";
static double get(const gsl_matrix* m, int i, int j) {
return gsl_matrix_g... | {
"alphanum_fraction": 0.5760690789,
"avg_line_length": 21.9099099099,
"ext": "c",
"hexsha": "4829610191622a264c53d05a38df981dc07e8333",
"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 <gmp.h>
#if BLAS_IMPL == openblas
#include <blas/cblas.h>
#else
#include <cblas.h>
#endif
#include "attrib.h"
#include "math.h"
#define CLEANUP \
return err; \
error: \
if (ctx->err == 0) \
strcpy(ctx->err_msg, "Unexpected math."); \
ctx->err = err; \
return err;
#d... | {
"alphanum_fraction": 0.5332909245,
"avg_line_length": 26.6440677966,
"ext": "c",
"hexsha": "699dfa5a8c09e0eda53f26179b4ae85906ab4824",
"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":... |
// mimetic_bayes program
// Alessandro Casalino, University of Trento
// For licence informations, see the Github repository license
//
// Compile with: gcc-8 -O2 -DHAVE_INLINE -DGSL_RANGE_CHECK_OFF Ligo_abc_gsl.c -o Ligo_abc_gsl.o -lgsl -lgslcblas -fopenmp
// Run with: ./Ligo_abc_gsl.o
// Test running time: time ./Lig... | {
"alphanum_fraction": 0.6234128471,
"avg_line_length": 33.22406639,
"ext": "c",
"hexsha": "ab5dad315a8c114a53887bfadbd4407a524afcc9",
"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 MITRO_GRAPH_H
#define MITRO_GRAPH_H
#include <algorithm>
#include <cstdint>
#include <functional>
#include <memory>
#include <set>
#include <string>
#include <vector>
#include <gsl.h>
class Graph;
struct GraphEdge
{
double weight = 0;
int from = -1;
int to = -1;
GraphEdge(double weight, int f... | {
"alphanum_fraction": 0.7032706589,
"avg_line_length": 33.664893617,
"ext": "h",
"hexsha": "6f35b9eb77842d4bab4db5c452e96c07224839c3",
"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": ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.