Search is not available for this dataset
text
string
meta
dict
/* multimin/gsl_multimin.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Fabrice Rossi * * 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.7051456575, "avg_line_length": 31.1271186441, "ext": "h", "hexsha": "2cb4bf3a31e465faaf50922854f22cb236916288", "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: BlshIndex.h * Author: chteflio * * Created on March 4, 2016, 3:19 PM */ #ifndef BLSHINDEX_H #define BLSHINDEX_H #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_sf_gamma.h> #include <gsl/gsl_sf_result.h> #include <gsl/gsl_errno.h> namespace mips { class BlshIndex :...
{ "alphanum_fraction": 0.4289418247, "avg_line_length": 33.1774193548, "ext": "h", "hexsha": "9c8201dd2bb4f888075d84981bba49d3b7aa877a", "lang": "C", "max_forks_count": 9, "max_forks_repo_forks_event_max_datetime": "2019-12-04T06:37:41.000Z", "max_forks_repo_forks_event_min_datetime": "2015-09-16T08:21:...
#pragma once #include "SimpleEvaluator.h" #include "BooleanDAG.h" #include "Interface.h" #include "SuggestionGenerator.h" #include "OptimizationWrapper.h" #include "MaxOptimizationWrapper.h" #include "BoolNodeSimplifier.h" #include "NumDebugger.h" #include <map> #include <set> #ifndef _NOGSL #include <gsl/gsl_vector....
{ "alphanum_fraction": 0.4512815365, "avg_line_length": 35.0363423212, "ext": "h", "hexsha": "46803609ae8bb34856a60f1a8ec9e16cc0cbd5a0", "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:...
#include <math.h> #include <string.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> extern void getSeries(int dataPoints, double dt, int nComps, int nTypes, int* epsilon, int capacity, int* curState, int rng_seed, int* output);
{ "alphanum_fraction": 0.7426160338, "avg_line_length": 33.8571428571, "ext": "h", "hexsha": "cf2730c4a1f97f6b86cf99a5acf124e2bb193ae5", "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/sytd.c * * Copyright (C) 2001, 2007 Brian Gough * Copyright (C) 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 *...
{ "alphanum_fraction": 0.5789473684, "avg_line_length": 30.2394366197, "ext": "c", "hexsha": "b10d4db57d505bdb83c788e5225c53de6f407272", "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.6855677877, "avg_line_length": 33.6598984772, "ext": "h", "hexsha": "53803f6217897780a7906e41ba5113de7b3be934", "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/gamma.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.5617428683, "avg_line_length": 23.1583710407, "ext": "c", "hexsha": "37d167cd945f17b14998d8787d539fb156afd5ff", "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...
/* multiset/multiset.c * based on combination/combination.c by Szymon Jaroszewicz * based on permutation/permutation.c by Brian Gough * * Copyright (C) 2001 Szymon Jaroszewicz * Copyright (C) 2009 Rhys Ulerich * * This program is free software; you can redistribute it and/or modify * it under the terms of the G...
{ "alphanum_fraction": 0.5872600349, "avg_line_length": 19.3146067416, "ext": "c", "hexsha": "c1a0f80b4cb0e20bfa2b787fc0ded3d4444269a2", "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:...
/* Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * * Copyright 2021 INRIA. * * 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 * *...
{ "alphanum_fraction": 0.679558011, "avg_line_length": 28.1885245902, "ext": "h", "hexsha": "c9ba4945071b904f4c81d2718fa898331637da37", "lang": "C", "max_forks_count": 30, "max_forks_repo_forks_event_max_datetime": "2022-03-02T20:30:20.000Z", "max_forks_repo_forks_event_min_datetime": "2015-08-06T22:57:...
/* * Copyright (c) 2006 Rudi Cilibrasi, Rulers of the RHouse * All rights reserved. cilibrar@cilibrar.com * 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 ...
{ "alphanum_fraction": 0.7778546713, "avg_line_length": 40.1388888889, "ext": "h", "hexsha": "ea8ec45cfc490faaeb0fa480d425cba2064d0316", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* specfunc/gamma_inc.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 opti...
{ "alphanum_fraction": 0.5651165243, "avg_line_length": 28.2232142857, "ext": "c", "hexsha": "5ca728a56e5dad6771ac6f5bad67eb5ca5abdf46", "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...
/* ODE: a program to get optime Runge-Kutta and multi-steps methods. Copyright 2011-2019, Javier Burguete Tolosa. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above cop...
{ "alphanum_fraction": 0.618660726, "avg_line_length": 31.0203252033, "ext": "c", "hexsha": "ecb8e16bf079c97e6b6daeeba64443aefd7af303", "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": ...
/* movstat/test_qqr.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.6955534532, "avg_line_length": 35.7094594595, "ext": "c", "hexsha": "b823653cdca95d3ca660ef28fb52cda0915c968b", "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:...
#pragma once #include <gsl/gsl> #include <typeindex> #include "halley/utils/utils.h" #include "halley/data_structures/maybe.h" #include "halley/file/byte_serializer.h" namespace Halley { class IMessageStream; class MessageQueue; class MessageQueueUDP; class MessageQueueTCP; class NetworkMessage { friend class...
{ "alphanum_fraction": 0.7086614173, "avg_line_length": 20.8767123288, "ext": "h", "hexsha": "9aa10fcde0463d06f8c45b1ee09185e219160c17", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* $Id$ */ /* * Copyright (c) 2014, 2015 Kristaps Dzonsons <kristaps@kcons.eu> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS...
{ "alphanum_fraction": 0.6530612245, "avg_line_length": 29.9802631579, "ext": "c", "hexsha": "216d845ef5261b6bdfb7f969287419991d72ff8e", "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 ABLATE_FLUXDIFFERENCER_H #define ABLATE_FLUXDIFFERENCER_H #include <petsc.h> typedef void (*FluxDifferencerFunction)(PetscReal Mm, PetscReal* sPm, PetscReal* sMm, PetscReal Mp, PetscReal* sPp, PetscReal *sMp); #endif
{ "alphanum_fraction": 0.6740740741, "avg_line_length": 33.75, "ext": "h", "hexsha": "4971097bea2252efc0afef2149b109ced10cde10", "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": "8c8443...
/* rstat/rstat.c * * Copyright (C) 2015 Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. * * ...
{ "alphanum_fraction": 0.619763695, "avg_line_length": 20.9684684685, "ext": "c", "hexsha": "0808622876e1a4cc955857022f6d080826e61666", "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...
/* sort/test.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Thomas Walter, 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...
{ "alphanum_fraction": 0.7118384827, "avg_line_length": 23.1843971631, "ext": "c", "hexsha": "69a568535fd0f0bf729479590a8d340e32eaf81b", "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 <gsl/gsl_matrix.h> #include "kexpr.h" #include "matrix.h" #include "api.h" static void ke_matrix_alloc(sml_t* sml) { int n1 = sml_pop_int(sml); int n2 = sml_pop_int(sml); gsl_matrix * m = gsl_matrix_alloc(n1,n2); sml_mem_inc(sml); sml_push_matrix(sml, m) } void ke_matrix_prop_get(sml_t* sml) { gsl_ma...
{ "alphanum_fraction": 0.7093474047, "avg_line_length": 29.9548387097, "ext": "c", "hexsha": "bdcd215fc270b0173dc82dda44fce2f1406d5d8d", "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":...
/* movstat/test_Qn.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.7128046562, "avg_line_length": 34.7974683544, "ext": "c", "hexsha": "dea406525439c2dde1241bf2ce40a5f88adafaac", "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 <gsl/gsl_math.h> #include <gsl/gsl_filter.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_vector.h> int main(void) { const size_t N = 1000; /* length of time series */ const size_t K = 7; ...
{ "alphanum_fraction": 0.5899948427, "avg_line_length": 30.296875, "ext": "c", "hexsha": "a1dddaa2c9634aacae88419b9ea86c011340add2", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:57.0...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
{ "alphanum_fraction": 0.4553113553, "avg_line_length": 35.4545454545, "ext": "h", "hexsha": "afd80353db3d4510747670edec49ed1f5729e082", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2020-01-19T07:29:37.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-21T03:11:...
#pragma once #include <gsl\gsl> #include <winrt\Windows.Foundation.h> #include <d3d11.h> #include "DrawableGameComponent.h" #include "MatrixHelper.h" #include "PointLight.h" #include "DepthMap.h" #include "Rectangle.h" #include "ShadowMappingMaterial.h" #include "RenderStateHelper.h" namespace DirectX { class Sprite...
{ "alphanum_fraction": 0.7828348505, "avg_line_length": 34.9545454545, "ext": "h", "hexsha": "63f474909faa0fbfa632cf7402793951a8a8ab73", "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":...
// align.h // // prototypes for align.cc // // dw, 12/12/3 #include <gsl/gsl_matrix.h> #include "pdb.h" #include "point_transformation.h" #include <map> // find rigid body transformation z=Rx+t minimizing // least squares error ||y-z||**2 // find rigid body transformation z=Rx+t minimizing // least squares error |...
{ "alphanum_fraction": 0.7283621838, "avg_line_length": 42.9142857143, "ext": "h", "hexsha": "35cba113b0465def54a163ec01ca9b76941f666b", "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: David Blei (blei@cs.princeton.edu) // // Copyright 2006 David Blei // All Rights Reserved. // // See the README for this package for details about modifying or // distributing this software. #ifndef PARAMSH #define PARAMSH #define MAX_LINE_LENGTH 100000; #include "gsl-wrappers.h" #include <stdlib.h> #incl...
{ "alphanum_fraction": 0.7346938776, "avg_line_length": 23.9024390244, "ext": "h", "hexsha": "c78d8fef156a6526663948cfeab7d6477520c48d", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2020-07-10T09:29:17.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-15T04:11:...
#include <cerrno> #include <cstdio> #include <cstdlib> #include <sys/stat.h> #include <cmath> #include <vector> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <time.h> #include <gsl/gsl_odeiv2.h> #include <gsl/gsl_math.h> #include <math.h> /* pow */ #include <gsl/gsl_sf.h> #...
{ "alphanum_fraction": 0.7066923712, "avg_line_length": 27.5075757576, "ext": "h", "hexsha": "89c5bdef39a7be49c4896a162278c1581054aeec", "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 Utilities.h */ #ifndef ATK_CORE_UTILITIES_H #define ATK_CORE_UTILITIES_H #include <ATK/Core/config.h> #include <gsl/gsl> #include <cstddef> namespace ATK { /// Class to convert arrays from different type to another type template<typename DataType1, typename DataType2> class ATK_CORE_EXPORT Conv...
{ "alphanum_fraction": 0.7012987013, "avg_line_length": 22.5365853659, "ext": "h", "hexsha": "4b2ae7d67052cf59a59f84ecbb25b76cc778a29a", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-17T00:47:11.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-12T03:28:...
/* * 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.6523425843, "avg_line_length": 33.51, "ext": "h", "hexsha": "c329f28a6bd5492e8a4a8bc27e52582214997d03", "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:58.000Z"...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2017-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.5288374068, "avg_line_length": 43.4492753623, "ext": "h", "hexsha": "5ee52e3a61b763a63a297b8fb672679824db5440", "lang": "C", "max_forks_count": 71, "max_forks_repo_forks_event_max_datetime": "2022-03-29T10:34:32.000Z", "max_forks_repo_forks_event_min_datetime": "2017-05-22T20:41...
/** * header file for data mining sharpening (DMS) * written by Feng Gao on June 2012 * v1.0_HDF: uses LEDAPS SR in HDF format (in-house LEDAPS product) * v1.1_ENVI: accepts GeoTIFF, ENVI and HDF format (USGS Landsat SR product) * v1.2_ENVI: uses Landsat cloud mask (USGS Landsat fmask product) */ #include <stdi...
{ "alphanum_fraction": 0.6691508139, "avg_line_length": 31.6708074534, "ext": "h", "hexsha": "8861cfb3d73e2e2861729d885040447422cabff9", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-04-16T08:05:44.000Z", "max_forks_repo_forks_event_min_datetime": "2017-04-20T21:04:...
/* * Copyright 2008-2009 NVIDIA 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...
{ "alphanum_fraction": 0.7389033943, "avg_line_length": 28.0243902439, "ext": "h", "hexsha": "e9d5ecaecd35b82cf7fc18a7097c04c797fbf4bf", "lang": "C", "max_forks_count": 106, "max_forks_repo_forks_event_max_datetime": "2022-03-29T13:55:53.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-27T19:3...
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ /** @file gft.c @brief Generic frontend for chisquare minimisation This is planned to comprise all external fitting functions for the use wherever $Source: /Volumes/DATA_J_II/data/CVS/gft/gft.c,v $ $Date: 2011/05/04 01:13:59 $ $Re...
{ "alphanum_fraction": 0.5516885231, "avg_line_length": 29.4968611521, "ext": "c", "hexsha": "5a34590188cd135a25b7a852185966642be615e4", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-01-03T15:02:35.000Z", "max_forks_repo_forks_event_min_datetime": "2017-08-28T03:17:...
#include <stdio.h> #include "sweeny_bfs.h" #include "../src/queue_2.h" #include <ctype.h> #include <strings.h> #include <unistd.h> #include <math.h> #include <gsl/gsl_rng.h> // Define Macro SEQUENTIAL to use sequential BFS; Default is interleaved BFS #define MIN(a,b) a<=b ? a: b #define MAX(a,b) a>=b? a:b static ch...
{ "alphanum_fraction": 0.4324034335, "avg_line_length": 31.3742574257, "ext": "c", "hexsha": "76623e5e3060b8794f1fce1377f219bd958421b3", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2017-04-10T14:18:57.000Z", "max_forks_repo_forks_event_min_datetime": "2017-04-10T14:18:...
#include <math.h> #include <string.h> #include <gsl/gsl_matrix.h> #include <gpc/gpc.h> #include <egsl/egsl_macros.h> #include "../csm_all.h" #include "icp.h" void sm_journal_open(const char* file) { file = 0; /* journal_open(file);*/ } void ld_invalid_if_outside(LDP ld, double min_reading, double max_reading) {...
{ "alphanum_fraction": 0.6834553159, "avg_line_length": 28.7645429363, "ext": "c", "hexsha": "ec9362ca5166d5eef4eb55b08903af59e00d1cd0", "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_matrix.h> #include "BandEnergy.h" int main(int argc, char *argv[]) { HTightBinding *Hrs = ExtractHTightBinding("test_data/Fe_soc/Fe_soc_hr.dat"); gsl_matrix *R = gsl_matrix_calloc(3, 3); // R -> all zeros // Overall scale for R doesn't matter. gsl_matrix_set(R, 0, 1, 1.0); gsl_ma...
{ "alphanum_fraction": 0.6105527638, "avg_line_length": 27.4482758621, "ext": "c", "hexsha": "98cb9cb77d045a9bf3dd3b0c49149061ab84287e", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <math.h> #include <stdlib.h> #include <malloc.h> #include <stdio.h> #include <assert.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_sf_gamma.h> #include <gsl/gsl_sf_legendre.h> #include <gsl/gsl_sf_bessel.h> #include <gsl/gsl_linalg.h> #include <gs...
{ "alphanum_fraction": 0.6593643156, "avg_line_length": 42.2299465241, "ext": "c", "hexsha": "4bbeceb07924fcb66daa0329a2d4bfa08132199b", "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":...
//IN method. //Affine transformation (weights and biases) of Ni inputs to No outputs. //This version uses CBLAS. //Input X has Ni neurons and output Y has No neurons. //Each output neuron has a bias term, so B is a vector of length No. //The vecs of length Ni are always contiguous in memory, such that: //If col-majo...
{ "alphanum_fraction": 0.6457122093, "avg_line_length": 28.9684210526, "ext": "c", "hexsha": "28fc7e916d6ff70ebb04e0ff9a8596d8f07f6b7b", "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_GSL_VECTOR__ #define __MATH_GSL_VECTOR__ #include <assert.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_cblas.h> #include <gsl/gsl_matrix.h> #include "math/vectorops.h" class GslVectorItem { public: GslVectorItem(gsl_vector* ptr, size_t index) : ptr_(ptr), index_(index) { } operator ...
{ "alphanum_fraction": 0.6440508855, "avg_line_length": 21.3244680851, "ext": "h", "hexsha": "402343cde49f770c6e440778eea1b317bca4a4d7", "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:...
/* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * * See the NOTICE file distributed wit...
{ "alphanum_fraction": 0.6010077874, "avg_line_length": 33.5846153846, "ext": "h", "hexsha": "8026fa21e68363921f55c30f651e420e8f445b74", "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":...
/* blas/gsl_blas.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option)...
{ "alphanum_fraction": 0.5298681148, "avg_line_length": 36.3399668325, "ext": "h", "hexsha": "82ecd674edf26adf4fa7abe7374e155d5dc224a3", "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...
/* */ #include "kern.h" #include <cblas.h> #include <err.h> #include <fcntl.h> #include <float.h> #include <math.h> #include <stdbool.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/stat.h> #include <time.h> #include <unistd.h> #ifdef WITH_THREADS #include <omp.h> #define MP_LOOP() PRAGMA(omp for simd) ...
{ "alphanum_fraction": 0.5558634449, "avg_line_length": 29.6776315789, "ext": "c", "hexsha": "78e08ebffbfab164893f12055a5b61833ab3e916", "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 DART_CPP14_SHIM_H #define DART_CPP14_SHIM_H // Figure out what compiler we have. #if defined(__clang__) #define DART_USING_CLANG 1 #elif defined(__GNUC__) || defined(__GNUG__) #define DART_USING_GCC 1 #elif defined(_MSC_VER) #define DART_USING_MSVC 1 #endif #ifdef DART_USING_MSVC #define _CRT_SECURE_NO_WARNIN...
{ "alphanum_fraction": 0.6208550288, "avg_line_length": 29.3092369478, "ext": "h", "hexsha": "74236f85a8436bd02b1ec963bf21586dfe81907b", "lang": "C", "max_forks_count": 10, "max_forks_repo_forks_event_max_datetime": "2020-06-11T11:05:17.000Z", "max_forks_repo_forks_event_min_datetime": "2019-05-11T08:05...
/* combination/test.c * based on permutation/test.c by Brian Gough * * Copyright (C) 2001 Szymon Jaroszewicz * * 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 Li...
{ "alphanum_fraction": 0.5953146532, "avg_line_length": 24.927480916, "ext": "c", "hexsha": "0e0a795d8a69289532ac370573f69feecc1cca23", "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:17...
/* matrix/gsl_matrix_ulong.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.6568205851, "avg_line_length": 38.5461956522, "ext": "h", "hexsha": "7fd554430ac80a85d5c6a016061357f1e4c51c0c", "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:...
// @(#)root/matrix:$Id$ // Authors: Fons Rademakers, Eddy Offermann Feb 2004 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
{ "alphanum_fraction": 0.5656540791, "avg_line_length": 73.5905797101, "ext": "h", "hexsha": "96dab7ddc611f497094f268ce56cd4a66aaac765", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-05-28T23:01:44.000Z", "max_forks_repo_forks_event_min_datetime": "2020-05-28T23:01:...
/** * \file FIRFilter.h */ #ifndef ATK_EQ_FIRFILTER_H #define ATK_EQ_FIRFILTER_H #include <ATK/config.h> #include <ATK/EQ/config.h> #include <gsl/gsl> #include <cassert> #include <cstdint> #include <vector> namespace ATK { /** * FIR filter template class */ template<class Coefficients > class ATK_EQ_...
{ "alphanum_fraction": 0.6245076586, "avg_line_length": 22.1844660194, "ext": "h", "hexsha": "e33a35a2bcde984bceb5869f246e80dae3c87849", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-17T00:47:11.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-12T03:28:...
#ifndef __MATH_GSL_MATRIX__ #define __MATH_GSL_MATRIX__ #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_cblas.h> class GslMatrixItem { public: GslMatrixItem(gsl_matrix* ptr, size_t index1, size_t index2) : ptr_(ptr), index1_(index1), index2_(index2) { } operator const doubl...
{ "alphanum_fraction": 0.6315789474, "avg_line_length": 21.7142857143, "ext": "h", "hexsha": "2563f949559df5dadaf678b171a9dd38ef0f485d", "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:...
/// /// @file This file contains the Schur reduction experiment. /// /// @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 without /// modification, are permitted pro...
{ "alphanum_fraction": 0.6254889179, "avg_line_length": 32.0920502092, "ext": "c", "hexsha": "5e3f70598091e5d3f3e47dc8c51a207524c7723e", "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:...
/* specfunc/test_sf.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your opti...
{ "alphanum_fraction": 0.751830927, "avg_line_length": 42.6696428571, "ext": "h", "hexsha": "45c73d092b3819540e9129d32f963bf8fde7909a", "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...
#include <gsl/gsl_ntuple.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> struct data { double x; double y; double z; }; int main (void) { const gsl_rng_type * T; gsl_rng * r; struct data ntuple_row; int i; gsl_ntuple *ntuple = gsl_ntuple_create ("test.dat", &ntuple_row, ...
{ "alphanum_fraction": 0.6056338028, "avg_line_length": 16.1363636364, "ext": "c", "hexsha": "82f6fa483b3a5769aab377a16672a009296ca4ec", "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...
/* rng/ranlxd.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 * you...
{ "alphanum_fraction": 0.5786651877, "avg_line_length": 21.636, "ext": "c", "hexsha": "233ca31a4d9b757ef62d5237b4881da8dbb9c208", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:59.000Z...
/* integration/qaws.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your o...
{ "alphanum_fraction": 0.5831462614, "avg_line_length": 26.2036199095, "ext": "c", "hexsha": "a358a580c1e388da5b15cad7068992e595fdfd0e", "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...
/* Copyright (C) 2008 Wei Dong <wdong@princeton.edu>. All Rights Reserved. This file is part of LSHKIT. LSHKIT 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.5415313225, "avg_line_length": 30.6398104265, "ext": "h", "hexsha": "c4db8a575d054e5d400daf0d9c8b6fb317973e66", "lang": "C", "max_forks_count": 42, "max_forks_repo_forks_event_max_datetime": "2021-05-27T19:57:52.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-18T05:53...
/* ieee-utils/fp-tru64.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Tim Mooney * * 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.6763326966, "avg_line_length": 32.5367231638, "ext": "c", "hexsha": "7feccd9ae38408026ff397fa3fd996a0d4c6aa81", "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 <stdlib.h> #include <stdio.h> #include <errno.h> #include <math.h> #include <gsl/gsl_integration.h> double f1(double x, void *params) { (void) (params); /* avoid unused parameter warning */ return pow(x, 2); } double fi1(double x) { return pow(x, 3) / 3; } double f2(double x, void *params) { ...
{ "alphanum_fraction": 0.557176196, "avg_line_length": 24.1408450704, "ext": "c", "hexsha": "34b658de8ad7a7103fa47acc2e6d8d3bdcbeed08", "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_math.h> #include <gsl/gsl_cblas.h> #include "cblas.h" void cblas_sger (const enum CBLAS_ORDER order, const int M, const int N, const float alpha, const float *X, const int incX, const float *Y, const int incY, float *A, const int lda) { #define BASE float #include "source_ger....
{ "alphanum_fraction": 0.6795252226, "avg_line_length": 24.0714285714, "ext": "c", "hexsha": "72c366d6777586e9aa83dd801e0834c47e258ad3", "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...
/* ============================================================ * * lensing.h * * * * Martin Kilbinger, Karim Benabed 2006-2012 * * ============================================================ */ #ifndef __LENSING_H #define __LENSING_H #include <math.h> #include <stdlib.h> #include <stdio.h> #inclu...
{ "alphanum_fraction": 0.6680115274, "avg_line_length": 36.1458333333, "ext": "h", "hexsha": "704e979386ad38d8aa9a9bf11194a7e786e19faa", "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_lu_band.c * * Copyright (C) 2020 Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. ...
{ "alphanum_fraction": 0.6020526723, "avg_line_length": 28.5303867403, "ext": "c", "hexsha": "f6b7c4c3cee4ec31a1551a4d936cec2439750305", "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:...
/* * ht_neuron.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 * (at yo...
{ "alphanum_fraction": 0.644561617, "avg_line_length": 28.2309160305, "ext": "h", "hexsha": "af97fde2349a358e0dc12e7e161fdcdc203c8568", "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:...
// @(#)root/matrix:$Id$ // Authors: Fons Rademakers, Eddy Offermann Nov 2003 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
{ "alphanum_fraction": 0.6149012967, "avg_line_length": 65.2354651163, "ext": "h", "hexsha": "ead09f67e609f9b898f3aa7cecc76be0be10024b", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-05-28T23:01:44.000Z", "max_forks_repo_forks_event_min_datetime": "2020-05-28T23:01:...
/** * \author Sylvain Marsat, University of Maryland - NASA GSFC * * \brief C code for structures EOBNRv2HM reduced order model (non-spinning version). * See CQG 31 195010, 2014, arXiv:1402.4146 for details on the reduced order method. * See arXiv:1106.1021 for the EOBNRv2HM model. * * Borrows from the SEOBNR ...
{ "alphanum_fraction": 0.6434892541, "avg_line_length": 33.4561933535, "ext": "c", "hexsha": "1f23179fac5a90cc6827d975df02f6400bfeaf80", "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:...
#include <stdio.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> int main(int argc, char *argv[]) { gsl_rng *r = gsl_rng_alloc(gsl_rng_mt19937); int i, n; double gauss, gamma; n = atoi(argv[1]); for (i=0; i<n; i++){ gauss = gsl_ran_gaussian(r, 2.0); gamma = gsl_ran_gamma(r, 2.0, 3.0); ...
{ "alphanum_fraction": 0.5942408377, "avg_line_length": 17.3636363636, "ext": "c", "hexsha": "81cb3c469fbed468c3af7e2fc2b6e6ee5cc27e10", "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/stat2d.c * Copyright (C) 2002 Achim Gaedke * * 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 3 of the * License, or (at your option) any later version. * * T...
{ "alphanum_fraction": 0.5190787212, "avg_line_length": 21.8721804511, "ext": "c", "hexsha": "5982817838e0d37929b32855be6b10ddb8c4687b", "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:...
/* / / adkGSL.h / / homebrewed addons to gsl */ #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_sort.h> #include <gsl/gsl_sort_vector.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <math.h> #include <assert.h> int gsl_vector_includes(gsl_vector *aVec, double aValue); doubl...
{ "alphanum_fraction": 0.7781972629, "avg_line_length": 38.5272727273, "ext": "h", "hexsha": "acd97d9074b135fa3873a4ebbf6924d90b240f09", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* specfunc/bessel_amp_phase.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 * ...
{ "alphanum_fraction": 0.7202752096, "avg_line_length": 24.6084656085, "ext": "c", "hexsha": "b1099b559ef42a751ae041c4abff0c6640e4e74c", "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...
#pragma once // Standard #include <exception> #include <cassert> #include <string> #include <iostream> #include <sstream> #include <fstream> #include <memory> #include <vector> #include <map> #include <stack> #include <cstdint> #include <iomanip> #include <codecvt> #include <algorithm> #include <functional> #include <...
{ "alphanum_fraction": 0.751450677, "avg_line_length": 20.2745098039, "ext": "h", "hexsha": "5ccc7ea757f858affad947ddc1b6345e3995640e", "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 kn2row_conv.c // // \date Created on: Sep 23, 2017 // \author Gopalakrishna Hegde // // Description: // // // #include <assert.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <cblas.h> #include "common_types.h" #include "data_reshape.h" #include "utils.h" // // col_shift : +ve -->...
{ "alphanum_fraction": 0.601581623, "avg_line_length": 34.0448717949, "ext": "c", "hexsha": "20ff16aab7b061f00cfa0f70a161778822c7558a", "lang": "C", "max_forks_count": 23, "max_forks_repo_forks_event_max_datetime": "2021-12-21T14:16:14.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-24T05:17:...
/*************************************************************************** * Copyright (C) 2008 by Mikhail Zaslavskiy * * mikhail.zaslavskiy@ensmp.fr * * * * This program is free software; you can redistribute it and/or modify * *...
{ "alphanum_fraction": 0.6013229104, "avg_line_length": 34.2886597938, "ext": "h", "hexsha": "e866f1779ad99a76531b02b271358ff9d3266df7", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2021-08-06T01:41:25.000Z", "max_forks_repo_forks_event_min_datetime": "2016-08-23T11:44:...
#pragma once #include <utility> #include <initializer_list> #include <exception> #include <iostream> #include <cmath> #include <gsl/gsl_math.h> #include <gsl/gsl_linalg.h> #include "bits/matrix-view.h" #include "utils/fcmp.h" #include "vector.h" namespace gsl_wrapper { class Matrix { public: // Constructo...
{ "alphanum_fraction": 0.6409769679, "avg_line_length": 25.9934210526, "ext": "h", "hexsha": "d786246debb611da3f8a57345e023e86ee4894c6", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-10T09:06:07.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-10T09:06:...
/* block/test.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at...
{ "alphanum_fraction": 0.7533333333, "avg_line_length": 23.8493723849, "ext": "c", "hexsha": "fc104175e41f676f3d678e99112151b656320081", "lang": "C", "max_forks_count": 224, "max_forks_repo_forks_event_max_datetime": "2022-03-30T00:57:48.000Z", "max_forks_repo_forks_event_min_datetime": "2015-11-12T21:1...
#include <gsl/gsl_spline.h> #include <galpy_potentials.h> // interpSphericalPotential: 6 arguments: amp (not used here), rmin, rmax, // M(<rmax), Phi0, Phimax double interpSphericalPotentialrevaluate(double r,double t, struct potentialArg * potentialArgs){ double * args= potentialArgs->args; //Get args doub...
{ "alphanum_fraction": 0.6365079365, "avg_line_length": 27.7941176471, "ext": "c", "hexsha": "3f0994ec913e4304222daaf011ae0fd72eed95e0", "lang": "C", "max_forks_count": 110, "max_forks_repo_forks_event_max_datetime": "2021-12-28T07:56:49.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-08T10:5...
#include "solver_intern.h" #include <pygsl/general_helpers.h> #include <pygsl/block_helpers.h> #if 0 #include <pygsl/function_helpers.h> #endif #include <setjmp.h> #include <gsl/gsl_math.h> #include <pygsl/error_helpers.h> #include <strings.h> #include "solver_doc.ic" PyObject * module = NULL; const char *filename = ...
{ "alphanum_fraction": 0.6192860014, "avg_line_length": 27.7555780933, "ext": "c", "hexsha": "d7ba52dcf4909ce8fa2433ad8431d021c2b2a30f", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-10-02T06:18:07.000Z", "max_forks_repo_forks_event_min_datetime": "2018-10-02T06:18:...
#include "cimple_c_from_py.h" #include "setoper.h" #include "cimple_safe_mode.h" #include <cdd.h> #include <gsl/gsl_matrix.h> int main(){ dd_set_global_constants(); // Initialize state: system_dynamics *s_dyn; cost_function *f_cost; discrete_dynamics *d_dyn; current_state *now; system_all...
{ "alphanum_fraction": 0.6813186813, "avg_line_length": 19.90625, "ext": "c", "hexsha": "a36ee23d21f24624ad69b645c097855057c4836c", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-10-06T12:58:52.000Z", "max_forks_repo_forks_event_min_datetime": "2018-10-06T12:58:52.00...
/* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * * See the NOTICE file distributed wit...
{ "alphanum_fraction": 0.6667206674, "avg_line_length": 59.6400966184, "ext": "h", "hexsha": "a98027c5fc5a25ed00e3f750fa685ef5bf79c778", "lang": "C", "max_forks_count": 572, "max_forks_repo_forks_event_max_datetime": "2022-03-31T16:46:46.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-12T22:1...
/* * HelloWorld.cpp * * Created on: 22 August 2016 * Author: Dr. Corneliu Arsene * * This software implements the Canonical Variates Analysis method (libhelloworld.jnilib file) for image * processing: it reads the multispectral images from the same directory as where the libhelloworld.jnilib * file...
{ "alphanum_fraction": 0.4462886626, "avg_line_length": 20.8723646724, "ext": "c", "hexsha": "61d271f830acd04387ba5f8f139a1a4783e773e1", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-05-12T00:30:12.000Z", "max_forks_repo_forks_event_min_datetime": "2019-05-12T00:30:...
/* * Copyright 2008-2016 Jan Gasthaus * * 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 agre...
{ "alphanum_fraction": 0.6144368005, "avg_line_length": 24.7811704835, "ext": "h", "hexsha": "b0f6717b5546c8e258596fb070b78a6eba5f95df", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2016-11-20T00:56:17.000Z", "max_forks_repo_forks_event_min_datetime": "2016-11-17T19:19:...
/** * @file zheevd.c * * PLASMA computational routines * Release Date: November, 15th 2009 * 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 * @author Hatem Ltaief * @date 2010-11-15 * @pre...
{ "alphanum_fraction": 0.5664106992, "avg_line_length": 39.1048850575, "ext": "c", "hexsha": "fd9cacd5b0a8e0b795b1c05539eba3d989074546", "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":...
/* See compilation notes in simple_cplx.c*/ #include "cplx.h" //gsl_cplx_from_c99; see below. #include <gsl/gsl_blas.h> //gsl_blas_ddot #include <gsl/gsl_complex_math.h> //gsl_complex_mul(_real) gsl_vector_complex *cvec_dot_gslcplx(gsl_vector_complex *v, gsl_complex x){ gsl_vector_complex *...
{ "alphanum_fraction": 0.6683417085, "avg_line_length": 36.6578947368, "ext": "c", "hexsha": "7b183c39a38edec6dfff8511146603fa195a6548", "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 interface to the binning and weight routines */ #ifndef _SPCE_BINNING_H #define _SPCE_BINNING_H 1 #include <math.h> #include <gsl/gsl_vector.h> #include "spce_output.h" #include "spc_trace_functions.h" #include "aXe_grism.h" #include "spc_spc.h" /** defines a pixel for weighting purposes. Here, p0, p...
{ "alphanum_fraction": 0.728308026, "avg_line_length": 31.7931034483, "ext": "h", "hexsha": "12f4ed9222ffcf83e216e19cfa450dca4eb03548", "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 "simple_blas.h" #ifdef ACCELERATE #include <Accelerate/Accelerate.h> #else #include <cblas.h> #include "lapack.h" #endif int to_cblas_transpose(const morpheus_transpose_e trans) { switch (trans) { case morpheus_no_trans: return CblasNoTrans; case morpheus_trans: return CblasTrans; } return ...
{ "alphanum_fraction": 0.5963227223, "avg_line_length": 28.0307692308, "ext": "c", "hexsha": "5b443cc09062b265a1e5eeb9ad91483fd2f6aae9", "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":...
#if !defined(fvSupport_h) #define fvSupport_h #include <petsc.h> /** * reproduces the petsc call with grad fixes for multiple fields * @param dm * @param fvm * @param locX * @param grad * @return */ PETSC_EXTERN PetscErrorCode DMPlexGetDataFVM_MulfiField(DM dm, PetscFV fv, Vec *cellgeom, Vec *facegeom, DM *gra...
{ "alphanum_fraction": 0.7523809524, "avg_line_length": 25, "ext": "h", "hexsha": "c63af99fc08c753a53641fadd4c25c49cbcd9c4a", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-12-22T14:16:59.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-22T14:16:59.000Z", ...
/* interpolation/bilinear.c * * Copyright 2012 David Zaslavsky * * 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.6231283848, "avg_line_length": 29.4741784038, "ext": "c", "hexsha": "d6206cd8ae006181b81f486dc4e0ce6ea56e4173", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
#ifndef PETSC4PY_COMPAT_H #define PETSC4PY_COMPAT_H #include <petsc.h> #include "compat/mpi.h" #include "compat/hdf5.h" #include "compat/mumps.h" #include "compat/hypre.h" #include "compat/tao.h" #endif/*PETSC4PY_COMPAT_H*/
{ "alphanum_fraction": 0.7566371681, "avg_line_length": 18.8333333333, "ext": "h", "hexsha": "d2113763e06f83b7c85386b2b79eca4ec08c07db", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <pygsl/solver.h> #include <pygsl/utils.h> #include <gsl/gsl_odeiv.h> static const char odeiv_step_type_name [] = "Odeiv-Step"; static const char odeiv_control_type_name[] = "Odeiv-Control"; static const char odeiv_evolve_type_name [] = "Odeiv-Evolve"; const char * filename = __FILE__; PyObject *module = N...
{ "alphanum_fraction": 0.6365717895, "avg_line_length": 29.1831797235, "ext": "c", "hexsha": "e715ed590649947cb660df5c62c6f1c53c550c45", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-10-02T06:18:07.000Z", "max_forks_repo_forks_event_min_datetime": "2018-10-02T06:18:...
#include <stdio.h> #include <gsl_rng.h> #include <gsl_randist.h> int main(int argv, char* argc[]) { // Regression test for https://github.com/conda-forge/ipopt-feedstock/issues/57 gsl_rng *r = gsl_rng_alloc(gsl_rng_mt19937); if (r == NULL) { return 1; } gsl_rng_free(r); return 0; }
{ "alphanum_fraction": 0.6516129032, "avg_line_length": 16.3157894737, "ext": "c", "hexsha": "a1ca035d596f65e4cda83659bb0fbd9937309588", "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 <memory> #include <gsl/span> #include "D3DManager.h" namespace vrutil { class OverlayItem { class OverlayItemImpl *m_impl; OverlayItem(class OverlayItemImpl *impl); public: ~OverlayItem(); static std::shared_ptr<OverlayItem> Create(uint64_t handle); void Proc...
{ "alphanum_fraction": 0.7009493671, "avg_line_length": 23.4074074074, "ext": "h", "hexsha": "3aab4be071c3fd1f1f0b0137df46213c5576e0da", "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/cdf_beta.c * * Copyright (C) 2003 Brian Gough. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * ...
{ "alphanum_fraction": 0.6476868327, "avg_line_length": 20.9701492537, "ext": "c", "hexsha": "524391da14e0bffcc75c8bf49943acafc1f22e69", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
#include <unistd.h> #include <stdio.h> #include <gsl/gsl_math.h> int main (void) { for ( ; ; ) { double x = 5.0; double y = gsl_expm1(100.0); printf ("J0(%g) = %.18e\n", x, y); sleep(2); } return 0; }
{ "alphanum_fraction": 0.5109170306, "avg_line_length": 17.6153846154, "ext": "c", "hexsha": "72ae3c469244727eb15fc374ec840ced3ab125b7", "lang": "C", "max_forks_count": 25, "max_forks_repo_forks_event_max_datetime": "2021-09-26T16:19:29.000Z", "max_forks_repo_forks_event_min_datetime": "2018-01-26T23:31...
#ifndef SCALING_H_SAL4XICS #define SCALING_H_SAL4XICS #include <algorithm> #include <gsl/gsl> #include <type_traits> #include <utility> namespace sens_loc::math { /// This class is a small wrapper to clarify the mathematical notation /// of ranges. It does NOT distinguish between \f$[min, max)\f$, /// \f$[min, max]\...
{ "alphanum_fraction": 0.6824290692, "avg_line_length": 34.0508474576, "ext": "h", "hexsha": "46acabd53ffa1abf917485df0420cbe23c99183a", "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 <halley/maths/vector2.h> #include <halley/maths/rect.h> #include <memory> #include <halley/resources/resource.h> #include <halley/text/halleystring.h> #include <halley/data_structures/hash_map.h> #include <gsl/span> #include "halley/maths/vector4.h" namespace Halley { class Resources; class Se...
{ "alphanum_fraction": 0.750668194, "avg_line_length": 24.9428571429, "ext": "h", "hexsha": "e429f20d36398a085be99c78e3c9570bb958c084", "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 matrix.h * \brief a template class to describe the Matrix * \author wbd * * This class implements the template matrix. It contains the array "data" to * hold the matrix elements. * The matrix can be initialize with the matrix_initializer_list * (a.k, recursive initializer_list). * For examp...
{ "alphanum_fraction": 0.6514212277, "avg_line_length": 29.0725274725, "ext": "h", "hexsha": "ce633147b928863ba46c2946a8d67150241f295c", "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 "sweeny_uf.h" #include <ctype.h> #include <strings.h> #include <stdio.h> #include "../src/uf.h" #include "../src/queue.h" #include <math.h> #include <gsl/gsl_rng.h> //Verwendung von Mersenne-Twister Pseudozufallszahlengenerator static __s8 dN; #define MIN(a,b) a <= b ? a: b #def...
{ "alphanum_fraction": 0.4470780281, "avg_line_length": 33.6593406593, "ext": "c", "hexsha": "39e12d46a659c9faed7831bf15cf4463ccaf4d89", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2017-04-10T14:18:57.000Z", "max_forks_repo_forks_event_min_datetime": "2017-04-10T14:18:...
#pragma once #include <array> #include <gsl/span> #include "Quiver/Animation/Rect.h" namespace qvr { struct ViewBuffer { int viewCount = 0; std::array<Animation::Rect, 8> views; // TODO: Consider making initial value of viewCount == 1. // TODO: Consider making viewCount < 1 illegal. }; // TODO: Consider maki...
{ "alphanum_fraction": 0.7023121387, "avg_line_length": 20.3529411765, "ext": "h", "hexsha": "19adc777f38914ff87913c0b222aeee43a5dac6c", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2020-03-19T10:08:45.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-22T14:47:...
/* ///////////////////////////////////////////////////////////////////// */ /*! \file \brief Contains basic functions for problem initialization. The init.c file collects most of the user-supplied functions useful for problem configuration. It is automatically searched for by the makefile. \author A. ...
{ "alphanum_fraction": 0.5450188923, "avg_line_length": 35.8118811881, "ext": "c", "hexsha": "c27c0d946cece669ce6c04a3eeddb3d100720f78", "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 neutronics_driver.h //! Base class for single-physics neutronics solver #ifndef NEUTRONICS_DRIVER_H #define NEUTRONICS_DRIVER_H #include "enrico/driver.h" #include "enrico/geom.h" #include "enrico/mpi_types.h" #include <gsl/gsl> #include <xtensor/xtensor.hpp> #include <vector> namespace enrico { using Ce...
{ "alphanum_fraction": 0.707491082, "avg_line_length": 30.0357142857, "ext": "h", "hexsha": "7f8c8dce23b2d3cfa5493a6283e9169763da491a", "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 <gsl/gsl_randist.h> #include <errno.h> #include <string.h> #include <time.h> const int SAMPLENUM = 1000; int obsnum; gsl_rng * r; typedef struct { int prey; int predator; } lvstate; typedef struct { double time; double rawdata; } obsdata; void simPrior(lvstate *si...
{ "alphanum_fraction": 0.6063887878, "avg_line_length": 25.0867579909, "ext": "c", "hexsha": "fc0a92ef6cd26feaa8c872f843b1d960bf8f2e90", "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":...
/* bst.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. * * This pro...
{ "alphanum_fraction": 0.6712821933, "avg_line_length": 23.4480519481, "ext": "c", "hexsha": "b8802454fd41536e9a88d1170ddfcd364ed212d6", "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:...
/* ** gsl routines for float data type ** ** G.Lohmann, July 2004 */ #include <viaio/Vlib.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_cblas.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_sort_vector....
{ "alphanum_fraction": 0.5812547885, "avg_line_length": 20.2534482759, "ext": "c", "hexsha": "c5d5ca023b08f041ffb10c6cbf048a3d2728b350", "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:...
// Copyright The Authors 2018. // Distributed under the 3-Clause BSD License. // (See accompanying file LICENSE or copy at // https://opensource.org/licenses/BSD-3-Clause) #pragma once #include <cstdint> // for uint8_t #include <gsl/gsl> // for gsl::span #include <string> // for std::string name...
{ "alphanum_fraction": 0.6574923547, "avg_line_length": 26.16, "ext": "h", "hexsha": "5d53872b0f1059b315917894b50c58ff3ec860c4", "lang": "C", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2021-11-27T19:37:05.000Z", "max_forks_repo_forks_event_min_datetime": "2018-07-13T17:55:31.000Z"...
/* ----------------------------------------------------------------------------- * Copyright 2021 Jonathan Haigh * SPDX-License-Identifier: MIT * ---------------------------------------------------------------------------*/ #ifndef SQ_INCLUDE_GUARD_core_errors_h_ #define SQ_INCLUDE_GUARD_core_errors_h_ #include "c...
{ "alphanum_fraction": 0.6935033182, "avg_line_length": 25.2246696035, "ext": "h", "hexsha": "17f055743db57ed4b537f8a8ca201f724b4ad7f4", "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":...