Search is not available for this dataset
text
string
meta
dict
-- 2012-02-13 Andreas: testing correct polarity of data types -- sized types are the only source of subtyping, I think... {-# OPTIONS --sized-types #-} module DataPolarity where open import Common.Size data Nat : {size : Size} -> Set where zero : {size : Size} -> Nat {↑ size} suc : {size : Size} -> Nat {size} -...
{ "alphanum_fraction": 0.6205752212, "avg_line_length": 28.25, "ext": "agda", "hexsha": "ce920c3d3d994c1bb8403f9189906e1a26ba9ceb", "lang": "Agda", "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": "...
{-# OPTIONS --allow-unsolved-metas #-} module Control.Lens where open import Function using (id; _∘_; const; flip) open import Relation.Binary.PropositionalEquality open ≡-Reasoning open import Axiom.FunctionExtensionality open import Util.Equality open import Control.Functor renaming (Comp to _•_) open import Cont...
{ "alphanum_fraction": 0.4654678391, "avg_line_length": 26.4947643979, "ext": "agda", "hexsha": "6fbca9889c1998016580117532042eee7d46b2b2", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- This module closely follows a section of Martín Escardó's HoTT lecture notes: -- https://www.cs.bham.ac.uk/~mhe/HoTT-UF-in-Agda-Lecture-Notes/HoTT-UF-Agda.html#unicharac {-# OPTIONS --without-K #-} module Util.HoTT.Univalence.ContrFormulation where open import Util.Data.Product using (map₂) open import Util.Prelude...
{ "alphanum_fraction": 0.6672975019, "avg_line_length": 29.6853932584, "ext": "agda", "hexsha": "cf3d9fe2b89b049b5c584ef3a50563d3801365e2", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --safe --no-sized-types #-} open import Agda.Builtin.Size record Stream (A : Set) (i : Size) : Set where coinductive field head : A tail : {j : Size< i} → Stream A j open Stream destroy-guardedness : ∀ {A i} → Stream A i → Stream A i destroy-guardedness xs .head = xs .head destroy-guardednes...
{ "alphanum_fraction": 0.6463963964, "avg_line_length": 22.2, "ext": "agda", "hexsha": "4a1572d181db3826c806c2a2ad2ad68df8aca789", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:0...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Algebra.Group.Notation where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Algebra.Group.Base module GroupNotationG {ℓ : Level} ((_ , G) : Group {ℓ}) where 0ᴳ = GroupStr.0g G _+ᴳ_ = GroupStr._+...
{ "alphanum_fraction": 0.6693766938, "avg_line_length": 26.3571428571, "ext": "agda", "hexsha": "00c959c9f51d3027d581f09171ded5f281f0a7cb", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K --rewriting #-} module Set where
{ "alphanum_fraction": 0.6229508197, "avg_line_length": 12.2, "ext": "agda", "hexsha": "bce19807e539207c9b59340147db4ece09f54609", "lang": "Agda", "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": "4...
{-# OPTIONS --without-K --safe #-} -- Enriched category over a Monoidal category V open import Categories.Category using (module Commutation) renaming (Category to Setoid-Category) open import Categories.Category.Monoidal using (Monoidal) module Categories.Enriched.Category {o ℓ e} {V : Setoid-Category o ℓ e} ...
{ "alphanum_fraction": 0.5453639083, "avg_line_length": 35.8214285714, "ext": "agda", "hexsha": "8a485e046d2582a6bb59bff7f275d8b600a206aa", "lang": "Agda", "max_forks_count": 64, "max_forks_repo_forks_event_max_datetime": "2022-03-14T02:00:59.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-02...
{- This second-order term syntax was created from the following second-order syntax description: syntax Combinatory | CL type * : 0-ary term app : * * -> * | _$_ l20 i : * k : * s : * theory (IA) x |> app (i, x) = x (KA) x y |> app (app(k, x), y) = x (SA) x y z |> app (app (app (s, x)...
{ "alphanum_fraction": 0.5148782687, "avg_line_length": 24.4632352941, "ext": "agda", "hexsha": "2e2d428338d6b115e2fb3c98ec4c61e5703647ee", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2022-01-24T12:49:17.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-09T...
{-# OPTIONS --without-K --safe #-} module Definition.Conversion.Consequences.Completeness where open import Definition.Untyped open import Definition.Typed open import Definition.Conversion open import Definition.Conversion.EqRelInstance open import Definition.LogicalRelation open import Definition.LogicalRelation.S...
{ "alphanum_fraction": 0.7314524556, "avg_line_length": 33, "ext": "agda", "hexsha": "e7eac67bf24dad7b64ed5e869a905b22d43f7798", "lang": "Agda", "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": "474...
------------------------------------------------------------------------------ -- All the Peano arithmetic modules ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism ...
{ "alphanum_fraction": 0.729747676, "avg_line_length": 39.6315789474, "ext": "agda", "hexsha": "988107def442b34f8f5de3568b1e7136fc063a28", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T1...
module Computability.Data.Fin.Opposite where open import Computability.Prelude open import Data.Nat using (_≤_; _<_; s≤s; z≤n) open import Data.Nat.Properties using (≤-step) open import Data.Fin using (Fin; zero; suc; inject₁; fromℕ; fromℕ<; toℕ; opposite) opposite-fromℕ : ∀ k → opposite (fromℕ k) ≡ zero opposite-fro...
{ "alphanum_fraction": 0.6989351404, "avg_line_length": 39.7307692308, "ext": "agda", "hexsha": "a923e5667a056938f41d688e6a8df8097df26d5c", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Type.Properties.Decidable.Proofs where open import Data open import Data.Proofs open import Data.Boolean using (if_then_else_) open import Data.Boolean.Stmt open import Data.Either as Either using (_‖_) open import Data.Tuple as Tuple using (_⨯_ ; _,_) open import Functional import Lvl open import Data.Boo...
{ "alphanum_fraction": 0.649321267, "avg_line_length": 42.0952380952, "ext": "agda", "hexsha": "f3fe2c119bf3f636091f61831215847a5da7e534", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
{-# OPTIONS --cubical --safe #-} module Data.List.Properties where open import Data.List open import Prelude open import Data.Fin map-length : (f : A → B) (xs : List A) → length xs ≡ length (map f xs) map-length f [] _ = zero map-length f (x ∷ xs) i = suc (map-length f xs i) map-ind : (f : A → B) (xs : L...
{ "alphanum_fraction": 0.5496108949, "avg_line_length": 32.125, "ext": "agda", "hexsha": "4879349f46567772261e9baa0b2a333da0aaec7e", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-05T14:05:30.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-05T14:05:3...
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} import LibraBFT.Impl.Types.CryptoProxies as CryptoProxies i...
{ "alphanum_fraction": 0.6784064665, "avg_line_length": 43.3, "ext": "agda", "hexsha": "87bf31977bedf5a28bfcac35ac6153f10821727e", "lang": "Agda", "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...
module PreludeInt where open import AlonzoPrelude import RTP int : Nat -> Int int = RTP.primNatToInt _+_ : Int -> Int -> Int _+_ = RTP.primIntAdd _-_ : Int -> Int -> Int _-_ = RTP.primIntSub _*_ : Int -> Int -> Int _*_ = RTP.primIntMul div : Int -> Int -> Int div = RTP.primIntDiv mod : Int -> Int -> Int mod = RT...
{ "alphanum_fraction": 0.6369047619, "avg_line_length": 12.9230769231, "ext": "agda", "hexsha": "01ae9148524c2f1c3acb24c9384128dbdd04ec22", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- Some theory of equivalences with erased "proofs", defined in terms -- of partly erased contractible fibres, developed using Cubical Agda ------------------------------------------------------------------------ -- This module instantiates and r...
{ "alphanum_fraction": 0.6538461538, "avg_line_length": 35, "ext": "agda", "hexsha": "72887cf59ffc8f2d4f377fc2235cce9c5bf14b1e", "lang": "Agda", "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": "402...
module Integer.Difference where open import Data.Product as Σ open import Data.Product.Relation.Pointwise.NonDependent open import Data.Unit open import Equality open import Natural as ℕ open import Quotient as / open import Relation.Binary open import Syntax infixl 6 _–_ pattern _–_ a b = _,_ a b ⟦ℤ⟧ = ℕ × ℕ ⟦ℤ²⟧ =...
{ "alphanum_fraction": 0.4868525896, "avg_line_length": 26.1458333333, "ext": "agda", "hexsha": "28ee89aa35de7dfed623a79a1c6357e7e731d136", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module MissingTypeSignature where data Nat : Set where zero : Nat suc : Nat -> Nat pred zero = zero pred (suc n) = n
{ "alphanum_fraction": 0.6434108527, "avg_line_length": 11.7272727273, "ext": "agda", "hexsha": "b83685d1d9788bd891d41e9756afdcbc05bc25ff", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
module ProofUtilities where -- open import Data.Nat hiding (_>_) open import StdLibStuff open import Syntax open import FSC mutual hn-left-i : {n : ℕ} {Γ-t : Ctx n} {Γ : FSC-Ctx n Γ-t} {α β : Type n} (m : ℕ) (S : Form Γ-t β → Form Γ-t α) (F : Form Γ-t β) (G : Form Γ-t α) → Γ ⊢ α ∋ S (headNorm m F) ↔ G → Γ ⊢ α ∋ S...
{ "alphanum_fraction": 0.4902003723, "avg_line_length": 48.0684210526, "ext": "agda", "hexsha": "12e085c420e60842fbe5d9d97dcbdb61ae7e08b5", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-01-15T11:51:19.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-17T...
{-# OPTIONS --without-K #-} open import HoTT open import cohomology.Exactness open import cohomology.Choice module cohomology.Theory where record CohomologyTheory i : Type (lsucc i) where field C : ℤ → Ptd i → Group i CEl : ℤ → Ptd i → Type i CEl n X = Group.El (C n X) Cid : (n : ℤ) (X : Ptd i) → CEl n...
{ "alphanum_fraction": 0.5179704017, "avg_line_length": 29.1076923077, "ext": "agda", "hexsha": "9eaf37205e7bad45f704e23fda3dfcc982a832a3", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --safe #-} module Relation.Nullary.Discrete.FromBoolean where open import Prelude open import Relation.Nullary.Discrete module _ {a} {A : Type a} (_≡ᴮ_ : A → A → Bool) (sound : ∀ x y → T (x ≡ᴮ y) → x ≡ y) (complete : ∀ x → T (x ≡ᴮ x)) where from-bool-...
{ "alphanum_fraction": 0.545045045, "avg_line_length": 26.1176470588, "ext": "agda", "hexsha": "de39b5a2ce0ed793101de9f43e947226a4c986d8", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-11T12:30:21.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-11T1...
module calculus-examples where open import Data.List using (List ; _∷_ ; [] ; _++_) open import Data.List.Any using (here ; there ; any) open import Data.List.Any.Properties open import Data.OrderedListMap open import Data.Sum using (inj₁ ; inj₂ ; _⊎_) open import Data.Maybe.Base open import Data.Empty using (⊥ ; ⊥-el...
{ "alphanum_fraction": 0.4970829333, "avg_line_length": 41.095599393, "ext": "agda", "hexsha": "626106d4dcfbad614d373c94f75f95f2947f4f05", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-04-15T20:02:49.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-15T2...
interleaved mutual -- we don't do `data A : Set` data A where -- you don't have to actually define any constructor to trigger the error, the "where" is enough data B where b : B
{ "alphanum_fraction": 0.6683937824, "avg_line_length": 24.125, "ext": "agda", "hexsha": "7cb9e080dd42a518558c4128a6b42f0a1b0779a9", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04...
module getline where -- https://github.com/alhassy/AgdaCheatSheet#interacting-with-the-real-world-compilation-haskell-and-io open import Data.Nat using (ℕ; suc) open import Data.Nat.Show using (show) open import Data.Char using (Char) open import Data.List as L...
{ "alphanum_fraction": 0.626344086, "avg_line_length": 33.3134328358, "ext": "agda", "hexsha": "b2b26610472573ed25960188b522cd7c9ce2b0f0", "lang": "Agda", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2021-09-21T15:58:10.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-13T2...
open import Level using () renaming (_⊔_ to _⊔ˡ_) open import Relation.Binary using (_⇒_; TotalOrder; Reflexive; Symmetric; Transitive; IsEquivalence; IsPreorder; Antisymmetric) module AKS.Extended {c ℓ₁ ℓ₂} (≤-totalOrder : TotalOrder c ℓ₁ ℓ₂) where open TotalOrder ≤-totalOrder using (_≈_; _≤_; total; isEquivalence...
{ "alphanum_fraction": 0.5728476821, "avg_line_length": 28.3125, "ext": "agda", "hexsha": "364d2e6145eee959a87dc3e119076e4cb7f18ca9", "lang": "Agda", "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":...
{-# OPTIONS --without-K --rewriting #-} open import lib.Basics open import lib.NType2 open import lib.types.Empty open import lib.types.Group open import lib.types.Int open import lib.types.List open import lib.types.Nat open import lib.types.Pi open import lib.types.Sigma module lib.types.Word {i} where module _ (A...
{ "alphanum_fraction": 0.6054319125, "avg_line_length": 31.5595238095, "ext": "agda", "hexsha": "e1cff052319d1acab1992b2ae3268d8f45a5b277", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Agda.Builtin.List open import Agda.Builtin.Nat open import Agda.Builtin.Reflection open import Agda.Builtin.Unit open import Common.Product {-# TERMINATING #-} Loop : Set Loop = Loop postulate loop : Loop data Box (A : Set) : Set where box : A → Box A {-# TERMINATING #-} Boxed-loop : Set Boxed-loo...
{ "alphanum_fraction": 0.5895788722, "avg_line_length": 15.5666666667, "ext": "agda", "hexsha": "97eda2536f2db7d98c197c20c1af5f557ed7187b", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T...
-- V: letpair (x,y) = (V,W) in E --> E[ V,W / x,y ] module Properties.StepPair where open import Data.List open import Data.List.All open import Data.Product open import Relation.Nullary open import Relation.Binary.PropositionalEquality open import Typing open import Syntax open import Global open import Values open...
{ "alphanum_fraction": 0.6130334487, "avg_line_length": 29.8965517241, "ext": "agda", "hexsha": "cdb49d2651e2ff6cec220d8b1f8033b8c8efaf12", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K #-} module Explore.README where -- The core types behind exploration functions open import Explore.Core -- The core properties behind exploration functions open import Explore.Properties -- Lifting the dependent axiom of choice to sums and products open import Explore.BigDistr -- Constructio...
{ "alphanum_fraction": 0.7989521938, "avg_line_length": 25.8813559322, "ext": "agda", "hexsha": "2b2682ad5832947a9e7825f5781feeedf2cdb60d", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Relation.Binary using (IsDecEquivalence) open import Agda.Builtin.Equality module UnifyMguCorrectG (FunctionName : Set) ⦃ isDecEquivalenceA : IsDecEquivalence (_≡_ {A = FunctionName}) ⦄ (PredicateName VariableName : Set) where open import UnifyTermF FunctionName open import UnifyMguF FunctionName open im...
{ "alphanum_fraction": 0.7023178808, "avg_line_length": 44.4117647059, "ext": "agda", "hexsha": "72ea0474c69abe1c522a64c00ad95e2d356f4678", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Ordinals where import Level open import Data.Product open import Relation.Binary.PropositionalEquality open import Function open import Data.Nat using (ℕ) renaming (zero to z; suc to s) open import Data.Empty postulate ext₀ : Extensionality Level.zero Level.zero ext₁ : Extensionality Level.zero (Level.suc ...
{ "alphanum_fraction": 0.4833569405, "avg_line_length": 24.3448275862, "ext": "agda", "hexsha": "ba6f76cfc2ca90e53197480766342c73ea859ebe", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
//**************************************************************************\ //* This file is property of and copyright by the ALICE Project *\ //* ALICE Experiment at CERN, All rights reserved. *\ //* *\ //* Prim...
{ "alphanum_fraction": 0.6823529412, "avg_line_length": 35.0303030303, "ext": "h", "hexsha": "b861c1a5be077b1b9bef941d8e0763c576bf1fc6", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2017-12-15T09:46:36.000Z", "max_forks_repo_forks_event_min_datetime": "2017-12-15T09:46:...
/* rng/slatec.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 James Theiler, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * you...
{ "alphanum_fraction": 0.6523542001, "avg_line_length": 36.2912621359, "ext": "c", "hexsha": "aa82a414357334dea5993bc29acba8004dfd4c4e", "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:...
/********************* * Time intergral KDK scheme. * kick and drifts. * * This code was initially modified by Jun Koda, * from the original serial COLA code * by Svetlin Tassev. * * The kick and drift still supports a COLA compat-mode. * Most of the nasty factors are for COLA compat-mode * (not needed in P...
{ "alphanum_fraction": 0.5551757812, "avg_line_length": 28.2761341223, "ext": "c", "hexsha": "00d42b2d1e162f5735809da9fb0cf478c0e6743b", "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:...
/* tz_3dgeom_utils.c * * 17-Jan-2008 Initial write: Ting Zhao */ #include <stdio.h> #include <math.h> #include "tz_geo3d_utils.h" #ifdef HAVE_LIBGSL # if defined(HAVE_INLINE) # undef HAVE_INLINE # define INLINE_SUPPRESSED # endif #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_eigen...
{ "alphanum_fraction": 0.6131902137, "avg_line_length": 28.5268965517, "ext": "c", "hexsha": "3d2c09eaa37580008543228ab3af8d12f9bca58e", "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 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #ifndef _HEBench_ClearText_MatMult_H_7e5fa8c2415240ea93eff148ed73539b #define _HEBench_ClearText_MatMult_H_7e5fa8c2415240ea93eff148ed73539b #include <gsl/gsl> #include "hebench/api_bridge/cpp/hebench.hpp" #include "clear_benchmark.h" t...
{ "alphanum_fraction": 0.7229299363, "avg_line_length": 36.9411764706, "ext": "h", "hexsha": "6c82c7c102f93ed782eb30b7b56c44724fff9271", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <assert.h> #include <gsl/gsl_math.h> #include "cosmocalc.h" double weff(double a) { if(a != 1.0) return cosmoData.w0 + cosmoData.wa - cosmoData.wa*(a - 1.0)/log(a); else return cosmoData.w0; } double hubble_noscale(double a) { return sq...
{ "alphanum_fraction": 0.6634844869, "avg_line_length": 19.9523809524, "ext": "c", "hexsha": "493f3ba62b7b48934d4d067a659f4ede698079a3", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2017-08-11T17:31:51.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-14T12:17:...
#pragma once #include <gsl/gsl_vector.h> #include "BooleanNodes.h" #include "BooleanDAG.h" #include "NodeVisitor.h" #include "VarStore.h" #include <map> #include "FloatSupport.h" #include <glpk.h> #include <iostream> #include <fstream> using namespace std; class Line { // m(x - x0) + d < 0 (x0 is fixed for a parti...
{ "alphanum_fraction": 0.6196463654, "avg_line_length": 24.6489104116, "ext": "h", "hexsha": "ef9ca57184aa6eadc3ae0e0b984d96a10c7931d5", "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 <omp.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <string.h> #include <errno.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_sf.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_math.h> #include <gsl/gsl_v...
{ "alphanum_fraction": 0.630643927, "avg_line_length": 24.6218034993, "ext": "c", "hexsha": "a1be0ffee4ddd139fcb04383082a2742ef3eeb1f", "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 CONSUMER_H #define CONSUMER_H #include <gsl/gsl> #include <producer.h> class consumer { public: explicit consumer(gsl::not_null<producer *> p) { p->print_msg(); } ~consumer() = default; public: consumer(consumer &&) noexcept = default; consumer &operator=(consumer &...
{ "alphanum_fraction": 0.5904365904, "avg_line_length": 17.8148148148, "ext": "h", "hexsha": "1222e53dd636c6cc1fc59019a68c2ed0303215d4", "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_poly.h> size_t remove_leading_zeros(double *h, size_t n) { size_t m = 0; double small = 1e-5; size_t i; for(i=n; i>0; i--) { if (fabs(h[i-1]) > small) { m = i; break; } } return m; } size_t find_roots(double *z, d...
{ "alphanum_fraction": 0.5262295082, "avg_line_length": 14.1860465116, "ext": "c", "hexsha": "acb3ca0f41e509a34179c992e0e740e79a687ff2", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* # Copyright (C) 2009-2013 Thierry Sousbie # University of Tokyo / CNRS, 2009 # # This file is part of porject DisPerSE # # Author : Thierry Sousbie # Contact : tsousbie@gmail.com # # Licenses : This file is 'dual-licensed', you have to choose one # of the two...
{ "alphanum_fraction": 0.6356085775, "avg_line_length": 29.8288288288, "ext": "c", "hexsha": "8636bbee6fea2013136577ae4efdfc3766633668", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-30T18:12:10.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-30T13:12:...
/* * 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.5089601264, "avg_line_length": 32.4137466307, "ext": "h", "hexsha": "f4e49f8a14b7627cbedcaae14a1a4dda38fc716c", "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:...
#ifndef _PYGSL_SOLVER_H_ #define _PYGSL_SOLVER_H_ 1 #include <pygsl/intern.h> #include <pygsl/block_helpers.h> /* Not directly needed here, but provides a lot of convienience functions */ #include <pygsl/error_helpers.h> #include <gsl/gsl_math.h> #include <setjmp.h> /* * Many functions are "just" accessor methods. The...
{ "alphanum_fraction": 0.7150780222, "avg_line_length": 32.8333333333, "ext": "h", "hexsha": "edde8c05aa020f5da5b0001295a9df1bb11095a1", "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:...
/** * * @file core_cpltmg.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 Ichitaro Yamazaki * @author Julien Herrmann * @author Mathieu Faverge * @date 2010-11-15 * @gene...
{ "alphanum_fraction": 0.4742868308, "avg_line_length": 30.5369928401, "ext": "c", "hexsha": "e9021a081235b88f13f23169119c023c6c09a4f7", "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 libraries_h #define libraries_h #include <fstream> #include <iostream> #include <iomanip> #include <ctime> #include <math.h> #include <vector> #include <deque> #include <queue> #include <stack> #include <array> #include <algorithm> #include <unordered_map> #include <map> #include <memory> #include <utility> #i...
{ "alphanum_fraction": 0.7229437229, "avg_line_length": 17.1111111111, "ext": "h", "hexsha": "f3b6636e6ee6577ac086e36571135c4c220ccc80", "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) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <gsl/span> namespace onnxruntime { namespace contrib { template <typename T> class IAttentionMechanism { public: virtual ~IAttentionMechanism() = default; virtual void PrepareMemory( const...
{ "alphanum_fraction": 0.698019802, "avg_line_length": 21.8378378378, "ext": "h", "hexsha": "c648536f997c578ffd008e8c22410eb5a112296e", "lang": "C", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-11-30T13:58:13.000Z", "max_forks_repo_forks_event_min_datetime": "2021-06-05T19:52:2...
#pragma once #include <gsl\gsl> #include <winrt\base.h> #include <d3d11.h> #include <DirectXTK\SpriteBatch.h> #include "DrawableGameComponent.h" #include "HeightmapTessellationMaterial.h" #include "RenderStateHelper.h" namespace Rendering { class HeightmapTessellationDemo final : public Library::DrawableGameComponen...
{ "alphanum_fraction": 0.7888349515, "avg_line_length": 34.3333333333, "ext": "h", "hexsha": "50b3ab8a1d63e243b2506fc29d01f490e0647c2d", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef __COMPLEX_DEF_H__ #define __COMPLEX_DEF_H__ #include <complex> #include <gsl/gsl_math.h> #include <gsl/gsl_sf_gamma.h> #include <gsl/gsl_sf_log.h> #include <gsl/gsl_sf_zeta.h> #include <gsl/gsl_sf_dilog.h> #include <gsl/gsl_sf_result.h> std::complex<long double> operator*(const std::complex<long double>& a, c...
{ "alphanum_fraction": 0.7413249211, "avg_line_length": 35.2222222222, "ext": "h", "hexsha": "746a327c64cb09f44a10d77353eeb1dc3df96f77", "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":...
/* * edges.h -- élek effektív tárolása: lista az id-k szerint rendezve, * ebben gyorsan lehet keresni + binary heap az időpontok szerint, így * a legrégebbit gyorsan ki lehet választani * * Copyright 2013 Kondor Dániel <dani@thinkpad-r9r> * * This program is free software; you can redistribute it and/or modi...
{ "alphanum_fraction": 0.7319823789, "avg_line_length": 33.1871345029, "ext": "h", "hexsha": "7fddbf401acb057baafdd71d909fbe95469cada7", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#ifndef INCLUDED_TELEPATH_BLAS_1_H #define INCLUDED_TELEPATH_BLAS_1_H #include <complex> #include <cblas.h> namespace telepath{ template< typename T > inline auto asum( std::size_t n, const T* x, std::size_t incX = 1 ); template<> inline auto asum<double>( std::size_t n, const double* x, std::si...
{ "alphanum_fraction": 0.649122807, "avg_line_length": 35.0769230769, "ext": "h", "hexsha": "1162d66aba971c6ddaf17bb9f6a0d886baa10216", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
/* matrix/gsl_matrix_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 version...
{ "alphanum_fraction": 0.6762619372, "avg_line_length": 40.8356545961, "ext": "h", "hexsha": "1d06fe8b1e8a527538c884d15054b684ae236b21", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
/* specfunc/test_hermite.c * * Copyright (C) 2011, 2012, 2013, 2014 Konrad Griessinger * * 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.6816164349, "avg_line_length": 45.3199233716, "ext": "c", "hexsha": "55e00ba12e32ed1f1b660f7867a39666c7016934", "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:...
/* * mutation.h * * Created on: 17.5.2017 * Author: heine */ #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #ifndef MUTATION_H_ #define MUTATION_H_ //void set_mutationseed( int id ); void mutation( long N, double *x, int state_dim, gsl_rng * rgen ); #endif /* MUTATION_H_ */
{ "alphanum_fraction": 0.640776699, "avg_line_length": 14.0454545455, "ext": "h", "hexsha": "c42a45aeafab25b111e10a49634fef30854cf6a2", "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": ...
/** * * @generated s Tue Jan 7 11:45:26 2014 * **/ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <cblas.h> #include <lapacke.h> #include <plasma.h> #include <core_blas.h> #include "auxiliary.h" /*------------------------------------------------------------------- * Check t...
{ "alphanum_fraction": 0.5517528347, "avg_line_length": 32.2583892617, "ext": "c", "hexsha": "b5a211584cfd2e3fdfa80ecab9f766d5fe3a1f10", "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) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include "Utils\buffer.h" #include "MageSettings.h" // for CameraIdentity #include "ORBDescriptor.h" #include "Memory\allocators.h" #include "arcana\utils\serialization\serializable.h" #include <opencv2\core\core.hpp> ...
{ "alphanum_fraction": 0.5925531915, "avg_line_length": 31.6346153846, "ext": "h", "hexsha": "6f171ba6c36d32f92a780cdfee56289fd2798045", "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> #include <gsl/gsl_math.h> #include <gsl/gsl_filter.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_vector.h> int main(void) { const size_t N = 500; /* length of time series */ const size_t K = 51; /* w...
{ "alphanum_fraction": 0.6277866242, "avg_line_length": 31.012345679, "ext": "c", "hexsha": "a4a1a28c257a93a313f574a91b544fdfcd26b1ac", "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...
#ifndef __COYOTE_H #define __COYOTE_H #include <stdio.h> #include <math.h> #include <stdlib.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_odeiv.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_errno.h> #include "errorlist.h" #include "maths.h" /* E...
{ "alphanum_fraction": 0.6811145511, "avg_line_length": 28.9253731343, "ext": "h", "hexsha": "6ff6c2427668f0923cf60dbc1dbd93be0e6fec2b", "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 ORIENTATION_CONTROLLER_VARIABLE_GAINS_H_ #define ORIENTATION_CONTROLLER_VARIABLE_GAINS_H_ #include <cmath> #include <barrett/units.h> #include <barrett/systems.h> #include <barrett/products/product_manager.h> #include <libconfig.h++> #include <barrett/detail/ca_macro.h> #include <barrett/cdlbt/calgrav.h> #incl...
{ "alphanum_fraction": 0.7488986784, "avg_line_length": 30.3858267717, "ext": "h", "hexsha": "8aceb300bb00fb8e935f77f546378bebdf3e42f0", "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":...
/*Python wrapper module for parameter space sampling; the method used is the same as in http://dan.iel.fm/posts/python-c-extensions/ The module is called _design and it defines the methods below (see docstrings) */ #include <gsl/gsl_matrix.h> #include <Python.h> #include <numpy/arrayobject.h> #include "lenstoolsP...
{ "alphanum_fraction": 0.7076648841, "avg_line_length": 24.2952755906, "ext": "c", "hexsha": "984f0df045eb12de836ce886f538f31a4142d911", "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 2018 The Apollo Authors. All Rights Reserved. * * 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.6447368421, "avg_line_length": 35.1851851852, "ext": "h", "hexsha": "43ac5a78d1caf1f690e2c0c8ee24a6a40210c888", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-02-24T06:20:29.000Z", "max_forks_repo_forks_event_min_datetime": "2019-02-24T06:20:...
/* integration/integration.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at *...
{ "alphanum_fraction": 0.4835806373, "avg_line_length": 27.5906040268, "ext": "c", "hexsha": "bc68f00c5473e08eb859c114f9770abfaff6b11a", "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:...
// // Created by Harold on 2020/9/21. // #ifndef M_MATH_M_FILTER_H #define M_MATH_M_FILTER_H #include <gsl/gsl_filter.h> #include <gsl/gsl_vector.h> namespace M_MATH { class GaussianFilter { public: enum EndpointType { NO_PAD, ZERO_PAD, VALUE_PAD }; pub...
{ "alphanum_fraction": 0.5475787335, "avg_line_length": 30.7604166667, "ext": "h", "hexsha": "224194b9c3f996351852d9e9a024fc8df0b8b442", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-07-04T12:26:12.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-04T12:26:...
#include <cerrno> #include <cstdio> #include <cstdlib> #include <sys/stat.h> #include <cmath> #include <vector> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <time.h> #include <gsl/gsl_odeiv2.h> #include <gsl/gsl_math.h> #include <math.h> /* pow */ #include <gsl/gsl_sf.h> #...
{ "alphanum_fraction": 0.6746143058, "avg_line_length": 27.6893203883, "ext": "h", "hexsha": "c93752c15fc62b9c0bb40c51983bdcf6275eccc8", "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) 2013-2016 Anton Kozhevnikov, Thomas Schulthess // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provided that // the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notic...
{ "alphanum_fraction": 0.5975671889, "avg_line_length": 35.7676537585, "ext": "h", "hexsha": "7b23ef7feb9d7f99b723efaaf038648089a799f6", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights // reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for effic...
{ "alphanum_fraction": 0.5674295191, "avg_line_length": 41.7590027701, "ext": "h", "hexsha": "f06355494f7e30fdea4e13c7ba29b5122b08f605", "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/pdf2d.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007, 2009 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * y...
{ "alphanum_fraction": 0.5576750449, "avg_line_length": 23.7021276596, "ext": "c", "hexsha": "07cc24d615fead5e7cd508126da61ca0bbdefcea", "lang": "C", "max_forks_count": 14, "max_forks_repo_forks_event_max_datetime": "2020-03-12T12:31:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T04:47...
#include <stdio.h> #include <gsl/gsl_const_mksa.h> int main (void) { double c = GSL_CONST_MKSA_SPEED_OF_LIGHT; double au = GSL_CONST_MKSA_ASTRONOMICAL_UNIT; double minutes = GSL_CONST_MKSA_MINUTE; /* distance stored in meters */ double r_earth = 1.00 * au; double r_mars = 1.52 * au; double t_min, t...
{ "alphanum_fraction": 0.6655112652, "avg_line_length": 22.1923076923, "ext": "c", "hexsha": "47718c51d3cfc27f0f1b29303c8186065b3f7ca5", "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 2018 Rice University * * * * ...
{ "alphanum_fraction": 0.4967503693, "avg_line_length": 39.3604651163, "ext": "h", "hexsha": "6a9a1b7b3a7d058d612d4f3413b7e1d87fa5992e", "lang": "C", "max_forks_count": 13, "max_forks_repo_forks_event_max_datetime": "2020-08-03T00:58:24.000Z", "max_forks_repo_forks_event_min_datetime": "2018-06-14T03:39...
#pragma once #include <cuda/runtime_api.hpp> #include <gsl-lite/gsl-lite.hpp> #include <cub/cub.cuh> #include <thrustshift/not-a-vector.h> namespace thrustshift { namespace async { template <class ValuesInRange, class ValuesOutRange, class ScanOp, class MemoryResource> void inclusiv...
{ "alphanum_fraction": 0.5043923865, "avg_line_length": 26.7843137255, "ext": "h", "hexsha": "1f842c15dfc5b7ab9b649436b9a0e2d7bf0a6c6b", "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":...
/* ** Read input data into array ** ** G.Lohmann, MPI-KYB, 2018 */ #include <viaio/Vlib.h> #include <viaio/VImage.h> #include <viaio/mu.h> #include <viaio/option.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_bl...
{ "alphanum_fraction": 0.587949743, "avg_line_length": 25.1039426523, "ext": "c", "hexsha": "80e285b7e08a1aa5d78a7ecf7c52559acf32f9ed", "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...
#ifndef VKST_PLAT_FS_NOTIFY_LINUX_H #define VKST_PLAT_FS_NOTIFY_LINUX_H #ifndef VKST_PLAT_FS_NOTIFY_H #error "Include fs_notify.h only" #endif #include "fs_notify.h" #include <gsl.h> #include <vector> namespace plat { class fs_notify final : public impl::fs_notify<fs_notify> { public: private: //std::vector<gsl:...
{ "alphanum_fraction": 0.7277701778, "avg_line_length": 20.8857142857, "ext": "h", "hexsha": "306d95f8a7104ae4e77fc02d8b1d4ee58ebccc53", "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 <math.h> #include <stdlib.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> /* Adapted from C code from Darren Wilkinson's blog https://darrenjw.wordpress.com/2011/07/16/gibbs-sampler-in-various-languages-revisited/ To build: gcc -O3 gibbs_gsl.c -I/usr/local/include -L/usr/local/lib ...
{ "alphanum_fraction": 0.634194831, "avg_line_length": 22.8636363636, "ext": "c", "hexsha": "1f4eb5b8453e182d02039ba41b4d25208404b7e9", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-12T00:32:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-12T00:32:0...
#include <stdio.h> #include <gsl/gsl_math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_odeiv2.h> // y' = exp(x) // https://www.wolframalpha.com/input/?i=y%27+%3D+2y+%2B+x%2C+y%280%29+%3D+1%2C+y%281%29 // https://www.wolframalpha.com/input/?i=1%2F4+*+%285+*+e%5E2+-+3%29 int odefunc (doubl...
{ "alphanum_fraction": 0.5815115553, "avg_line_length": 26.6833333333, "ext": "c", "hexsha": "072a2d9a14265b879ac74dd230ba149b986e6d18", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-19T01:22:06.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-19T01:22:...
/** * Subroutines for fitting functions to data. * Most of the functions are used for the * background determination. */ #include <gsl/gsl_sort.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_fit.h> #include <gsl/gsl_multifit.h> #include "spce_fitting.h" /** * Function: det_vector_polyN * A function using...
{ "alphanum_fraction": 0.6230649148, "avg_line_length": 24.5984, "ext": "c", "hexsha": "3bc7c0812ccb66083ccd37836574c0ab4b200880", "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": "f57d...
/* specfunc/elementary.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your o...
{ "alphanum_fraction": 0.6379310345, "avg_line_length": 28, "ext": "c", "hexsha": "6491ce14fbb0d9513e80e4e30ceb705663d70a22", "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", ...
/** * \author Sylvain Marsat, University of Maryland - NASA GSFC * * \brief C header for functions windowing and computing FFT/IFFT of time/frequency series. * */ #ifndef __GENERATETDIFD_H__ #define __GENERATETDIFD_H__ 1 #ifdef __GNUC__ #define UNUSED __attribute__ ((unused)) #else #define UNUSED #endif #define...
{ "alphanum_fraction": 0.6755646817, "avg_line_length": 52.5196078431, "ext": "h", "hexsha": "86c4f77b03fc7e84abdbfb3226054020f0d5f787", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-07-20T02:56:30.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-20T14:19:...
#pragma once #include <Babylon/JsRuntime.h> #include <napi/env.h> #include <gsl/gsl> #include <cassert> namespace Babylon { class NativeDataStream final : public Napi::ObjectWrap<NativeDataStream> { static constexpr auto JS_CLASS_NAME = "_NativeDataStream"; static constexpr auto JS_ENGINE_CONS...
{ "alphanum_fraction": 0.5281780751, "avg_line_length": 36.1488372093, "ext": "h", "hexsha": "da8010bed82cf02a62ce28d62733568bb56f8a76", "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 program is in the public domain */ #include "bench-user.h" #include <math.h> #ifdef HAVE_GSL_GSL_VERSION_H #include <gsl/gsl_version.h> #endif static const char *mkvers(void) { #ifdef HAVE_GSL_GSL_VERSION_H return gsl_version; #else return "unknown" #endif } BEGIN_BENCH_DOC BENCH_DOC("name", "gsl-...
{ "alphanum_fraction": 0.6483353151, "avg_line_length": 24.0285714286, "ext": "c", "hexsha": "8f0f070b690b334c848c0f3a2e77f121d53c9141", "lang": "C", "max_forks_count": 9, "max_forks_repo_forks_event_max_datetime": "2022-01-26T11:50:36.000Z", "max_forks_repo_forks_event_min_datetime": "2020-06-02T08:44:...
/* sys/test.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) any lat...
{ "alphanum_fraction": 0.6587418951, "avg_line_length": 32.925093633, "ext": "c", "hexsha": "df30fe4ea48d93efcc2bef0a3035cd458f245651", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:5...
#ifndef _OPTIMIZE_STATE_RECONSTRUCTOR_GSL_H_ #define _OPTIMIZE_STATE_RECONSTRUCTOR_GSL_H_ using namespace std; #include <armadillo> using namespace arma; #include "rate_model.h" #include "state_reconstructor.h" #include <gsl/gsl_vector.h> class OptimizeStateReconstructor{ private: RateModel * rm; StateRec...
{ "alphanum_fraction": 0.7732634338, "avg_line_length": 23.1212121212, "ext": "h", "hexsha": "2a23531a8e8964b65a327aa358aafb144329e5c9", "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:...
/***************************************************************************** * * Rokko: Integrated Interface for libraries of eigenvalue decomposition * * Copyright (C) 2015 by Rokko Developers https://github.com/t-sakashita/rokko * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file...
{ "alphanum_fraction": 0.7528617552, "avg_line_length": 46.0405405405, "ext": "h", "hexsha": "b8544bc30b8a408e595b290069a407344268a562", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <gsl/gsl_test.h> #include <gsl/gsl_ieee_utils.h> #include <gsl/gsl_math.h> #include "gsl_cblas.h" #include "tests.h" void test_tbmv (void) { const double flteps = 1e-4, dbleps = 1e-6; { int order = 101; int trans = 111; int uplo = 121; int diag = 131; int N = 3; int K = 1; int lda = 3;...
{ "alphanum_fraction": 0.5108851252, "avg_line_length": 29.5543956044, "ext": "c", "hexsha": "861a529cab46c73d74d514d14e737aa730bfde53", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:...
#include <stdlib.h> #include <stdio.h> #include <gsl/gsl_math.h> #include <gsl/gsl_sf_expint.h> #include "cosmocalc.h" #include "haloprofs.h" double fourierTransformNFW(double k, double m, double rvir, double c) { double rs,rhos; double ukm; rs = rvir/c; rhos = m/4.0/M_PI/rs/rs/rs/(log(1.0+c) - c/(1.0+c));...
{ "alphanum_fraction": 0.6200294551, "avg_line_length": 17.8684210526, "ext": "c", "hexsha": "5a6efae920394e27870e647fabce371ed8230a4c", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2017-08-11T17:31:51.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-14T12:17:...
/** * \copyright * Copyright (c) 2015, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ /******************************************************...
{ "alphanum_fraction": 0.6928522269, "avg_line_length": 29.8269794721, "ext": "h", "hexsha": "8a8131207f86a1be560b909c3686556a06dc51b7", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-06-15T08:30:31.000Z", "max_forks_repo_forks_event_min_datetime": "2016-06-27T15:30:...
/* Author: G. Jungman (+modifications from O. Teytaud olivier.teytaud@inria.fr) */ #include <config.h> #include <stdlib.h> #include <gsl/gsl_ieee_utils.h> #include <gsl/gsl_qrng.h> #include <gsl/gsl_test.h> #include <math.h> void test_sobol(void) { int status = 0; double v[3]; /* int i; */ /* test in dimens...
{ "alphanum_fraction": 0.574734956, "avg_line_length": 27.0040322581, "ext": "c", "hexsha": "c5ab7cde102851ffeaf3b433fed0dcbc5708cd99", "lang": "C", "max_forks_count": 224, "max_forks_repo_forks_event_max_datetime": "2022-03-30T00:57:48.000Z", "max_forks_repo_forks_event_min_datetime": "2015-11-12T21:17...
// // Created by pedram pakseresht on 2/18/21. // // #include <petsc.h> #include <printf.h> #include <stdlib.h> void setNumber(double *zxy); int main( int argc, char *argv[] ) { double *x = NULL; x = malloc( sizeof(double )); *x =2.0; printf("hello world %g\n", *x); setNumber(x); printf("hello world ...
{ "alphanum_fraction": 0.5730994152, "avg_line_length": 13.8648648649, "ext": "c", "hexsha": "a566cd6748e05b77494cc5381eb7b935327089ae", "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 <sys/stat.h> #include <sys/time.h> #include <sys/types.h> #include <err.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <gsl/gsl_histogram.h> #include <gsl/gsl_errno.h> #include "my_signal.h" #include "my_sock...
{ "alphanum_fraction": 0.5668576886, "avg_line_length": 27.7350993377, "ext": "c", "hexsha": "3d57dba7293324fa99c1d1fddd7e8c295c9e8550", "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":...
/* * ----------------------------------------------------------------- * ode_lib.h * ODE Solver Library * Version: 2.0 * Last Update: Oct 3, 2019 * * This is the header file for computational library with * routines to deal with Ordinary Differential Equations (ODE). * -----------------------------------------...
{ "alphanum_fraction": 0.4283113336, "avg_line_length": 24.1428571429, "ext": "h", "hexsha": "01d11e0cb8e1b942a6b719a5e36e9862327cf96e", "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 testing_zgecfi.c * * PLASMA testings module * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * This program tests the implementation of the inplace format * conversion based on the GKK algorithm by Gustavson, Karlsso...
{ "alphanum_fraction": 0.5361315448, "avg_line_length": 28.7080745342, "ext": "c", "hexsha": "d6bb98e9b1e808118072f52d18e7021eeb5e0189", "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":...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
{ "alphanum_fraction": 0.6542893726, "avg_line_length": 35.5, "ext": "h", "hexsha": "9d40eba88953079c77c6a0542792bd96f4f21cc1", "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": "4545535...
/* rng/ran2.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 * your ...
{ "alphanum_fraction": 0.6312445856, "avg_line_length": 23.5578231293, "ext": "c", "hexsha": "d6555ec624638777bbfc246830993c68e953f56f", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:...
#include <gsl/gsl_math.h> #include "gsl_cblas.h" #include "cblas.h" void cblas_csscal (const int N, const float alpha, void *X, const int incX) { #define BASE float #include "source_scal_c_s.h" #undef BASE }
{ "alphanum_fraction": 0.7320574163, "avg_line_length": 17.4166666667, "ext": "c", "hexsha": "bd2b2b52659f3c3dfb472b094a680b9b1d86105f", "lang": "C", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-10-02T01:32:59.000Z", "max_forks_repo_forks_event_min_datetime": "2015-10-02T01:32:...
#include <math.h> #include <stdlib.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> extern void getTimeSeries(int points, double* times, int from, int nAgents, double eBirth, double eDeath, int rng_seed, int* output);
{ "alphanum_fraction": 0.7488986784, "avg_line_length": 32.4285714286, "ext": "h", "hexsha": "221b511b73cc9d308f7e2a71af893a65c1207ae6", "lang": "C", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
#include <stdio.h> #include <string.h> #include <gsl/gsl_statistics_double.h> #include "tz_error.h" #include "tz_constant.h" #include "tz_image_lib.h" #include "tz_objdetect.h" #include "tz_imatrix.h" #include "tz_stack_math.h" #include "tz_stack_draw.h" #include "tz_pixel_array.h" #include "tz_stack_bwmorph.h" #includ...
{ "alphanum_fraction": 0.6609498681, "avg_line_length": 25.2666666667, "ext": "c", "hexsha": "b915b14f1a56c6c358b0c6a6cfcaabeaba8bb1e5", "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> int main(void) { int i, j; gsl_matrix * m = gsl_matrix_alloc (10,3); for (i=0; i<10; i++) for (j=0; j<3; j++) gsl_matrix_set (m, i, j, 0.23 + 100*i + j); for (i=0; i< 10; i++) /* OUT OF RANGE ERROR */ for (j=0; j<3; j++) printf("m(%d,%d) = %g...
{ "alphanum_fraction": 0.5048780488, "avg_line_length": 18.6363636364, "ext": "c", "hexsha": "dceb620f3e56dc14badb20161dc021d9106b8e4d", "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 <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_multifit_nlinear.h> /* parameters to model */ struct model_params { double a1; double a2; double a3; double a4; double a5; }; /* Branin function */ int func_f (const gsl...
{ "alphanum_fraction": 0.6207346634, "avg_line_length": 25.5380952381, "ext": "c", "hexsha": "9dbf278372d284108daf4e2b3dbd6ec068f5fdcc", "lang": "C", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-14T12:31:02.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-20T16:22:...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_bspline.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_linalg.h> /* number of data points to fit */ #define N 6 /* number of fit coefficients */ #define NCOEFFS 6 /* Spline order */ #define K 3 /* nbrea...
{ "alphanum_fraction": 0.5107608366, "avg_line_length": 22.2905405405, "ext": "c", "hexsha": "1aa9581c45d554596b82e6787e68816ee266f7c0", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-01-22T00:30:19.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-13T17:09:...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "compearth.h" #include "cmopad.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 <m...
{ "alphanum_fraction": 0.4428805909, "avg_line_length": 32.7553763441, "ext": "c", "hexsha": "f06edc92fc8cabc7dfcab5ca62ec03f09636711e", "lang": "C", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-02-28T13:42:40.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-08T00:13:...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <pthread.h> #include <gsl/gsl_sf.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_errno.h> #include "SIShift.h" static int verbose = FALSE...
{ "alphanum_fraction": 0.5927467301, "avg_line_length": 21.9869281046, "ext": "c", "hexsha": "036f1eb74c42dbfdd19f8493b88011af301a6953", "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":...