text
string
meta
dict
#pragma once #include "GradUtil.h" #include "DistanceGrad.h" #ifndef _NOGSL #include <gsl/gsl_vector.h> #include <gsl/gsl_blas.h> #else #include "CustomSolver.h" #endif #include <limits> #include <math.h> #include <vector> #include "BasicError.h" using namespace std; class IntervalGrad { double low; double high; ...
{ "alphanum_fraction": 0.6656346749, "avg_line_length": 31.0576923077, "ext": "h", "hexsha": "1e5fca6b6681367fa7b202750eba5971f5fa1ebf", "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:...
#ifndef UTIL_H #define UTIL_H #include <iostream> #include <stdio.h> #include <vector> #include <Eigen/Core> #include <Eigen/SparseCore> #include <Eigen/Householder> #include <Eigen/LU> #include <assert.h> #include <time.h> #include <sys/time.h> #include <random> #ifdef USE_MKL #include <mkl_cblas.h> #include <mkl_lap...
{ "alphanum_fraction": 0.5938058368, "avg_line_length": 24.8128078818, "ext": "h", "hexsha": "95b53703ddfb0466422ea81226558e9b07d77080", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-06-23T12:04:28.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-23T12:04:...
/* * SpecialFunctions.h * PSCAcoustic * * Special functions and more. * * * Copyright 2014 Pierre-David Letourneau * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without rest...
{ "alphanum_fraction": 0.6563706564, "avg_line_length": 25.1945525292, "ext": "h", "hexsha": "4e671062372e718e25b9efaefecc5d44f10225ce", "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":...
/* multifit/multilinear.c * * Copyright (C) 2000, 2007, 2010 Brian Gough * Copyright (C) 2013, 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...
{ "alphanum_fraction": 0.581010101, "avg_line_length": 27.731092437, "ext": "c", "hexsha": "6a6931f6338e2531a722ac2f49e7c4e617e7c832", "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": "...
/* multimin/fminimizer.c * * Copyright (C) 2002 Tuomo Keskitalo, Ivo Alxneit * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any...
{ "alphanum_fraction": 0.6400621118, "avg_line_length": 23.8518518519, "ext": "c", "hexsha": "507dfd4efca87f52f577b64b44c8a186985def7c", "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...
/* ** TFCE heuristic ** ** M. Kuhlmann, MPI-KYB, Sept 2015 */ #include <viaio/VImage.h> #include <viaio/Vlib.h> #include <viaio/mu.h> #include <via/via.h> #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_math.h> #d...
{ "alphanum_fraction": 0.5943555181, "avg_line_length": 26.9772727273, "ext": "c", "hexsha": "eb8b144fd2ac5cf1b46ec8091a4f594f5c9815c2", "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 (C) 2002 M. Marques, A. Castro, A. Rubio, G. Bertsch, M. Oliveira 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, or (at your option) any later version. This pro...
{ "alphanum_fraction": 0.6827278193, "avg_line_length": 26.8891454965, "ext": "c", "hexsha": "659604be1baf030bb6972a60d989794c8fda3ef4", "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":...
$NetBSD: patch-Src___dotblas.c,v 1.1 2015/01/27 05:05:30 dbj Exp $ --- Src/_dotblas.c.orig 2006-07-24 20:11:35.000000000 +0000 +++ Src/_dotblas.c @@ -12,7 +12,11 @@ static char module_doc[] = #include "Python.h" #include "libnumarray.h" #include "arrayobject.h" +#ifdef __APPLE__ +#include <Accelerate/Accelerate.h> ...
{ "alphanum_fraction": 0.6833773087, "avg_line_length": 22.2941176471, "ext": "c", "hexsha": "5a8a7af10869cb8267673a3f01c994c90bd0bc44", "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_srot (const int N, float *X, const int incX, float *Y, const int incY, const float c, const float s) { #define BASE float #include "source_rot.h" #undef BASE }
{ "alphanum_fraction": 0.68359375, "avg_line_length": 19.6923076923, "ext": "c", "hexsha": "ee602d0f64c9b582c0bf482ef3cd7e8a01101c8e", "lang": "C", "max_forks_count": 173, "max_forks_repo_forks_event_max_datetime": "2022-03-27T07:27:04.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-08T18:01:...
#ifndef LIC_METADATA_DEFINITION #define LIC_METADATA_DEFINITION #include <gsl/gsl> #include "format/ClrMetadataFormat.h" namespace lic { class Assembly; class Metadata { public: Metadata(Assembly& assembly, MetadataTable table, size_t rid, gsl::byte* row); ~Metadata(); protected: Assembly& assembly; ...
{ "alphanum_fraction": 0.7227488152, "avg_line_length": 14.5517241379, "ext": "h", "hexsha": "18839c216e253c73ba1f7ee3281fec6bade3fa17", "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.7641700405, "avg_line_length": 32.9333333333, "ext": "h", "hexsha": "cb0bd7c34cbd1c96de5da2a3ef86c88e78ab132a", "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 "globals.h" #include "peano.h" #include <gsl/gsl_heapsort.h> peanoKey Peano_Key ( const double x, const double y, const double z ); static void reorder_particles(); void Print_Int_Bits128 ( const peanoKey val ) { for ( int i = 127; i >= 0; i-- ) { printf ( "%llu", ( long long ) ( ( val & ( ( pe...
{ "alphanum_fraction": 0.4178623719, "avg_line_length": 21.2111801242, "ext": "c", "hexsha": "2463081d7f6bac1f7545614ef9f9981564a67106", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-19T12:31:56.000Z", "max_forks_repo_forks_event_min_datetime": "2019-07-29T09:38:...
/* diff/diff.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 David Morrison * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any...
{ "alphanum_fraction": 0.5805031447, "avg_line_length": 26.3535911602, "ext": "c", "hexsha": "83aae18b7fb8b822fa824fc1713e2f4f8d58472d", "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(lowMachFlow_h) #define lowMachFlow_h #include <petsc.h> // Define the test field number typedef enum { VTEST, QTEST, WTEST } LowMachFlowTestFields; typedef enum { STROUHAL, REYNOLDS, FROUDE, PECLET, HEATRELEASE, GAMMA, PTH, MU, K, CP, BETA, GRAVITY_DIRECTION, TOTAL_LOW_MACH_FLOW_PARAMETERS } LowMachFlowP...
{ "alphanum_fraction": 0.6750708215, "avg_line_length": 108.0612244898, "ext": "h", "hexsha": "82776e26ec4650a68f5139d04032569d8d42eb7c", "lang": "C", "max_forks_count": 17, "max_forks_repo_forks_event_max_datetime": "2022-03-21T18:46:06.000Z", "max_forks_repo_forks_event_min_datetime": "2021-02-10T22:3...
/* * Test the effective difference of a single bit changing on the input. * Evaluate each bit position on the first hash against all the bit * positions on the other hash for any less than random distribution. * * This tests for the "Bit Independence Criterion" of this hash. */ #include "hash_bbt.h" #include <g...
{ "alphanum_fraction": 0.6710005653, "avg_line_length": 29.9830508475, "ext": "c", "hexsha": "0b26fe9af910ac1f9ebf6301129297e7969c95f2", "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 [2017-2020] [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.6546819439, "avg_line_length": 30.130952381, "ext": "h", "hexsha": "cf94880931fc77d04a460d834a36c9f10b2c1e48", "lang": "C", "max_forks_count": 13, "max_forks_repo_forks_event_max_datetime": "2022-01-26T01:56:42.000Z", "max_forks_repo_forks_event_min_datetime": "2019-11-02T06:30:...
/*****************************************************************\ __ / / / / __ __ / /______ _______ / / / / ________ __ __ / ______ \ /_____ \ / / / / / _____ | / / / / / / | / _______| / / / / / / /____/ / / / / / / / / /...
{ "alphanum_fraction": 0.4954088325, "avg_line_length": 25.1318681319, "ext": "h", "hexsha": "25d49ea8dcb5c758dc997d9a306da14555e5057c", "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++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2017 Couchbase, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
{ "alphanum_fraction": 0.6789109767, "avg_line_length": 34.5373134328, "ext": "h", "hexsha": "69da67a324677985d7d9725d9a69bdd3daa53947", "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.6381409506, "avg_line_length": 32.7698209719, "ext": "c", "hexsha": "8f8b5cf72a34e3e0d5f3aee2225b85b7e30f577b", "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":...
/** * A metropolis hasting sampler for bremsstrahlung and pair production cross sections * * copyright (C) 2007 * the icecube collaboration * * $Id: I3MetropolisHastings.h 143040 2016-03-11 17:35:25Z nega $ * * @version $Revision: 143040 $ * @date $LastChangedDate: 2016-03-11 10:35:25 -0700 (Fri, 11 Mar 2016...
{ "alphanum_fraction": 0.6613019457, "avg_line_length": 23.6534090909, "ext": "h", "hexsha": "018c2d87b37ce34c03e13ebeb3bbca5d6648acf8", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-03-30T16:44:18.000Z", "max_forks_repo_forks_event_min_datetime": "2020-07-17T09:20:...
// Copyright (c) 2021 Stig Rune Sellevag // // This file is distributed under the MIT License. See the accompanying file // LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms // and conditions. #ifndef SCILIB_LINALG_BLAS1_VECTOR_NORM2_H #define SCILIB_LINALG_BLAS1_VECTOR_NORM2_H #ifdef USE_MK...
{ "alphanum_fraction": 0.7375988497, "avg_line_length": 26.2452830189, "ext": "h", "hexsha": "fd1345543888529a19e1dec7ad84bd939100095f", "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 COMMAND_LINE_INCLUDE #define COMMAND_LINE_INCLUDE #include <string> #include <vector> #include <gsl/string_span> #include "config/fleetingOptionsInterface.h" #include "config/variablesMap.h" #include "core/task.h" namespace execHelper { namespace plugins { using CommandLineArg = std::string; using CommandLi...
{ "alphanum_fraction": 0.7198669992, "avg_line_length": 28.6428571429, "ext": "h", "hexsha": "4f5aee25c3bf723e5f9f6fe658b127664a7d0109", "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:...
#pragma once #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <cblas.h> #include <omp.h> #include "matrix.h" double l1_distance(double *vec_1, double *vec_2, int N); void naive_ranking(double *matrix, double *result, int N); void pagerank(double *matrix, double *result, int N, ...
{ "alphanum_fraction": 0.7124352332, "avg_line_length": 27.5714285714, "ext": "h", "hexsha": "fcb2cf7278eda6af979ccf879f658e128336c8ec", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_blas.h> #include <omp.h> #include "util.h" int main(int argc, char *argv[]) { char* input_fileName1 = argv[1]; ...
{ "alphanum_fraction": 0.5677494616, "avg_line_length": 34.7165109034, "ext": "c", "hexsha": "b6f0feacba7587329611e9b25cb6e88463d11b29", "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":...
/*========================================================== * Multinomial_gsl.c * * Return multinomially distributed integers based on input probability vector * *========================================================*/ /* */ #include "mex.h" #include "matrix.h" #include <math.h> #include <stdio.h> #include ...
{ "alphanum_fraction": 0.5709219858, "avg_line_length": 26.9558823529, "ext": "c", "hexsha": "f7615e8a3bd58107ddc612b732c98ea42814fafb", "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":...
/* NAME: proj_EM_step PURPOSE: one proj_EM step CALLING SEQUENCE: proj_EM_step(struct datapoint * data, int N, struct gaussian * gaussians, int K,bool * fixamp, bool * fixmean, bool * fixcovar, double * avgloglikedata, bool likeonly, double w, bool noproj, bool diagerrs, bool nowei...
{ "alphanum_fraction": 0.6524160384, "avg_line_length": 36.5893416928, "ext": "c", "hexsha": "a5963f8d75ceaa3f6ee94152c6d9772c59f4b210", "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 qwrapper_slange.c * * PLASMA core_blas quark wrapper * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Julien Langou * @author Henricus Bouwmeester * @author Mathieu Faverge * @date 2010-11...
{ "alphanum_fraction": 0.4607381719, "avg_line_length": 32.0396825397, "ext": "c", "hexsha": "37e814ce52802635f1522686d423a2e8277c10de", "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":...
// SPDX-License-Identifier: Unlicense /* * libinput calibration calculation */ #include <stdio.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_linalg.h> /* * Compute the (Moore-Penrose) pseudo-inverse of a matrix. * * PUBLIC DOMAIN by Charl Linssen <charl@itfromb.it> * * If the singular value decomposition (S...
{ "alphanum_fraction": 0.6482131461, "avg_line_length": 27.7345132743, "ext": "c", "hexsha": "610104bbdd43d15e9d7334ff960326c2d2f78d71", "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 H_LASER_DATA_JSON #define H_LASER_DATA_JSON #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <json-c/json.h> #include <json-c/json_more_utils.h> #include "laser_data.h" #include "algos.h" /* Laserdata to/from json */ JO ld_to_json(LDP); LDP json_to_ld(JO); JO corr_to_json(struct correspond...
{ "alphanum_fraction": 0.7592319055, "avg_line_length": 20.5151515152, "ext": "h", "hexsha": "8e1dfe53bbf7c42614a726f4f93317751eadc797", "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 <math.h> #include <stdio.h> #include <gsl/gsl_math.h> #include <gsl/gsl_monte.h> #include <gsl/gsl_monte_vegas.h> #include "timer.c" #include "timer.h" double g (double *t, size_t dim, void *params); void timer_start(void); double timer_stop(void); int main (void) { double tvegas, tmon...
{ "alphanum_fraction": 0.5307906238, "avg_line_length": 19.8188976378, "ext": "c", "hexsha": "18dd83016abc4c3a69dfef342af94ddf9582a52e", "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++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2018-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance...
{ "alphanum_fraction": 0.6711133915, "avg_line_length": 33.0338983051, "ext": "h", "hexsha": "930c81359783f88129d98a173d2008d0ba36a8be", "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...
#include <jni.h> #include <assert.h> #include <lapacke.h> /*extern void dtrsm_(char *side, char *uplo, char *transa, char *diag, int *m, int *n, double *alpha, double *A, int *lda, double *B, int *ldb);*/ JNIEXPORT jint Java_JAMAJni_QRDecomposition_dgeqrf (JNIEnv *env, jclass kla...
{ "alphanum_fraction": 0.5874569992, "avg_line_length": 36.6893203883, "ext": "c", "hexsha": "9e9881fa61ee3c008a74dd103caacd3f952b21db", "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 <cassert> #include <stdint.h> #include <gsl/gsl-lite.hpp> // gsl::span #include "HypCommands.h" // RECORD_LENGTH // Utility constexpr function converting a enum class to its underlying type N/U #include <type_traits> template <typename E, typename = std::enable_if_t<std::is...
{ "alphanum_fraction": 0.5291411043, "avg_line_length": 25.4025974026, "ext": "h", "hexsha": "580e41f52b52112b82313ecbc145741763b2d8fc", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "viaio/Vlib.h" #include "viaio/VImage.h" #include "viaio/mu.h" #include "viaio/option.h" #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_sort.h> #include <gsl/gsl_permutation.h> #...
{ "alphanum_fraction": 0.6110526316, "avg_line_length": 22.4852071006, "ext": "c", "hexsha": "debd81a1782cd78cae22b523abf39e39f4c6018e", "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:...
#ifndef DART_META_H #define DART_META_H /*----- System Includes -----*/ #include <memory> #include <gsl/gsl> #include <type_traits> /*----- Local Includes -----*/ #include "shim.h" /*----- Type Declarations -----*/ namespace dart { namespace meta { template <class...> using void_t = void; templat...
{ "alphanum_fraction": 0.611003299, "avg_line_length": 29.3618233618, "ext": "h", "hexsha": "35fc5342d323fc1bccc91ba42652e233b1a8a35f", "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:...
#ifndef _LINEAR_ALGEBRA_HELPERS_H_ #define _LINEAR_ALGEBRA_HELPERS_H_ #include <stddef.h> #ifdef HAVE_LAPACK #include <lapacke.h> #include <cblas.h> #endif /* Define constants */ #define LAH_PI 3.14159265358979323846 /*--- Data types ------------------------------------------------------------*/ #ifdef HAVE_LAPACK ...
{ "alphanum_fraction": 0.6270886574, "avg_line_length": 36.0780141844, "ext": "h", "hexsha": "7a3cc43053e0a21e721dc8f214a0c0c17950a73b", "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_spmatrix.h> #include <munit.h> #include <osqp/cs.h> #include <osqp/osqp.h> #include <unistd.h> #include <qdm.h> #include "test.h" static MunitResult test_qdm_vector_seq( const MunitParameter params[], MUNIT_UNUSED void* fixture ) { double min = atof(munit_parameters_get(params, "qdm_vecto...
{ "alphanum_fraction": 0.6046099291, "avg_line_length": 23.3309352518, "ext": "c", "hexsha": "04f51722ec2877d5cab9fd4b8e4a220141e7079d", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
static char help[] = "Newton's method for a two-variable system. Implements analytical Jacobian.\n" "Adds struct to hold parameter.\n"; #include <petsc.h> typedef struct { double b; } AppCtx; extern PetscErrorCode FormFunction(SNES, Vec, Vec, void*); extern PetscErrorCode FormJacobian(SNES, Vec, Mat, Mat, ...
{ "alphanum_fraction": 0.6475095785, "avg_line_length": 33, "ext": "c", "hexsha": "42854af8d91952e54e5e2c2a9e8836915d7062bb", "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": "706411c1e...
// // Created by L.Jonathan Feldstein // #ifndef CIMPLE_SYSTEM_H #define CIMPLE_SYSTEM_H #include <gsl/gsl_cblas.h> #include <gsl/gsl_blas.h> #include "cimple_polytope_library.h" // EXAMPLE ALLOCATION FOR STRUCT // Try to allocate structure. // struct struct_name *return_**** = malloc(sizeof(struct)); // Try to allo...
{ "alphanum_fraction": 0.5614100532, "avg_line_length": 30.6371428571, "ext": "h", "hexsha": "002af29f31936abc55ba87a18d44f04e65665297", "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:...
#include <stdio.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_rng.h> #define NUM 5 int main() { int i; double data[NUM]; double mean, variance, largest, smallest; gsl_rng* r = gsl_rng_alloc(gsl_rng_default); for (i = 0; i < NUM; ++i) data[i] = gsl_rng_uniform(r); mean = gsl_stats_mean(data, 1, NU...
{ "alphanum_fraction": 0.6273972603, "avg_line_length": 23.5483870968, "ext": "c", "hexsha": "6883e512eb2578235df87ad8e0a5a6c588287383", "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":...
/* We are using the OpenCV implementation and adding gridding to the feature detection. Modified : computeKeyPoints Added methods : keepBestKeyPoints and subimageToImageCoordinates */ /********************************************************************* * Software License Agreement (BSD License) * * Copyright (c...
{ "alphanum_fraction": 0.6816473001, "avg_line_length": 33.44, "ext": "h", "hexsha": "58b3e7331fd2edde9e06407a0d7f04e2f5cbeffa", "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:13.000Z...
/* * The MIT License is a permissive free software license, which permits reuse * within both open source and proprietary software. The software is licensed * as is, and no warranty is given as to fitness for purpose or absence of * infringement of third parties' rights, such as patents. Generally use for * resear...
{ "alphanum_fraction": 0.6276876009, "avg_line_length": 38.328990228, "ext": "c", "hexsha": "55c7460de87ca4d2ca24be8d50a6a3aa64187801", "lang": "C", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-03-28T09:17:33.000Z", "max_forks_repo_forks_event_min_datetime": "2016-08-03T12:08:3...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <sys/time.h> #include <inttypes.h> #include <omp.h> #include <gsl/gsl_math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_heapsort.h> #include "sph_data_types.h" #include "sph_linked_list.h" #include "sph...
{ "alphanum_fraction": 0.5659149248, "avg_line_length": 26.411622276, "ext": "c", "hexsha": "cad53d50c459e0be19a83e10a9a07c8fee4b8e76", "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/binomial.c * * Copyright (C) 2004 Jason H. Stover. * Copyright (C) 2004 Giulio Bottazzi * * 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.6291732909, "avg_line_length": 23.0825688073, "ext": "c", "hexsha": "190945df9cf7986b538b352ed47e7adc14aa1134", "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...
/* ** BCM - bipartite connectivity mapping ** ** G.Lohmann, MPI-KYB, Aug 2017 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "viaio/Vlib.h" #include "viaio/VImage.h" #include "viaio/mu.h" #include "viaio/option.h" #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #inclu...
{ "alphanum_fraction": 0.6221934075, "avg_line_length": 26.2128801431, "ext": "c", "hexsha": "88fa4177661dacd21e4f9294e8ba94aafd08c697", "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 <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #include <gsl/gsl_multifit.h> //DEFINES #define SUCCESS 1 #define FAILURE -1 #define PROGRESS "====================" #define PRG_WIDTH 20 //FUNCTIONS DECLARATION int rows_number(char *); double mean(double *, int); void cumsum(double *, doub...
{ "alphanum_fraction": 0.528821167, "avg_line_length": 28.3143812709, "ext": "c", "hexsha": "a7c3b148b4db61fe0cb3942c8681fbb5449a9e15", "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 <winrt\Windows.Foundation.h> #include <d3d11.h> #include <cstdint> #include <array> #include <limits> #include <gsl\gsl> namespace Library { class Game; class RenderStateHelper final { public: RenderStateHelper(Game& game); RenderStateHelper(const RenderStateHelper&) = delete; RenderS...
{ "alphanum_fraction": 0.7700729927, "avg_line_length": 29.3571428571, "ext": "h", "hexsha": "b9abd483393d67f5709351e9376537aa47506105", "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 UTILSH #define UTILSH #include <gsl/gsl_vector.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_sf.h> #include <gsl/gsl_permutation.h> #include <math.h> #include <time.h> #include <assert.h> #include <sys/stat.h> #include <sys/types.h> #include <stdlib.h> #include <stdarg.h> time_t T...
{ "alphanum_fraction": 0.7011197244, "avg_line_length": 20.9189189189, "ext": "h", "hexsha": "b095ecbe4748ca8943f2cbb8b84fe9721eed2d8e", "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 <stdbool.h> #include <string.h> #include <math.h> #include <assert.h> #include <alloca.h> #include <gsl/gsl_cdf.h> #include "limits.h" #include "stattest.h" #include "cat.h" #include "fisher.h" #include "min2.h" #include "bvr.h" typedef unsigned int count_t; typedef c...
{ "alphanum_fraction": 0.621198199, "avg_line_length": 24.4561797753, "ext": "c", "hexsha": "dab9ec88c75e6c785809d4f5005ddae4405f874a", "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": ...
/* GENETIC - A simple genetic algorithm. Copyright 2014, 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 copyright notice, this list of condi...
{ "alphanum_fraction": 0.6105158909, "avg_line_length": 35.0378548896, "ext": "c", "hexsha": "580205ca6acd9f014ffb539d4e9a2570191bc858", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2017-05-22T08:54:08.000Z", "max_forks_repo_forks_event_min_datetime": "2017-05-22T08:54:...
/* matrix/gsl_matrix_complex_long_double.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either versi...
{ "alphanum_fraction": 0.7220347155, "avg_line_length": 44.9647696477, "ext": "h", "hexsha": "79212ab8e6a0e2203c5289c88ff6fc6d99f322d5", "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 random generator is a C++ wrapper for the GNU Scientific Library // Copyright (C) 2001 Torbjorn Vik // 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 Licen...
{ "alphanum_fraction": 0.7103857567, "avg_line_length": 31.2037037037, "ext": "h", "hexsha": "61408fac42a672fed949f8a37def05821ff6f8bd", "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:...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2018 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
{ "alphanum_fraction": 0.6664420485, "avg_line_length": 43.0144927536, "ext": "h", "hexsha": "7e4ef62f72016d896f7af47675991f906b2d5d96", "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_blas.h> #include <gsl/gsl_math.h> #include <gsl/gsl_vector.h> // author: Andrew Liew <liew@arch.ethz.ch> // copyright: Copyright 2018, BLOCK Research Group - ETH Zurich // license: MIT License // email: liew@arch.ethz.ch int i; int j; // ================================================...
{ "alphanum_fraction": 0.515807709, "avg_line_length": 22.2019230769, "ext": "h", "hexsha": "cd7fd34e0f9d86458b3bca6f8432afb9c4aaf032", "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 "halleystring.h" #include "halley/data_structures/vector.h" #include <optional> #include <gsl/span> namespace Halley { class FuzzyTextMatcher { public: class Score { public: int curJumps = 0; int jumpLength = 0; int sections = 0; int sectionLens = 0; int sectionPos = 0...
{ "alphanum_fraction": 0.6272838002, "avg_line_length": 25.2615384615, "ext": "h", "hexsha": "cafc2602c2995c6640f80bab2517cbd132a6493f", "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/ntuple.h * * Copyright (C) 2000 Simone Piccardi * * 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 ve...
{ "alphanum_fraction": 0.6972332016, "avg_line_length": 27.2043010753, "ext": "h", "hexsha": "8392ca9d0fbc80831f2b7b74e4e6bdb9f7b6e1b0", "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 __NODE_H__ #define __NODE_H__ //#include <pybind11/functional.h> #include <pybind11/numpy.h> //#include <pybind11/stl.h> //#include <pybind11/pybind11.h> #include <torch/script.h> #include <pybind11/embed.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <iomanip> #include <sstream> #include <c...
{ "alphanum_fraction": 0.7150928168, "avg_line_length": 24.2941176471, "ext": "h", "hexsha": "734a8e92bf590bb608a323f0d98eb41060114b4c", "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 time_evolution.c * * This file contains code to advance the solutions one step forward in time * * *****************************************************************************/ #include <stdio.h> #include <math.h> #include <gsl/gsl_...
{ "alphanum_fraction": 0.5779307282, "avg_line_length": 25.9223021583, "ext": "c", "hexsha": "44c7209daca174f848aa9d2bfeaeaa20cda3c352", "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:...
#ifndef CONVERTERS_H_HVFGCFVK #define CONVERTERS_H_HVFGCFVK #include <fmt/core.h> #include <gsl/gsl> #include <opencv2/imgcodecs.hpp> #include <sens_loc/conversion/depth_to_bearing.h> #include <sens_loc/conversion/depth_to_curvature.h> #include <sens_loc/conversion/depth_to_flexion.h> #include <sens_loc/conversion/dep...
{ "alphanum_fraction": 0.6572514938, "avg_line_length": 42.08, "ext": "h", "hexsha": "e6bf94b82f856cdbc34c81ee548c124d1f069020", "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": "5c8338...
/* roots/brent.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Reid Priedhorsky, 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.5084504174, "avg_line_length": 20.0448979592, "ext": "c", "hexsha": "5cd527541a58221718c50bfdecf4174410b27b21", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
#ifndef INIT #define INIT #include <assert.h> #include <stdio.h> #include <time.h> #include <math.h> /* #include <gsl/gsl_linalg.h> */ #include "macros.h" #include "algebra.h" #include "util.h" /** * Initialization of params and vectors. * These functions are not (necessarily) optimized for performance. */ void ...
{ "alphanum_fraction": 0.5601773649, "avg_line_length": 32.2176870748, "ext": "h", "hexsha": "4c2e1b4323e32ae251b8a55fda5f3b403748bf2a", "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":...
/* * ----------------------------------------------------------------- * Ellipsoid Library --- ell_lib.h * Version: 1.6180 * Date: Feb 19, 2010 * ----------------------------------------------------------------- * Programmer: Americo Barbosa da Cunha Junior * americo.cunhajr@gmail.com * -------------...
{ "alphanum_fraction": 0.5115350488, "avg_line_length": 26.2093023256, "ext": "h", "hexsha": "e433221ef52d732c106b8ecb9b4ddf9fdcedc914", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-12-30T01:44:13.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-15T03:57:...
/** * @file kjg_gsl.h * @brief Augment GSL functions */ #ifndef KJG_GSL_H_ #define KJG_GSL_H_ #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_rng.h> /** * Prints the matrix tab-delimited * @param *stream output file pointer * @param *m gsl_matrix to print * @param *template character...
{ "alphanum_fraction": 0.706472828, "avg_line_length": 23.6803278689, "ext": "h", "hexsha": "97e23432fd4d870c6d1e12860ff8cfad6f89b1eb", "lang": "C", "max_forks_count": 63, "max_forks_repo_forks_event_max_datetime": "2022-01-31T18:57:58.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-20T08:57:...
#ifndef libceed_petsc_examples_bps_problem_data_h #define libceed_petsc_examples_bps_problem_data_h #include <ceed.h> #include <petsc.h> #include "../include/bcfunctions.h" #include "../include/structs.h" #include "../qfunctions/bps/bp1.h" #include "../qfunctions/bps/bp2.h" #include "../qfunctions/bps/bp3.h" #include ...
{ "alphanum_fraction": 0.6100760955, "avg_line_length": 25.75, "ext": "h", "hexsha": "d63e595c52d81a593f788f24c00a986ff73d8072", "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": "c785ad...
#ifndef _params_h_ #define _params_h_ #include <stdio.h> #include <time.h> #include <unistd.h> //For getpid() function #include <string.h> #include <stdlib.h> #include <math.h> #include <fftw3.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_interp.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h...
{ "alphanum_fraction": 0.7111486486, "avg_line_length": 28.6451612903, "ext": "h", "hexsha": "30ac429936de28ef47eeceae7e56ab6b8577fa51", "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/balance.c * * Copyright (C) 2006 Patrick Alken * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. * ...
{ "alphanum_fraction": 0.5453269154, "avg_line_length": 26.6631016043, "ext": "c", "hexsha": "f07b1df375d6ef678ca4910be6e43d653e915a32", "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, 2009 Gerald I. Evenden */ static const char RCS_ID[] = "$Id: proj_gdinverse.c,v 5.6 2009/05/17 19:41:47 gie Exp gie $"; /* ** 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 th...
{ "alphanum_fraction": 0.7005132783, "avg_line_length": 30.4829931973, "ext": "c", "hexsha": "8bcdcda6b6143c3099ecd0baf7db826338bf8cb1", "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.6143263322, "avg_line_length": 24.8926940639, "ext": "c", "hexsha": "537c73cf02c2ef2492459279d03a5241e88c4218", "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...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "../mersenne.h" #include <lapacke.h> #include <time.h> #include <sys/time.h> #ifndef M_PI #define M_PI 3.14159265358979323846264338327 #endif /* Lattice size and dimensions */ #define NT 4 #define NX 4 #define ND 2 #define NDIRS (2*ND) #define TUP 0...
{ "alphanum_fraction": 0.7279503106, "avg_line_length": 23, "ext": "h", "hexsha": "ad486c2af254997a1b625571ebabef1200686a0d", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-07-18T10:21:16.000Z", "max_forks_repo_forks_event_min_datetime": "2019-07-18T10:21:16.000Z", ...
#ifndef CONSTITUTIVE_DF_H #define CONSTITUTIVE_DF_H #include <algorithm> #include <numeric> #include "SIMD_BDB_Integrator.h" #ifdef HAS_MKL #include <mkl.h> #else #include <cblas.h> #endif inline void GetTotalTraction_(Real *TotalTraction, const Real *CauchyStressTensor, int ndim) { if (ndim==3) { Total...
{ "alphanum_fraction": 0.5443539511, "avg_line_length": 28.753164557, "ext": "h", "hexsha": "b52d830ff2fbe337ad42165d66ec1dfe9d75b736", "lang": "C", "max_forks_count": 10, "max_forks_repo_forks_event_max_datetime": "2021-05-18T08:06:51.000Z", "max_forks_repo_forks_event_min_datetime": "2018-05-30T09:44:...
/* * BRAINS * (B)LR (R)everberation-mapping (A)nalysis (I)n AGNs with (N)ested (S)ampling * Yan-Rong Li, liyanrong@ihep.ac.cn * Thu, Aug 4, 2016 */ /*! * \file reconstruct_con.c * \brief reconstruct continuum. */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_cblas.h> #include <g...
{ "alphanum_fraction": 0.6373959412, "avg_line_length": 26.6261491318, "ext": "c", "hexsha": "4b159bcac7d0154d3df472c4f52049bdbbb65796", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2020-11-22T12:54:58.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-12T13:51:...
/* ----------------------------------------------------------------------------- * Copyright 2021 Jonathan Haigh * SPDX-License-Identifier: MIT * ---------------------------------------------------------------------------*/ #ifndef SQ_INCLUDE_GUARD_core_typeutil_h_ #define SQ_INCLUDE_GUARD_core_typeutil_h_ #includ...
{ "alphanum_fraction": 0.698792211, "avg_line_length": 28.7730496454, "ext": "h", "hexsha": "b6d542b8d16ce8f735dfa69c50a1b4794cd61c78", "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 <string.h> #include <stdint.h> #include <mpi.h> #include <gsl/gsl_rng.h> #include <fastpm/libfastpm.h> #include <fastpm/logging.h> #include <fastpm/string.h> #include <fastpm/transfer.h> #include "chealpix.h" #include <mpsort.h> #include "pmpfft.h" #include "pmghosts.h" static double RNDTABLE[8192]; gsl_rn...
{ "alphanum_fraction": 0.5282632949, "avg_line_length": 25.0139534884, "ext": "c", "hexsha": "3c4ebed2f98a9509f59bd0939ade4a0ac512945f", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-04-14T23:24:19.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-14T23:24:...
/* filter/test_impulse.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.6829635201, "avg_line_length": 33.872611465, "ext": "c", "hexsha": "c3abfdddad23178c21c60a627c0499a10f734023", "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 <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_complex.h> #include <gsl/gsl_complex_math.h> #include <gsl/gsl_math.h> #include <gsl/gsl_interp.h> #include "aXe_utils.h" #include "aXe_errors.h" #include "fringe_conf.h" #include "fringe_model.h" #define MAX(x,y) (((x...
{ "alphanum_fraction": 0.7185638471, "avg_line_length": 32.2550218341, "ext": "c", "hexsha": "29d00f8d926b2342a9925e54fb81bfb8272ace06", "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 <bitset> #include <type_traits> #include <thrust/execution_policy.h> #include <thrust/gather.h> #include <thrust/iterator/counting_iterator.h> #include <thrust/scatter.h> #include <cuda/define_specifiers.hpp> #include <gsl-lite/gsl-lite.hpp> #include <thrustshift/bit.h> #include <thrustshift/...
{ "alphanum_fraction": 0.6550951848, "avg_line_length": 29.0744186047, "ext": "h", "hexsha": "924738cf1ac8422f2ae7fd582082fcd254b58779", "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":...
/* * halo.h * * Created on: Oct 23, 2012 * Author: cgiocoli * * This class implement the non-linear power spectrum using the Halo Model */ #ifndef POWERCDMHM_H_ #define POWERCDMHM_H_ #include <math.h> #include <cosmo.h> #include <halo.h> #include <utilities.h> #ifdef ENABLE_GSL #include <gsl/gsl_er...
{ "alphanum_fraction": 0.7165913493, "avg_line_length": 22.7794117647, "ext": "h", "hexsha": "55e5c7b2e9ffbefc5b243dd837cd16fdcebdddab", "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(PETIGAFTN_H) #define PETIGAFTN_H #include <petsc.h> EXTERN_C_BEGIN extern void IGA_Quadrature_1D(PetscInt,const PetscReal[],const PetscReal[],const PetscReal*, PetscReal[],PetscReal[],PetscReal[]); extern void IGA_Quadrature_2D(PetscInt,const PetscReal[],const PetscReal[],co...
{ "alphanum_fraction": 0.6073328267, "avg_line_length": 58.4888888889, "ext": "h", "hexsha": "be2fd90719f7f3adf99cbbe958f4be74b84c3827", "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 2016 BitTorrent Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
{ "alphanum_fraction": 0.7451713396, "avg_line_length": 31.4705882353, "ext": "h", "hexsha": "58b85bbe8678435e1a5a094b52fb65dafc6336f3", "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: Jochen K"upper * created: Jan 2002 * file: pygsl/src/statistics/longmodule.c * $Id: intmodule.c,v 1.6 2004/03/24 08:40:45 schnizer Exp $ * * *" */ #include <Python.h> #include <pygsl/error_helpers.h> #include <pygsl/block_helpers.h> #include <gsl/gsl_statistics.h> /* include real functions for...
{ "alphanum_fraction": 0.7086720867, "avg_line_length": 18.45, "ext": "c", "hexsha": "fbc35429f21fb2822ca576bdb581fad6610b037d", "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:07.000Z"...
#ifndef VECTORBOOST #define VECTORBOOST #include <boost/numeric/ublas/vector.hpp> #include <boost/numeric/ublas/matrix.hpp> #include <boost/qvm/mat_operations.hpp> #include <boost/numeric/ublas/vector_proxy.hpp> #include <boost/numeric/ublas/triangular.hpp> #include <boost/numeric/ublas/lu.hpp> #include <boost/numeric...
{ "alphanum_fraction": 0.6325200998, "avg_line_length": 31.0948275862, "ext": "h", "hexsha": "a1d9bd984fdb80d3177f71cbb3a4a60bbcf574c7", "lang": "C", "max_forks_count": 10, "max_forks_repo_forks_event_max_datetime": "2021-12-18T15:22:08.000Z", "max_forks_repo_forks_event_min_datetime": "2020-02-03T09:05...
/* matrix/gsl_matrix_ulong.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License,...
{ "alphanum_fraction": 0.682328907, "avg_line_length": 34.250728863, "ext": "h", "hexsha": "00d51818981ce88ea3b2b3b7e2150358a7c22770", "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 */ #ifndef __CCL_CORE_H_INCLUDED__ #define __CCL_CORE_H_INCLUDED__ #include <stdbool.h> #include <stdio.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_interp2d.h> #include <gsl/gsl_spline2d.h> #include <gsl/gsl_const_mksa.h> #include "ccl_utils.h" #include "ccl_f1d.h" #include "ccl_f2d.h" CCL_BEGIN_DECLS...
{ "alphanum_fraction": 0.7386488374, "avg_line_length": 26.4406332454, "ext": "h", "hexsha": "4e536aa6c74b6e01dd605f1cefd1f240a04cd9ae", "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 <Metal/Metal.h> namespace Halley { class MetalVideo; class MetalBuffer { public: enum class Type { Vertex, Index, Constant }; MetalBuffer(MetalVideo& video, Type type, size_t initialSize = 0); MetalBuffer(MetalBuffer&& other) noexcept; ~MetalBuffer();...
{ "alphanum_fraction": 0.717884131, "avg_line_length": 20.8947368421, "ext": "h", "hexsha": "7b7383327c5f962084729427b0a08bf89c8131b4", "lang": "C", "max_forks_count": 193, "max_forks_repo_forks_event_max_datetime": "2022-03-22T12:59:58.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-23T06:08...
/* randist/exppow.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2006 James Theiler, Brian Gough * Copyright (C) 2006 Giulio Bottazzi * * 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...
{ "alphanum_fraction": 0.5962002413, "avg_line_length": 26.9593495935, "ext": "c", "hexsha": "c307e4c11677f7661076e1d7d6551e97cc4ba3d1", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include "Data/Data.h" #include <Eigen/Dense> #include <opencv2/core/eigen.hpp> #include <opencv2/calib3d.hpp> #include <opencv2/imgproc.hpp> #include <assert.h> #include <array> #include <gsl/gsl> #include "eigen.h" namespace ...
{ "alphanum_fraction": 0.5634105731, "avg_line_length": 32.9839816934, "ext": "h", "hexsha": "87a6e1fee57ac7cd4e58dc31223a9beeb9661f26", "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...
#pragma once #include <map> #include <vector> #ifndef _NOGSL #include <gsl/gsl_vector.h> #include <gsl/gsl_blas.h> #else #include "FakeGSL.h" #endif #include "BooleanNodes.h" #include "CommandLineArgs.h" class Util { public: static map<int, int> getNodeToValMap(map<int, int>& inputMap, vector<int>& inputs) { map<i...
{ "alphanum_fraction": 0.4614829775, "avg_line_length": 29.2489451477, "ext": "h", "hexsha": "5603afd18cc63e1e8cf67c2d4660f291c661e071", "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:...
/* * Copyright (c) 1997-1999 Massachusetts Institute of Technology * * 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 versio...
{ "alphanum_fraction": 0.6687460013, "avg_line_length": 35.5227272727, "ext": "c", "hexsha": "748e36d472ad94d6693b17e0dc6596f06fafe1a2", "lang": "C", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2022-03-29T02:59:10.000Z", "max_forks_repo_forks_event_min_datetime": "2017-11-20T07:52:...
/* siman/siman_tsp.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Mark Galassi * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option)...
{ "alphanum_fraction": 0.6251639703, "avg_line_length": 27.7212121212, "ext": "c", "hexsha": "5a44a8ed106d82ca7a39e509b7117d6447d8ea26", "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:...
/* adept_source.h - Source code for the Adept library Copyright (C) 2012-2015 The University of Reading Copyright (C) 2015-2017 European Centre for Medium-Range Weather Forecasts Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Y...
{ "alphanum_fraction": 0.6181001004, "avg_line_length": 32.5294535131, "ext": "h", "hexsha": "e1abf1a0e86440a7c68f2f19aa860a19d1862d57", "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 "/home/lillian/work/install_fpdebug/valgrind-3.7.0/fpdebug/fpdebug.h" #include <gsl/gsl_sf.h> int main(int argc, const char * argv[]) { unsigned long int hexdouble; unsigned int a; a = atoi(argv[1]); double result = gsl_sf_airy_zero_Ai(a); //printf("%.15f\n", result); VAL...
{ "alphanum_fraction": 0.7211796247, "avg_line_length": 28.6923076923, "ext": "c", "hexsha": "cf3444e4a5cae897a1013f7a296beee57372fcfb", "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":...
/* roots/secant.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Reid Priedhorsky, 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.6739055498, "avg_line_length": 24.5847457627, "ext": "c", "hexsha": "c44eea59945de36829fbfb65365125eaab3f7b0a", "lang": "C", "max_forks_count": 40, "max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31...
#ifndef _COGOPTIMIZER_H_ #define _COGOPTIMIZER_H_ #include <gsl/gsl_math.h> #include <gsl/gsl_multimin.h> class GP; class CGOptimizer { public: CGOptimizer(void *gp); void Initialize(const Col<REAL> &init, double (*f_eval)(const gsl_vector*, void*), void (*df_eval)(const gsl_vector*, void*, gsl_vec...
{ "alphanum_fraction": 0.7123287671, "avg_line_length": 21.1935483871, "ext": "h", "hexsha": "527d5bad9548add0dd17f3eeb4e7a54a52802fa5", "lang": "C", "max_forks_count": 25, "max_forks_repo_forks_event_max_datetime": "2022-03-15T15:01:38.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-28T23:03...
/* This file is a part of NNTL project (https://github.com/Arech/nntl) Copyright (c) 2015-2021, Arech (aradvert@gmail.com; https://github.com/Arech) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met...
{ "alphanum_fraction": 0.6642867694, "avg_line_length": 54.7412398922, "ext": "h", "hexsha": "7ee5d5aaa1f71f31b636368f557dda80c62f1e4a", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2017-10-15T11:12:33.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-15T11:12:...
#pragma once #include <gsl-lite/gsl-lite.hpp> #include <cuda/define_specifiers.hpp> #include <cuda/runtime_api.hpp> #include <thrustshift/math.h> namespace thrustshift { namespace device_function { namespace explicit_unroll { /*! \brief Fill range of length `N` with `x`. * * \param N length of the range * \...
{ "alphanum_fraction": 0.673380035, "avg_line_length": 24.5591397849, "ext": "h", "hexsha": "85b293d17e1d3b76bed2786b635dddbf7d640cd7", "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": ...
/** * Simple and fast kmeans-implementation making use of multithreading. * * Author: Anders Bennehag * * The MIT License (MIT) * * Copyright (c) 2016 Anders Bennehag * */ #ifndef FASTKMEANS_H_ #define FASTKMEANS_H_ #include <gsl/gsl_matrix.h> int fkm_kmeans(const gsl_matrix* points, gsl_matrix* clusters, ...
{ "alphanum_fraction": 0.7013071895, "avg_line_length": 31.875, "ext": "h", "hexsha": "8d7b7bafd0d6c441be58d444e0797e2dfe427c17", "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": "25e1a...
#include <gsl/gsl_math.h> #include "gsl_cblas.h" #include "cblas.h" double cblas_ddot (const int N, const double *X, const int incX, const double *Y, const int incY) { #define INIT_VAL 0.0 #define ACC_TYPE double #define BASE double #include "source_dot_r.h" #undef ACC_TYPE #undef BASE #undef INIT_VAL }
{ "alphanum_fraction": 0.731629393, "avg_line_length": 18.4117647059, "ext": "c", "hexsha": "dd5d12ad2a9a9b07b50d561edd7134b2e6a9f5f6", "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...
/* * Copyright 2020-2021 OpenDR European Project * * 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.7315105334, "avg_line_length": 29.3552631579, "ext": "h", "hexsha": "439fe9689d36cebdf488c9a74407460bbd8f4f09", "lang": "C", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2021-12-12T16:18:47.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-04T07:38:...
/* ** Implementation of LISA algorithm ** for statistical inference of fMRI images ** ** 2nd level inference (one-sample test) ** ** G.Lohmann, 2017 */ #include <viaio/Vlib.h> #include <viaio/file.h> #include <viaio/mu.h> #include <viaio/option.h> #include <viaio/os.h> #include <viaio/VImage.h> #include <gsl/gsl_cdf.h...
{ "alphanum_fraction": 0.6632886564, "avg_line_length": 30.2871287129, "ext": "c", "hexsha": "00f5db5e2f8350e4983370ca33aacaab71a29ba3", "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:...
#ifndef TRACKER_GMD_H #define TRACKER_GMD_H #include "tracker.h" #include <stdlib.h> /* srand, rand */ #include <time.h> /* time */ #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> /* GAUSSIAN*/ #include "helper/Constants.h" #include <limits.h> #include "helper/high_res_timer.h" #include "helper/bound...
{ "alphanum_fraction": 0.7256723716, "avg_line_length": 37.8703703704, "ext": "h", "hexsha": "a503929b6d07b7834110fb81d978710052ea3915", "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":...