Search is not available for this dataset
text string | meta dict |
|---|---|
#include <math.h>
#include <stdlib.h>
#include <gsl/gsl_linalg.h>
#include "userFunc.h"
#define G 6.67384e-8 /* 2010 CODATA value in CGS units */
#define QCRIT 1.0 /* Q value at which GI turns on */
#define QDAMP 10.0 /* Rate of damping of alpha above Qcrit */
#define ALPHAMIN 1.0e-6... | {
"alphanum_fraction": 0.5968113715,
"avg_line_length": 35.1756756757,
"ext": "c",
"hexsha": "c3f86c23cf44ec453f4a046deab096488f8b96a7",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-11-20T02:11:17.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-19T04:41:... |
#ifndef TREE_H
#define TREE_H
#include "node.h"
#include <string>
#include <vector>
#include <gsl/gsl_rng.h>
#include "data.h"
using namespace std;
namespace weakarg
{
extern gsl_rng * rng;
/**
@brief Genealogy of the isolates under study
*/
class Tree
{
protected:
Node * root;///<Root node of the genealogy... | {
"alphanum_fraction": 0.6837126811,
"avg_line_length": 39.8,
"ext": "h",
"hexsha": "d627d86a5467e3dd75d6d3887940dd8a78dfe82a",
"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": "d1c2e0e... |
/**
* Copyright 2019 José Manuel Abuín Mosquera <josemanuel.abuin@usc.es>
*
* This file is part of Matrix Market Suite.
*
* Matrix Market Suite 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, ei... | {
"alphanum_fraction": 0.6443498452,
"avg_line_length": 24.8461538462,
"ext": "c",
"hexsha": "277c12d5b98cc43bc06690908eb4d1ad44667416",
"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":... |
/*
* -----------------------------------------------------------------
* Binary Search Tree Library --- bst_lib.c
* Version: 1.6180
* Date: Mar 12, 2010
* -----------------------------------------------------------------
* Programmer: Americo Barbosa da Cunha Junior
* americo.cunhajr@gmail.com
* ----... | {
"alphanum_fraction": 0.4674925043,
"avg_line_length": 22.1573426573,
"ext": "c",
"hexsha": "fddb9d328bd60e2b2970c6cbfe137d316e4631d7",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-12-30T01:44:13.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-15T03:57:... |
#include "std_includes.h"
#ifndef MATRIX_H
#define MATRIX_H
#ifdef CRANIUM_USE_MKL
#define CRANIUM_USE_BLAS
#include "mkl.h"
#else
#ifdef CRANIUM_USE_CBLAS
#define CRANIUM_USE_BLAS
#include <cblas.h>
#endif
#endif
// represents user-supplied training data
typedef struct DataSet_ {
size_t rows;
... | {
"alphanum_fraction": 0.5593767215,
"avg_line_length": 29.4143518519,
"ext": "h",
"hexsha": "9ce3a18507c661ed2b77a945a9237231b0b2fee0",
"lang": "C",
"max_forks_count": 35,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T07:13:59.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-05-27T01:44... |
#pragma once
#include "BasicTypes.h"
#include "CharInfo.h"
#include "Distance.h"
#include "FontTypes.h"
#include "types/ND0.h"
#include "types/ND1_Node.h"
#include "types/ND1_Box.h"
#include "types/ND2_Char.h"
#include "types/ND2_Box.h"
#include "types/ND2_Rule.h"
#include "types/ND2_Glue.h"
#include "types/ND2_Kern.h... | {
"alphanum_fraction": 0.7338501292,
"avg_line_length": 20.3684210526,
"ext": "h",
"hexsha": "7741ef9fc9b866a0203787414766e71be4ac10db",
"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) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIM... | {
"alphanum_fraction": 0.67178034,
"avg_line_length": 34.6915254237,
"ext": "h",
"hexsha": "8539417fa595770a79a44fa089a415e482730e30",
"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 <malloc.h>
#include <string.h>
#include <float.h>
#include <time.h>
#include <errno.h>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_errno.h>
#include "function.h"
#include "norm.h"
// Exception system configuration
#define ERR_T int
#define ER... | {
"alphanum_fraction": 0.6329551743,
"avg_line_length": 24.924137931,
"ext": "c",
"hexsha": "abc958e244fb142e1bca1976dcb3dfd82a6cc04b",
"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
///
/// @brief test of gsl pointer wrappers
///
/// @copyright (c) 2007 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// atnf-enquiries@csiro.au
///
/// This file is part of the ASKAP s... | {
"alphanum_fraction": 0.666837388,
"avg_line_length": 33.093220339,
"ext": "h",
"hexsha": "b5fc6ce95e9dfc8aa10eb7b570c8e1bdbab45412",
"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": "... |
/* rng/lecuyer21.c
*
* 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.
*
* This program is distributed in the hop... | {
"alphanum_fraction": 0.6624175824,
"avg_line_length": 22.75,
"ext": "c",
"hexsha": "ee581283ed5d14170c746642074513c76c349dd0",
"lang": "C",
"max_forks_count": 40,
"max_forks_repo_forks_event_max_datetime": "2022-03-03T23:23:37.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-02-26T15:31:16.000Z... |
#ifndef libceed_solids_examples_utils_h
#define libceed_solids_examples_utils_h
#include <ceed.h>
#include <petsc.h>
// Translate PetscMemType to CeedMemType
static inline CeedMemType MemTypeP2C(PetscMemType mem_type) {
return PetscMemTypeDevice(mem_type) ? CEED_MEM_DEVICE : CEED_MEM_HOST;
}
#endif // libceed_soli... | {
"alphanum_fraction": 0.8294117647,
"avg_line_length": 26.1538461538,
"ext": "h",
"hexsha": "685339916afbd3192b9706f87a390c508063390f",
"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) 2021 Atsushi Togo */
/* All rights reserved. */
/* This file is part of phonopy. */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* * Redistributions of source code must retain the abo... | {
"alphanum_fraction": 0.4869593925,
"avg_line_length": 48.9865229111,
"ext": "h",
"hexsha": "fc0e6e2f89c0983eee5b7674d3493cf06b2e51d5",
"lang": "C",
"max_forks_count": 16,
"max_forks_repo_forks_event_max_datetime": "2022-02-17T10:24:13.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-06-06T21:20... |
/* -*- 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.642199938,
"avg_line_length": 36.3646616541,
"ext": "h",
"hexsha": "c10951d9ed684f594a8fd3584729747c5fe01a21",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2020-01-15T16:52:37.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-01-15T16:52:3... |
/* multimin/test.c
*
* 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 2 of the License, or (at
* your option) ... | {
"alphanum_fraction": 0.6814186117,
"avg_line_length": 26.392,
"ext": "c",
"hexsha": "2ffe4b969a69bb97408b3792945e2a61a9bfac4b",
"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... |
#pragma once
#include <gsl/gsl>
#include "halley/utils/utils.h"
#include <vector>
namespace Halley {
class String;
class Path;
class FileSystem
{
public:
static bool exists(const Path& p);
static bool createDir(const Path& p);
static bool createParentDir(const Path& p);
static int64_t getLastWriteTime(... | {
"alphanum_fraction": 0.7280788177,
"avg_line_length": 24.1666666667,
"ext": "h",
"hexsha": "8fda1ad4abf1a0a63637573ca4966a21557668c0",
"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":... |
/*
sstmap C extension module.
##############################################################################
# SSTMap: A Python library for the calculation of water structure and
# thermodynamics on solute surfaces from molecular dynamics
# trajectories.
# MIT License
# Copyright 2016-2017 Lehman Col... | {
"alphanum_fraction": 0.5075887725,
"avg_line_length": 48.2649625935,
"ext": "c",
"hexsha": "49dbb457e991d951e4bdd764c95d6faa95244f1b",
"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/plugin/iasset_importer.h"
#include <gsl/gsl>
namespace Halley
{
class AudioImporter : public IAssetImporter
{
public:
ImportAssetType getType() const override { return ImportAssetType::Audio; }
void import(const ImportingAsset& asset, IAssetCollector& collector) override;
privat... | {
"alphanum_fraction": 0.7563352827,
"avg_line_length": 27,
"ext": "h",
"hexsha": "c6037aca89b6dbd8aa64971c785058d675d8dc9f",
"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": "fc4f15395... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "arcana/type_traits.h"
#include "arcana/either.h"
#include "arcana/iterators.h"
#include <memory>
#include <gsl/gsl>
#include <utility>
#include <cereal/cereal.hpp>
#include <cereal/archives/json.hpp>
namespace mira
{... | {
"alphanum_fraction": 0.6094359241,
"avg_line_length": 31.1497975709,
"ext": "h",
"hexsha": "525e4827c54eb835a95f9d9a42e52d66dd208fc4",
"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... |
#include <stdio.h>
#include <stdlib.h>
#define COMPEARTH_PRIVATE_GEM3 1
#define COMPEARTH_PRIVATE_GEMT3 1
#include "compearth.h"
#ifdef DEBUG
#ifdef COMPEARTH_USE_MKL
#include <mkl_cblas.h>
#else
#include <cblas.h>
#endif
#endif
/*!
* @brief Transforms a set of 3 x 3 tensors using transformation matrix T.
*
* @para... | {
"alphanum_fraction": 0.5922974768,
"avg_line_length": 29.5294117647,
"ext": "c",
"hexsha": "ddb12aa28020ae6cf6a3250b742922c9b14cd342",
"lang": "C",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-02-28T13:42:40.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-07-08T00:13:... |
#ifndef GLOBALS_H
#define GLOBALS_H
#define PROG_NAME "WVT ICs"
#define VERSION "1.0"
/* C std lib */
#include <stdlib.h> // system
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <limits.h... | {
"alphanum_fraction": 0.6966569441,
"avg_line_length": 25.4685714286,
"ext": "h",
"hexsha": "84fb37858c868a668c7a7edae1db9c7459ddc3c4",
"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:... |
#ifndef MAINH
#define MAINH
#include <stdlib.h>
#include <string.h>
#include "data.h"
#include "lda-seq.h"
#include "lda.h"
#include <gsl/gsl_matrix.h>
typedef struct dtm_fit_params
{
char* datafile;
char* outname;
char* heldout;
int start;
int end;
int ntopics;
int lda_max_em_iter;
do... | {
"alphanum_fraction": 0.6789215686,
"avg_line_length": 15.6923076923,
"ext": "h",
"hexsha": "cb843c0b343f15df0dc11dcf821ee3594c8674c5",
"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 <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <mpi.h>
#include <cblas.h>
#include "utils.h"
#ifndef MATRIX_SIZE
#define MATRIX_SIZE 128
#pragma message "Using default matrix size"
#endif
#define MIN_BUFF_SIZE MATRIX_SIZE*MATRIX_SIZE*sizeof(double)
#ifndef REUSE_BUFFER
#define REUSE_BUFFER 1
#endif... | {
"alphanum_fraction": 0.658698941,
"avg_line_length": 34.7894736842,
"ext": "c",
"hexsha": "f35ccbbf77dcadee4a30545fbf495eec29ce55e1",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2018-11-07T15:52:04.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-11-07T15:52:0... |
/*
** Task-related edge density, main algorithm
**
** Ref: Lohmann et al (2016) PLoS One, 11(6):e0158185
**
** G.Lohmann, MPI-KYB, Jan 2015
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_errno.h>
#include <gsl/... | {
"alphanum_fraction": 0.6619348383,
"avg_line_length": 31.540433925,
"ext": "c",
"hexsha": "17a444e5eabebf6914d269556bf3682eb2b8317d",
"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:5... |
#pragma once
#include <string>
#include <gsl/span>
namespace crypto {
/*
Use the Windows CNG API to compute a MD5 hash of the
provided data view and return it as a lowercase hex
string.
*/
std::string MD5AsString(gsl::span<uint8_t> data);
}
| {
"alphanum_fraction": 0.7047244094,
"avg_line_length": 15.875,
"ext": "h",
"hexsha": "9113310ed79d4bcc62f167a80174a9f497f9436f",
"lang": "C",
"max_forks_count": 25,
"max_forks_repo_forks_event_max_datetime": "2021-11-15T23:14:51.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-02-04T21:19:53.000... |
// MIT License
//
// Copyright (c) 2021 Daniel Robertson
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mo... | {
"alphanum_fraction": 0.6366139023,
"avg_line_length": 27.1588785047,
"ext": "h",
"hexsha": "ca2270970251a1fd5a1a66e7e3ef38df43a006a6",
"lang": "C",
"max_forks_count": 5,
"max_forks_repo_forks_event_max_datetime": "2022-03-26T09:43:26.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-03-29T14:14:... |
//This does CELL (~soma) stage of GRU (gated recurrent unit) model.
//This requires each neuron to have 3 input time series, X, Xr, Xz,
//where X is the usual input and Xr, Xz the inputs for the reset and update gates.
//X, Xr, Xz are the output of a separate linear IN stage (weights and baises).
//For dim=0, R[:,t] =... | {
"alphanum_fraction": 0.4085361021,
"avg_line_length": 40.3099041534,
"ext": "c",
"hexsha": "3f291295968a9b13f3ed40db99f88e61cea9f85b",
"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 <omp.h>
#include <float.h>
#include <math.h>
#include "sacio.h"
#include "parmt_utils.h"
#ifdef PARMT_USE_INTEL
#include <mkl.h>
#include <mkl_lapacke.h>
#include <mkl_cblas.h>
#else
#include <lapacke.h>
#include <cblas.h>
#endif
#include "parmt_mtsear... | {
"alphanum_fraction": 0.517851042,
"avg_line_length": 36.8755905512,
"ext": "c",
"hexsha": "bdd10a16277c45022a7248964d7bf0c27fc6e00e",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha": ... |
#pragma once
#include <gsl/span>
#include "simple_math.h"
constexpr auto VECTOR_SIZE = sizeof(float) * 4;
class CBufferBase;
struct CBufferAlign
{
size_t size;
explicit CBufferAlign(size_t size_ = VECTOR_SIZE) : size(size_) {}
};
__forceinline CBufferAlign cbuff_align(size_t size = VECTOR_SIZE)
{
return CBuffer... | {
"alphanum_fraction": 0.7216027875,
"avg_line_length": 22.2480620155,
"ext": "h",
"hexsha": "127cc6a73efb0678f7037d2e1ae0cfe87f48ab00",
"lang": "C",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2021-04-06T19:38:01.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-02-27T11:20:... |
#include <stdio.h>
#include <cblas.h>
double A[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 };
double x[] = { 1.0, -1.0, 2.0 };
double y[] = { -1.0, 0.0, 2.0 };
int main() {
int i;
cblas_dgemv(CblasRowMajor, CblasNoTrans, 3, 3, 2.5, A, 3, x, 1, 1.2, y, 1);
for (i = 0; i < 3; ++i) { printf("%6.1f\n", y[i])... | {
"alphanum_fraction": 0.4808259587,
"avg_line_length": 21.1875,
"ext": "c",
"hexsha": "dccb6a35fc8f11a42a6c244b9da3b0c66d49b83f",
"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": "ed0c... |
/* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | {
"alphanum_fraction": 0.6859058795,
"avg_line_length": 33.6733870968,
"ext": "h",
"hexsha": "6406273124fc548322b5990a814575ab421d183b",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-03-03T07:54:16.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-03-03T07:54:... |
/* specfunc/gsl_sf_erf.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 o... | {
"alphanum_fraction": 0.7137254902,
"avg_line_length": 24.9456521739,
"ext": "h",
"hexsha": "d63b3176e18401badace06fd91f5a76f7eee64d4",
"lang": "C",
"max_forks_count": 5,
"max_forks_repo_forks_event_max_datetime": "2022-01-04T19:22:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-06-27T11:11:... |
#ifndef CWANNIER_HTIGHTBINDING_H
#define CWANNIER_HTIGHTBINDING_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_complex.h>
#include <gsl/gsl_complex_math.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_errno.h>
#include "bstrlib/bstrlib.h"
ty... | {
"alphanum_fraction": 0.749672346,
"avg_line_length": 23.1212121212,
"ext": "h",
"hexsha": "714a41ac73ef3c87440e9a27940c8ab830178346",
"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: nicback_utils.c
* Subroutine for the NICMOS background subtraction
*
*/
#include <gsl/gsl_vector.h>
#include <gsl/gsl_multifit_nlin.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
#include "aXe_grism.h"
#include "aXe_utils.h"
#include "spc_FITScards.h"
#include "spce_sect.h"
#include "spce_fi... | {
"alphanum_fraction": 0.6754090614,
"avg_line_length": 25.8458015267,
"ext": "c",
"hexsha": "3eac35d2a95ec274c9f7fb815ce8044bcdf99dfd",
"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":... |
/* integration/qag.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) ... | {
"alphanum_fraction": 0.6267253147,
"avg_line_length": 24.7857142857,
"ext": "c",
"hexsha": "64798de94e4c2a9cc3e81c315f5efbef5b1933f1",
"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:... |
/**
*
* @file testing_zhegv.c
*
* PLASMA testing routines
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @version 2.6.0
* @author Azzam Haidar
* @author Hatem Ltaief
* @date 2010-11-15
* @precisions normal z -> c d s
*
**/
... | {
"alphanum_fraction": 0.4914059928,
"avg_line_length": 36.8567961165,
"ext": "c",
"hexsha": "1915a39a9be9ae65532dd206ebc2eea019ea8440",
"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":... |
/*
* Portions Copyright (c) 2010-Present Couchbase
* Portions Copyright (c) 2008 Sun Microsystems
*
* Use of this software is governed by the Apache License, Version 2.0 and
* BSD 3 Clause included in the files licenses/APL2.txt and
* licenses/BSD-3-Clause-Sun-Microsystems.txt
*/
#pragma once
#include "dockey.h... | {
"alphanum_fraction": 0.6490447013,
"avg_line_length": 29.4890965732,
"ext": "h",
"hexsha": "2ef559e292ce7b52fb2668ef4ae2eedd927fa475",
"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... |
#pragma once
#include <memory>
#include <gsl/gsl>
#include "../platform/d3d.h"
#include "../infrastructure/macros.h"
namespace gfx {
class IndexBuffer {
friend class RenderingDevice;
public:
IndexBuffer(CComPtr<ID3D11Buffer> buffer, size_t count);
~IndexBuffer();
void Update(gsl::span<uint16_t> data);
NO_CO... | {
"alphanum_fraction": 0.7489919355,
"avg_line_length": 18.7169811321,
"ext": "h",
"hexsha": "5aadb81ec819808795313195978e0e5b2954f244",
"lang": "C",
"max_forks_count": 25,
"max_forks_repo_forks_event_max_datetime": "2021-11-15T23:14:51.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-02-04T21:19... |
/* applying a t-model to performance data to obtain a robust
estimate of the mean via ML of the loglikelihood function */
/* PREPROCESSOR FLAGS:
NR - Algorithms from Numerical Recipes
NELDER - Nelder-Mead algorithm, not working
POWELL - Powell's method
QUASI_NEWTON - quasi-Newton (Newton-Raphson) ... | {
"alphanum_fraction": 0.5649626836,
"avg_line_length": 27.8458100559,
"ext": "c",
"hexsha": "0c1f3f4566d6740976f0701ed2897ab4a635d001",
"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 SPC_FITSCARDS_H
#define SPC_FITSCARDS_H
#include <stdlib.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
#include "aXe_grism.h"
#include "fitsio.h"
#include "disp_conf.h"
#include "aper_conf.h"
typedef struct
{
int n; /* Number of cards in the **cards array */
char **cards; /* A po... | {
"alphanum_fraction": 0.7569493942,
"avg_line_length": 23.3833333333,
"ext": "h",
"hexsha": "984c34eb082f0e49253d10991e044004fd761e07",
"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/gsl_multifit.h
*
* Copyright (C) 2000, 2007, 2010 Brian Gough
* Copyright (C) 2013, 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 o... | {
"alphanum_fraction": 0.5443284708,
"avg_line_length": 39.8596491228,
"ext": "h",
"hexsha": "691b91202180aabe59ef4b823c6bbcdcaca95463",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:... |
/**
*
* @file core_spamm.c
*
* PLASMA core_blas kernel
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @version 2.6.0
* @author Dulceneia Becker
* @date 2011-06-14
* @generated s Tue Jan 7 11:44:49 2014
*
**/
#include <cblas... | {
"alphanum_fraction": 0.3817897842,
"avg_line_length": 30.7597864769,
"ext": "c",
"hexsha": "d64e5b39c283b0862a8f0aea055eef9c4d39d073",
"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":... |
/* expfit.c -- model functions for exponential + background */
#include <math.h>
#include <stddef.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
struct usertype {
size_t n;
double * y;
double * sigma;
};
int expb_f (const gsl_vector * x, void *data,
gsl_vector * f) {
size_t n = ((struct ... | {
"alphanum_fraction": 0.5764809903,
"avg_line_length": 23.5625,
"ext": "c",
"hexsha": "1b30ae586c6cfee536151788f72468f4d26792cd",
"lang": "C",
"max_forks_count": 6,
"max_forks_repo_forks_event_max_datetime": "2021-08-23T17:12:42.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-04-02T12:24:47.000... |
/*
* Dice Tester - Counter tool to display statistics about the randomness of dice
*/
#include <gsl/gsl_cdf.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int
getSides(int argc, char **argv) {
int sides = 6;
if (argc >= 2 && atoi(argv[1]) > 0)
sides = atoi(argv[1]);
retur... | {
"alphanum_fraction": 0.5752401281,
"avg_line_length": 23.1358024691,
"ext": "c",
"hexsha": "58beb881a92a59a58dc580f4405b8dae0c6e9fcb",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
/* interpolation/interp_poly.c
*
* Copyright (C) 2001 DAN, HO-JIN
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later vers... | {
"alphanum_fraction": 0.6510500808,
"avg_line_length": 24.9022988506,
"ext": "c",
"hexsha": "a0cd68aa123614e21ec2d653d03894000a6b4237",
"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... |
// matrix.h
// This matrix class is a C++ wrapper for the GNU Scientific Library
// Copyright (C) 2001 Ramin Nakisa
// 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 ... | {
"alphanum_fraction": 0.6937674419,
"avg_line_length": 36.8150684932,
"ext": "h",
"hexsha": "96377d108d9e0ba5b24e88c2e3b867730dfcee97",
"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 zcgels.c
*
* PLASMA computational routines
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @version 2.6.0
* @author Emmanuel Agullo
* @date 2010-11-15
* @precisions mixed zc -> ds
*
**/
#include <stdlib.h>
#incl... | {
"alphanum_fraction": 0.5838284441,
"avg_line_length": 36.7227272727,
"ext": "c",
"hexsha": "c25ec07f0117765e7eb4fd97f9b2c4f9702ca968",
"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 Function.h
* \brief header file that defines several function structures
*/
// Function.h
#ifndef NBODYFUNCTION_H
#define NBODYFUNCTION_H
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
namespace Math
{
/// \struct Math::gsl_math_function
/// \brief gsl function wrapper
struct gsl_math_function... | {
"alphanum_fraction": 0.722182849,
"avg_line_length": 23.5166666667,
"ext": "h",
"hexsha": "7cd017261649bd458f9ebf1cb7e6172138bbae8d",
"lang": "C",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2020-10-23T00:21:57.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-04-23T02:58:0... |
#include <petsc.h>
typedef struct _msc_t {
PetscInt nmasks;
PetscInt* masks;
PetscInt* mask_offsets;
PetscInt* signs;
PetscScalar* coeffs;
} msc_t;
typedef struct _shell_context {
PetscInt nmasks;
PetscInt* masks;
PetscInt* mask_offsets;
PetscInt* signs;
PetscReal* real_coeffs; // we store on... | {
"alphanum_fraction": 0.7343412527,
"avg_line_length": 21.0454545455,
"ext": "h",
"hexsha": "a4feaaad39ff55faabcb34015ee75cffa0756a79",
"lang": "C",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-01-26T21:38:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-02-21T19:36:... |
#include <stdio.h>
#include <pthread.h>
#include <time.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#if defined(PARSEC_HAVE_SCHED_SETAFFINITY) && defined (__USE_GNU) || 1
#include <linux/unistd.h>
#define gettid() syscall(__NR_gettid)
#else
#warning Not using sched_setaffinity
#endif /* PARSEC_HAVE_S... | {
"alphanum_fraction": 0.5478158205,
"avg_line_length": 25.4736842105,
"ext": "c",
"hexsha": "c91efc50477bc8c614447ac14680ad09b8432f81",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
// -*- c++ -*-
#if 1
#include <string>
#include <vector>
#include <utility> // for std::pair
#include <stdint.h>
#include <iostream>
class Foo
{
public:
static std::string GetName() { return "Foo"; }
Foo();
~Foo();
void setDouble(double d) { m_d = d;}
void setDouble(double d, float x) { m_d = d+x;}
//v... | {
"alphanum_fraction": 0.5893102771,
"avg_line_length": 22.1260869565,
"ext": "h",
"hexsha": "9b76fd61a39811d85ba17e06b0c9a59af2675040",
"lang": "C",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2019-08-21T22:54:06.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-07-22T05:52:... |
#ifndef __MATH_SO3_H__
#define __MATH_SO3_H__
#include <string.h>
#include <assert.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
#include "fasttrig.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
% ROTX Compute a rotation matrix about the X-axis.
% R = ROTX(PHI) returns [3x3] rotation matrix R. Note: ... | {
"alphanum_fraction": 0.5525781851,
"avg_line_length": 29.2889344262,
"ext": "h",
"hexsha": "1a4b7ce787742c8d7ed2ffcb935d64b65e61cfb3",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2020-12-31T01:33:24.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-06-29T04:21:... |
#pragma once
/*For Engine Only*/
//#include <glad\glad.h>
//#include <GLFW\glfw3.h>
//#include <gsl\gsl>
//#include <SOIL2.h>
//#include <imgui.h>
//#include <glm\glm.hpp>
//#include <spdlog\spdlog.h>
//
///*Logger System*/
//#include "BooErEngine\Utils\Log.h"
//
///*Event's System*/
//#include "BooErEngine\Events\Even... | {
"alphanum_fraction": 0.6750448833,
"avg_line_length": 19.8928571429,
"ext": "h",
"hexsha": "01ff15aa2d012a7956cba2114372a9d0c97b153e",
"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 "./economic-model.h"
#include <gsl/gsl_randist.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
person *makePerson(int birthYear, int deathYear, int iq,
personality *_personality)
{
person *p = malloc(sizeof(person));
p->birth_year = birthYear;
p->death_... | {
"alphanum_fraction": 0.6353111433,
"avg_line_length": 18.4266666667,
"ext": "c",
"hexsha": "93a25cefb482ad2c45d0d4e66f02f965207b0d8d",
"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":... |
/// @brief Compile-time configurable Policy-based ring buffer
///
/// `RingBuffer` has an API matching `std::vector` in its default configuration or can be configured
/// to provide a subset of that API, but provide lock-free concurrency
#pragma once
#include <Hyperion/BasicTypes.h>
#include <Hyperion/Concepts.h>
#inc... | {
"alphanum_fraction": 0.6801577328,
"avg_line_length": 35.6401544402,
"ext": "h",
"hexsha": "8efba2d4a150fcb026a74b07ae958184857a9988",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
#include <stdio.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_multifit.h>
double w[] = { 52.21, 53.12, 54.48, 55.84, 57.20,
58.57, 59.93, 61.29, 63.11, 64.47,
66.28, 68.10, 69.92, 72.19, 74.46 };
double h[] = { 1.47, 1.50, 1.52, 1.55, 1.57,
1.60, 1.63, 1.65, 1.68, 1.70,
1.73, 1.75,... | {
"alphanum_fraction": 0.6298997265,
"avg_line_length": 24.3777777778,
"ext": "c",
"hexsha": "7e35f5e206e0965dfc454a2c6a3d1ef77241c92b",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2018-11-09T22:08:40.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-11-09T22:08:... |
#include <math.h>
#include <stdlib.h>
#if !defined(__APPLE__)
#include <malloc.h>
#endif
#include <stdio.h>
#include <assert.h>
#include <time.h>
#include <string.h>
#include <fftw3.h>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_sf_erf.h>
#include <gsl/gsl_integration.h>
#include <gsl/gsl_spline.h>
#include <gsl/gsl... | {
"alphanum_fraction": 0.6240910189,
"avg_line_length": 44.3654761905,
"ext": "c",
"hexsha": "a28c089925947bc51078a7ad03c6dc12e5a75a39",
"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 petscutils_h
#define petscutils_h
#include <ceed.h>
#include <petsc.h>
#include <petscdmplex.h>
#include <petscfe.h>
CeedMemType MemTypeP2C(PetscMemType mtype);
PetscErrorCode ProjectToUnitSphere(DM dm);
PetscErrorCode Kershaw(DM dm_orig, PetscScalar eps);
typedef PetscErrorCode (*BCFunction)(PetscInt dim, Pe... | {
"alphanum_fraction": 0.6776390465,
"avg_line_length": 38.3043478261,
"ext": "h",
"hexsha": "a541f39a3700eba46257d0ca410865f2e8fc9ab4",
"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":... |
/* filter/test_gaussian.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.6604567308,
"avg_line_length": 30.8148148148,
"ext": "c",
"hexsha": "eb8ef7282926627b0fe7541d81d3865a60c82df0",
"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:... |
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... | {
"alphanum_fraction": 0.4989339019,
"avg_line_length": 33.5,
"ext": "c",
"hexsha": "af15d567552560b1fb889d6b53a0b43d074ee756",
"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:46.000Z"... |
//
// Encoder.h
// PretendToWork
//
// Created by tqtifnypmb on 08/12/2017.
// Copyright © 2017 tqtifnypmb. All rights reserved.
//
#pragma once
#include "../types.h"
#include <string>
#include <gsl/gsl>
namespace brick
{
struct ASCIIConverter {
typedef std::string result_type;
static detail::Code... | {
"alphanum_fraction": 0.6864295125,
"avg_line_length": 21.6857142857,
"ext": "h",
"hexsha": "269df9cd22ac1516a87cb952320a605d94aa62d0",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
#include <cblas.h>
#include <clapack.h>
main(int nargs, char **args)
{
double A[1]={1.0}, b[1]={1.0};
int ipiv[1];
clapack_dgesv(CblasColMajor, 1, 1, A, 1, ipiv, b, 1);
}
| {
"alphanum_fraction": 0.5888888889,
"avg_line_length": 20,
"ext": "c",
"hexsha": "e4e35701763a07fc6876230114a6ce55a2dca74a",
"lang": "C",
"max_forks_count": 47,
"max_forks_repo_forks_event_max_datetime": "2021-11-11T20:59:04.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-27T06:22:57.000Z",
... |
/* Copyright 2016, Alistair Boyle, 3-clause BSD License */
#include "config.h"
#include <stdio.h>
#include <stdlib.h> /* for exit */
#include <math.h> /* for fabs */
#include <cblas.h> /* for cblas_dgemm */
int
main (void)
{
double const a[] = { 0.11, 0.12, 0.13,
0.21, 0.22, 0.23
... | {
"alphanum_fraction": 0.3974358974,
"avg_line_length": 31.9090909091,
"ext": "c",
"hexsha": "bebbbbd1470cf7a55c3c434d1bd682bf2fe15aa0",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
//
// Created by Harold on 2020/9/16.
//
#ifndef M_MATH_M_CURVEFIT_H
#define M_MATH_M_CURVEFIT_H
#include <map>
#include <gsl/gsl_fit.h>
#include <gsl/gsl_multifit.h>
#include <gsl/gsl_cdf.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
#include <numeric>
#include <vector>
#include <cmath>
namespace M_MAT... | {
"alphanum_fraction": 0.5344788859,
"avg_line_length": 35.0551181102,
"ext": "h",
"hexsha": "0287efaded35483edbc4d7b5414267bd1082b471",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-07-04T12:26:12.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-07-04T12:26:... |
#pragma once
#include <gsl/gsl>
#include <memory>
#include <list>
#include <chrono>
#include <EASTL/fixed_vector.h>
#include <EASTL/map.h>
#include "../platform/d3d.h"
#include "buffers.h"
#include "shaders.h"
#include "camera.h"
#include "textures.h"
struct ID3D11Texture2D;
namespace gfx {
class RenderingDe... | {
"alphanum_fraction": 0.7580819694,
"avg_line_length": 29.3373015873,
"ext": "h",
"hexsha": "c5fb4325206987a91be637a0ea3e015867b98d08",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
#include <gsl/gsl_test.h>
#include <gsl/gsl_ieee_utils.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_cblas.h>
#include "tests.h"
void
test_rot (void) {
const double flteps = 1e-4, dbleps = 1e-6;
{
int N = 1;
float c = 0.0f;
float s = 0.0f;
float X[] = { -0.314f };
int incX = 1;
float Y[] = { -0.4... | {
"alphanum_fraction": 0.4483826033,
"avg_line_length": 20.3176100629,
"ext": "c",
"hexsha": "d2d6ed330e01e3af94ba187cfea142c6903df910",
"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 <ceed.h>
#include <petsc.h>
#include "../problems/problems.h"
PetscErrorCode RegisterProblems(ProblemFunctions problem_functions) {
PetscErrorCode ierr;
PetscFunctionBegin;
SOLIDS_PROBLEM_REGISTER(problem_functions, "Linear", ElasLinear, NH);
SOLIDS_PROBLEM_REGISTER(problem_functions, "SS-NH", ElasS... | {
"alphanum_fraction": 0.6885245902,
"avg_line_length": 36.6,
"ext": "c",
"hexsha": "01531b6e9423d18d646778c289abff77f8adf86f",
"lang": "C",
"max_forks_count": 41,
"max_forks_repo_forks_event_max_datetime": "2022-03-01T13:02:07.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-12-27T22:35:13.000Z"... |
/**
* Subroutines to calculate the
* various contamination models
*
*/
#include <math.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_interp.h>
#include "fitsio.h"
#include "inout_aper.h"
#include "aXe_grism.h"
#include "spce_PET.h"
#include "spc_wl_calib.h"
#include "aXe_errors.h"
#... | {
"alphanum_fraction": 0.6505242895,
"avg_line_length": 26.6051212938,
"ext": "c",
"hexsha": "49c9017ada67b082824c8f3ef1450da62862c7d9",
"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":... |
/*
* gslrandomgen.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... | {
"alphanum_fraction": 0.7017419125,
"avg_line_length": 18.385620915,
"ext": "h",
"hexsha": "a120dc4accf2293420bf97a5cd2987a3a35ae18e",
"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:... |
// 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_BLAS2_MATRIX_VECTOR_PRODUCT_H
#define SCILIB_LINALG_BLAS2_MATRIX_VECTOR_PRODUC... | {
"alphanum_fraction": 0.6380034209,
"avg_line_length": 33.4947916667,
"ext": "h",
"hexsha": "93ff8d84a9ac44dc701fcaea28a567b77bff0f55",
"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) 2001 ~ 2016 Neutrino International Inc. *
* *
* Autho... | {
"alphanum_fraction": 0.5498985605,
"avg_line_length": 31.0840840841,
"ext": "h",
"hexsha": "d0ce83806b61aaf63d8e15bb19385f557de02e67",
"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":... |
/**
* Original Author:
* * author: Jochen K"upper
* * created: April 2002
*
* author: Pierre Schnizer
* created: December 2003
* file: pygsl/src/simanmodule.c
* $Id: simanmodule.c,v 1.9 2008/10/25 20:45:04 schnizer Exp $
*
* Jochen K"upper wrote the original version of this module. In December 2003 I
* rewr... | {
"alphanum_fraction": 0.6714811668,
"avg_line_length": 26.2332838039,
"ext": "c",
"hexsha": "7accc521496ed465f6bc464e936132f262e97494",
"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:... |
/////////////////
//example25.5.c
/////////////////
#include <stdio.h>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_odeiv.h>
#include <math.h>
typedef struct{
double *a; //y=a[0]x[0]+a[1]x[1]+...a[ka]y[ka]+b[0]u[0]+b[1]u[1]+...+b[kb]u[kb]
// double *a; //y[t+1]=a[0]y[t]+a[1]y[t-1]+...a... | {
"alphanum_fraction": 0.5224423777,
"avg_line_length": 27.7865168539,
"ext": "c",
"hexsha": "8db9775ca496da104a34c4d5e777ec5f2f23d46f",
"lang": "C",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2020-12-01T00:54:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-12-01T00:54:... |
#include <math.h>
#include <stdio.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_cblas.h>
#include "motionControl.h"
void printMatrix(gsl_matrix* m, int row, int col) {
for(int i = 0; i < row; i++) {
for(int j = 0; j < col; j++) {
printf(... | {
"alphanum_fraction": 0.6122384274,
"avg_line_length": 26.5042016807,
"ext": "c",
"hexsha": "2ee4cef488591f1c53305b995ff28db3136a9119",
"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) 2018-2021 Aleksas Mazeliauskas, Stefan Floerchinger,
* Eduardo Grossi, and Derek Teaney
* All rights reserved.
*
* FastReso is distributed under MIT license;
* see the LICENSE file that should be present in the root
* of the source distribution, or alternately available at:... | {
"alphanum_fraction": 0.6630113142,
"avg_line_length": 37.5490196078,
"ext": "h",
"hexsha": "60d6aa7b5cb720dec9f0c6df02d294b4c721168c",
"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 <glm/glm.hpp>
#include <gsl/gsl>
#include <optional>
namespace rev {
struct Segment {
glm::vec3 start;
glm::vec3 end;
};
struct Ray {
glm::vec3 origin;
glm::vec3 direction;
};
struct Sphere {
glm::vec3 center;
float radius;
};
template <typename VertexRange, typename ... | {
"alphanum_fraction": 0.5358792385,
"avg_line_length": 28.9153094463,
"ext": "h",
"hexsha": "362ae7a4a995f603449732efbbcaf712c98d1b12",
"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 <unordered_map>
#include <vector>
#include <gsl/gsl>
#include "huffman.h"
#include "interface.h"
#include "minqueue.h"
class statistics {
public:
size_t original;
size_t modified;
};
class huffman_encoder {
// Statistics of the current encoding.
statistics stats;
std:... | {
"alphanum_fraction": 0.6854961832,
"avg_line_length": 18.7142857143,
"ext": "h",
"hexsha": "8a010ad971a854658095337e1288897f7a89f68d",
"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/demo.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 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 3 of the License, or (... | {
"alphanum_fraction": 0.660359508,
"avg_line_length": 30.2,
"ext": "c",
"hexsha": "07b0adaa54deb0b1f559df6fa64c294bdefdcbbf",
"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.000Z",
... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <gsl/gsl_rng.h>
#define N 65536 //the final number of nodes
#define I 2 // the initial number of nodes
#define MI 0 //the initial trial number
#define MF 33 //(the final trial number) - 1
#define RS 35382 //seed of the random number generat... | {
"alphanum_fraction": 0.4863493597,
"avg_line_length": 19.6161137441,
"ext": "c",
"hexsha": "9e0bcfd30ea60a0998e4b122374ca6a1db16c151",
"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 CLASS_H
#define CLASS_H
#include <iostream>
#include <ctime>
#include <fstream>
#include <string>
#include <algorithm>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_cdf.h>
//multivariate normal libraries
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_blas.h>... | {
"alphanum_fraction": 0.6939322829,
"avg_line_length": 37.2875,
"ext": "h",
"hexsha": "693fee3032eef28fe745d9cfd8d2032d4ceaf5d2",
"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": "2c62... |
#include "openblas_utest.h"
#include <stdio.h>
#include <stdlib.h>
#include <cblas.h>
#define LAPACK_ROW_MAJOR 101
blasint LAPACKE_dgesvd( blasint matrix_layout, char jobu, char jobvt,
blasint m, blasint n, double* a,
blasint lda, double* s, double* u... | {
"alphanum_fraction": 0.5524115756,
"avg_line_length": 29.3396226415,
"ext": "c",
"hexsha": "5b131bb2cc30afe05861709ca8e58282808d9081",
"lang": "C",
"max_forks_count": 1564,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T07:12:54.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-01T01:... |
/* randist/gauss.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.6644715179,
"avg_line_length": 27.3603603604,
"ext": "c",
"hexsha": "f30c14273405dec6c77b0f08b5dda9f6e5ddfe1d",
"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:... |
/* gsl_histogram_stat.c
* Copyright (C) 2000 Simone Piccardi
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 3 of the
* License, or (at your option) any later version.
*... | {
"alphanum_fraction": 0.5724073497,
"avg_line_length": 22.7730496454,
"ext": "c",
"hexsha": "eab0218fb3de0581c149f4283811c4e1acc1ca41",
"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:... |
/* spmatrix/util.c
*
* Copyright (C) 2012, 2013, 2014, 2015, 2016, 2017, 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
* y... | {
"alphanum_fraction": 0.6559422193,
"avg_line_length": 24.1746031746,
"ext": "c",
"hexsha": "6e5d02e8c6d930a8494513756d3bf2fe7d77f79c",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:... |
#include <cblas.h>
#include "tasks.h"
void trsm_task_seq(void *ptr)
{
struct trsm_task_arg *arg = (struct trsm_task_arg*) ptr;
int n = arg->n;
int m = arg->m;
double *A21 = arg->A21;
double *A11 = arg->A11;
int ldA = arg->ldA;
// Compute A21 := A21 * inv(A11').
cblas_... | {
"alphanum_fraction": 0.5281837161,
"avg_line_length": 21.7727272727,
"ext": "c",
"hexsha": "6129d37e97014592868cf322b46280e6533d6551",
"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 S3D_CV_IMAGE_OPERATION_INPUT_OUTPUT_ADAPTER_H
#define S3D_CV_IMAGE_OPERATION_INPUT_OUTPUT_ADAPTER_H
#include <s3d/multiview/stan_results.h>
#include <opencv2/core/mat.hpp>
#include <gsl/gsl>
namespace s3d {
namespace image_operation {
class ImageOperations;
class InputOutputAdapter {
public:
InputOutput... | {
"alphanum_fraction": 0.7730337079,
"avg_line_length": 22.25,
"ext": "h",
"hexsha": "b597922c81546126c2e48227e6ae92ada3c75358",
"lang": "C",
"max_forks_count": 6,
"max_forks_repo_forks_event_max_datetime": "2021-05-18T16:22:03.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-07-13T21:51:09.000Z"... |
#include <stdio.h>
#include <math.h>
#include <nlopt.h>
double myfunc(unsigned n, const double *x, double *grad, void *my_func_data)
{
//printf("%f\t%f\t", grad[0], grad[1]);
//printf("%f\t%f\n", x[0], x[1]);
if (grad) {
grad[0] = 0.0;
grad[1] = 0.5 / sqrt(x[1]);
}
//printf("%f\... | {
"alphanum_fraction": 0.56152513,
"avg_line_length": 27.9193548387,
"ext": "c",
"hexsha": "7d37c2d73dc0ce01b173dd166a34305476ed6d5c",
"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 CollectorMap_h
#define CollectorMap_h
/** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this reposit... | {
"alphanum_fraction": 0.6074958188,
"avg_line_length": 34.2998696219,
"ext": "h",
"hexsha": "50fd0a1dae81a492d261d69c95fc3bf4a7d0414b",
"lang": "C",
"max_forks_count": 164,
"max_forks_repo_forks_event_max_datetime": "2022-03-23T10:22:29.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-11-30T21:1... |
#ifndef __LINALG_LIB_WRAPPER_H__
#define __LINALG_LIB_WRAPPER_H__
// Wrapper for linear algebra library (BLAS, LAPACK)
#if !defined(USE_MKL) && !defined(USE_OPENBLAS)
#define USE_OPENBLAS
#endif
#ifdef USE_MKL
#include <mkl.h>
#define BLAS_SET_NUM_THREADS mkl_set_num_threads
#endif
#ifdef USE_OPENBLAS
#include <cbl... | {
"alphanum_fraction": 0.8057553957,
"avg_line_length": 18.1304347826,
"ext": "h",
"hexsha": "492bded893f0c67323fb1f4c0b15f9967dd946fa",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-01-05T23:38:37.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-12-24T06:06:... |
/*
Copyright [2021] [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 i... | {
"alphanum_fraction": 0.7397119342,
"avg_line_length": 27.7714285714,
"ext": "h",
"hexsha": "579212965336c483dc5decd6c94343bff8e59313",
"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_blas.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
void read_matrix(int** index, int** matrix, double scaling, int N_kw, char* input_fileName)
{
FILE *fp = fop... | {
"alphanum_fraction": 0.5445692884,
"avg_line_length": 27.8125,
"ext": "c",
"hexsha": "5612e876afeed0a5ffdee6a30e68b23e9144e9bb",
"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": "3960... |
//Gets deltas (first order differences) of X,
//which is assumed to be pre-allocated of double size
//so that the appended rows/cols will hold the deltas.
//Thus, for dim==0, C must be even, with C/2 the original ncols of X.
//And, for dim==1, R must be even, with R/2 the original nrows of X.
//I implement this just ... | {
"alphanum_fraction": 0.4542780407,
"avg_line_length": 36.8820754717,
"ext": "c",
"hexsha": "6beb4f4706f482c36f5ffa72a52b957ceb33c285",
"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 QDM_ISPLINE_H
#define QDM_ISPLINE_H 1
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
void
qdm_ispline_vector(
gsl_vector *result,
const double tau,
const size_t spline_df,
const gsl_vector *knots
);
void
qdm_ispline_matrix(
gsl_matrix *result,
const gsl_vector *taus,
cons... | {
"alphanum_fraction": 0.7218045113,
"avg_line_length": 16.625,
"ext": "h",
"hexsha": "8b12147a0e12220f6e783d00a89f85adf833ae09",
"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": "2ee95... |
#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
#pragma comment(lib,"gsl")
int main()
{
printf("%g\n",gsl_sf_bessel_J0(5.0));
return 0;
} | {
"alphanum_fraction": 0.6713286713,
"avg_line_length": 14.3,
"ext": "c",
"hexsha": "dc0fd25f224d5c1827c67512824af0ff6c0b527f",
"lang": "C",
"max_forks_count": 29,
"max_forks_repo_forks_event_max_datetime": "2021-12-24T01:51:03.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-04-10T13:25:54.000Z"... |
#pragma once
#include <Windows.h>
#include <cstdint>
#include <string>
#include <vector>
#include <gsl/span>
#include "hid_handle.h"
namespace hid
{
struct HidOpenFlags
{
enum T : uint32_t
{
none,
exclusive = 1u << 0u,
async = 1u << 1u
};
};
using HidOpenFlags_t = uint32_t;
struct HidCaps
... | {
"alphanum_fraction": 0.724291083,
"avg_line_length": 20.4685314685,
"ext": "h",
"hexsha": "6cca2bbab12f9f6acdac625b72d7f6a67b1386d3",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha": ... |
/* interpolation/gsl_interp.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004 Gerard Jungman
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (a... | {
"alphanum_fraction": 0.6527838667,
"avg_line_length": 30.5491071429,
"ext": "h",
"hexsha": "cfc60abc3c46bac3e7a1646599d5107206b8fd4f",
"lang": "C",
"max_forks_count": 30,
"max_forks_repo_forks_event_max_datetime": "2021-03-30T23:53:15.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-02-01T15:12... |
#ifndef RANDOM_H
#define RANDOM_H
extern "C" {
#include <gsl/gsl_rng.h>
#include <gsl/gsl_const_mksa.h>
}
#include <math.h>
#include <mkl.h>
#include <iostream>
#include "matrix.h"
#include "file_IO.h"
// note that the RANDOM package should not has the dependency with lib_traj.h
class RNG_BOOST
{
public:
MKL_LON... | {
"alphanum_fraction": 0.6562058241,
"avg_line_length": 26.2,
"ext": "h",
"hexsha": "e2ad39d691d9185fc6373dea65d8c80d72ae51be",
"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": "0b0a368... |
#ifndef RANDOM_H
#define RANDOM_H
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
extern gsl_rng *rng_state;
void rand_init(int);
int rand_store(void*);
void rand_load(void*, int);
#define SQRT2INV 0.70710678118654752440084436210
#define rand_uniform() gsl_rng_uniform_pos(rng_state)
#define rand_gaussian() gs... | {
"alphanum_fraction": 0.7790432802,
"avg_line_length": 23.1052631579,
"ext": "h",
"hexsha": "f2ad3709700aa412d7c7e4497031d672b854f0d8",
"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":... |
/*
* optimize_tnc.h
*
* Created on: Feb 9, 2010
* Author: smitty
*/
#ifndef _OPTIMIZE_STATE_RECONSTRUCTOR_PERIODS_NLOPT_H_
#define _OPTIMIZE_STATE_RECONSTRUCTOR_PERIODS_NLOPT_H_
#include <nlopt.h>
#include "state_reconstructor.h"
#include "rate_model.h"
#include <armadillo>
using namespace arma;
void op... | {
"alphanum_fraction": 0.7730923695,
"avg_line_length": 21.652173913,
"ext": "h",
"hexsha": "11ebc551dc4983a2b60cde6a42cbafb29d52b764",
"lang": "C",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-03-31T18:23:31.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-07-18T05:20:2... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "compearth.h"
#ifdef COMPEARTH_USE_MKL
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-id-macro"
#pragma clang diagnostic ignored "-Wstrict-prototypes"
#endif
#include <mkl_cblas.h>
#ifdef __clang__
#pragma cla... | {
"alphanum_fraction": 0.5651011837,
"avg_line_length": 29.4269662921,
"ext": "c",
"hexsha": "1ed02eaa2d4c7cacf4d0ad4683f766575b86afb5",
"lang": "C",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-02-28T13:42:40.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-07-08T00:13:... |
/* vector/gsl_vector_double.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.6580174927,
"avg_line_length": 29.1914893617,
"ext": "h",
"hexsha": "8aa4af445b8f0a9dd01c678809792e686200681a",
"lang": "C",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha":... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.