sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 17k | content stringlengths 1 200k |
|---|---|---|---|---|
500f25bba04150c00b17a2b404d4d1754097f85dcab4a9c51bc30a000e049c7e | C | 4,717 | 150 | /*
* Copyright (C) 1996-1999 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* raw_fft is a simple Fourier-only method for playing with the raw spectra.
* -- Bernd Feige 26.10.1996
*/
/*}}} */
/*{{{ #includes*/
#include <st... |
6517aa0ad6e05cd02dad463ad4782907ddf2d29ffc87a09e3c81c615b4251ce7 | C | 4,723 | 185 | #include "vogl.h"
#ifdef TC
extern double cos();
extern double sin();
#else
#include <math.h>
#endif
/*
* translate
*
* Set up a translation matrix and premultiply it and
* the top matrix on the stack.
*
*/
void
translate(float x, float y, float z)
{
Token *tok;
if (!vdevice.initialised)
verror("tr... |
edc119e3954ace965c124b1ae4d7ce070885e3d67760f79802bff8793034e034 | C | 4,773 | 99 | /*
* Copyright (C) 1996,2000 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 Vitaport format
* -- Bernd Feige 17.12.1995 */
#include <stdio.h>
#include <read_struct.h>
#include "vitaport.h"
/* Should I comment my o... |
8d29946d1fd2b582d339b4ef2d136ab87f9c978c825a15376a622c9ced095abc | C | 4,776 | 166 | /* FILE calib.c */
/* Reverse calibrations */
#include "defs.h"
#include <string.h>
#include <ctype.h>
#include <unistd.h>
/* ******************************************************************** */
/* PUBLIC:
*
* Init_CalibFile
* Read_CalibFile
* Do_Calibration
*
* PRIVATE:
*
*/
/* *****************... |
795a50bb80f7c03c93c579c3e73ced51da844fb2c30ca119504a52cffcc5c346 | C | 4,810 | 279 | #include "vogl.h"
static int nsegs = 15;
static Matrix e;
/*
* curvebasis
*
* sets the basis type of curves.
*
*/
void
curvebasis(short int id)
{
if(!vdevice.initialised)
verror("curvebasis: vogl not initialised");
copymatrix(vdevice.tbasis, vdevice.bases[id]);
}
/*
* curveprecision
*
*... |
42c8df21d835c5aa67c0f34a53b0058c08806daadfb724690d1cabd3a0687f0c | C | 4,811 | 156 | // ----------------------------------------------------------------------------
// Numerical diagonalization of 3x3 matrcies
// Copyright (C) 2006 Joachim Kopp
// ----------------------------------------------------------------------------
// This library is free software; you can redistribute it and/or
// modify it u... |
2a06590a2ccb988667c5a014c3300245350f83511d149533df53399235916959 | C | 4,814 | 147 | /*
* Copyright (C) 1999,2003,2004,2010,2014 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* null_source.c `dummy' method to just create zero'ed data.
* -- Bernd Feige 23.03.1999
*/
/*}}} */
/*{{{ Includes*/
#include <stdio.h>
#... |
c1d91dcd119ce4cb4680788d5f1bb682461968b1a9309de8c3f25c84c5fb8c8c | C | 4,827 | 160 | /*
* 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 <math.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#i... |
05e1e48c293a62990307ac1350545671c2856024182a5a3b1885b1012bf481b3 | C | 4,838 | 158 | /*
* Copyright (C) 1996-1999,2001,2004 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* extspec C program to extract values for a single channel from an 'asc'
* file in a format suitable to feed, eg, into gnuplot.
* Column 1: x value; Column 2: z value; Columns 3... |
4de25a28fbe98884d9e45330447d1664dc417c7a56511ec3dba9e03b00d9f696 | C | 4,843 | 159 | /* FILE _macros/frame/frame.c */
/* Macro to determine frame of reference */
/* ******************************************************************** */
#include "../Deffs.h"
/* ******************************************************************** */
static void SwapTypes(int *one, int *two);
/* *****************... |
7f66f81dc24a5ed8997289815bf3018b29b7e720a79f84df47487b454e39f61c | C | 4,849 | 137 | /* FILE _macro/touch2.c */
/* Get data from the EITHER touch panel (-D1: panel 1) */
/* ALIGN ON 'GO' !! */
#include "../Deffs.h"
#include "../../deffs.h"
#include "../../event.h" /* V_SYNC */
/* ******************************************************************** */
#define PARAMETERS 10 /* Parameters pe... |
9fae86bb40b7c0e4925e97ca532f04c0fad63a516dfe32a2240711e992085c49 | C | 4,858 | 139 | /* FILE error.c */
/* Return time of error, time of targ onset (or FAIL), stack, class */
#include "../Deffs.h"
#include "../../event.h"
/* ******************************************************************** */
static FILE *file;
static void Get_Data();
/* ********************************************************... |
e0ec7136ae0f785120a853f6a7b33441852e2ca0768d231d06483ed25953dfa4 | C | 4,862 | 154 | /*
* 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/q8gemm.h>
void pytorch_q8sumrows_ukernel_4x__neon(
cons... |
97afd2aac25466882983258dd9ff7d83fa290c16d1796c2be0beca87bc701718 | C | 4,863 | 143 | #include <stdlib.h>
#include <math.h>
#include "noise.h"
#ifndef RAND_MAX
#define RAND_MAX 32767
#endif
/* For the uniform random number generator, we use rand(): */
static float
ranf(void) {
/* Take care that this won't be 0 or 1! */
return ((double)rand()+1.0)/((double)RAND_MAX+2.0);
}
/* Now this is from randli... |
3f0c5ead4cd3af569c0628a96a42963f9358b66f2633a2b4a092f6a75f4d38bf | C | 4,864 | 174 | /* FILE arm.c */
/* SetupFindArmMove User's parameter menu */
/* FindArmMove Return start or finish */
/* ******************************************************************** */
#include "defs.h" /* Misc constants */
#include "array.h" /* Array declarations */
#include "sac.h" /* ArmMoveData s... |
513c3c3878da6c707934c89afdd86d4588e3f8c76484b277c6b5d1241140ddfd | C | 4,929 | 194 | /*
* Copyright (C) 1994,1998,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* malloc_trace module -- keeps track of allocated memory patches and
* frees only those that were actually allocated before. Freeing memory
* 'on suspicion' of it being allocated can... |
14866cbe329ac94243bbf366878169c5ee1449d0b4aecdde72819454f2ff3c7b | C | 4,930 | 205 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#include <math.h>
#include <float.h>
#include <stdio.h>
#include "ad_frsnl.h"
static double Fresnel(double n_i, double n_t, double mu_i);
static double R1(double ni, double nt);
double Cos_Critical_Angle(double ni, double nt)
{
double x;
if ... |
c74c22960aa3f379f1a225d3eb51dcc44712bf4c3abb937d0d122f6e792e2bad | C | 4,960 | 152 | /*
* Copyright (C) 1997-1999,2002-2004,2010 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* append.c collect method to append the incoming epochs to a single epoch
* -- Bernd Feige 05.03.1997
*
*/
/*}}} */
/*{{{ #includes*/
#i... |
3fed63a6f235ebb303df5300844195bd0bf3ace6d2ed9d57cf1b1b00edb46522 | C | 4,984 | 134 | /*
* 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 <smmintrin.h>
#include <fp16/bitcasts.h>
#include ... |
842227d181486011b832e460222bca33c68f8d49e70359d86a216c9ca4d42950 | C | 5,004 | 199 | /* 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_matrx.h"
#include "ad_globl.h"
#include "ad_doubl.h"
static void Star_Multiply(int n, double **A, double **B, double **C)
{
Right_Diagonal_Multiply(n, A, twoa... |
1bfa9a0d47482e3b16f5cdb4f7a24e8df252c91b6aec251753f2eb8fc407d03d | C | 5,005 | 164 | /*
* 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 <math.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#i... |
12217ee4e5b28f9d0ec00596b7b098b93923e93b3d36981b176aa2807695677f | C | 5,025 | 132 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
686af8f7fb21fdc90a1f923f3dd494653f771d26052e71caaec8e8da8522291d | C | 5,026 | 296 | #include <stdio.h>
#include "vogl.h"
static int sync;
/*
* draw
*
* draw a line form the logical graphics position to the
* the world coordinates x, y, z.
*
*/
void
draw(float x, float y, float z)
{
Token *tok;
int vx, vy;
Vector res;
if (!vdevice.initialised)
verror("draw: vogl not initialised");
if ... |
c88f6df8bfa46caa85dc45ae2fd0f47d5090ff7af33ad0ea82615b8250c3ce3b | C | 5,065 | 284 |
#include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* Draws patches of various bases
*/
/*
* patch basis types
*/
Matrix bezier = {
{-1.0, 3.0, -3.0, 1.0},
{3.0, -6.0, 3.0, 0.0},
{-3.0, 3.0, 0.0, 0.0},
{1.0, 0.0, 0.0, 0.0}
};
Matrix ca... |
4f80b718e88cb43360abdc780e579380f0ef805ee3974fc8b34152b91e65983c | C | 5,082 | 285 |
#include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* Draws patches of various bases
*/
/*
* patch basis types
*/
Matrix bezier = {
{-1.0, 3.0, -3.0, 1.0},
{3.0, -6.0, 3.0, 0.0},
{-3.0, 3.0, 0.0, 0.0},
{1.0, 0.0, 0.0, 0.0}
};
Matrix ca... |
42258703f824555befd80849404d58ed0e91fa796db0c419187e670722b8ee08 | C | 5,099 | 207 | /*
* Copyright (C) 1994 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ #includes*/
#include <stdlib.h>
#include <math.h>
#include <method.h>
#include "array.h"
/*}}} */
/*{{{ #defines*/
#define EPS (1.e-14)
#define TINY ((DATATYPE)1.e-20L)
/*}}} ... |
968c0e0392856282b84506b65587d933f095c1952a11c316d1e1c90588933866 | C | 5,115 | 135 | // ----------------------------------------------------------------------------
// Numerical diagonalization of 3x3 matrcies
// Copyright (C) 2006 Joachim Kopp
// ----------------------------------------------------------------------------
// This library is free software; you can redistribute it and/or
// modify it u... |
185ae08a280857f3a1da27dab1da4267b9ad4911626ba46f69502b3e5e1516da | C | 5,151 | 172 | /* FILE _macros/stimulate/printstim.c */
#include "../Deffs.h"
#define DEBUG 0
#define MEASURE_SACCADE 1 /* 1: find saccade and measure metrics? */
/* 0: measure avg eyepos in interval */
#define CMDLINE_THRESHOLD 2 /* use -d to specify theshold? */
/* ********************************************... |
1f81be432edc2857c8cfa9ad5c1640cc686de1ade70bb6aa615fcf7301f5ddfa | C | 5,157 | 144 | /*
* 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 <arm_neon.h>
#include <fp16/bitcasts.h>
#include <... |
c98f995bcf1fb227df6538b3cf1c99d27e9b7ba98613c8d45edc6fe50e96b007 | C | 5,168 | 206 | /* FILE lib.c */
/* Agglomeration of original lib.a */
#include "defs.h"
#include "termdef.h"
#include <sys/types.h>
#include <sys/signal.h>
#define GENERATE_ALT_TABLE 0 /* Give ascii codes for alt-chars */
/* ******************************************************* */
/* FUNCTION fatal */
void fatal(char *sp) {
... |
7e205b516df593f40f17dfcfbce6c7ddd3717bf8b8bf2c729c0d09e861e035d9 | C | 5,202 | 181 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "ad_globl.h"
#include "ad_prime.h"
#include "ad_start.h"
#include "ad_phase.h"
#include "ad_doubl.h"
#include "ad_bound.h"
#include "nr_util.h"
int main(int argc, char **argv)
{
#defi... |
b8438a70d4e216a7ebd3c3475ee91ff67953131337640088f861bc4fb64702c6 | C | 5,216 | 152 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#include <math.h>
#include <stdio.h>
#include "ad_globl.h"
#include "ad_bound.h"
#include "ad_frsnl.h"
#include "ad_matrx.h"
#include "nr_util.h"
static void A_Add_Slide(int n, double **R12, double **R21, double **T12, double **T21,
double *R10, do... |
1c1d719f11ae233606a421891aa9c27c6738eac2ebe8a90aa0cfb9cd5b081537 | C | 5,225 | 169 | /*
* 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 <math.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#i... |
78815d3523b2c0d5f1dd68c7f0b7b4c50a790d323f4e86cb4f91889fdb284bd6 | C | 5,227 | 145 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
2e45221117ef0ac5a3ec1618789dc14575d999179f545e2b6076cdb90644b8e6 | C | 5,285 | 168 | /* FILE write_sac.c */
/* Macros 110, 111 */
/* ******************************************************************** */
#define START_CRITERION 5. /* Fixation window at sac start time */
#include "../Deffs.h"
#include "../../event.h"
#include <string.h>
/* ********************************************************... |
b4895236d2271acbc5fcdd54e5cc4b03eb4bd6c602e508b0903049b3c87a5766 | C | 5,327 | 158 | /*
* Copyright (C) 1996-1999,2001,2003,2011,2014 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* integrate is a simple transform method generating the integral --
* defined by the accumulating sum between the successive data points... |
dc56ebb061f603bf7af152154f3c65573909a655ba108e10873cf09fe543358b | C | 5,342 | 158 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
dd90515d45c15c4048945f638baaad895c5ac3ba195c7d193a9633eec4adbf74 | C | 5,398 | 199 | /* FILE _macros/frame/vest_motor.c */
/* ******************************************************************** */
#include "../Deffs.h"
/* ******************************************************************** */
/* Macro for displaying data from stacks 170-187 or 270-287 */
/* Reshuffle stack and class so that:
FO... |
81f58ea45de9a54035061dd745d1c611c4a3e4551378efb0d51abc272a5398dc | C | 5,426 | 217 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include"ad_globl.h"
#include"ad_frsnl.h"
#define AD_GLOBAL_SOURCE
double angle[MAX_QUAD_PTS + 1];
double weight[MAX_QUAD_PTS + 1];
double twoaw[MAX_QUAD_PTS + 1];
int twoaw_changed = 1;
int Martin_... |
f6942c25979c8d6998d2893e94d2aeb8dabb04cfd923e7580a4422f5f354f3ab | C | 5,440 | 186 | /* FILE rsvp1sort.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 FILTER 0 /* Heavy (9 Hz) or light (46 Hz)*/
#define PRINT_... |
56b69cb066ff89db101dbaccdebfedd425b5c818f3fcc0d837ffa3678c81b7bf | C | 5,450 | 158 | /*
* 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 <math.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#i... |
b2235fce4e03c558961b73db082b63faa85ba98f3fc186009bdaac7b2eeb1c9d | C | 5,488 | 158 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
807eac59039c4491da32de86d64f73f8bd745231a5028a934e6e25a351670cf5 | C | 5,531 | 250 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#define NSLICES 512
#define EPS 1e-16 \
#include "ad_globl.h"
#include "ad_radau.h"
#include "nr_rtsaf.h"
#include "nr_util.h"
#include "nr_zbrak.h"
static int local_n_size;
static void Pn_and_Pnm1(int n, double x, double *Pnm1, double *Pn);
static ... |
d3560cacfadce707353ac2ff5813d1e180ec9511e86d9a3b258817a4c312f438 | C | 5,604 | 138 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
f860fed5fbac5fe55db680e85a61bff4282638e74e1838a592d542678ff3a860 | C | 5,611 | 167 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
254a44861a81a3f1a6e45aedfe88269f37b066367b229115f5344a294acb7370 | C | 5,627 | 136 | /*
* biomag_leadfield_sphere.c calculation of the lead field of a dipole
* derived from B. Luetkenhoener's leadfield_sphere.c
* -- Bernd Feige 21.09.1993
*
* The dimension of the leadfield output array f determines how many positions
* in r0 are actually used. This way it is possible to, eg, call this functio... |
3c0b4ae9ad6177ccacbbe0799378ef3a0e97e2d604a5998e2e8418f8ee634210 | C | 5,638 | 148 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
79895bb8ae597e93794aadd9bfedf13fa21cda663cd1560b03d4f9a838bab3fd | C | 5,657 | 186 | /* FILE coord */
/* Set coordinates for each trial type */
/* ******************************************************************** */
#include "deffs.h"
#include "config.h"
#define DEBUG 0 /* 0, 1 or 2 */
/* PUBLIC:
* Set_Dimensions_For_Coords Called once to setup number rows, cols
* Setup_Coords_For_Tri... |
045cf18f53a821651974facc7731a79a3236d6f1f7b2f93883fca8cfa8b1455d | C | 5,658 | 178 | /* FILE _macros/sac_endpt.c */
/* Specifically for stacks 25-27, effects of sacs to flashed targs */
/* ******************************************************************** */
#include "../Deffs.h"
#define BOUND 8 /* Size of plot (degrees) */
#define SHOW_SINGLE_TRIALS 1
/* ************************************... |
1ac7dc25e94c19c88868790c2b8de9300faf844b629ee0dc69f16184585eb8e5 | C | 5,658 | 163 | /*
* Copyright (C) 1996-2000,2019 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* minmax.c collect method to output the minimum and maximum values of
* the input. The output will have twice the number of items of the
* input, min ... |
ad9f2dc3a01ed27f0784cdc3dc964c2b0b61850839662fc3b4a7490e0dd1102e | C | 5,696 | 150 | /*
* 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 <tmmintrin.h>
#include <fp16/bitcasts.h>
#include ... |
336a290e36300fd3680beac698ba306eba2284867ce0e1c54179d7f473ef4cc8 | C | 5,709 | 164 | /*
* Copyright (C) 1996-1999,2001,2003,2011,2014 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* differentiate is a simple transform method generating the derivative --
* defined by the difference between two successive data points... |
8034debebc88587d860f62782a5cf0c9a4a817d16ec93b6be637a985b1ce8936 | C | 5,805 | 182 | /* FILE behav */
/* Return eye position data in a given interval */
/* Use interval flags:
* -ix:y One interval, (x to y)
* -ix:y -Ia:b Two intervals, (x to y) and (a to b)
* -ix:y -Ba Interval (x to y) minus background a-(y-x) to a
*/
#include "deffs.h"
#include "ad.h"
/* ******... |
b51f17765dfc9e03dc7a9b782dce3e4b54da1ffb2b089187bb5ca91e8028366c | C | 5,820 | 157 | /*
* Copyright (C) 2008 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* write_mfx.c module to write data to an MFX file
* -- Bernd Feige 27.01.1997
*/
/*}}} */
/*{{{ #includes*/
#include <stdio.h>
#include <stdlib.h>
#ifdef __G... |
308575ca95098d51230797e905d6f3a8136bb01f2b1a619daf0a47ce41efe603 | C | 5,880 | 171 | /*
* 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 <math.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#i... |
a75b9ded837a9a67e3fa9258ee1aa2650fcc5d9243be60017971025ce2634569 | C | 5,902 | 175 | /* FILE behavior/latency.c */
/* Ascii output of analysis program */
/* Print out reaction times, re:LAST INFO RECEIVED */
/* Sort by stack and table */
#include "../Deffs.h"
#include "../../event.h"
/* ******************************************************************** */
static FILE *file;
stat... |
4389092ef177e7203a260b646c0e9f6c546dc3dffea97cb1276db8491c1002b3 | C | 5,903 | 196 | /* FILE _macros/decision.c */
/* ******************************************************************** */
#include "../Deffs.h"
/* ******************************************************************** */
/* Macro for displaying data from stacks 220-228 */
/* ***********************************************************... |
b6048dab7d9617620c657c1daaffa89efc6d0c463a5399c073121ab1615b7d2d | C | 5,908 | 258 | #include "vogl.h"
#ifdef TC
extern double cos();
extern double sin();
extern double asin();
extern double sqrt();
extern double fabs();
#else
#include <math.h>
#endif
/*
* NOTE: the words hither and yon are used in this file instead of near and far
* as they are keywords on some PC compilers (groan). Change th... |
dd9dd265d5918769f73047363da7095cac3f7a3d0b01a566a83e9a45d46f1b31 | C | 5,912 | 212 | /* FILE cuesort.c */
/* Sort trials in current file for cue experiments */
#include "../defs.h"
#include "../array.h" /* Access registers directly */
#include "../_imports/deffs.h"
#include "../_imports/event.h" /* Stack instruction definitions*/
#define FILTER 0 /* Heavy (9 Hz) or light (46 Hz... |
1e169ab2f45fc3a798c6ca01fed068c199f9b1fd4ced9f7a17792cbb1cb4712d | C | 5,963 | 179 | /*
* Copyright (C) 1996,1998,2000,2001,2004 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* asccalc.c - Program to do simple calculations with data sets within an
* ascii input file, producing an ascii result file on stdout
* -- Bernd Feige 24.02.1993
*/
... |
ca84ccb4f1adc95914adeab4ede33cbcd7422966294b162c912bd609954b1d33 | C | 5,980 | 159 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
9724d30fe67b9edab40bc9708c5e5da8c3c2375fa2709199c5fd64a1f2397424 | C | 6,005 | 165 | /*
* Copyright (C) 1993-1995,1997 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* array_readelement.c function to read one element from a memory-contained
* array -- Bernd Feige 14.09.1993
*/
#include <string.h>
#include "array.h"
#ifdef ARRAY_BOUNDARIES
#i... |
43c1991c6cfe47d4f0da32b6bac1336137150c4b313d5656b36645d4b4a69946 | C | 6,016 | 172 | /*
* Copyright (C) 1996-1999,2001,2010 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* import_point 'transform method' reads an ARRAY_DUMP file
* and places the data at one point of the input epoch.
* It will read as many channel ... |
43463702e024f23330b2748ecd21368b7bf00db1554ae665479e1737e153c0b6 | C | 6,025 | 177 | /*
* 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/x8zip.h>
void pytorch_qnnp_x8zip_xm__neon(
size_t n,
... |
15c7ceda54b49da6d77dbc5b021b1c219f7d75c7d435f088721666abe79ff977 | C | 6,050 | 167 | /*
* Copyright (C) 1996-1999,2003,2004 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* swap_fc is a simple transform method swapping frequencies for channels
* in frequency data with a single channel. nr_of_points will be the forme... |
3ff8cb2982d3727e4d987583be7192f2b51c3e7463628fd407910f1b32c59e4b | C | 6,083 | 148 | /*
* Copyright (C) 1993,2003,2004,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* btimontage.c modified version of Bernd Luetkenhoener's BTi37montage.c
* Bernd Feige 14.07.1993
*/
/*{{{}}}*/
/*{{{ Description*/
/******************************************... |
41fd44a544e27555636ba9a06e0e7b27789cb09af45dc731ddadaa71b1986a32 | C | 6,098 | 202 | /* FILE _macros/printbehav.c */
#include "../Deffs.h"
/* ******************************************************************** */
/* Generic macro: print EYE and ARM positions in specified interval,
sorted by stack and class */
/* Stack name: BehavMean_unit#.run# */
/* For each type: stack class eye-h ... |
e2cff686cd42965a60b2e4a51f682f1113dcd0ed941d985a28a4079513d726ad | C | 6,102 | 298 |
#include <stdio.h>
#include "vogl.h"
static Mstack *msfree = (Mstack *)NULL;
/*
* copyvector
*
* Copy the 4 vector b to a.
*
*/
void
copyvector(float *a, float *b)
{
a[0] = b[0];
a[1] = b[1];
a[2] = b[2];
a[3] = b[3];
}
/*
* copymatrix
*
* Copy the 4 x 4 matrix b to the 4 x 4 matrix a
*
*/
void
copym... |
272248ecc21c1a5450323b730f525f909938b363905a465282d49cdc58204077 | C | 6,118 | 186 | /*
* Copyright (C) 2002,2003,2013 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* link_order is a simple transform method reordering the linked list
* -- Bernd Feige 14.06.2002
*/
/*}}} */
/*{{{ #includes*/
#include <stdl... |
b57648742163ff6a47b055dc1f08bbf9005557ace2b10b0937600e9e1597e00c | C | 6,122 | 203 | /*
* 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 <psimd.h>
#include <qnnpack/sconv.h>
void pytorch_sconv_ukernel_6x8__psimd(
size_t mr,... |
abd510dfa4925899858398c2f74f7deb88574dc85f9de2324cf7e07c3b244a71 | C | 6,131 | 216 | /*
* Copyright (C) 1993,1994,1999,2020,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* mfxwritetrigs mfxfile triggerfile
* is a small mfx application that writes trigger codes to the
* TRIGGER channel of the specified mfxfile; The trigger positions
* in th... |
4c2b72068e4d34142b349ce77c6967b5f84506396da8501fff25dc99d72a2231 | C | 6,143 | 223 | /* 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_matrx.h"
#include "ad_bound.h"
#include "ad_doubl.h"
#include "ad_start.h"
#include "ad_frsnl.h"
void RT_Cone(int n, struct AD_slab_type *sl... |
d83952f03730ec88b0aa964914dac74b43ca079d35056952ff7dcf778bb6a4ae | C | 6,158 | 168 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
8e195a0d2e039c9ada47112ed4b837c48db682ae1bfe00ce133b808dab16d521 | C | 6,202 | 226 | /*
* Copyright (C) 1994,1998 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* distance_correct takes a bf 'asc' file as input, which should contain
* a N data sets with N channels of complex 'phase align' data, the first
* data set for reference channel 1 and so ... |
6c20272d153f222f37652b7d88b132b9f3986c55439a899ad92b20ded69c4b16 | C | 6,240 | 162 | /*
* 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 <smmintrin.h>
#include <fp16/bitcasts.h>
#include ... |
993d02270d160d72517a027cb3acab193849a8ccb2791fe0e020744df1f4758c | C | 6,294 | 182 | /* FILE success.c */
/* Report stack, class, RT (from macro 61) and delay time (macro 62) */
#include "../Deffs.h"
#include "../../event.h"
/* ******************************************************************** */
static FILE *file;
static void Get_Data();
static void Get_Data52();
/* **************************... |
2705b4cfa4e8ec596724b2134723f31cdb850153efebe847c8228f4e0683d9cf | C | 6,296 | 215 | /*
* 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 <psimd.h>
#include <qnnpack/sgemm.h>
void pytorch_sgemm_ukernel_6x8__psimd(
size_t mr,... |
9b0460275bfb32de3b56aaffa03817a03d6512a7df7545a52d64ec127852ba2e | C | 6,339 | 182 | /*
* In article <MATT.93Jan10152553@physics2.berkeley.edu>,
* matt@physics2.berkeley.edu (Matt Austern) writes:
*
* > Does anybody out there have a recommendation for a minimization > routine?
* I'll be using it to minimize a function of two or three > variables; the
* function is reasonably well behaved, but I a... |
2daddd1e71d950dd566c600c3a517a438372eaad3a3d6152a8016c88d921ef83 | C | 6,342 | 181 | /*
* Copyright (C) 1996-1999,2001,2010 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* export_point 'transform method' outputs the values of all the channels
* to an ARRAY_DUMP ASCII compatible file.
* -- Bernd Feige 29.06.1... |
e15ec2473353350a725846e890af1f4668521ae52df41c08922469309f2ed2ab | C | 6,355 | 209 | /* FILE calib.c */
/* Reverse calibrations */
#include "deffs.h"
#include <string.h>
#include <ctype.h>
#include <unistd.h>
/* ******************************************************************** */
/* PUBLIC:
*
* Init_CalibFile
* Read_CalibFile
* Do_Calibration
*
* PRIVATE:
*
*/
/* ****************... |
894efd98417b7825738e850422e13b5aa27c30bda1279a45f46b967b3c115382 | C | 6,360 | 188 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
ac1750fe5ea07526a13eb128d43f53644b595fbe1461965ce61f1ff242705f03 | C | 6,366 | 224 | // ----------------------------------------------------------------------------
// Numerical diagonalization of 3x3 matrcies
// Copyright (C) 2006 Joachim Kopp
// ----------------------------------------------------------------------------
// This library is free software; you can redistribute it and/or
// modify it u... |
e484adcb00c1aeb92de47f403d53f565a61796e4a954bc2b0818f6e389745eae | C | 6,367 | 164 | /*
* 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 <emmintrin.h>
#include <fp16/bitcasts.h>
#include ... |
980f8a0a272f462e7dc3c3360c75eec34a5cd20a1fb19704f27a6a3b1db3bd58 | C | 6,380 | 193 | /*
* Copyright (C) 2017,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Includes*/
#include <stdio.h>
#include <stdlib.h>
#ifdef __GNUC__
#include <unistd.h>
#endif
#include <sys/stat.h>
#include <string.h>
#include <ctype.h>
#include <read_struc... |
701c0f39d430cc0d8bf68163cad29665fb113fab9772211a7a22cff5c3d7795f | C | 6,405 | 397 | #include <stdio.h>
#include <math.h>
#include <xview/xview.h>
#include <xview/canvas.h>
#include <xview/panel.h>
#include "vogl.h"
#include "vodevice.h"
#define SIZE 512
unsigned flags = 1;
int vinited = 0;
#define DOUBLEB 1
#define BACKFACE 2
#define FILL 4
#define TRANS 25.0
#define SCAL 0.... |
ae2e55671f74799f9e79aa9919b182f3669e513faf751e416b53819fc4653ed1 | C | 6,421 | 216 | /* FILE digi */
/* Emulate a digipad; write to file */
/* ******************************************************************** */
/* GLOBAL VARIABLES */
#include <stdio.h>
#include <ctype.h> /* isdigit() */
#include "defs.h"
#include "cross.h"
#include "graph.h" /* Pixel->time° #defs*/
/* See defs.h... |
2a36b51f86a83c94bc6e9e158f5f4c48ce312b320930c64b326fc1b205ff9437 | C | 6,481 | 179 | /* FILE do_mac.c */
/* Execute a macro */
#include "../defs.h"
#include <ctype.h> /* isdigit() */
extern void jeff_sort_macro(int i);
extern void jeff_initialize_macro(int i);
extern void jeff_divergence_macro(int i);
extern void jeff_initialize_macro(int i);
extern void jeff_divergence_macro(int i);
extern ... |
9943c1908283284a6a4b4d80e887fb0fd259a5fdb2c4b253ff12b0411e8a0d4d | C | 6,533 | 221 | /* FILE Stack */
/* Deal with event stack in header */
#include "array.h" /* Access register's stacks */
#include "defs.h"
#include "stack.h" /* Header and stack variables */
#include "_imports/event.i" /* For StackDump */
/* ******************************************************************** */
/*
... |
0ce355cb518cf66f79b56396e1904e7483e61446ede9baa8c6e90fbea960715c | C | 6,555 | 198 | /* FILE _macros/ttest.c */
#include "../Deffs.h"
/* ******************************************************************** */
/* Generic macros:
4: do t-test on spike rates in specified interval;
If given two trial types, will compare against each other
If given one trial type, will compare a... |
2c7a3b11c7341d926a9c0ecabce0bb739b0d70591032227acb81819b02cc05a4 | C | 6,568 | 314 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#include <stddef.h>
#include <math.h>
#include "ad_globl.h"
#include "ad_matrx.h"
#include "nr_util.h"
void Copy_Matrix(int n, double **A, double **B)
{
double *a_ptr, *b_ptr, *a_last;
a_last = &A[n][n];
a_ptr = &A[1][1];
b_ptr = &B[1]... |
1739c746276d7fab09ba4786e57f34d2b26511e3d4514d0abf3c2055fe8acf72 | C | 6,589 | 178 | /*
* Copyright (C) 2000,2002,2003,2007,2010,2012,2016,2020,2022,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Includes*/
#include <stdio.h>
#include <stdlib.h>
#ifdef __GNUC__
#include <unistd.h>
#endif
#include <sys/stat.h>
#include <string.h>... |
49c568084a6e3c638b67d13da32c991547376f03a68a64ca7718b6d51c5ac2b6 | C | 6,603 | 188 | /*
* Copyright (C) 2022,2023,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* write_nke.c module to write data to a Nihon Kohden 2110/1100 file
* -- Bernd Feige 10.12.2022
*/
/*}}} */
/*{{{ #includes*/
#include <stdio.h>
#i... |
2c1d362efcda9381defa95df1dc1f4ab5d46cba21122af20afea495ee348f266 | C | 6,611 | 187 | /*
* Copyright (C) 1996-2001,2004 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* svdecomp performs a singular value decomposition across channels, yielding
* a number of items corresponding to different component waveforms; within... |
e4662105a27609b82679f5ed03dc55299ac3e1471f1f32b65f734a217174debd | C | 6,633 | 171 | /*
* 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 <arm_neon.h>
#include <qnnpack/requantization-stub... |
c05a048aab641432c6770b550a7b3e2b960a22064c1d7df353b0ccc02b8aba65 | C | 6,636 | 223 | /* FILE sort.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 FILTER 1 /* Heavy (9 Hz) or light (46 Hz)*/
#define PRINT_REGIS... |
7299d4c1ebfd3a86f9d3955d6d7f272a34ab899cbc3bcee19db9c1311eff80bd | C | 6,650 | 159 | /* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
008f0f76fe828f761998751916335db286abe3051d3bc979587723cc2cd57759 | C | 6,672 | 159 | /*
* 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 <math.h>
#include <qnnpack/q8dwconv.h>
void pytorch_q8dwconv_ukerne... |
426c0fe8c5e0274e50ad64a31932080c84201a92f7caf208a7a820d0714da62c | C | 6,683 | 442 | #undef VOGLE
/*
* DXY & HPGL Driver for vogle/vogl.
*/
#include <stdio.h>
#include <string.h>
#ifdef VOGLE
#include "vogle.h"
#else
#include "vogl.h"
#endif
static int plotlstx, plotlsty; /* position of last draw */
static FILE *fp;
#define P_RESET 0
#define P_MOVE 1
#define P_DRAW 2
#define P_TXTSIZE 3
#defin... |
cf87584082b1d70f254aaa4e43815f6ec935f8457de41e9b43cca4aecac73bf8 | C | 6,769 | 224 | // ----------------------------------------------------------------------------
// Numerical diagonalization of 3x3 matrcies
// Copyright (C) 2006 Joachim Kopp
// ----------------------------------------------------------------------------
// This library is free software; you can redistribute it and/or
// modify it u... |
9bd106baaf24467e81695e3b42952133b25ed23acae139dc8cacadd01a102cbb | C | 6,832 | 184 | /*
* Copyright (C) 2008 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* get_mfxepoch.c method to read epoch data from an mfx file
* -- Bernd Feige 11.02.1993
*
* Uses the filename, channels, trigcode and other tinfo entries to
* open an mfx file (init) and get... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.