sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
c94e9f7f004367d6a95259832adee4c7ab2d6060b9fa0210ceebe05357e9e888 | C | 10,890 | 311 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <assert.h>
#include <arm_neon.h>
#include <qnnpack/q8gavgpool.h>
void pytorch_q8gavgpool_... |
d731135e833ea52d38f4880ab077aed283a51ca0875957aa4276651a5bbca2b3 | C | 11,047 | 301 | /*
* Copyright (C) 1996-1999,2001-2003,2010,2011,2013 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* detrend.c method for detrending the data set tinfo.
* Multiple data sets connected by tinfo->next are supported as well as
* fre... |
c79dae0e1e7e966e509ca79467c2139cbe9b693c819b2aad5130546bedd65366 | C | 11,093 | 331 | /* FILE skip.c */
/* Exclude individual trials, stacks or table columns */
/* Or exclude based on event presence/absence or param range */
/* Complete exclusion, as if not in the file; don't just not print */
/* NOTE: does merge first or skip first, depending on WHICH IS FIRST*/
/* Can also s... |
b1aa6d750b0746744c1e6c6ea41afb15f08217de74ae77cfcf8f9b74d6be3711 | C | 11,301 | 139 | #include "vogl.h"
int _fontsize = 8;
/*
* A slightly bigger font than the standard IBM 8x8 - it's 8x16
*/
char chartab[][16] =
{
{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},
{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},
/* ' ' */ { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0... |
cbaeec8abccb93b472d76d59a291e14c59e2197d8a402041fd164b9fe63a3c65 | C | 11,370 | 375 | /*
* Copyright (C) 1996-1999,2001-2005,2009,2011,2014 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* scale_by.c method to scale the incoming epochs
* - either by a constant factor
* - or so that each output map represents a unity... |
f972358f6ae0f40afc60269ed3378fc7f8ae981b6d6aeed4c8b1dc38cadc0ea3 | C | 11,377 | 571 | /*
* VOGL/VOGLE driver for NeXTStep.
* shamelessly hacked from X11 driver 9/91 by
*
* Patrick J. Flynn
* School of EECS
* Washington State University
* Pullman, WA 99164-2752 USA cha cha cha
* flynn@eecs.wsu.edu
*
* modified 9/22/91 to use NeXToid defaults (owner: "VOGL") for
*
* + preferred small & large f... |
14552f908f5b6fcb9a5a520a8a4da2c0d3e9b067947d4a1e30ab631c96b6ab56 | C | 11,440 | 386 | // This file contains utilities for cross-platform file I/O.
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#if defined(WIN32) && !defined(__MINGW32__)
#include <Windows.h>
#else
#include "../abf/axon/Common/unix.h"
#endif
// The Windows headers crea... |
cdd16e9b85486441ecf22fa62b5c8a4dc46979c0d7f2b354d99df138bd88faf2 | C | 11,592 | 343 | /* FILE harrysimple.c */
/* Sort trials in current file */
#include "../defs.h"
#include "../array.h" /* Access registers directly */
#include "../_imports/deffs.h"
#include "../_imports/event.h" /* Stack instruction definitions*/
#define FULL_SORT 0
static float DIRECTION_BIN_SIZE = 45.; /* Sh... |
035308c20ab3725a5e0eb9dfc48001a17d235b915b9dc731fa4566c8feff95f6 | C | 11,598 | 301 | /*
* Copyright (C) 1996-2001,2003,2004,2008,2011-2013,2017,2018,2022 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* fftfilter is a simple Fourier filter method: Each sample is Fourier-
+ transformed, the coefficients multiplied by... |
fe3125c8fd518a0f7fcb5c85b03c7a8e2ef93ee909d2b702839a3b069f00bf34 | C | 11,683 | 382 | /*
* Copyright (C) 1996-2004,2006,2007,2009-2011,2013,2014 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* set method to set any of a number of dataset parameters
* -- Bernd Feige 21.04.1994
*/
/*}}} */
/*{{{ #includes*/
... |
7fc0c7b01a32112f3085d8dc44542cf7e15065223cbbd6dc394c8b1716c1e99a | C | 11,725 | 583 | /*
* Apollo driver for vogl.
*/
#include "/sys/ins/base.ins.c"
#include "/sys/ins/gpr.ins.c"
#include "/sys/ins/pad.ins.c"
#include "/sys/ins/kbd.ins.c"
#include <stdio.h>
#include "vogl.h"
#define FONTBASE "/sys/dm/fonts/"
#define MAXCOLORS 256
#define MIN(x,y) ((x) < (y) ? (x) : (y))
#define COLOR_ENTRY(r, g, ... |
f46a4b4ffbc89f4a08ede63f275b4abc733d2f7afb272967e16211f23e60a670 | C | 11,766 | 582 | /*
* VOGLE driver for X11 under the DEC window manager.
*
* ok so we admit that we don't know heaps about X11, but come
* on guys, this shouldn't be neccessary (wild comment from DEC about
* why our standard X11 driver won't work is welcome.)
*/
#include <stdio.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#in... |
0df00e38784a10546165ed4bcc6741b1c7b6bd71ff4f4e8200e0bdf72bba22b9 | C | 11,788 | 336 | /*
* Copyright (C) 1996-1999,2001,2003,2010,2013,2014,2016 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* dip_simulate.c module to simulate epochs using variable--strength dipoles
* -- Bernd Feige 2.06.1993
*
* dip_simulate is a... |
27774a43221d4519d55214f062ab067b308337b211c777d965a2f84c3fa9a58d | C | 11,831 | 344 | /* FILE gelse.c */
/* FUNCTIONS:
* ScreenWidth, ScreenHeight
* PixToTime:
* TimeToPix:
* GraphSetUp: Initialize variables
* GraphShutDown: closepl();
* GraphLine: Draw or erase bracket or line
* PrintGraphicsScaling: Print scale values on upper left of plot
* Grap... |
e4dc02feb1c2abb9f383c575f5440bd1921f8a5a0feab20e791b0808310859b5 | C | 11,832 | 349 | /*
* Copyright (C) 1996-1999,2001,2003-2005,2007,2012,2025,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* write_freiburg.c method to write data to a Freiburg
* (Stefan Krieger/Stephanie Lis/Bernd Tritschler) file
* -- Bern... |
615bc54ebf93f46c53ce0ee222d53527e4e315a1915427240a56a4982eff343c | C | 11,857 | 328 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <immintrin.h>
#include <qnnpack/q8gemm.h>
#include <requantization/runtime-sse2.h>
void py... |
36341e9731d9aec12356832ad3a11e25352b434c7d32b489cce6fae5a0228295 | C | 11,938 | 338 | /* FILE _macros/jeff/direction.c */
/* Ttest on directional activity. Details at end of file. */
/* ******************************************************************** */
#define STACK_VS_BACKGROUND 0 /* Do this comparison? */
#define STACK_VS_STACK_BEST_DIRECTION 0 /* Do this comparison? */
#define BEST_VS_... |
1bfa2c4d2952fc037347f85956a56d7c0dc57a35e05bac8f7ed9a97dabc58144 | C | 11,971 | 454 | /* FILE anova */
/* From David Bradley, modified by me */
#define NON_PARAMETRIC 0 /* Parametric or non-parametric? */
static double gammln (double xx);
#if NON_PARAMETRIC == 1
static void rank_dmatrix(double **data, double **rankdata, int rows, int cols);
static double chiprob (double chisq, int dof);
static doubl... |
254f07fbafd37d5cc4a4a687a3043e3940078bad49f14a8d0418c16112a168e5 | C | 12,112 | 703 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "vogl.h"
#include "vodevice.h"
struct vdev vdevice;
static FILE *fp = NULL;
static int allocated = 0;
/* device-independent function routines */
/*
* voutput
*
* redirect output - only for postscript, hpgl (this is not a feature)
*/
void
voutp... |
3c2fc0fe9db10f292d8350681d8401dd74a3155c2fca54167db9162011baa644 | C | 12,178 | 315 | /*
* Copyright (C) 1996,1998,1999,2001,2003,2004,2006,2008,2011,2014,2018,2022,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* sliding_average is a transform method serving two purposes by combinations
* of the two parameters ... |
f3c9a6e097f254e45c80c7d01a5cf7547bc4ee4641be990d19669dc2d54eed2c | C | 12,224 | 718 | /*
* This file is directly from the VOGLE library. It's simply had a few
* gratuitous name changes and some comments added.
*/
#ifdef SGI
#include <gl.h>
#include <device.h>
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#include <stdio.h>
#include <fcntl.h>
#ifdef TC
extern double sin();
extern double cos();... |
e5b01c7df54791443635474d61cc2100be611f3e62959c84acf05867d9ff86ae | C | 12,504 | 382 | /*
* Copyright (C) 2014,2016,2024 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* write_brainvision
* -- Bernd Feige 28.11.2014
*/
/*}}} */
/*{{{ #includes*/
#include <stdio.h>
#include <stdlib.h>
#ifdef __GNUC__
#include <unis... |
d05084a49f603f4048ba5e9f96b571b94bd452befa131dfda7dc261ea68d4b5e | C | 12,636 | 322 | /* FILE config.c */
/* Reads user config values and exports them */
# ifdef stoet
#define CONFIG_FILE_NAME "/home/stoet/.grab_config"
# elif gaurav
#define CONFIG_FILE_NAME "/home/gaurav/.grab_config"
# elif larry
#define CONFIG_FILE_NAME "/home/larry/.grab_config"
# elif ben
#define CONFIG_FILE_NAME "/home/b... |
3d6268a5d37f85e7304bdee4cd17ccc3980dcdce077ac6b2458c5e73810be674 | C | 12,645 | 372 | /*
* Copyright (C) 1996-1999,2003,2010 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* dip_fit.c module to fit dipoles to the input data.
* The struct do_leastsquares_args pointed to by methods->local_storage
* can be accessed f... |
9d94a4225221e1b3f809bbfadc23b28e4b0e39af756988da23d5c31e5afdc398 | C | 12,656 | 655 | /*
* GRX driver for VOGL c1993 by Gary Murphy (garym@virtual.rose.utoronto.ca)
*
* To compile:
*
* 1) add GRX to device.c and mash-up your makefiles for MsDOS 2) compile with
* DOBJ=-DPOSTSCRIPT -DHPGL -DGRX and MFLAGS=-O2
*
* To run:
*
* set VDEVICE=grx
*
* grateful thanks to Lance Norskog (thinman@ne... |
bbb1f13c8c7bc5dc403d313482b8acb5438ed3ed4bfbf7e5d0878aa91e2fa312 | C | 12,669 | 376 |
/* These pointers will be stored in the C-object for use in other
extension modules
*/
void *PyArray_API[] = {
(void *) PyArray_GetNDArrayCVersion,
NULL,
(void *) &PyArray_Type,
(void *) &PyArrayDescr_Type,
NULL,
(void *) &PyArrayIter_Type,
(void *) &PyArray... |
a2ec8ab38622e8508d5874d95f6097a2540991c16c992623c52f16e1d31369d0 | C | 12,732 | 372 | /*
* Copyright (C) 1996-1998,2000,2001,2003,2004,2018,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* ascaverage reads data sets from files using the readasc method
* and outputs the result to stdout. Bernd Feige 19.02.1993
*/
/*{{{}}}*/
/*{{{ #includes*/... |
2dd0713892d84fdb252ec7ddaf7ee775ab541b3c12278999f020c4080818908d | C | 12,886 | 351 | /*
* Copyright (C) 2005-2007,2010 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* convolve is a transform method heavily based upon sliding_average,
* used to build simple detectors of a given wave characteristic.
* -- Bernd... |
6fa60aa213afff8d54f4f655a1561d30c9077d8a16d52d3869c770a18858ae01 | C | 12,909 | 427 | /* FILE ps.c */
/* Postscript driver */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "plot.h"
#define DEBUG 0
#define Y_PAGE 11.0
#define X_PAGE 8.5
#define EDGE 0.5 /* Margin on each side */
#define CENTER 1
static FILE *out;
static int stroked; /* Stroked ... |
3d13c591f398e341c44df696bb59a4b9ea4ec15acab0f3df2a5634a2d79c5575 | C | 12,930 | 293 | /*
* Copyright (C) 1995-1998,2000,2001,2004 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/* Definition of `structure member' arrays for the synamps format
* -- Bernd Feige 6.08.1995 */
#include <stdio.h>
#include <read_struct.h>
#include "neurohdr.h"
/* Global d... |
541f32ed94e4a652b396f49e5aa1cedf5216e2e2ea1f8396fc593ba0df478cba | C | 12,982 | 445 | /* FILE reg */
/* Maintain register list (list,copy,remove)
Do not consider individual channels ("CurrentChannel") */
/* FUNCTIONS:
* ProofReg: Test existence of register
* ListReg: Print number & descibe arrays in list
* CopyReg: Copy array in list to another position
* A... |
c6ef9c5e9533e242f5fbe78ad27e88da6408feb6fdcd257414d03599b2cfc713 | C | 13,107 | 331 | /*
* Copyright (C) 1996-2000,2003,2004,2007,2009,2010,2013,2020 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* subtract.c method to subtract a given epoch from the transform epochs
* -- Bernd Feige 28.04.1993
*
* This method nee... |
b3609ff50b588b02cf52f1a8be1fcd538c307e5a26e6519853d4fddbb2533d4b | C | 13,172 | 531 | /* This program, plot, translates a GNU plot file into device specific output.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY. No author or distributor accepts responsibility to
anyone for the consequences of using it or for whethe... |
8cb9c4905d46da42472d74d118e2fb9af6dd153c99f952c093f9980f91ff5ce7 | C | 13,276 | 399 | /* FILE title */
/* Title things */
#include "deffs.h"
#include "config.h"
#include <time.h> /* For time calls */
#include <string.h> /* For time calls */
#define DEBUG 0 /* Levels 0 thru 2 */
/* If title from command line, use these as class titles: */
#define COLUMN_TITLE(i) sprintf(Title, "%d.%... |
3c5eb2d200fe00c246a7329f341f2c7af72eda2c6857614bfcc59df0362d97cd | C | 13,350 | 354 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <immintrin.h>
#include <qnnpack/q8gemm.h>
#include <requantization/runtime-sse2.h>
void py... |
da00d5df8772a25144299c38ab7c3faac98578cdd1212caf3befd6c7a51ccafe | C | 13,386 | 356 | /*
* Copyright (C) 1996-1999,2001,2003,2004,2013,2017,2025 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* reject_bandwidth is a rejection method to include into an average()
* process chain (usually just after the get_epoch method... |
041f71f72de5ca5e94e9066dfe96118174505fe017ad0ec012b217fc593ef630 | C | 13,544 | 323 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <assert.h>
#include <emmintrin.h>
#include <qnnpack/q8gavgpool.h>
void pytorch_q8gavgpool... |
916a9a879af5655a3493f2847e20eac82dae432549d9bb9968d1d4742bb841ab | C | 13,622 | 360 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <immintrin.h>
#include <qnnpack/q8conv.h>
#include <requantization/runtime-sse2.h>
void py... |
beef53b6b6613d00454e575151599d3d0a2673d1aadc95e620a419117d21043d | C | 13,640 | 454 | /* FILE _macros/print.c */
#include "../Deffs.h"
/* ******************************************************************** */
/* Generic macro: print spike rates in specified interval,
sorted by stack and class */
/* Stack name: ounit#.run#
* First line: unit run begin time end time # stacks # classes ... |
8a389e61a2c7bbebd0c4d05e308aa0dccfcf051a371b41f06bb6a9b69c664d4c | C | 13,660 | 617 | /* hyp2f1.c
*
* Gauss hypergeometric function F
* 2 1
*
*
* SYNOPSIS:
*
* double a, b, c, x, y, hyp2f1();
*
* y = hyp2f1( a, b, c, x );
*
*
* DESCRIPTION:
*
*
* hyp2f1( a, b, c, x ) = F ( a, b; c; x )
* ... |
88ff9c1bdfe9cd841150db02ad06f98d6119bca235a06b8950bdadc4890a0cbd | C | 13,708 | 486 | /* FILE xyplot */
/* Eye position and targets in X-Y space (instead of vs time plots) */
/* First eye target is red; subsequent eye targets are purple.
* Cues are cyan; arm targets are green.
* Pursuit trajectory is white/black.
* Eye locations are red, arm locations are slightly dark cyan
... |
699c7dbeca05a87fd7ac9831d154a554430ffc3cdf856a723f8aae82812ccc04 | C | 13,802 | 483 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#include <math.h>
#include <float.h>
#include <stdio.h>
#include "nr_util.h"
#include "ad_globl.h"
#include "ad_bound.h"
#include "ad_start.h"
#include "ad_doubl.h"
#include "ad_prime.h"
#include "ad_matrx.h"
#include "ad_cone.h"
void RT_Matrices(int n... |
b66568aa046a9880b1a697d33d73e5f54e4fc9d4491e55099a2eb147611bd224 | C | 13,959 | 392 | /*
* Copyright (C) 2008,2010,2011,2014,2025 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* writeasc.c module to write data to an ascii file
* -- Bernd Feige 19.01.1993
*
* If (args[ARGS_OFILE].arg.s eq "stdout") tinfo->outfptr=s... |
f9fa4e7ba3eef1e8959ea7c84adec626d8500737a0581143f0e9d9c9dd273c3b | C | 14,047 | 404 | /* FILE latency.c */
/* Macro 90, modelled on 63,64,86 */
/* ******************************************************************** */
#include "../Deffs.h"
#include "../../event.h"
#include "../../deffs.h" /* BUTTONS */
/* ******************************************************************** */
/* ************... |
b66cd96c677494a8e77bf5fc3bf9b5ba69afdd720c2e7ba5d2f7f32b85782af9 | C | 14,077 | 454 | /* FILE file.c */
/* Transfer registers from program to disk & vice versa */
/* FUNCTIONS:
* OpenFile: Construct new unique mnemonic name & open file
* NameFile: Return name of open file
* StatFile: Write stats to file
* RawFile: Write DataArray to file, raw
*... |
6f3e61f2d27ce205ef1cc99ea8fe79463dbd4b4c195275f1d7b0daa2194e4156 | C | 14,140 | 419 | /*
* Copyright (C) 1996-2006,2010,2013,2014,2018,2024 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* trim method to trim the data to the specified number of points
* -- Bernd Feige 28.03.1996
*/
/*}}} */
/*{{{ #includes*... |
6db3794e44dbfbc2f0b295be4bea7c1de3a0644b1eb20f354c8adcfcb42dc89b | C | 14,195 | 498 |
#include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* Draws Newell's Teapot as a heap of Bezier surface patches.
*/
#define TEAPOT 1L
/*
* Data for the teapot.
*/
#define NUM_PNTS 306
#define NUM_PATCH 32
float xyz[NUM_PNTS][3] = {
{ 1.... |
04bbaef52d412ef35e4d6e3e440e5ea240818d3ce9b6d8069c079f3827b056a4 | C | 14,212 | 499 |
#include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* Draws Newell's Teapot as a heap of Bezier surface patches.
*/
#define TEAPOT 1L
/*
* Data for the teapot.
*/
#define NUM_PNTS 306
#define NUM_PATCH 32
float xyz[NUM_PNTS][3] = {
{ 1.... |
8db580c7e558551eee8000bf482c463a08ed53db3365f623efdd8b0e5539c3ec | C | 14,306 | 429 | // RenameField.c
// RenameField: Rename a fieldname of a struct
// T = RenameField(S, Old, New)
// INPUT:
// S: Struct or struct array.
// Old, New: CHAR vectors or cell string. In the M-Version of this function
// strings are allowed also. The names must be valid Matlab symbols:
// <= 63 characters, firs... |
e36a7905604d8cd4ecc57591aec1b23121c497ed3918e17166d38252dd19f4ba | C | 14,355 | 392 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <windows.h>
#e... |
d0e1189974b10b0c3fb28b5d0d82dc4d78924f0505a4609d3d11c884dc93d3a2 | C | 14,436 | 447 | /*
* Copyright (C) 1999-2001,2004,2008 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* icadecomp is the avg_q incorporation of the Independent Component Analysis
* method developed at the Salk Institute, San Diego. See
* http://ww... |
f0661fd3c8f2c15f2fa75cb91235cc0e32b0e91fd94134962f9b39b6860fb370 | C | 14,440 | 631 | /* Gamma.c
*
* Gamma function
*
*
*
* SYNOPSIS:
*
* double x, y, Gamma();
* extern int sgngam;
*
* y = Gamma( x );
*
*
*
* DESCRIPTION:
*
* Returns Gamma function of the argument. The result is
* correctly signed, and the sign (+1 or -1) is also... |
12d8a746ca4987e79b55321a217b068242fd03031386a8ac70df2e117052c139 | C | 14,478 | 452 | /*
* Copyright (C) 2008,2010,2012-2014,2025 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* write_generic.c generic binary file output
* -- Bernd Feige 18.02.1997
*/
/*}}} */
/*{{{ #includes*/
#include <stdio.h>
#include <stdli... |
92cb1a166eb6597cb6406dc4cb1c172bc6a38fdf9df96b25dbd52213e7ef6ec2 | C | 14,527 | 475 | /* FILE picture.c */
/* ******************************************************************** */
/* FROM head.c: EVENT *Stack_Ptr_Header(); */
/* ******************************************************************** */
#define MAX_TARGS 18
#define SPACING 40 /* LED lines this many pix apart*/
#define BROWN 6
#defi... |
19c6c6427382fd2404e3d4315c2f6a08d06aa66df4d9dd08432bd82fcf26be2b | C | 14,642 | 449 | /* FILE Memorymac.c */
/* Read a string of units in; normalize each to a single trial and
then add to a main register */
#include "../defs.h"
#include "../array.h" /* Access registers directly */
#include "../sac.h"
#include "../_imports/deffs.h"
#include "../_imports/event.h" /* Stack ins... |
58182223c201c34ee138015844ce0f7c9dffdc39418f45e6ec805a32a0590895 | C | 14,659 | 382 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <arm_neon.h>
#include <qnnpack/common.h>
#include <qnnpack/q8vadd.h>
void pytorch_q8vadd_u... |
bbaff17b8dc35ae8be7eb2017ab47df33170cb9772d22168aee85a07e794ab03 | C | 14,660 | 382 | /*
* Copyright (C) 1996-1999,2001,2003,2004,2009,2013 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* average.c collect method to average epoch data or a transformation thereof
* -- Bernd Feige 11.02.1993
*
* The method call itse... |
fbf5a99b360310342b9795d5180cb7d21c51c28d106a1cbb3dfffb5b60061511 | C | 14,754 | 423 | /*
* Copyright (C) 1996-2002,2004,2006-2010,2012-2014,2016,2022,2025 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* query is a method to write global or dataset values to a stream
* -- Bernd Feige 27.09.1996
*/
/*}}} */
/... |
ecbeb63d131a77364f7608a8817bd79f82c7170811a804627a5d7d7d30b73d57 | C | 14,784 | 415 | /* FILE movememnt_times.c */
/* Macros 63 (modelled on 86), 64, 65 */
/* ******************************************************************** */
#include "../Deffs.h"
#include "../../event.h"
/* ******************************************************************** */
/* FUNCTION Movement_times63() */
/* FUNCTION... |
feb27f172fe25809922d4494eb9a738ae9380d1efbc5155585ea75a13712e117 | C | 14,917 | 370 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <arm_neon.h>
#include <qnnpack/hgemm.h>
void pytorch_hgemm_ukernel_8x8__neonfp16arith(
... |
c2a4e979bf9b2b02324b2b9998e64b15adb34e8835281966365234cfd450df65 | C | 15,091 | 365 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <assert.h>
#include <stdint.h>
#include <fp16/bitcasts.h>
#include <qnnpack/requantization-... |
849264b6967aa352d84b82e3f6975b6a0f4391372579ffa48e16515591d5e0c2 | C | 15,301 | 435 | /*
* Copyright (C) 2008-2010,2012,2014,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* write_hdf.c method to write data to a HDF file
* -- Bernd Feige 21.10.1996
*
*/
/*}}} */
/*{{{ #includes*/
#include <stdio.h>
#include... |
2026167825b159abb33a0b22642a175394883a6834962231b5341a4b34ea3647 | C | 15,308 | 468 | /* FILE layout */
/* Lay out figures on page */
#include "deffs.h"
#include "config.h"
#include <stdlib.h>
#include <ctype.h>
#define DEBUG 0 /* Levels 0 thru 2 */
#define INVERT_ROW 0 /* Reverse order of row (usu 11)*/
#define SWAP_ROW 0 /* Reflect (x,y => -x,-y) (usu 3*/
#define OLD_LAYOUT_FROM_STACK 0 /... |
a553bd2c6fd0fd4ac448411105c193e47fe106827bbec1f03977da06cffbcdf3 | C | 15,403 | 417 | /*
* Copyright (C) 2008,2010,2013,2014,2016,2024,2025 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* read_sound.c module to read data from some SOX (SOund eXchange) input format
* -- Bernd Feige 18.10.1996
*
*/
/*}}} */
/*{{{ ... |
49953e9f54a45cce25489bb4214dda4c6545434b475057708b4e2be90d7891cc | C | 15,412 | 401 | /* Regression tests for the library entry points.
The command-line program refuses to enter the Monte Carlo loop unless a
sphere was described, but the library lets a caller ask for lost-light
runs directly. Nothing exercised that path, and for a long time it
answered by deriving the sample ports from sph... |
1276b69571110c1f04c7bd2defd3fed57c4ce7af5f42c1624dd5439ea177f740 | C | 15,470 | 407 | /*
* Copyright (C) 1997-1999,2001,2003,2006-2011,2013,2014,2022,2024 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* read_neurofile.c module to read data from Nihon Kohden NeuroFile format
* -- Bernd Feige 26.09.1997
*/
/*}}} */
... |
b6fe8a46574f2e40b5130038994474d90581d06758fb3646aecf1463f6282481 | C | 15,506 | 908 |
/*
* Vogl/Vogle driver for Sun using sunview.
*
*/
/*
* define VOGLE for VOGLE library or leave blank for VOGL library
#define VOGLE 1
*/
#undef VOGLE
#include <stdio.h>
#include <suntool/sunview.h>
#include <suntool/canvas.h>
#include <fcntl.h>
#include <errno.h>
#ifdef SUN_3_5
#define event_action event_id
#... |
396715504bcf97c7fed2b5e450e7cb234a564bd111f88ce42a931b369f59d9ea | C | 15,521 | 429 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#include <math.h>
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include "nr_util.h"
#include "ad_globl.h"
#include "ad_prime.h"
#include "ad_matrx.h"
#include "ad_frsnl.h"
#include "ad_prime.h"
#include "ad_cone.h"
static void PrintTestRes... |
5c7aa2ec9093e0f8ae674a4a0eaee4d1602e2cbe3fdcc64e5fd335f8d3d88ed9 | C | 15,622 | 370 | /*
* Copyright (C) 1996-1999,2001,2003,2004,2007,2008,2010,2012,2018,2025,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* write_rec.c method to write data to a REC format file [Kemp:92]
* -- Bernd Feige 18.06.1996
*
* If (lo... |
3636614b63dc816a8e058d7e09736880a98ef49bfdfc087755a6ef127288294b | C | 15,674 | 423 | /*
* Copyright (C) 2008-2011,2013,2014,2024 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* read_Inomed.c module to read data from Inomed files.
* -- Bernd Feige 25.09.2008
*/
/*}}} */
/*{{{ Includes*/
#include <stdio.h>
#inclu... |
50ff82a3714103d7db5a5e86e7a54d131a873ecba6611ce75b84c7b912e56585 | C | 15,675 | 393 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include "ad_globl.h"
#include "ad_prime.h"
#include "ad_cone.h"
#include "iad_type.h"
#include "mc_lost.h"
int main(int argc, char **argv)
{
struct AD_slab_type s;
double ur1, ut1, uru, utu;
double ad_ur1, ad_ut1, ad_uru, ad_utu... |
d5b6fa9a87b8f4baedce71842d50d10a0ddacd1cad459fd9a8e30d17960e79a6 | C | 15,676 | 413 | /*
* Copyright (C) 2002,2004,2005,2007,2010 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* correlate.c method to correlate the incoming epochs with a number of
* time courses read from a second file
* -- Bernd Feige 13.06.2002
*... |
7af15d92727336145609cbe225c58063b3af20ffaf5dee42de9c9477d86411a8 | C | 15,834 | 524 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include... |
5d2e5c7817a8e6cedab7c9c0bce5ce56986b7e28b83b48510072345b0923ee26 | C | 15,923 | 452 | /* FILE sac */
/* Find saccades */
#include "deffs.h"
#include "ad.h"
float SacPeakVelocity_H = 0.; /* Set by Get_Saccade_Peak_Velocity */
float SacPeakVelocity_V = 0.;
int SacPeakVelocity_T = 0; /* Time */
float SacPosition_H = 0.; /* Set by Get_Saccade_Time, too */
float SacPosition_V = 0.;
int SacPosi... |
97dda72532d7d3b02011ef03bc14ea51caa33315c98131dd741fda7136a73f3f | C | 15,992 | 439 | /* FILE sac.c */
/* SetupDesaccading User's parameter menu */
/* SetupFindSaccade User's parameter menu */
/* DesaccadeData Delete saccades */
/* FindSaccade Return ptr to begin,peak,end times */
/* ******************************************************************** */
#define VOR_PRESE... |
4492de8ca29e8c666ccab2ae756787f91e083e1c3258382d7456943420705c91 | C | 16,133 | 466 | /* FILE harry2sort.c */
/* Sort trials in current file */
#include "../defs.h"
#include "../array.h" /* Access registers directly */
#include "../_imports/deffs.h"
#include "../_imports/event.h" /* Stack instruction definitions*/
# define PREF_WIDTH 22.5 /* 11.25 [5 for Rel.Ghost/Shift]*/
# de... |
486a7951c3042cbe0c2681cdf68b866df162ec8ab6483cfad03ea9d1ef0e8786 | C | 16,331 | 454 | /* FILE _macros/mr/memsac201.c */
#include "../../deffs.h"
#include "../../event.h"
/* Stacks 2: start scan *
* 20: ITI *
* 22: 3 s memory *
* 23: 6 s memory *
* 24: 12 s memory *
* 25: 21 s memory *
* 26-29: 27 s memory *
*/
/* FUNCTIONS:
* RunStart... |
38380b63ac151c2640654bfd6f2a580ac70c60376ba856be734893e609dd9ea9 | C | 16,540 | 426 | /*
* Copyright (C) 1996-1999,2001,2003-2008,2010,2011,2013 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* add_channels.c method to add channels - or points - from a readasc file
* -- Bernd Feige 9.09.1996
*/
/*}}} */
/*{{{ #in... |
7846ce64b9f3c4a4a971bc3bcb2c28419ec9bf1a9406b8dc2f65bb0f1f17aa34 | C | 16,553 | 524 | /* FILE util */
/* Miscellaneous graphing functions, used by histo and/or graph */
#include <unistd.h> /* For lseek() */
#include "deffs.h" /* Uses only function.h and STACK */
/*
PUBLIC:
SetColorByStackNumber Basic method: lookup stack#, map to color
SetColorByTrialType Get stack# given trialtype, cal... |
fcf76ea9f9d75ffff4c0360972e05173b5330fcdb4758abb6c7163dad9895731 | C | 16,704 | 439 | /*
* Copyright (C) 1996-1999,2001-2007,2010,2012-2014,2020 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* write_crossings is a method that looks at the contents of a given channel
* and prints (into a file, one per line) the poin... |
81dbdd2f81aa2437977ba6c9a5aaca4fc8ae39c82507115d2dab6d7ac3ecf4fb | C | 16,735 | 512 | /* FILE vestibmac.c */
/* Read a string of units in; normalize each to a single trial and
then add to a main register */
/* WARNING: Not keeping the 10 deg horizontal trials */
#include "../defs.h"
#include "../array.h" /* Access registers directly */
#include "../_imports/deffs.h"
#include ".... |
a15f151bcd9c6dade7a143b60c1a561154895658b3a342b69f29ce339bddb1c6 | C | 16,937 | 450 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <assert.h>
#include <arm_neon.h>
#include <qnnpack/q8avgpool.h>
void pytorch_q8avgpool_uk... |
b560247efe747d47016ba7e2dcb06646087d2d869977483c843c8f399f255360 | C | 17,062 | 396 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <immintrin.h>
#include <qnnpack/q8dwconv.h>
#include <requantization/runtime-sse2.h>
void ... |
075345ebac81cdf146dae0abb9f16d86d8b94bd56c616e517ce9965b9df185ec | C | 17,144 | 526 | /* FILE ps.c */
/* Postscript driver */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define DEBUG 0
#define DSC 1 /* Allows PC gv to zoom, & good for latex */
#define Y_PAGE 11.0
#define X_PAGE 8.5
#define EDGE 0.5 /* Margin on each side */
#define CENTER 1
/* FILE *out... |
9032d00831cbe3548eb91d55dd1408b398a0caf00a029fd54db48df20d64fa86 | C | 17,144 | 513 | /* FILE ReferenceSort.c (used to be TwoArmsmac.c, which used to be stevemac.c */
/* R, L arm stacks are separately considered. */
/* Read a string of units in; normalize each to a single trial and
then add to a main register */
#include "../defs.h"
#include "../array.h" /* Access ... |
d25b66aff95843d0d91557227717ebd948f59f8a79ea6da5fdb1724afa3ca054 | C | 17,215 | 418 | /*
* Copyright (C) 1996-2001,2003,2005-2008,2012-2014,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* write_vitaport.c module to write data to a vitaport file
* This put_epoch method first collects the channels in separate te... |
39f355d303630ef0f813500c7c449c0dfd36423c56292d7d906986ca1208afad | C | 17,315 | 532 | /* FILE interval */
/* Count spikes in any ONE or TWO intervals; if 2, also the diff */
#include "deffs.h"
#include "config.h"
#include <math.h>
/* CRITICAL POINT:
* There are 3 conditions, depending on command line arguments.
* Get_Interval_Type() identifies these conditions:
*
* ... |
097d29cfdf1b5321a2b973f1a6a35e8b93ba575d05f35c0abde4b80402e55441 | C | 17,551 | 531 | /* FILE head.c */
#define DEBUG 0
int extra_frames;
#include "deffs.h"
#define int short
#include "head.h"
#undef int
#include <fcntl.h> /* Open/close */
#include <string.h> /* strcpy() */
#include <unistd.h> /* lseek arg's */
/*
UnRead_Header
Read_Header
Write_Header_To_File(int out) {
FrameCoun... |
b9fac97e20165044771a6791fa71c10d8aa318661efa6cf21953ab0299848267 | C | 18,021 | 600 | /* FILE arm.c */
/* Data from: resistive touch panel, separate 'touch' line, OR *
* optical touch panel, constructed at input */
#define MOVE_CRITERION DEGtoAD(3) /* [3] Look for movement of ~ AD units*/
#define STOP_CRITERION DEGtoAD(3) /* [3] Look for movement of ~ AD units*/
/* DIAG: LHS 4-2008 Wasn'... |
fb79186639c09decd9de1cda7c7e1357793bb526ba12f3c4580d76bd236fe42d | C | 18,100 | 481 | /* FILE _macros/mr/memorysaccades.c */
#include "../../deffs.h"
#include "../../event.h"
#include "../Deffs.h"
#include <string.h>
/* FUNCTIONS:
* MemorySaccades430 Important info (event times), 1 line per trial
* RunStartTime431 Time of first sync pulse in file, in ms from midnight
* EventFileForMemory432 Build e... |
ca67bb37dca5caad56496fb62e208b4e9d20222a7403a29ff0c70471de9c71e0 | C | 18,569 | 440 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <immintrin.h>
#include <qnnpack/q8dwconv.h>
#include <requantization/runtime-sse2.h>
void ... |
cf1d7d7808a64bb8a1f4b0a6774dbc1c8d3d4bd27a441f9480c9dafaabf7f875 | C | 18,632 | 1,114 | /*
* tmesh, and quadstrips added by
* marsh@ppdrs1.nrl.navy.mil (Spencer J. Marsh)
*/
#include <stdio.h>
#include "vogl.h"
#include <math.h>
static int sync;
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#define ABS(x) ((x) < 0 ? -(x) : (x))
static float F[6][4], S[6][4], I... |
24ce9812f41076ee13acc800f5fe7a64d01e31d2e1bba7dcdba28e18af896f68 | C | 18,686 | 613 | /* FILE graph */
/* Graphical output of analysis program */
#include "config.h"
#define RASTER_SPACE 1500 /* Relevant only with -Los or -Loc */
/* Each stack's rasters get written into a virtual "graphics box",
* so whether there is 1 raster per stack or 50, the first raster
* always appears at ... |
467c66fb68a6460d8e787003c48086894cf7b84f6c34952a819c6e8c0397e343 | C | 18,757 | 380 | /* FILE help.c */
/* Print out short or long help */
#include "deffs.h"
#include "config.h"
# define SAY(this) { fputs(this, stdout); fputc('\n', stdout); }
/* ******************************************************************** */
/* FUNCTION Print_Usage */
void Print_Usage() {
SAY("USAGE: grab -options file... |
45089f2132b7ead463ee8c20d672c6b8b9745d00a4e96de1f215b0c5ab2c93f8 | C | 18,896 | 600 | /* FILE _macros/reach/roc.c */
/* Produce an 'ROC' plot for reach data */
/* Uses -i arguments (or -i default) to set span to calculate over */
/* One form (88) does calc everywhere, gives time plot */
/* Other form (89) does calc at just one location, prints it */
/* Third form (87) does cumul... |
ef59c8b1f5408d3c3ad192a66d4b86a28549b9c853a38f9c4be731d5fdc06378 | C | 19,098 | 610 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
// N.B. This defines the valid bases, but it's also effectively defined in the switches in
// get_votes_simple(), get_votes_qual(), and get_base_prime(), and in the constant IUPAC_BASES.
#define N_BASES 6
const char *BASE... |
2f85fa3e896bf11ba7421ce90f8dbe9e73348a628ffea8d50fd34ce3e180634c | C | 19,126 | 670 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "ad_globl.h"
#include "ad_frsnl.h"
#include "iad_type.h"
#include "iad_util.h"
#define MIN_WEIGHT 0.0001
#define N_RADIAL_BINS ... |
13ea992abc3b0715284ef819cf0cde5e5de8a5af609db72ebb2b3083185059d2 | C | 19,158 | 471 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <assert.h>
#include <emmintrin.h>
#include <qnnpack/q8avgpool.h>
void pytorch_q8avgpool_u... |
4c6c7464006266f4ad574102af617401dbd13593244321ec6ddd80406fca627e | C | 19,283 | 602 | /*
* Copyright (C) 1996-2003,2007-2014,2016,2018,2019 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* set_channelposition method to set the channel positions for a number of
* channels of the incoming epoch. -- Bernd Feige 21.04.1... |
1d57af61601e1fb3922634361c9f5bd56d812cb94e507f8ae257849233bc7f19 | C | 19,312 | 513 | /*
* Copyright (C) 1996-2001,2004,2010,2014 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* project.c method to project the incoming epochs onto a number of
* directions read from a second file
* -- Bernd Feige 23.09.1994
*
* Th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.