sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 17k | content stringlengths 1 200k |
|---|---|---|---|---|
07cfb677c00a38b9774972af631b12bac6493acfe1f50b1811d537fa62974bca | C | 1,968 | 122 | #include "vogl.h"
#include <stdio.h>
#define LT_SIZE 11
typedef struct l {
short n;
unsigned ls;
struct l *next;
} LT;
static LT *ls_table[LT_SIZE] = { (LT *)0, };
/*
* deflinestyle
*
* Define a line style
* There can be 2*166 line styles!
*/
void
deflinestyle(short int n, Linestyle ls)
{
LT *l;
/*
... |
d9daf510d0f1a17a4bc9d3f3a8f4190884ac5a5e9486231d1420006fe7c31d7f | C | 1,985 | 65 | /* FILE _macros/interval.c */
#include "../Deffs.h"
/* ******************************************************************** */
/* Stack name: unit#.run#
* First line:
* unit run begin.time end.time begin2 end2 #.stacks #.classes #.trials
* Then (for each class):
unit, stack, class, trialcoun... |
d5c50526f82138fd57103e5146f32f6b99a8192201e8963a73d030e62169f295 | C | 1,988 | 54 | /* 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 whether it serves any
particular purpose or works at all, unless he says ... |
f5102009231a65ccfd573941273f5d878410046913ca0b77be46d6b4bb5388c3 | C | 2,037 | 90 | /*
* opt_brent -- Brent's method for minimization of a (one-dim) function.
* Adapted from the Numerical Recipes 2.0
* -- Bernd Feige 20.09.1993
*
* ax, ay and az are the bracketing x values as returned eg by opt_mnbrak().
* tol is the precision; returned are xmin and the minimal function value
* found as the... |
2c4b7983883b7dc53717068ea4aa0e38606d827f1e61ae0417078c2a7ae2ec30 | C | 2,040 | 70 | /*
* Copyright (C) 1996-1999,2001 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* reject_flor simple method to include into an average() process chain
* (usually just after the get_epoch method) to reject epochs that contain
* the... |
382fccdfc68b7dc7425f0398ac717588c560a6cbf2cee59a6c4b6f1a5dd384d6 | C | 2,046 | 72 | /*
* Copyright (C) 2001,2002 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* push is a simple transform method duplicating the current data set and storing it in the linked list
* -- Bernd Feige 17.08.2001
*/
/*}}} */
/*{{... |
6d5d7f38d65a29bfb2e04753470dbbb703de233807fffbb645d0ec11cc52025e | C | 2,061 | 166 | #include "vogl.h"
/*
* circleprecision_
*/
void
circleprecision_(prec)
int *prec;
{
circleprecision(*prec);
}
/*
* circpr_
*/
void
circpr_(prec)
int *prec;
{
circleprecision(*prec);
}
/*
* arcprecision_
*/
void
arcprecision_(prec)
int *prec;
{
circleprecision(*prec);
}
/*
* arcpre_
*/
void
arcpre_(pre... |
3748054cc6b37f8b4e2f1842cc192abae02918d66562c3749138153a0dcc201a | C | 2,077 | 205 | #include <stdio.h>
#include "vogl.h"
/*
* font_
*/
void
font_(id)
int *id;
{
font(*id);
}
/*
* charst_ (same as charstr_)
*/
charst_(s, len, len2)
char *s;
int *len, len2;
{
charstr_(s, len, len2);
}
/*
* charstr_
*/
charstr_(s, len, len2)
char *s;
int *len, len2;
{
/*
* *len is the user passed le... |
eb137c6728e419d001a472445e1ccc108f31eb81b89b4bd6f885f14be1de6ef7 | C | 2,081 | 133 | #include <stdio.h>
#ifdef SGI
#include <gl.h>
#include <device.h>
#else
#include "vogl.h"
#include "vodevice.h"
#endif
extern int getcharacter();
#define XCOORD(x) ((int)(x) - (int)'R')
#define YCOORD(y) ((int)'R' - (int)(y)) /* invert as in tv coords */
/*
* newpage
*
* draw up a new page with title, boxes, etc... |
4db61cc01bb35763600ae2f835e1bd945b4eb1b97e9fa5e468b64f4c0ec01f06 | C | 2,087 | 110 | #include <stdio.h>
#include <math.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xaw/Form.h>
#include <X11/Xaw/Command.h>
#define SIZE 512
int vinited = 0;
int iii;
Widget toplevel, panel, canvas, qbut, rbut;
quit()
{
gexit();
exit(0);
}
resize()
{
Dimension w, h;
Arg arg[2];
XtS... |
4f1fdfe1e67107fcf960867ac8666e7d4dc63690104a10d4f256e6270bf1885b | C | 2,094 | 81 | #include <math.h>
#include <stdio.h>
#include "nr_util.h"
#define ITMAX 100
#define EPS 3.0e-8
double zbrent(double (*func)(double), double x1, double x2, double tol)
{
int iter;
double min1, min2;
double a = x1, b = x2, c = x2;
double fa = (*func) (a), fb = (*func) (b), fc, p, q, r, s, tol1, xm;
... |
91a589184f5f0182abf2b986acdb89b3e836b9bc994356cb045dc9f8816e90e5 | C | 2,110 | 76 | /* 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 whether it serves any
particular purpose or works at all, unless he says ... |
2ff4f942a9cf7a23e019da5f05dd6b55ae8ca30f2024cd47511a7ef242461c6d | C | 2,130 | 151 | #include "vogl.h"
#define S_PIX_ASPECT 1.2
static int old_mode = 3;
extern unsigned int _cur_color;
extern unsigned int _buffer_segment;
static unsigned char pal[17] = {0, 4, 2, 14, 1, 5, 3, 15,
12, 10, 6, 9, 11, 13, 14, 15, 0};
extern void
sig_line(),
sig_set_colors();
extern int s... |
b901d557b6421b02d5f30221add26d9f837232e9dda8221b8da20f5fdba093cb | C | 2,130 | 67 | /*
* opt_linmin minimizes an n-dimensional function along a straight line
* of direction xi through a point p. The minimum point is returned in p
* and the value at this point is the function return value.
* Adapted from the Numerical Recipes(2.0)
* -- Bernd Feige 20.09.1993
*
* The procedures are as followe... |
ee95d3c7cec42ddf7d696719c9d702fa1a668569c68a3fe41456ae69b02df674 | C | 2,135 | 74 | #include <math.h>
#define NRANSI
#include "nr_util.h"
#include "nr_mnbrk.h"
#define GOLD 1.618034
#define GLIMIT 100.0
#define TINY 1.0e-20
#define SHFT(a,b,c,d) (a)=(b);(b)=(c);(c)=(d);
static double maxarg1, maxarg2;
#define FMAX(a,b) (maxarg1=(a),maxarg2=(b),(maxarg1) > (maxarg2) ?\
(maxarg1) : (maxarg2))
v... |
fc06fea324f1c62a98cbb2e12b55279157619336fa0b5d71ea99aae6a1f5f836 | C | 2,140 | 78 | /*
* Copyright (C) 2010 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* orthogonalize transform method to successively orthogonalize the input
* vectors. The first vector remains unmodified.
* -- Bernd Feige 6.08.2010
*/
/*... |
ab3db91a3e45f60e5d2d35abbadf9d749e6112c99dca6eb1de52ab9c28c720f4 | C | 2,151 | 68 | /* FILE _macros/coord/reference.c */
#include "../Deffs.h"
#include "../../event.h"
/* ******************************************************************** */
/* ******************************************************************** */
/* FUNCTION Reference20() */
void Reference20() {
FILE *file;
char Name[80];
... |
3e6866f4ed8f58dba4ef7cec1bcf1cee57606471c8d9ae4c41b609b7d9ec6a5c | C | 2,164 | 75 | /*
* Copyright (C) 2001,2002 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* push is a simple transform method duplicating the current data set and storing it in the linked list
* -- Bernd Feige 17.08.2001
*/
/*}}} */
/*{{... |
60ffd08d36a5633c7c8eed2f096cd2bfc57ffe6bd51524e2e322597e550ffd0c | C | 2,165 | 66 | /*
* array_pseudoinverse.c is actually a slightly modified version of
* array_svd_solution.c.
* It uses singular value decomposition (SVD) to
* obtain the least squares solution of the inhomogeneous linear set
* of equations Ax=1(n,m) with A(n,m) given. The resulting x'(m,n) is
* stored back to A.
* Least squa... |
3bac3436d9a7bf91f72d24fd9007663601b59b2dc680895743a9a2ae7c53eede | C | 2,213 | 66 | /*
* array_svd_solution() uses singular value decomposition (SVD) to
* obtain the least squares solution of the inhomogeneous linear set
* of equations Ax=b with A and b given.
* If A is an NxM (Elements x Vectors) matrix, then b is an N-vector
* and x an M-vector.
* Least squares actually means two things:
* ... |
056a07f2ee575ece5fb42ccc5934e24a078c413ce19502cbe7f20a17c37b4061 | C | 2,215 | 74 | /* FILE diff.c */
/* Differentiate, put in extra channel */
#include "array.h"
#include "defs.h"
#include <stdlib.h> /* atof() */
/* ******************************************************************** */
int DiffChannel = X7;
int StepMs = 8; /* msec */ /* Step for derivative */
/* Used to be 16 */
... |
dcde59e119899b84ee20f9712dcd7b35a9f420c0a8d03c2bfa9715f297cfd2db | C | 2,217 | 73 | /*
* Copyright (C) 1994 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* array_make_orthogonal.c function to orthogonalize the vectors in
* the array. The first vector is left unmodified. If there are
* linearly dependent vectors, the function will stop and set a... |
5a51ea473c36555b50365ae248747ba3bc54328a7965cc281619a7bbd57813bb | C | 2,219 | 70 | /////////////////////////////////////////////////////////////////////////////////
//
// Levenberg - Marquardt non-linear minimization algorithm
// Copyright (C) 2004-05 Manolis Lourakis (lourakis at ics forth gr)
// Institute of Computer Science, Foundation for Research & Technology - Hellas
// Heraklion, Crete, ... |
f791c8c616ffd9e514b4f5e61d33d15ce9e72330a3667563210cd2090e6edbfa | C | 2,221 | 159 | #include "vogl.h"
#define H_PIX_ASPECT 1.45 /* For real PC monitor */
/*#define H_PIX_ASPECT 1.0 /* For SUN emulator */
extern unsigned int _cur_color;
extern void
hgc_tmode(),
hgc_gmode(),
hgc_config(),
set_loc(),
hgcline();
extern int hgc_clear(),
hgc_backbuf(),
pc_fill(),
pc_font(),
pc_getkey... |
0534b1856c14fbdd06f033a3b18c75351725a04b40d9fad4e7a0ee5a03f5d25f | C | 2,241 | 74 | /* FILE _macros/mr/sort.c */
/* Sort by position & direction of saccade or pursuit */
/* #include "../Deffs.h" * Use deffs.h */
#include "../../deffs.h" /* ARMDATA */
#include "../../event.h"
/* ******************************************************************** */
#define CHANGE_STACK_TOO 0
#define DI... |
9265ba4972efba7fe2b936d4b6c575c0846b306a4b21885c8313feb0428dc7af | C | 2,250 | 60 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps 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 whether it s... |
61ea9f885e20cabbcc52ff5b91865d604c14e7899b6a95980040cb98c6bdfe6c | C | 2,280 | 75 | /////////////////////////////////////////////////////////////////////////////////
//
// Solution of linear systems involved in the Levenberg - Marquardt
// minimization algorithm
// Copyright (C) 2004 Manolis Lourakis (lourakis at ics forth gr)
// Institute of Computer Science, Foundation for Research & Technolog... |
61945ed8e343f7a1e8e631accf3d7a925cc18921fb7e02b3fa00a22a09cb751d | C | 2,284 | 87 | #include <math.h>
#define NRANSI
#include "nr_util.h"
#include "nr_brent.h"
#define ITMAX 100
#define CGOLD 0.3819660
#define ZEPS 1.0e-10
#define SHFT(a,b,c,d) (a)=(b);(b)=(c);(c)=(d);
double brent(double ax, double bx, double cx, double (*f)(double), double tol, double *xmin, int *iterations)
{
int iter;
dou... |
a8500c6971df8d80a863a73f6d02fc3bb283b3a2b088e4f837f99745b8c81617 | C | 2,291 | 86 | /*
* 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/u8maxpool.h>
void pytorch_u8maxpool_u... |
c9d840a784fde175b866530aeac8a25f65329f1bf096c7d0d482cc466b7ee6fb | C | 2,310 | 137 | #include "vogl.h"
static int sync = 1;
/*
* backbuffer
*
* swap drawing to backbuffer - returns -1 if no
* backbuffer is available.
*/
void
backbuffer(int yes)
{
Token *tok;
if (!vdevice.initialised)
verror("backbuffer: vogl not initialised.");
if (vdevice.inobject) {
tok = newtokens(2);
tok[0].i = BAC... |
124ca654b287cbade4f48ce8b76332d9c3b177a92c2ad8e61e172d92d1a84748 | C | 2,313 | 74 | /*
* Copyright (C) 2022 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/* Definition of `structure member description' arrays for the NeuroFile format
* -- Bernd Feige 26.09.1997 */
#include <stdio.h>
#include <read_struct.h>
#include "nke_format.h"
struct_member_... |
6c34616923b33973bc16e17a424b6836c2bf72bf1193c482be82fe2436adc89d | C | 2,334 | 141 | #include <stdio.h>
#include "vogl.h"
#include <math.h>
#define RADIUS 10.0
#define SPHERE 1
static int inited = 0;
/*
* makesphere
*
* make a sphere object
*/
makesphere()
{
float r, z;
int i, a;
makeobj(SPHERE);
/*
* create the latitudinal rings
*/
for (i = 0; i < 1800; i += 200) {
pushmatrix... |
52b752699f8a088e04d804ef62679a35de294fe17ac7405cd1117b9622e32718 | C | 2,353 | 176 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* demonstrate still more features of text
*/
main(argc, argv)
int argc;
char **argv;
{
short val;
winopen("moretxt2");
unqdevice(INPUTCHANGE);
qdevice(KEYBD);
/*
* Wait for REDRAW e... |
1b8af3c22967b39cb7751e3453328ce7e405090294d63ec97e781c727cda6ea7 | C | 2,360 | 144 | #include <stdio.h>
#include "vogl.h"
#include <math.h>
#define RADIUS 10.0
#define SPHERE 1
static int inited = 0;
/*
* makesphere
*
* make a sphere object
*/
makesphere()
{
float r, z;
int i, a;
makeobj(SPHERE);
/*
* create the latitudinal rings
*/
for (i = 0; i < 1800; i += 200) {
pushmatrix... |
a77e4d516f70fd9ffacf9a17188ca9655140aa76931372c099cbac2573bd787a | C | 2,368 | 80 | /////////////////////////////////////////////////////////////////////////////////
//
// Levenberg - Marquardt non-linear minimization algorithm
// Copyright (C) 2004-05 Manolis Lourakis (lourakis at ics forth gr)
// Institute of Computer Science, Foundation for Research & Technology - Hellas
// Heraklion, Crete, ... |
7553f8eccf22de2d66c5ba4da35f7071adf08621beb0803d57d589f9690a501f | C | 2,370 | 177 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* demonstrate still more features of text
*/
main(argc, argv)
int argc;
char **argv;
{
short val;
vinit("mswin");
winopen("moretxt2");
unqdevice(INPUTCHANGE);
qdevice(KEYBD);
/*
* ... |
2ef1c4aeaad5454122c15418e283c37eb6bc2eb014c6cfc47d2d5455cf428b83 | C | 2,378 | 77 | /*
* Copyright (C) 1996,2005 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/* Definition of `structure member description' arrays for the Vitaport format
* -- Bernd Feige 17.12.1995 */
#include <stdio.h>
#include <read_struct.h>
#include "vitaport.h"
struct_membe... |
58adfb1e89b58227a8298b0530f225001037df217bac219054b5db7c7c16ea08 | C | 2,395 | 74 | /*
* Copyright (C) 1993,1994,1997 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* biomag_uxiypsilon.c evaluation of planar vectors uxi and uyp from
* a vector r, adapted from B. Luetkenhoener's uxiypsilon.c
* r has to be a 3-dimensional vector and uxiuyp an arra... |
b005dd4d3cc6fa29e77351937adf1530769e6f413c47a745918c851fe020e52d | C | 2,399 | 86 | /*
* 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/u8clamp.h>
void pytorch_u8clamp_ukerne... |
d9ebd1a8d916f501f3a465a392baf32772baa31f28af9d2bbf766c2dc60e1c79 | C | 2,403 | 78 | /* 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 whether it serves any
particular purpose or works at all, unless he says ... |
e6752be4d9e88c4b24285492d09d0112dfb605d136ab306b28f6f02ada94b761 | C | 2,404 | 91 | /*
* 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/u8maxpool.h>
void pytorch_u8maxpool_uk... |
883509a3777f722756c054af9bc329359aea15c475d29da403e51a2ef8bc2f21 | C | 2,461 | 79 | /* FILE _macros/saccades.c */
#include "../Deffs.h"
#include "../../event.h"
/* ******************************************************************** */
/* FUNCTION Saccades155 */
/* List all saccades */
void Saccades155() {
FILE *file;
char Name[80];
int RunNumber; /* Run number may change */
extern float Sa... |
db56166340d1524d99f91e5c715ddc167dad631e0adbf56946625c4c7f3f5819 | C | 2,462 | 123 | /*
* Copyright (C) 1998 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
#include <vogl.h>
#include "vguidev.h"
static MyDevEntry* mydev;
static int VGUI_backbuffer() {
return (*mydev->Vbackb)();
}
static int VGUI_char(c)
int c;
{
return (*mydev->Vchar)(c);
}
stati... |
8daf2eb094ec1728e380c49bd03e6eaf29380f92f4518e483a5e7e8178867a30 | C | 2,463 | 81 | /* FILE _macros/anova */
/* Compute one-way anova on whatever is passed to us */
/* Compute two-way anova on stacks X classes */
#include "../Deffs.h"
#include <stdlib.h> /* system() */
/* ******************************************************************** */
/* Generic macros:
144: do a... |
d4c35e082cdc640a4e77c4f2d62a982ee8666ee1fcefd2e18356b3f5b8bd4a31 | C | 2,474 | 83 | /////////////////////////////////////////////////////////////////////////////////
//
// Levenberg - Marquardt non-linear minimization algorithm
// Copyright (C) 2004 Manolis Lourakis (lourakis at ics forth gr)
// Institute of Computer Science, Foundation for Research & Technology - Hellas
// Heraklion, Crete, Gre... |
980d7445b7f1d613fcec06aaee12f8283eeb2ec6dcb9d9a432feac96269cb62b | C | 2,488 | 77 | /* 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 whether it serves any
particular purpose or works at all, unless he says ... |
1f7b7bfa1d03cb0d392bf458f361e0516086f1886c0df96994ddd3dd52b44b22 | C | 2,530 | 176 | #include "vogl.h"
#include <stdio.h>
#ifdef TC
#include <dos.h>
#define _dos_allocmem allocmem
#define _dos_freemem freemem
#endif
#define C_PIX_ASPECT 2.4
#define NPARA (640 * 200 / 16)
static unsigned allocated = 0, old_mode;
static unsigned char *backbuf;
extern unsigned int _buffer_segment;
extern unsigned i... |
8eaaf273029c014b0bb0e880f14bbaf1af5ef329439cddcf5fa4a25b8f1ab122 | C | 2,533 | 99 | /*
* Copyright (C) 2008 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* get_mfxinfo.c module to transfer header data from an open
* mfx file to a transform_info_struct structure
* -- Bernd Feige 19.01.1993
*/
#include <stdlib.h>
#include <string.h>
#include "m... |
cb94d4ee6c512576e57d6067e3a11d2d2ce3d86bb3cb900559868c18290563d9 | C | 2,534 | 74 | /* FILE _macros/targets.c */
#include "../Deffs.h"
/* ******************************************************************** */
/* Generic macro: print times & locations of targets, trial by trial
* unit run trial#
* then for each target: on.time off.time h v
* Use '-d' to say how m... |
5eb99d1dd607646fc54a3091222d7876594b0f8db8450717449c1c6399e727eb | C | 2,538 | 132 | /*
* Copyright (C) 1999-2003,2005,2007,2008,2010,2013,2014,2016,2018,2020,2022,2024,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
#include <bf.h>
LOCAL void (* const method_selects[])(transform_info_ptr)={
select_readasc,
select_dip_simulate,
select_get_mfxep... |
eee0aeabbcab58c601749cc1219a2b3720a0577f4817343f16a3acd5569646a2 | C | 2,566 | 169 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#ifndef PI
#define PI 3.1415926535
#endif
#ifndef TC
#include <math.h>
#else
extern double sin(), cos();
#endif
#define RADIUS 10.0
#define SPHERE 1L
/*
* makesphere
*
* make a sphere object
*... |
7746f46635f351787189128ac14dc8efce9239f6970c8ca24189a81e6b7dac85 | C | 2,583 | 170 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#ifndef PI
#define PI 3.1415926535
#endif
#ifndef TC
#include <math.h>
#else
extern double sin(), cos();
#endif
#define RADIUS 10.0
#define SPHERE 1L
/*
* makesphere
*
* make a sphere object
*... |
4160eeace6a95852d2e7deb27e9b7beccc00e2eb7b74017b1fe7119e4d60ad72 | C | 2,591 | 87 | /////////////////////////////////////////////////////////////////////////////////
//
// Levenberg - Marquardt non-linear minimization algorithm
// Copyright (C) 2004-05 Manolis Lourakis (lourakis at ics forth gr)
// Institute of Computer Science, Foundation for Research & Technology - Hellas
// Heraklion, Crete, ... |
84866a562946effba4928c914d0f563f01312b10df0c1996bd6d74d46f2683d5 | C | 2,593 | 73 | /*
* Copyright (C) 2016 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 CED "cfs" format
* -- Bernd Feige 27.02.2016 */
#include <stdio.h>
#include <read_struct.h>
#include "cfs.h"
struct_member sm_TFilChInfo[]={
... |
9aeddcff8386cfa96482465ee4395e6596f24302b3c65bd5e79b2a8b57944909 | C | 2,602 | 165 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#ifndef PI
#define PI 3.1415926535
#endif
#ifndef TC
#include <math.h>
#else
extern double sin(), cos();
#endif
#define RADIUS 10.0
#define SPHERE 1L
void showroundtext(), makesphere();
/*
* mos... |
b56f236dba94b373bb0b585be200838ac17f074d0f903019ce53045bcc3aae5b | C | 2,616 | 78 | /*
* Copyright (C) 2008,2012 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 Inomed format
* -- Bernd Feige 24.09.2008 */
#include <stdio.h>
#include <read_struct.h>
#include "Inomed.h"
struct_member_description sm... |
b17a3394c755ed9e94da8212d06bc848001dbb76a75ebdfb6e54c66196efa7cb | C | 2,617 | 164 |
#include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#ifndef TC
#include <math.h>
#else
extern double sin(), cos();
#endif
#define pi 3.1415926535
char *fonts[] = {
"astrology",
"cursive",
"futura.l",
"futura.m",
"gothic.eng",
"gothic.ger",
"... |
462fe26766a1a740bd2bcd7c7f46982d46de7c47cb1ee47832afd09f44f1c4b4 | C | 2,619 | 166 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#ifndef PI
#define PI 3.1415926535
#endif
#ifndef TC
#include <math.h>
#else
extern double sin(), cos();
#endif
#define RADIUS 10.0
#define SPHERE 1L
void showroundtext(), makesphere();
/*
* mos... |
6cb78d95a4876dedcb1cff77972aa3afed3d8722143518528dc122b10cbe9f59 | C | 2,623 | 165 | /*
* Demonstrate triangular mesh
*/
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#ifdef TC
extern double sin(), cos();
#else
#include <math.h>
#endif
#define NTRIANGLE 20
Coord cs[NTRIANGLE], sn[NTRIANGLE];
main()
{
int i, itest, dobackface, dofill, dodo... |
48c07e0b5653832a9ff652dd511a086f63b31d1bb8276d7093d28dbcae28b1f7 | C | 2,633 | 73 | /*
* 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 ... |
e095b15b8cf9445663159c65621953d64aafc510dd42d39a115b2734181cfd8b | C | 2,633 | 73 | /*
* 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 ... |
d116d31560ea33ccbcf1368010099c0375bc9a53d3e16d633c1f47f40161882e | C | 2,634 | 73 | /*
* 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 ... |
f0bedbd6c39a169e342eb4d83e3de47b32d8802d8ceb1b7db83beb1d8d69eaf7 | C | 2,634 | 165 |
#include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#ifndef TC
#include <math.h>
#else
extern double sin(), cos();
#endif
#define pi 3.1415926535
char *fonts[] = {
"astrology",
"cursive",
"futura.l",
"futura.m",
"gothic.eng",
"gothic.ger",
"... |
f573b5d6fae293c50f1ee340015052d2818a4514d395f1d8ea70216969b09ea2 | C | 2,635 | 113 | /*
* LU decomposition of a square array, adapted from
* the Numerical Recipes 2.0
* -- Bernd Feige 30.09.1993
*
* Arguments are the square input array a, which will be replaced
* by the LU decomposition on output, and the size N vector index,
* which will keep track of row permutations and is needed by
* su... |
6f1b6d6743a3996c5c9e1c0a3e7e968edc65f2b468cea18143484343a12a3754 | C | 2,642 | 97 | /*
* 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_setto.c collection of fixed array definitions (function defined
* arrays, not memory-contained) -- Bernd Feige 15.09.1993
*/
#include <stdio.h>
#include "array.h"
/*{{{}}}*... |
6b0a22c99b2da1a868f39691d20353fe6b6d0a76460d550ee0eca548a2aa1cae | C | 2,644 | 165 | /*
* Demonstrate triangular mesh
*/
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#include <math.h>
#define NTRIANGLE 20
Coord cs[NTRIANGLE], sn[NTRIANGLE];
main()
{
int i, itest, dobackface, dofill, dodouble;
char ans;
float H;
short idata;
int xr, y... |
ef40efb9d81a5edb3cf7f0764dc7a6c716d7b99ef10897d8af870bd2a230c4d7 | C | 2,666 | 57 | /*
* Copyright (C) 2020 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 sigma PLpro format
* -- Bernd Feige 14.08.2020 */
#include <stdio.h>
#include <read_struct.h>
#include "sigma_header.h"
struct_member sm_sigma... |
d6bad19814ad6833e84872908cbd4ad6feec7a16646b0d2e26fdf31698fd1466 | C | 2,680 | 81 | /*
* 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/u8clamp.h>
void pytorch_u8clamp_ukern... |
5203f968d8392c56fb80ab691e6fe31f3cb0cee2d17005efbc215ee8398792d3 | C | 2,681 | 79 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps 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 whether it s... |
39784841d662bd64b6d79e73bd813d8708f5d317e284f0cf6ee4f785cbc59d33 | C | 2,752 | 82 | /* FILE _macros/stimulate/movement_times.c */
/* modelled on Macros 63 (modelled on 86), 64 */
/* ******************************************************************** */
#include "../Deffs.h"
#include "../../event.h"
/* ******************************************************************** */
/* FUNCTION Movement_... |
87b224c9b09cf944c8b2c3d75375246a478b12126d1ab00b9d7b29015ae3b8ee | C | 2,757 | 93 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps 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 whether it s... |
3bdc6f1fdcb8b7c3ccd03cacd1f7ca9ed32ea33afb7824a8820e5233de1feb85 | C | 2,809 | 81 | /*
* 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-... |
03516e246df38d804e87b46f61fda761f757770b8251f2995ce048813c34e45c | C | 2,815 | 102 | /*
* 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... |
0d26a80692321961c6e6ee41d600ec6de5fe6b27dec41d225d825722e13c0e2a | C | 2,832 | 165 | #include "vogl.h"
void
pc_fill(n, x, y)
int n, *x, *y;
{
register int i;
int tx[3], ty[3], xstart, xend;
/*
* If it's a rectangle then things are even easier....
*/
if (n == 5 && x[0] == x[3] && x[1] == x[2] &&
y[0] == y[1] && y[2] == y[3]) {
int low, high;
xstart = x[0];
xend = x[1];
low = y[0];
... |
58d1fcc8bf22117d581716285dc16c7d08ab0cb94e1d4473c8362c9013ed5ef3 | C | 2,835 | 104 | /*
* opt_powell N-dimensional optimization using the direction-set
* powell method. Adapted from the Numerical Recipes (2.0).
* -- Bernd Feige 20.09.1993
*
* The arguments needed are the N-dim starting point p and the NxN-dim
* array xi holding the N direction vectors (usually the N unit vectors).
* ftol spe... |
fd616cd0b83470f54d79dd3fdf3e902a66601023d7e4b4fad801e3b602bf9f1d | C | 2,839 | 104 | /*
* array_tqli -- QL algorithm with implicit shifts for a real, symmetric,
* tridiagonal matrix. Original from the numerical recipes 2.0.
* -- Bernd Feige 17.09.1993
*
* The vectors d and e of some dimension N are the diagonal and off-diagonal
* elements of a tridiagonal matrix as eg. set by array_tred2.
* ... |
3c48cd77d25ffc8b08f1329ba4e7b52f08250d78d88580a7ee2ca25dd7a0bf90 | C | 2,845 | 96 | // ----------------------------------------------------------------------------
// Numerical diagonalization of 3x3 matrcies
// Copyright (C) 2006 Joachim Kopp
// ----------------------------------------------------------------------------
// This library is free software; you can redistribute it and/or
// modify it u... |
00b137cad6d39401b24400cce5f7b99569fe4c384d91b290c4c3d46f7bd1cce5 | C | 2,854 | 96 | /*
* Copyright (C) 1996,1998,1999,2001 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* baseline_subtract is a simple transform method to subtract the baseline mean
* from the data. It works for both TIME_DATA and FREQ_DATA.
* ... |
47e8e722d55e759e58c9b7e72b5ca8996f5b48566298fe669cd170dd7f12eea3 | C | 2,859 | 92 | /* FILE main */
/* Main code of analysis program */
/* OPTIONS/ARGUMENTS: (example)
* -f External command file (byter -f < in.4A)
* file macro Run 'macro' on 'file' (byter tm.1 c tm.2 s tm.3 x)
*/
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/sig... |
076a96d37f47120a0faf1c3faeeaed6bd0b8df9a538397e0643984625325a79e | C | 2,872 | 96 | /* FILE _macros/stimulate/interval.c */
/* ******************************************************************** */
/* based on _macros/interval.c */
#include "../Deffs.h"
/* ******************************************************************** */
/* Stack name: unit#.run#
* First line:
* unit run beg... |
a78ffa173309449d8d5b707a3b0b41c12361026b9accef284f7e80d1f800f139 | C | 2,882 | 85 | /*
* Copyright (C) 1996-2002,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* run_external -- A little method to call an external program
* -- Bernd Feige 29.06.1994
*/
/*}}} */
/*{{{ #includes*/
#include <stdlib.h>
#... |
6f6903eac2efbc419e0a591bff2de35eb1d0d4ebba269b1cf2dedd61bcc9314a | C | 2,898 | 101 | /* FILE _macros/stimulate/printbehav.c */
#include "../Deffs.h"
/* ******************************************************************** */
/* Generic macro: print EYE and ARM positions in specified interval,
sorted by stack and class */
/* File name: BehavMean_unit#.run#
* For each type:
* sta... |
c5c1c377160fa57044710687cc0614e8eedfcaa3bac5c1a7ae48f11e8bbd4e31 | C | 2,909 | 196 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#define CUBE 1L
#define TOPLEFT 2L
#define TOPRIGHT 3L
#define BOTTOMLEFT 4L
#define BOTTOMRIGHT 5L
/*
* Demonstrate just how much you can put in an object
*/
main()
{
void makecube();
... |
ab5b8d6250041dadef8449d7ad895612aae13e04fd076bc065fd421a4e6b3139 | C | 2,914 | 180 | /*
* Demonstrate a rotating translating tetrahedron.
*/
#include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#ifndef TC
#include <math.h>
#else
extern double sin(), cos();
#endif
#define TETRAHEDRON 1L
#define NSIDES 3
#define NFACES 4
#define NPNT... |
bdaecabda6403bedadcb77b4e74ccbe2cb12f43e31324354b92094524ec69373 | C | 2,926 | 197 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#define CUBE 1L
#define TOPLEFT 2L
#define TOPRIGHT 3L
#define BOTTOMLEFT 4L
#define BOTTOMRIGHT 5L
/*
* Demonstrate just how much you can put in an object
*/
main()
{
void makecube();
... |
76e0e0d5634119e0f149dc90dd1fbee0d10925669f5aed4f433f99c6d57cc68a | C | 2,930 | 74 | /*
* 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_sparse.h>
#include <requantization/runtime-sse2.h>
... |
e33a8cba896a1afcb580bf1d03cf5d647e3e05cf8950d5c660f50df70f14bd0b | C | 2,931 | 181 | /*
* Demonstrate a rotating translating tetrahedron.
*/
#include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
#ifndef TC
#include <math.h>
#else
extern double sin(), cos();
#endif
#define TETRAHEDRON 1L
#define NSIDES 3
#define NFACES 4
#define NPNT... |
288af1dcea82ae58149741563ae1c2eda9195709c3c300914b19974e76fd4652 | C | 2,970 | 143 | #include "vogl.h"
static int planes[] = {'\01', '\02', '\04', '\010', '\020', '\040'};
static int MakeEdgeCoords(int i, float *p);
static float wc[2][6];
/*
* clip
*
* Clips a 3D line using Homogeneous clipping.
* Reference: Newman and Sproull
*
*/
void
clip(float *p0, float *p1)
{
float t, t1, t2, dx, dy, dz... |
c3294e6caa955c84f2910b8beb19644a36e0a4034b738459bd8b02027f0bc5cf | C | 2,979 | 92 | /*
* Copyright (C) 2008,2016,2024 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* add_zerochannel.c method to add a single zeroed-out channel to the data,
* particularly before rereferencing
* -- Bernd Feige 25.07.2008
*/
/*}}} ... |
e0ebd3f7e2c071a86df606a0acf6dc7661b96422ed9915f8e491b1852ed9b60e | C | 2,994 | 165 |
#include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
Coord carray[][3] = { -1.0, -1.0, 1.0, /* front */
1.0, -1.0, 1.0,
1.0, 1.0, 1.0,
-1.0, 1.0, 1.0,
-1.0, -1.0, -1.0, /* rear */
1.0, -1.0, -1.0... |
f8e4350c2ba5d845c3a365abc12cd3cf34e6400d558a24f601fb4b993bfbd5b7 | C | 2,995 | 99 | /*
* 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... |
7dfb536e5239629eaaa44891ad70ed53ed0bbff54ee0e99ca768a45f35acb075 | C | 2,998 | 101 | /*
* 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... |
4f06d621306dc9d27b933d5afd072337b9caf6f295de10be81e9a138d58b0e7d | C | 3,011 | 166 |
#include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
Coord carray[][3] = { -1.0, -1.0, 1.0, /* front */
1.0, -1.0, 1.0,
1.0, 1.0, 1.0,
-1.0, 1.0, 1.0,
-1.0, -1.0, -1.0, /* rear */
1.0, -1.0, -1.0... |
1471186b645f40b03c5c7a81091816b54271551e1227a8b01409714a63d18962 | C | 3,016 | 195 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* An array of points for a polygon
*/
static Coord parray[][3] = {
{-8.0, -8.0, 0.0},
{-5.0, -8.0, 0.0},
{-5.0, -5.0, 0.0},
{-8.0, -5.0, 0.0}
};
/*
* drawpoly
*
* draw some polygons
*/
... |
0fd78eda0f40d25badfb51009472b04fa8fb5003dc5db9d7bcbe64d744e76c62 | C | 3,023 | 101 | #include "plot.h"
#include "../plot.h"
/*
* Global initialization of the function pointers.
*/
int (*openplP) (void) = openplX;
int (*closeplP) (void) = closeplX;
int (*flushplP) (void) = flushplX;
int (*spaceP) (int, int, int, int) = spaceX;
int (*colorP) (int,... |
cc78d90f800ae83ba82a23c588af32d399485fc2b010df11f2390b47b159d8cb | C | 3,023 | 80 | /*
* Copyright (C) 1993 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* array_multiply.c function to scan the next vectors of two arrays and
* return their scalar product; if the two array pointers are equal,
* an error results because independent position count... |
7bf5bbb0dea37fa16a827598453968bb57ee9fc6f581d945e92a3bb11a8c4588 | C | 3,032 | 102 | /*
* 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... |
34c78a5a651cecddf444e3628c5b7a0be16744e9c7f7d0ac13ead428d6aa6fb9 | C | 3,033 | 196 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* An array of points for a polygon
*/
static Coord parray[][3] = {
{-8.0, -8.0, 0.0},
{-5.0, -8.0, 0.0},
{-5.0, -5.0, 0.0},
{-8.0, -5.0, 0.0}
};
/*
* drawpoly
*
* draw some polygons
*/
... |
801cc2c9706973992adfde7795d7621be71e46053d643848b155485db22231ac | C | 3,040 | 99 | /*
* Copyright (C) 1999,2001,2003 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* Transform method to calculate the (pseudo)inverse of the input matrix.
* This is done so that `project -n -C -p 0 orig.asc 0' with
* orig.asc being ... |
34dbd2552f966580852b73e5ea19984a71bb94c12a8c2a2f815326340fd6548c | C | 3,043 | 82 | /*
* 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 <emmintrin.h>
#include <qnnpack/x8zip.h>
void pytorch_qnnp_x8zip_x4__sse2(size_t n, const ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.