Search is not available for this dataset
text
string
meta
dict
/* cdf/inverse_normal.c * * Copyright (C) 2002 Przemyslaw Sliwa and Jason H. Stover. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your optio...
{ "alphanum_fraction": 0.6426150121, "avg_line_length": 20.3448275862, "ext": "c", "hexsha": "5376b757fccbbd5bc3b7e7dc1910d96766e21cbf", "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...
#pragma once #include <cassert> #include <exception> #include <functional> #include <set> #include <map> #include <nod/nod.hpp> #include <gsl-lite/gsl-lite.hpp> #include "mutils/time/profiler.h" #include "threadpool/threadpool.h" #include "nodegraph/model/node.h" #include "nodegraph/model/pin.h" namespace NodeGr...
{ "alphanum_fraction": 0.5848493886, "avg_line_length": 21.4935897436, "ext": "h", "hexsha": "65e79936f304de72e8874bb19ce33918fbf72ef6", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-06-24T09:03:19.000Z", "max_forks_repo_forks_event_min_datetime": "2019-12-08T18:43:...
static char help[] = "Assemble a Mat sparsely.\n"; #include <petsc.h> int main(int argc,char **args) { PetscErrorCode ierr; Mat A; int i1[3] = {0, 1, 2}, j1[3] = {0, 1, 2}, i2 = 3, j2[3] = {1, 2, 3}, i3 = 1, j3 = 3; double aA1[9] = { 1.0, 2.0, 3.0, ...
{ "alphanum_fraction": 0.5780669145, "avg_line_length": 29.8888888889, "ext": "c", "hexsha": "a0362cffa0209a4ef96a8cc9da15a6f01a372d66", "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 <gbpLib.h> #include <gbpMath.h> #include <gbpCosmo_core.h> #include <gbpCosmo_NFW_etc.h> #include <gsl/gsl_sf_expint.h> // Cole and Lacey (1996) V_c(r) profile double V_circ_NFW(double r, double M_vir, double z, int mode, cosmo_info **cosmo) { doubl...
{ "alphanum_fraction": 0.5842293907, "avg_line_length": 27, "ext": "c", "hexsha": "3e0af8534e9c735f4c6a5ca5765e4cf1eb56eef2", "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:40.000Z", ...
#include <stdio.h> #include <math.h> #include <gsl/gsl_vector.h> #include "MeshAttributes.h" #include "mathfunctions.h" #include "oneTimeStep.h" extern const double g; void oneTimeStep2D (double time, double dt) { // store H, Qx, Qy gsl_vector *gzeta = gsl_vector_alloc(3*NumEl); gsl_vector *gQx = gsl_vector_allo...
{ "alphanum_fraction": 0.5901574803, "avg_line_length": 25.0864197531, "ext": "c", "hexsha": "0cce59f174c3818e109ea325cb114e75a883a9bb", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-04-03T20:59:00.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-18T02:50:...
static char help[] = "This code implements the distribution federate of the T-D power flow use-case. A global convergence for the federation is implemented in this use-case. The The distribution federate obtains the upstream distribution substation voltage from transmission federate, solves power flow, and sends the up...
{ "alphanum_fraction": 0.7171378802, "avg_line_length": 38.2717948718, "ext": "c", "hexsha": "344b5a684604c3a31851f9b020ec6e6b8e39284c", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2019-09-23T19:30:36.000Z", "max_forks_repo_forks_event_min_datetime": "2019-08-01T21:49:...
#include <stdio.h> #include <stdlib.h> #include <cblas.h> #include <math.h> #include <string.h> #include "../inc/knnring.h" #include "mpi.h" // Application Entry Point /* * X is this node's points from which distances will be calculated * n is the number of points in X and each incoming-outcoming block * d is the ...
{ "alphanum_fraction": 0.6410811747, "avg_line_length": 29.2227848101, "ext": "c", "hexsha": "90aab1cc60cc0eeaf433128de26de45019aa01e6", "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.6859582543, "avg_line_length": 28.4864864865, "ext": "h", "hexsha": "2d32eade1bd0343fa2d91d59571d97ecef622cae", "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:...
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights // reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for effic...
{ "alphanum_fraction": 0.6511718623, "avg_line_length": 36.4922894425, "ext": "h", "hexsha": "6820308f54bfe2632f345b3bc7de48ad63fa19f7", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-03-30T23:13:18.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-30T23:13:...
#include <gsl/gsl_test.h> #include <gsl/gsl_ieee_utils.h> #include <gsl/gsl_math.h> #include <gsl/gsl_cblas.h> #include "tests.h" void test_rotg (void) { const double flteps = 1e-4, dbleps = 1e-6; { float a = -1.5f; float b = -1.5f; float c; float s; float r_expected = -2.12132034356f; float z_exp...
{ "alphanum_fraction": 0.6433367498, "avg_line_length": 28.4904648391, "ext": "c", "hexsha": "a5a84d3cd25c5f315218e9854eb2f178c6d7ec76", "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...
/* TwoAdvSelfSims.c Simulation calculating fixation probability of second beneficial allele, given existing ben allele at initial frequency p. For use in the study "Linkage and the limits to natural selection in partially selfing populations". Simulation uses routines found with the GNU Scientific Library (GSL) (htt...
{ "alphanum_fraction": 0.5954867729, "avg_line_length": 31.6072289157, "ext": "c", "hexsha": "58ed7233be4ed49ebeea5acae795ffc76b29980b", "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 <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_math.h> #include <gsl/gsl_chebyshev.h> #include <gsl/gsl_fit.h> #include <gsl/gsl_check_range.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_multifit.h> #include <...
{ "alphanum_fraction": 0.5929703822, "avg_line_length": 28.8546099291, "ext": "c", "hexsha": "5b7a811a2223040c2969c867ca47e79959901ed5", "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":...
//cmc_topol.c -- // this uses stateSpace generated previously to // create the topology matrix and the move type matrix //defined by the markov chain //this was only for testing purposes #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_blas.h>...
{ "alphanum_fraction": 0.6473567585, "avg_line_length": 26.7711864407, "ext": "c", "hexsha": "21dae6583a117f81119946bc1ed771f8d2f4942b", "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 2013 Perttu Luukko * This file is part of libeemd. * libeemd 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. * li...
{ "alphanum_fraction": 0.7612101567, "avg_line_length": 40.8308823529, "ext": "h", "hexsha": "303b9bfc6bbcd23bdb601ce2d4fca467a1c4205f", "lang": "C", "max_forks_count": 58, "max_forks_repo_forks_event_max_datetime": "2022-03-15T09:13:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-12-14T00:15...
#ifndef __calcAinvb__ #define __calcAinvb__ #include <gsl/gsl_linalg.h> #include <gsl/gsl_matrix_double.h> #include <gsl/gsl_multiroots.h> #define GSL 2 int GSLtag; void least_gsl_error_handler( const char * reason, const char * file, int line, int gsl_errno) { fprintf(stderr,"%s:%d: %s (gs...
{ "alphanum_fraction": 0.573872212, "avg_line_length": 25.9260869565, "ext": "c", "hexsha": "206521f02b374d1e890d655844de378875889ce5", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-12-01T00:54:18.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-01T00:54:1...
#include <gsl/gsl_cdf.h> #include <stdio.h> int main() { double bottom_tail = gsl_cdf_gaussian_P(-1.96,1); printf("Area between +-1.96: %g\n",1-2*bottom_tail); return 0; }
{ "alphanum_fraction": 0.6685393258, "avg_line_length": 14.8333333333, "ext": "c", "hexsha": "d8d50e891d303b9bc724f7aaf78624907999f03a", "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.5496040987, "avg_line_length": 23.8555555556, "ext": "h", "hexsha": "57c7c89a0b66d6b2dfccf70429e33058e0e77174", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2016-10-19T15:20:58.000Z", "max_forks_repo_forks_event_min_datetime": "2016-10-19T15:20:...
#include <stdio.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_odeiv.h> #include <GL/glut.h> #define SLICE 360 int *jac; int rhs (double t, const double y[], double f[], void *params_ptr); //int jacobian (double t, const double y[], double *dfdy, double dfdt[], void *params_ptr); void ...
{ "alphanum_fraction": 0.5720971044, "avg_line_length": 24.8654545455, "ext": "c", "hexsha": "6fccc436c5e21a8ff8f650398441749dd77e3e56", "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:...
#ifndef VKST_RENDERER_H #define VKST_RENDERER_H #include <plat/filesystem.h> #include <wsi/window.h> #include <vk/result.h> #include <gsl.h> #include <filesystem> #include <vector> // Holds all of the data for a surface. This includes the swapchain, // renderpass, and framebuffers. // Surfaces must be resized when th...
{ "alphanum_fraction": 0.7359430605, "avg_line_length": 36.56133829, "ext": "h", "hexsha": "621b47c89059a0b2021aa751fefba4b409f1cf49", "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 <string.h> #include <stdlib.h> #include <stdbool.h> #include <glob.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_vect...
{ "alphanum_fraction": 0.5686085456, "avg_line_length": 42.3784946237, "ext": "c", "hexsha": "f87fe86a92825d0dfff0034d8dd404538f22cc4d", "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:...
/* ** ** Lit: ** Y.Yu, S.T. Acton: ** Speckle reducing anisotropic diffusion. ** IEEE Trans Image Proc., Vol. 11, No. 11, Nov 2002 ** ** G.Lohmann, MPI-CBS, 2008 */ #include <viaio/Vlib.h> #include <viaio/VImage.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_math.h> #define ...
{ "alphanum_fraction": 0.5302543838, "avg_line_length": 20.0445544554, "ext": "c", "hexsha": "958e3f0fb113e84a6f7ef9266f576f89f5a7dd1d", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2022-03-22T08:05:46.000Z", "max_forks_repo_forks_event_min_datetime": "2017-09-29T10:33:...
#include <stdio.h> #include <stdlib.h> #include <cblas.h> #include "matrix.h" void Matrix_Multiply(Matrix a, Matrix b, Matrix c) { /* for dimentions: * a[m*k],b[k*n],c[m*n] * We use: * RowMajor, NoTrans, NoTrans, m, n, k, 1, A, k, B, n, 0, C, n); */ cblas_dgemm(CblasRowMajor, CblasNoTrans,...
{ "alphanum_fraction": 0.4872641509, "avg_line_length": 26.5, "ext": "c", "hexsha": "fe558c164edc5f3e128f0692ab51607bcf22a622", "lang": "C", "max_forks_count": 34, "max_forks_repo_forks_event_max_datetime": "2018-11-17T13:45:43.000Z", "max_forks_repo_forks_event_min_datetime": "2017-01-04T13:02:39.000Z"...
/* */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include "spc_FITScards.h" #include "aXe_grism.h" #include "aXe_utils.h" #include "spce_PET.h" #include "inout_aper.h" #include "trace_conf.h" #include "aper_conf.h" #include "dis...
{ "alphanum_fraction": 0.6588686832, "avg_line_length": 31.6271676301, "ext": "c", "hexsha": "51dda34d596eb7ac1df96eb8a4431cc7a16deb51", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#pragma once #include <string> #include <gsl/gsl_complex.h> #include "Expression.h" #include "UnitConversionExpression/Units.h" class BaseUnitExpression: public Expression { UnitType type; std::string abbr; double val; BaseUnitExpression(const std::string& unit, double val); BaseUnitExpression...
{ "alphanum_fraction": 0.7167070218, "avg_line_length": 31.1698113208, "ext": "h", "hexsha": "c5950c56fe153962ba975f2f4bb589a8f88118c7", "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 PARALLEL_PROCESSING_H_2FVRLMCH #define PARALLEL_PROCESSING_H_2FVRLMCH #include <chrono> #include <gsl/gsl> #include <iomanip> #include <ios> #include <iostream> #include <sens_loc/util/console.h> #include <sens_loc/util/progress_bar_observer.h> #include <taskflow/taskflow.hpp> #include <type_traits> namespace...
{ "alphanum_fraction": 0.530941704, "avg_line_length": 34.84375, "ext": "h", "hexsha": "9d1a7f542a87b07250ad71359b9b0d5bacacfabc", "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": "5c83...
/* Copyright [2017-2019] [IBM Corporation] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
{ "alphanum_fraction": 0.4973570611, "avg_line_length": 39.6195462478, "ext": "h", "hexsha": "d61e8b9c533109c8048140dd927848cdfe973f8e", "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":...
//===--- Sudoku/precompiled_basic.h ---===// // // Lists the standard system includes consumed by this library, // or project specific include files that are used frequently, but // are changed infrequently. // // - To be used as part of a precompiled header configuration for a proje...
{ "alphanum_fraction": 0.6221142163, "avg_line_length": 28.3793103448, "ext": "h", "hexsha": "6e1b4bac5b35812523cc2750435b1fe7a2a40118", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-04-20T16:26:42.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-20T16:26:...
/* ieee-utils/fp-unknown.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your op...
{ "alphanum_fraction": 0.741252302, "avg_line_length": 35.0322580645, "ext": "c", "hexsha": "6e4ac96aa75ba5df7a63fe7ee56ef38260b77d7a", "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...
#ifndef EXECUTION_HANDLER_INCLUDE #define EXECUTION_HANDLER_INCLUDE #include <map> #include <gsl/gsl> #include "executionContent.h" namespace execHelper { namespace test { namespace baseUtils { class ExecutionHandler { public: void add(const std::string& key, ExecutionContent&& content) noexcept; const E...
{ "alphanum_fraction": 0.7196090409, "avg_line_length": 28.224137931, "ext": "h", "hexsha": "d5a1b09da561ffdfad0621d18b7f00aaa35bd5b2", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-07-03T11:11:19.000Z", "max_forks_repo_forks_event_min_datetime": "2018-07-03T11:11:1...
/* integration/romberg.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.5487347704, "avg_line_length": 25.8666666667, "ext": "c", "hexsha": "581d087ef654d67751520abe6db8f403b41e5b32", "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:...
/*solver/integration.c * * Function for numerical integration * using quadrature and Monte Carlo * methods. * * Author: Benjamin Vatter. * email: benjaminvatterj@gmail.com * date: 15 August 2015 */ #include <stdlib.h> #include <assert.h> #include <math.h> #include <stdio.h> #include "integration.h" #include "dbg.h" #i...
{ "alphanum_fraction": 0.6760617761, "avg_line_length": 25.145631068, "ext": "c", "hexsha": "33b9c3174628f435eecf85663a579c41dd85de96", "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 "GeneralFunctions.h" #include <math.h> #include <stdio.h> #include <iostream> #include <time.h> // #include <gsl/gsl_sf_exp.h> #include <gsl/gsl_sf_log.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_math.h> #include "gsl/gsl_c...
{ "alphanum_fraction": 0.7206451613, "avg_line_length": 70.4545454545, "ext": "h", "hexsha": "862df605f86a939bc39f2e8707b2690c7b2d6618", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2020-02-18T07:18:38.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-04T01:53:...
// BSD 3-Clause License // // Copyright (c) 2018, Gregory Meyer // 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 // n...
{ "alphanum_fraction": 0.7391304348, "avg_line_length": 29.3448275862, "ext": "h", "hexsha": "2e1d61fcd0c9af09d517a63b33339143eb140d1a", "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> #ifndef NOMPI #include <mpi.h> #endif #include <gsl/gsl_math.h> #include <gsl/gsl_integration.h> #include "allvars.h" #include "proto.h" /*! \file driftfac.c * \brief compute loop-up tables for prefactors in cosmological integration */ ...
{ "alphanum_fraction": 0.6564296272, "avg_line_length": 26.8237885463, "ext": "c", "hexsha": "533cb797f87ba7ac8d7feadc1c0845fff839dc78", "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:0...
#ifndef SIGSCANNERMEMORYDATA_HHHHH #define SIGSCANNERMEMORYDATA_HHHHH #include <vector> #include <gsl/span> #include <string> namespace MPSig { class SigScannerMemoryData { gsl::span<const char> m_refData; public: explicit SigScannerMemoryData(gsl::span<const char> data); bool IsInRan...
{ "alphanum_fraction": 0.6819727891, "avg_line_length": 22.6153846154, "ext": "h", "hexsha": "ef846bc9b7561a6bd6b8adae976cca330e98b1be", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights // reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for effic...
{ "alphanum_fraction": 0.5698075974, "avg_line_length": 44.306010929, "ext": "h", "hexsha": "f5f1dde6de935200236309dd3dc37bc9db9628a6", "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 subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. // // Principal developer : Felipe Bordeu (Felipe.Bordeu@ec-nantes.fr) // #include <iostream> #ifdef MATLAB_MEX_FILE #include "mex.h" #ifdef __cplusplus extern "C" bool utIsInterr...
{ "alphanum_fraction": 0.5895392007, "avg_line_length": 35.3590733591, "ext": "h", "hexsha": "09474348b33f80f4b6989cc344c229cd776ff979", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-11-26T22:26:12.000Z", "max_forks_repo_forks_event_min_datetime": "2019-11-26T22:26:...
static char help[] = "Load a matrix A and right-hand-side b from binary files (PETSc format).\n" "Then solve the system A x = b using KSPSolve().\n" "Example. First save a system from tri.c:\n" " ./tri -ksp_view_mat binary:A.dat -ksp_view_rhs binary:b.dat\n" "then load it and solve:\n" " ./loadsolve -fA A.dat ...
{ "alphanum_fraction": 0.6451282051, "avg_line_length": 37.5, "ext": "c", "hexsha": "7201b0f82597dd923a9841756774d127442afa32", "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": "706411c...
#pragma once #include <cstring> #include <string> #include <tuple> #include <utility> #include <gsl/assert> namespace xmol::utils { constexpr static int powers_of_10[] = {1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000}; template <int LEN> inline std::pair<bool, int> parse_uint_fixed_leng...
{ "alphanum_fraction": 0.6267036267, "avg_line_length": 27.9290322581, "ext": "h", "hexsha": "3adb7d7711e6a9545e749e85805decf6141ed373", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:05:54.000Z", "max_forks_repo_forks_event_min_datetime": "2018-06-04T09:16:...
/* cdf/gauss.c * * Copyright (C) 2002, 2004 Jason H. Stover. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. *...
{ "alphanum_fraction": 0.6098378983, "avg_line_length": 20.3295454545, "ext": "c", "hexsha": "235c978c8cf7a8cceef25f31130c0a4a13825439", "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...
#if !defined(fvSupport_h) #define fvSupport_h #include <petsc.h> PETSC_EXTERN PetscErrorCode DMPlexReconstructGradientsFVM_MulfiField(DM dm, PetscFV fvm, Vec locX, Vec grad); PETSC_EXTERN PetscErrorCode DMPlexGetDataFVM_MulfiField(DM dm, PetscFV fv, Vec *cellgeom, Vec *facegeom, DM *gradDM); #endif
{ "alphanum_fraction": 0.8085808581, "avg_line_length": 33.6666666667, "ext": "h", "hexsha": "46af1cef8747172cb543c74b3f02f635bb4d7908", "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 _CSPLINE_H_ #define _CSPLINE_H_ #include <iostream> #include <sstream> #include <vector> #include <cmath> #include <vector_types.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_linalg.h> template <typename T> class cspline{ std::vector<T> y; std::vector<T> t; std::vect...
{ "alphanum_fraction": 0.5291735689, "avg_line_length": 32.3392857143, "ext": "h", "hexsha": "1647a2656a83ad786ffc71dc940dede9d1f6af33", "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":...
/* sum/levin_u.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007, 2009 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License,...
{ "alphanum_fraction": 0.5139174551, "avg_line_length": 27.7300380228, "ext": "c", "hexsha": "81dcc75eeaa33c30732d4b629bab75362f59b360", "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...
/* * testgen.c * Patrick Alken * * Compile: gcc -g -O2 -Wall -o testgen testgen.c -lm -lgsl -lcblas -latlas * * Usage: testgen [options] * * -i : incremental matrices * -z : compute Schur vectors and test them * -n size : size of matrices * -l lower-bound : lower bound for matr...
{ "alphanum_fraction": 0.5365957447, "avg_line_length": 23.0392156863, "ext": "c", "hexsha": "ec24392f5b72fcb5131b526d14fae33eeadffd9a", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
#include <assert.h> #include <cblas.h> #include <math.h> #include <stdlib.h> #include <string.h> #include "cnn_calc.h" #include "cnn_init.h" #include "cnn_private.h" inline void cnn_restrict(float* mat, int size, float limit) { for (int __i = 0; __i < size; __i++) { mat[__i] = fminf(mat[__i], limit); ...
{ "alphanum_fraction": 0.5670337155, "avg_line_length": 25.4595375723, "ext": "c", "hexsha": "2e4dc5a6d1518a14487dccadfce3dab53f21e15b", "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 <map> #include "DrawableGameComponent.h" #include "FullScreenRenderTarget.h" #include "FullScreenQuad.h" namespace Library { class Texture2D; } namespace Rendering { enum class DistortionMaps { Glass, Text, NoD...
{ "alphanum_fraction": 0.7816504357, "avg_line_length": 28.6911764706, "ext": "h", "hexsha": "bc916c2582f79b524795313a4eb1bd0c13791ae3", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/*-------------------------------------------------------------------- * $Id$ * * This file is part of libRadtran. * Copyright (c) 1997-2012 by Arve Kylling, Bernhard Mayer, * Claudia Emde, Robert Buras * * ######### Contact info: http://www.libradtran.org ######### * * This program...
{ "alphanum_fraction": 0.5642450751, "avg_line_length": 31.9737118822, "ext": "c", "hexsha": "c07a94a5c6da5f25b970b06bc122afe22d3775d1", "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 libcv_ctf #define libcv_ctf #include "Array.h" #import "Ellipse.h" #include "MRC.h" #include "Image.h" #include "util.h" #include "cvtypes.h" #include <fftw3.h> #include <math.h> #include "geometry.h" #include <gsl/gsl_math.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_eigen.h> #in...
{ "alphanum_fraction": 0.7055214724, "avg_line_length": 23.5921052632, "ext": "h", "hexsha": "f742c890c255111ca0c6d858d456bd2f2f5e51b1", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-09-05T20:58:37.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-05T20:58:...
/* specfunc/hyperg_2F0.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your o...
{ "alphanum_fraction": 0.6553372278, "avg_line_length": 29.421875, "ext": "c", "hexsha": "022b5cb58afe5a33651aa2c697d30ba36f59bd33", "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....
// -*- C++ -*- Copyright (c) Microsoft Corporation; see license.txt #ifndef MESH_PROCESSING_LIBHH_MY_LAPACK_H_ #define MESH_PROCESSING_LIBHH_MY_LAPACK_H_ #include "Hh.h" #if defined(HH_USE_LAPACK_INTEGER) // Google #include <lapack.h> using lapack_int = lapack::integer; #elif !(defined(_WIN32) || defined(_...
{ "alphanum_fraction": 0.6506024096, "avg_line_length": 40.6170212766, "ext": "h", "hexsha": "eb444d7314ee686b87954746fd1c0fd889510495", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-04-05T05:21:43.000Z", "max_forks_repo_forks_event_min_datetime": "2019-04-05T05:21:...
// // Created by pedram pakseresht on 2/18/21. // static char help[] = "settling in quiescent fluid"; #include <petsc.h> #include "incompressibleFlow.h" #include "mesh.h" #include "particleInertial.h" #include "particles.h" #include "particleInitializer.h" #include "petscviewer.h" static PetscErrorCode uniform_u(Pe...
{ "alphanum_fraction": 0.6783996654, "avg_line_length": 36.2297979798, "ext": "c", "hexsha": "c347bce39f98b175a932f3fcc78c144db2ad0083", "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":...
/* interpolation/cspline.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the Licen...
{ "alphanum_fraction": 0.5645442998, "avg_line_length": 26.4621848739, "ext": "c", "hexsha": "37c73d4ae1b218eca9cea206f64bcc741cb794bf", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include "compearth.h" #ifdef COMPEARTH_USE_MKL #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wreserved-id-macro" #pragma clang diagnostic ignored "-Wstrict-prototypes" #endif #include <...
{ "alphanum_fraction": 0.4963271514, "avg_line_length": 31.2571582928, "ext": "c", "hexsha": "fffe93dabcae2db33b27ed8f59be55e424960289", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-02-28T13:42:40.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-08T00:13:...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> int main(int argc, char *argv[]) { unsigned long seed = 1234; int n = 10; if (argc > 1) n = atoi(argv[1]); gsl_rng_env_setup(); gsl_rng *rng = gsl_rng_alloc(gsl_rng_mt19937); g...
{ "alphanum_fraction": 0.5881188119, "avg_line_length": 21.9565217391, "ext": "c", "hexsha": "5e8cd47ef7ffca185cc21f68658bd5764f75b6ac", "lang": "C", "max_forks_count": 59, "max_forks_repo_forks_event_max_datetime": "2022-03-21T00:27:22.000Z", "max_forks_repo_forks_event_min_datetime": "2015-11-26T11:44...
#include <pthread.h> #include <stdlib.h> #include <string.h> #include <gsl/gsl_math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> // MAX and MIN aren't defined in the standard library. O: #define MAX(x, y) (((x) > (y)) ? (x) : (y)) #define MIN(x, y) (((x) < (y)) ? (x) : (y)) typedef struct PopulationParam...
{ "alphanum_fraction": 0.6453804348, "avg_line_length": 43.6610169492, "ext": "h", "hexsha": "4b5838255eb2f9bdc9395c2ea982b01e3a97edfb", "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 VECTORS_H #define VECTORS_H #include <cmath> #include <gsl/gsl_blas.h> #include "types.h" #include "cuda.h" __host__ __device__ void angle_ab(const double dir1[3], const double vel[3], double dir2[3]); __host__ __device__ double doppler(const double dir1[3], const double vel[3]); __host__ __device__ void scat...
{ "alphanum_fraction": 0.6737226277, "avg_line_length": 24.4642857143, "ext": "h", "hexsha": "77931a367071071204d5f2a55bad88864cb0df4d", "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 UTIL_H #define UTIL_H #define PRECISION 2 #define MAX_LINE_LENGTH 9046 #define USE_CBLAS #define USE_LAPACK #include <assert.h> #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <time.h> #ifdef USE_CBLAS #include <cblas.h> #endif ...
{ "alphanum_fraction": 0.536038713, "avg_line_length": 41.1853146853, "ext": "h", "hexsha": "0b7993c7e2f9a76f8394d22e469bcea7e2f4ce42", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-01-09T04:22:32.000Z", "max_forks_repo_forks_event_min_datetime": "2020-11-27T07:12:3...
/* Copyright (C) 2015 Atsushi Togo */ /* All rights reserved. */ /* This file is part of phonopy. */ /* 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 abo...
{ "alphanum_fraction": 0.6969778016, "avg_line_length": 38.1530612245, "ext": "h", "hexsha": "02d54e396607e921f589c0d76577dfd61b6e47ed", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2019-01-30T08:36:46.000Z", "max_forks_repo_forks_event_min_datetime": "2018-08-02T13:53:...
/* obtainerr2_par.c written by Eunseok Lee function: solve a linear equation system and obtain the squared error v1: Feb 2, 2018 */ #include <stdio.h> #include <stdlib.h> #include <math.h> //#include <cem.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> double obtainerr2...
{ "alphanum_fraction": 0.5503579952, "avg_line_length": 27.9333333333, "ext": "c", "hexsha": "a196102587b20a3c1390d43880671910f0768a72", "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":...
/* -*- c++ -*- */ /* * Copyright (C) 2017 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio 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, or (at your op...
{ "alphanum_fraction": 0.5971479501, "avg_line_length": 24.5245901639, "ext": "c", "hexsha": "d34ccea6c6f43e8ea5c2a29a37e51a1cc967d045", "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/vector.c * * 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, or (at *...
{ "alphanum_fraction": 0.7698324022, "avg_line_length": 24.4090909091, "ext": "c", "hexsha": "05ffab26b4c4033f3e719165d874f4911503143e", "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:...
/******************************************************************** * BenchIT - Performance Measurement for Scientific Applications * Contact: developer@benchit.org * * $Id: kernel_main.c 1 2009-09-11 12:26:19Z william $ * $URL: svn+ssh://william@rupert.zih.tu-dresden.de/svn-base/benchit-root/BenchITv6/kernel/nu...
{ "alphanum_fraction": 0.6488155242, "avg_line_length": 30.5230769231, "ext": "c", "hexsha": "aac2fee6d3593d18c7c210ad689c9fcd4cf03944", "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" #ifdef CR_DIFFUSION_GREEN #include "cosmic_rays.h" void compute_diff_weights(int target, int mode); void scatter_diffusion(int target, int mode); #define m_...
{ "alphanum_fraction": 0.5685348577, "avg_line_length": 25.8330658106, "ext": "c", "hexsha": "2d51081502288f4c4b2ad4bf99a5f20b5acf95b9", "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 pzgbrdb.c * * PLASMA auxiliary routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Azzam Haidar * @date 2011-05-15 * @precisions normal z -> c d s * **/ #include "common.h" #include...
{ "alphanum_fraction": 0.5090786315, "avg_line_length": 37.3333333333, "ext": "c", "hexsha": "0275712d274a6bb97e357210800135f544f9cc12", "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 header defining useful physical constants (values taken from LAL). * Also defines boolean conventions. * */ #ifndef _CONSTANTS_H #define _CONSTANTS_H #define _XOPEN_SOURCE 500 #ifdef __GNUC__ #define UNUSED __attribute__ ((unused)) #...
{ "alphanum_fraction": 0.6583446404, "avg_line_length": 35.0952380952, "ext": "h", "hexsha": "e48f96f92eef8a0dc2f00a63b09f01523f530a9d", "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:...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include <codecvt> #include <string> #include <locale> #include <gsl/gsl> namespace mira { inline std::string utf16_to_utf8(const wchar_t* input) { std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter...
{ "alphanum_fraction": 0.6122599705, "avg_line_length": 24.1785714286, "ext": "h", "hexsha": "8df3646470491bb0c8c828d44f12dc1eea22a166", "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...
#ifndef CG_H_ #define CG_H_ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "util.h" #include "parameters.h" #include <cblas.h> void cgsolver( double *A, double *b, double *x, int m, int n ); double * init_source_term(int n, double h); void smvm(int m, const double* val, const ...
{ "alphanum_fraction": 0.679245283, "avg_line_length": 23.85, "ext": "h", "hexsha": "a424f0d3b45e04ed22e91e8c8bc559a849d21334", "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": "0bf3a81...
/// /// @file /// /// @brief This file contains functions and macros that are used in the sanity /// checks. /// /// @author Mirko Myllykoski (mirkom@cs.umu.se), Umeå University /// /// @internal LICENSE /// /// Copyright (c) 2019-2020, Umeå Universitet /// /// Redistribution and use in source and binary forms, with or...
{ "alphanum_fraction": 0.5288976246, "avg_line_length": 31.4631578947, "ext": "h", "hexsha": "92d9aa30d0011880227fb0953c091cc6e00f9774", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2020-04-14T09:41:23.000Z", "max_forks_repo_forks_event_min_datetime": "2019-04-30T12:14:...
#ifndef _EM_LA_H_ #define _EM_LA_H_ 1 #include <petsc.h> struct EMContext; PetscErrorCode access_vec(Vec, std::vector<PetscInt> &, int, double *); PetscErrorCode setup_ams(EMContext *); PetscErrorCode destroy_ams(EMContext *); PetscErrorCode create_pc(EMContext *); PetscErrorCode destroy_pc(EMContext *); PetscErro...
{ "alphanum_fraction": 0.7869415808, "avg_line_length": 25.3043478261, "ext": "h", "hexsha": "9c3aec455363042c12b60ac9cd105df02d534f56", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
// // Copyright (c) 2009, Markus Rickert // 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 condit...
{ "alphanum_fraction": 0.7157778999, "avg_line_length": 30.8305084746, "ext": "h", "hexsha": "5830386a1c346daec1e62af981f0962ef06cc7fa", "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 SETTINGSWIDGET_H #define SETTINGSWIDGET_H #include <QWidget> #include "utilities/usersettings.h" #include <gsl/gsl> #include <memory> class QDoubleSpinBox; namespace Ui { class DisparitySettingsWidget; } class DisparitySettingsWidget : public QWidget { Q_OBJECT public: explicit DisparitySettingsWid...
{ "alphanum_fraction": 0.7270875764, "avg_line_length": 21.8222222222, "ext": "h", "hexsha": "182e9c1770f346eece1ad8b396a5a3cf1bfad504", "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:...
/** Copyright (c) 2014, Konstantinos Chatzilygeroudis All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and ...
{ "alphanum_fraction": 0.5956127802, "avg_line_length": 24.1034482759, "ext": "h", "hexsha": "32a8c2fe2c9eb0ac0cbdfa3c184c810b6e758784", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-05-28T02:34:33.000Z", "max_forks_repo_forks_event_min_datetime": "2015-05-15T00:32:...
/* * mcmc_lotkavolterra.c * * Created on: 15/11/2015 * Author: Laura Ferrer */ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #define USAGE "./mcmc_lotkavolterra.x n_steps n_burn" void leer(double *tiempo, doub...
{ "alphanum_fraction": 0.5156057495, "avg_line_length": 19.6370967742, "ext": "c", "hexsha": "ff34d0f9197045bddef1b4f8972b3e0abbafac5d", "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 <err.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_odeiv2.h> #define X y[0] #define V_X y[1] #define Y y[2] #define V_Y y[3] const double g = 9.81; /* m/s^2 */ const double v_0 = 700.0; /* m/s */ const double B2_m = 4.0e-5; /* 1/m */...
{ "alphanum_fraction": 0.5665594855, "avg_line_length": 25.9166666667, "ext": "c", "hexsha": "88ec89e597463e54c21416fe85c7a350af7c70ff", "lang": "C", "max_forks_count": 59, "max_forks_repo_forks_event_max_datetime": "2022-03-21T00:27:22.000Z", "max_forks_repo_forks_event_min_datetime": "2015-11-26T11:44...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
{ "alphanum_fraction": 0.6499870104, "avg_line_length": 34.9752650177, "ext": "c", "hexsha": "5cb2289b37d91727fbb2e162d7bd740d08d74fbf", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2022-01-05T03:52:29.000Z", "max_forks_repo_forks_event_min_datetime": "2019-02-14T16:06:...
/* specfunc/airy.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 option)...
{ "alphanum_fraction": 0.6553979444, "avg_line_length": 27.0643678161, "ext": "c", "hexsha": "18b78107aa8de1608d93e7e45126db2c29774a0e", "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...
/* vectorviews.c */ // 8.4.13 Example programs for matrices of gsl-ref.pdf // GNU GSL GNU Scientific Library reference book // pp. 99,100 /* Compiling advice: gcc vectorviews.c -lgsl -lgslcblas -lm */ #include <math.h> #include <stdio.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_blas.h> int main (void) { ...
{ "alphanum_fraction": 0.5940054496, "avg_line_length": 17.0697674419, "ext": "c", "hexsha": "dd1799286a2cda22913587d917d3c966cc886f19", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2021-03-01T07:13:35.000Z", "max_forks_repo_forks_event_min_datetime": "2017-01-24T19:18...
#include <math.h> #include <gsl/gsl_math.h> #include "egsl_macros.h" int main() { egsl_push(); /* Creates a vector from a double array */ double p[2] = {1,2}; val vp = egsl_vFa(2,p); /* Creates a matrix from a double array */ double md[4] = { 1, 2, 0, -1 }; val m = egsl_vFda(2,2,md); /* ...
{ "alphanum_fraction": 0.5782493369, "avg_line_length": 17.9523809524, "ext": "c", "hexsha": "8439a5d60558ebccf8f5444d8b251bd0a4c9b567", "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 OPENMC_MATERIAL_H #define OPENMC_MATERIAL_H #include <memory> // for unique_ptr #include <string> #include <unordered_map> #include <vector> #include <gsl/gsl> #include <hdf5.h> #include "pugixml.hpp" #include "xtensor/xtensor.hpp" #include "openmc/constants.h" #include "openmc/bremsstrahlung.h" #include "op...
{ "alphanum_fraction": 0.6013043478, "avg_line_length": 32.8571428571, "ext": "h", "hexsha": "9adb9ff97df39079e7058830f872e60be184f75f", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2020-03-22T20:54:48.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-31T21:03:...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once #include <type_traits> #include <algorithm> #include <limits> #include <iostream> #include <cstring> #include "seal/memorymanager.h" #include "seal/serialization.h" #include "seal/util/pointer.h" #include "sea...
{ "alphanum_fraction": 0.5724215433, "avg_line_length": 34.8202898551, "ext": "h", "hexsha": "7609262c2144faaed7d36f8c8f365a01ef8d0c24", "lang": "C", "max_forks_count": 11, "max_forks_repo_forks_event_max_datetime": "2021-12-10T02:17:06.000Z", "max_forks_repo_forks_event_min_datetime": "2019-12-02T22:02...
/* * test_suite.h * * Created on: Oct 16, 2013 * Author: vbonnici */ #ifndef TEST_SUITE_H_ #define TEST_SUITE_H_ /* * a set of functions for binomial tests, or other distribution */ //#define DEBUG_TEST_SUITE_H_ #include <stdio.h> #include <stdlib.h> #include <iostream> #include <math.h> #include <v...
{ "alphanum_fraction": 0.737746891, "avg_line_length": 26.2884615385, "ext": "h", "hexsha": "93211e10d2f6959c5337de03a4984f285f76d419", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
/* cdf/negbinom.c * * Copyright (C) 2004 Jason H. Stover. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * *...
{ "alphanum_fraction": 0.6344026549, "avg_line_length": 21.5238095238, "ext": "c", "hexsha": "c2c17e7fe1ec931bd2faed366c0c2e82a5490da0", "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...
/* bspline/greville.c * * Copyright (C) 2006, 2007, 2008, 2009 Patrick Alken * Copyright (C) 2008, 2011 Rhys Ulerich * * 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.5825529818, "avg_line_length": 36.4491017964, "ext": "c", "hexsha": "585a38e9e59b662ecdb5f62d2abe61fe4c633584", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
//Include guard #ifndef SEQUENCE_H #define SEQUENCE_H //Forward declared dependencies //Included dependencies #include <vector> #include <string> #include <gsl/gsl_rng.h> class Sequence{ private: //Internal variables std::vector<char> seq; public: Sequence(); Sequence(int length); Sequence(...
{ "alphanum_fraction": 0.6692111959, "avg_line_length": 19.65, "ext": "h", "hexsha": "80700d79ad4a1268dbb3ea5def779bca9b02236b", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-06-12T13:25:36.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-12T13:25:36.000Z"...
static char help[] = "ODE system solver example using TS. Solves N-dimensional system\n" " dy/dt = G(t,y)\n" "with y(t0) = y0 to compute y(tf). Serial only.\n" "Sets TS type to Runge-Kutta. The implemented example has\n" "G_0 = y_1, G_1 = - y_0 + t, y_0(0) = 0, y_1(0) = 0. The exact solution is\n" "y_0(t) = t - ...
{ "alphanum_fraction": 0.6418518519, "avg_line_length": 32.1428571429, "ext": "c", "hexsha": "f81e299f1ac3ced2fd966c16e230dc29d8f1d181", "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_test.h> #include <gsl/gsl_ieee_utils.h> #include <gsl/gsl_math.h> #include "gsl_cblas.h" #include "tests.h" void test_trmv (void) { const double flteps = 1e-4, dbleps = 1e-6; { int order = 101; int trans = 111; int uplo = 121; int diag = 131; int N = 1; int lda = 1; float A[] ...
{ "alphanum_fraction": 0.4937482634, "avg_line_length": 22.7522988506, "ext": "c", "hexsha": "82bc18d37ff5dda959607b53d8b24f682c04e86c", "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:...
/* Linear algebra operations in double-precision matrices. * * Implements ESL_DMATRIX (double-precision matrix) and * ESL_PERMUTATION (permutation matrix) objects. * * Table of contents: * 1. The ESL_DMATRIX object * 2. Debugging/validation code for ESL_DMATRIX * 3. Visualization tools * 4. The ESL_...
{ "alphanum_fraction": 0.5512385712, "avg_line_length": 31.7512594458, "ext": "c", "hexsha": "367ea314a9b1d9607f1d0cd11e8b87ac7468b38d", "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-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 The Boeing Company * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program i...
{ "alphanum_fraction": 0.710718232, "avg_line_length": 31.6433566434, "ext": "h", "hexsha": "1090885d5715c001872dddd875c72ac0a326cb19", "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": ...
// // gemm.h // Linear Algebra Template Library // // Created by Rodney James on 1/30/12. // Copyright (c) 2012 University of Colorado Denver. All rights reserved. // #ifndef _gemm_h #define _gemm_h /// @file gemm.h Computes general matrix-matrix products. #include <cctype> #include "latl.h" namespace LATL { ...
{ "alphanum_fraction": 0.4126566416, "avg_line_length": 27.3287671233, "ext": "h", "hexsha": "fdf1e9311356e182ebf2da156a4efcb509f6eba5", "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:...
/* monte/miser.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Michael Booth * * 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) an...
{ "alphanum_fraction": 0.551511254, "avg_line_length": 22.8005865103, "ext": "c", "hexsha": "4e5932aa1d58da2b8fa0045867a0b9a04d8aa5e8", "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...
/** * @file MeshAdaptors.h * * @brief This file contains mesh <-> Eigen matrix adaptors * * @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.6707905854, "avg_line_length": 31.8653846154, "ext": "h", "hexsha": "88404ba1bc3b6faae517d0bc40ff7f4a037e649a", "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 VEC3_H #define VEC3_H #include <cmath> #include <iostream> #include <gsl/gsl_matrix.h> #include <gsl/gsl_linalg.h> // you need to add the following libraries to your project : gsl, gslcblas class Vec3 { private: float mVals[3]; public: Vec3() {} Vec3( float x , float y , float z ) { mVals[...
{ "alphanum_fraction": 0.4449648712, "avg_line_length": 29.5308411215, "ext": "h", "hexsha": "085a5dd0b20b8460af4309a00b6447f05090970c", "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 <stdio.h> #include "extra_compile_macros.h" #if USE_GSL == 1 #include <gsl/gsl_sf_gamma.h> #endif double nan_density(double t, double *pars, double *q, int n_dim) { return NAN; } double nan_value(double t, double *pars, double *q, int n_dim) { return NAN; } void nan_grad...
{ "alphanum_fraction": 0.5374982189, "avg_line_length": 33.4195767196, "ext": "c", "hexsha": "3f820ef9ad22e2051c24b79bcf72153651db886e", "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 INCLUDED_BLAS_L3_SYRK_H #define INCLUDED_BLAS_L3_SYRK_H #include <complex> #include <cblas.h> namespace blas{ void syrk( CBLAS_ORDER order, CBLAS_UPLO uplo, CBLAS_TRANSPOSE trans, std::size_t n, std::size_t k, float alpha, const float* A, std::size_t lda, float beta, float* C, std::si...
{ "alphanum_fraction": 0.6155703078, "avg_line_length": 39.4523809524, "ext": "h", "hexsha": "ff23941bea4eb73a133d8cdc7ad811f7e1d5243b", "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 Multiply Test Benchmark * * * * by * * Elliott Forney * * 3.15.2010 * \********************************/ /* * Libraries */ #include <stdio.h> #include <stdlib.h> #include <std...
{ "alphanum_fraction": 0.5769761029, "avg_line_length": 20.1481481481, "ext": "c", "hexsha": "174bfd46ae9e8ee435b02d07045feba0ed103016", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
{ "alphanum_fraction": 0.6039725125, "avg_line_length": 24.5902777778, "ext": "c", "hexsha": "a340d405c50ef9e211278fa82e8199623cdfb402", "lang": "C", "max_forks_count": 68, "max_forks_repo_forks_event_max_datetime": "2021-08-25T04:54:26.000Z", "max_forks_repo_forks_event_min_datetime": "2015-12-14T21:57...
#pragma once #include "SimpleEvaluator.h" #include "BooleanDAG.h" #include "Interface.h" #include "SuggestionGenerator.h" #include <map> #include <set> #ifndef _NOGSL #include <gsl/gsl_vector.h> #else #include "FakeGSL.h" #endif class SimpleSuggestionGenerator: public SuggestionGenerator { vector<int> nodesToSug...
{ "alphanum_fraction": 0.6349631614, "avg_line_length": 27.6481481481, "ext": "h", "hexsha": "37d5fcdf3180ef159caab8babba583a342392d93", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-12-06T01:45:04.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-04T20:47:...
/* Copied from the article: http://amitsaha.github.io/site/notes/articles/c_scientific/article.html */ /*Listing-1: gsl_vector.c*/ /* Simple demo of the vector support in GSL * Also uses the random number generation feature */ #include <stdio.h> #include <gsl/gsl_vector.h> /*For Vectors*/ #include <gsl/gsl_rng.h>...
{ "alphanum_fraction": 0.6259378349, "avg_line_length": 20.2826086957, "ext": "c", "hexsha": "86d291ef0009b38ba1fbb203dbdda330c7a55153", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* randist/gsl_randist.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 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 L...
{ "alphanum_fraction": 0.7062365591, "avg_line_length": 50.5434782609, "ext": "h", "hexsha": "c909e07549397375826700946b2171795f3c7078", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
#include <cblas.h> #ifdef LAPACKE_FOLDER #include <lapacke/lapacke.h> #include <lapacke/lapacke_utils.h> #else #include <lapacke.h> #include <lapacke_utils.h> #endif #include "math.h" #include "stdbool.h" #include "stdio.h" #include "string.h" #include "sv_matrix.h" #include <limits.h> #include <stdarg.h> #include "...
{ "alphanum_fraction": 0.6495795415, "avg_line_length": 30.5131810193, "ext": "c", "hexsha": "c2303661b45f9b374897a1cbb20a43d74ffcd829", "lang": "C", "max_forks_count": 52, "max_forks_repo_forks_event_max_datetime": "2022-03-21T07:50:56.000Z", "max_forks_repo_forks_event_min_datetime": "2020-03-26T09:09...