repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
FPGA-Research-Manchester/nextpnr-fabulous
xc7/arch.h
/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2018 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. ...
clean-code-craft-tcq-3/spring-in-cpp-PANINDRA-REDDY-BANDIATMAKUR
stats.h
#include <vector> struct EmailAlert { char emailSent; char emailNotSent; }; struct LEDAlert { char ledGlows; char ledOff; }; namespace Statistics { float ComputeStatistics(const std::vector<float *>& alerters ); }
jboillot/OctagonAI
test2.c
<filename>test2.c int main() { int x,y; x = 10; y = 0; while (x > y) { x = x - 1; y = y + 1; } }
jboillot/OctagonAI
test1.c
<reponame>jboillot/OctagonAI int main() { int x, y, z; if (x >= y) z = x - y; else z = y - x; }
jboillot/OctagonAI
test.c
<gh_stars>0 int main() { int a = 1; int b = 3; a = a + b; }
naisila/libhash
src/hash.c
<filename>src/hash.c /* PROJECT MADE BY: <NAME> 21600336 SECTION 2 KUNDUZ EFRONOVA 21600469 SECTION 2 30 MARCH 2019 */ #include <stdio.h> #include <pthread.h> #include <stdlib.h> #include <string.h> #include "hash.h" HashTable *hash_init (int N, int K) { HashTable *ht; if (N < MIN_N || N > MAX_N) { printf("Erro...
naisila/libhash
src/test.c
/* PROJECT MADE BY: <NAME> 21600336 SECTION 2 KUNDUZ EFRONOVA 21600469 SECTION 2 30 MARCH 2019 */ #include <pthread.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <fcntl.h> #include <sys/stat.h> #include "pthread.h" #include "hash.h" HashTable *ht1; ...
naisila/libhash
src/hash.h
/* PROJECT MADE BY: <NAME> 21600336 SECTION 2 KUNDUZ EFRONOVA 21600469 SECTION 2 30 MARCH 2019 */ #ifndef HASH_H #define HASH_H #include <pthread.h> #define MIN_N 100 #define MAX_N 1000 #define MIN_M 10 #define MAX_M 1000 struct hash_table { //structure to keep linked-list elements struct node { int key; vo...
naisila/libhash
src/integer-count.c
<filename>src/integer-count.c /* PROJECT MADE BY: <NAME> 21600336 SECTION 2 KUNDUZ EFRONOVA 21600469 SECTION 2 30 MARCH 2019 */ #include <pthread.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include "pthread.h" #include "hash.h" #define MAXCHAR 50000 HashTable *ht1; // space al...
VaibhaviOSGeek/VLViewController
Example/VLViewController/VLAppDelegate.h
<reponame>VaibhaviOSGeek/VLViewController // // VLAppDelegate.h // VLViewController // // Created by <EMAIL> on 02/15/2017. // Copyright (c) 2017 <EMAIL>. All rights reserved. // @import UIKit; @interface VLAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
VaibhaviOSGeek/VLViewController
Example/VLViewController/VLViewController.h
<reponame>VaibhaviOSGeek/VLViewController // // VLViewController.h // VLViewController // // Created by <EMAIL> on 02/15/2017. // Copyright (c) 2017 <EMAIL>. All rights reserved. // @import UIKit; @interface VLViewController : UIViewController @end
huwb/jitternator
src/TimeAlgebra/TimeAlgebra/GameSimulation.h
<reponame>huwb/jitternator<gh_stars>10-100 // This file is subject to the MIT License as seen in the root of this folder structure (LICENSE) // #pragma once #include "FloatTime.h" /** * Mock game simulation */ class GameSimulation { public: void Update( const FloatTime& frameDt ) { InputsUpdate( f...
huwb/jitternator
src/TimeAlgebra/TimeAlgebra/FloatTime.h
// This file is subject to the MIT License as seen in the root of this folder structure (LICENSE) // #pragma once class FloatTime; // could this be automatic through a conversion constructor? void CheckConsistency( const FloatTime& a, const FloatTime& b ); /** * A float value with a timestamp attached *...
kiyoMatsui/kiyoswebgame
server/app/assets/emscripten/kgePointLine.h
<gh_stars>0 /*-------------------------------*\ Copyright 2021 <NAME> KiyosGameEngine v1.1 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ \*-------------------------------*/ #ifndef KGE_POINTLINE_H #define KGE_POINTLINE_H #include <cmath> #ifdef USED_FOR_KGE_TESTS #define kgeTestPrint(x) s...
kiyoMatsui/kiyoswebgame
server/app/assets/emscripten/kgeMainLoop.h
/*-------------------------------*\ Copyright 2021 <NAME> KiyosGameEngine v1.1 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ \*-------------------------------*/ #ifndef KGE_MAINLOOP_H #define KGE_MAINLOOP_H #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif #include <chrono> #include <f...
MyHomeLibrary/FB2ePub
FFPlugin/js-ctype_connector/Fb2ePubConverter.h
<filename>FFPlugin/js-ctype_connector/Fb2ePubConverter.h #pragma once class CFb2ePubConverter { public: CFb2ePubConverter(void); virtual ~CFb2ePubConverter(void); bool Convert(LPCWSTR inputPath,LPCWSTR outputPath); };
MyHomeLibrary/FB2ePub
FFPlugin/js-ctype_connector/Fb2EpubConverterPaths.h
#pragma once class CFb2EpubConverterPaths { public: CFb2EpubConverterPaths(void); virtual ~CFb2EpubConverterPaths(void); bool GetPathsCount(UINT32& uiPathsCount); bool GetPath(UINT32 uiPath,LPWSTR strPath, UINT32& uiPathLength); bool GetPathName(UINT32 uiPath,LPWSTR strPathName, UINT32& uiPathLength); protected...
MyHomeLibrary/FB2ePub
FFPlugin/js-ctype_connector/js-ctype_connector.h
// The following ifdef block is the standard way of creating macros which make exporting // from a DLL simpler. All files within this DLL are compiled with the JSCTYPE_CONNECTOR_EXPORTS // symbol defined on the command line. This symbol should not be defined on any project // that uses this DLL. This way any other pro...
Medigram/DBSignupViewController
DBSignup/RootViewController.h
// // RootViewController.h // DBSignup // // Created by <NAME> on 7/4/11. // Copyright 2011 03081340121. All rights reserved. // #import <UIKit/UIKit.h> @interface RootViewController : UITableViewController { } @end
Medigram/DBSignupViewController
DBSignup/DBSignupViewController.h
// // DBSignupViewController.h // DBSignup // // Created by <NAME> on 7/4/11. // Copyright 2011 03081340121. All rights reserved. // #import <UIKit/UIKit.h> @interface DBSignupViewController : UIViewController <UIPickerViewDelegate, UIPickerViewDataSource, UITextFieldDelegate, UIActionSheetDelegate, UIImagePicker...
Medigram/DBSignupViewController
DBSignup/DBSignupAppDelegate.h
<filename>DBSignup/DBSignupAppDelegate.h // // DBSignupAppDelegate.h // DBSignup // // Created by <NAME> on 7/4/11. // Copyright 2011 03081340121. All rights reserved. // #import <UIKit/UIKit.h> @interface DBSignupAppDelegate : NSObject <UIApplicationDelegate> { } @property (nonatomic, retain) IBOutlet UIWindow...
Harlem-Launch-Alliance/Catalyst-2
main/settings.h
<filename>main/settings.h /***************************************************************************** * This file is for any settings or constants that may be manually adjusted * ****************************************************************************/ #ifndef SETTINGS_H #define SETTINGS_H //tick times (mic...
Harlem-Launch-Alliance/Catalyst-2
main/attitude.h
/***************************************************************************** * This file is for all math used to determine attitude * ****************************************************************************/ //angles are in radians //rates are magnitudes of rad/s //assuming roll == 0, pitchRate will be equiv...
Harlem-Launch-Alliance/Catalyst-2
main/ringQueue.h
<filename>main/ringQueue.h /***************************************************************************** * This file is for the RingQueue class and definitions * ****************************************************************************/ #include "settings.h" #ifndef RINGQUEUE_H #define RINGQUEUE_H template<ty...
Harlem-Launch-Alliance/Catalyst-2
main/bmp_altimeter.h
<reponame>Harlem-Launch-Alliance/Catalyst-2 /***************************************************************************** * This file is for all barometric altimeter queries * ****************************************************************************/ #define BMP_CS 10 #define SEALEVELPRESSURE_HPA (1013.25)//To...
Harlem-Launch-Alliance/Catalyst-2
main/data.h
<reponame>Harlem-Launch-Alliance/Catalyst-2 /***************************************************************************** * This file is for saving and transmitting data * currently using an SD card and Xbee respectively ****************************************************************************/ #include "ringQue...
Harlem-Launch-Alliance/Catalyst-2
main/utils.h
/***************************************************************************** * This file is for declaring utilities to be used in multiple other places * ****************************************************************************/ #include <math.h> #include "settings.h" class Directional //any data that has an...
Harlem-Launch-Alliance/Catalyst-2
main/apogee.h
<filename>main/apogee.h /***************************************************************************** * apogee detection and helper functions * ****************************************************************************/ #include <Ewma.h> //https://github.com/jonnieZG/EWMA //this function should only be called ...
Harlem-Launch-Alliance/Catalyst-2
main/gy521_imu.h
/***************************************************************************** * This file is for all imu queries * Calculations such as attitude determination should go in a separate file ****************************************************************************/ #include <Wire.h> //library allows communication...
Harlem-Launch-Alliance/Catalyst-2
main/gps.h
<reponame>Harlem-Launch-Alliance/Catalyst-2 // Test code for Ultimate GPS Using Hardware Serial. // Need to remove the GPS.lastNMEA() and see if it still works, still get compilation error #include <Adafruit_GPS.h> // what's the name of the hardware serial port? #define GPSSerial Serial2 // Connect to the GPS on the...
Funto/OpenGL-Timestamp-Profiler
tgaloader.h
<reponame>Funto/OpenGL-Timestamp-Profiler // tgaloader.h // Version 2.1 #ifndef TGA_LOADER_H #define TGA_LOADER_H // Configuration: #define TGA_LOADER_INCLUDE_GLEW // Define this if the project uses GLEW, // for including GL/glew.h before GL/gl.h //#define TGA_OPENGL_SUPPORT //#define TGA_USE_LOG_H // Define ...
Funto/OpenGL-Timestamp-Profiler
thread.h
// thread.h // Thin interface over the Windows Threads API and pthread. #ifndef __THREAD_H__ #define __THREAD_H__ // Basic types: ThreadHandle, ThreadId, Mutex, Event #ifdef WIN32 #include <windows.h> typedef HANDLE ThreadHandle; typedef DWORD ThreadId; typedef CRITICAL_SECTION Mutex; typedef HANDLE Eve...
Funto/OpenGL-Timestamp-Profiler
utils.h
<gh_stars>1-10 // utils.h #ifndef UTILS_H #define UTILS_H #include <GL/glew.h> void msleep(int ms); const char* loadText(const char* filename); bool loadShaders(const char* vert_filename, const char* frag_filename, GLuint& id_vert, GLuint& id_frag, GLuint& id_prog); bool checkGLError(); template <class T> ...
Funto/OpenGL-Timestamp-Profiler
hp_timer.h
// hp_timer.h #ifndef __HP_TIMER_H__ #define __HP_TIMER_H__ #include <stdint.h> void initTimer(); void shutTimer(); #ifdef _WIN32 // Windows 32 bits and 64 bits: use QueryPerformanceCounter() #include <windows.h> extern int64_t __freq; extern int64_t __time_at_init; inline uint64_t getTimeNs() { LARGE_INTE...
Funto/OpenGL-Timestamp-Profiler
camera.h
<gh_stars>1-10 // Camera.h #ifndef CAMERA_H #define CAMERA_H #include "math_utils.h" struct Camera { float view_matrix[16]; float proj_matrix[16]; void setPerspective(float fovy_degrees, float aspect_ratio, float znear, float zfar) { matrixPerspective(proj_matrix, fovy_degrees, aspect_ratio, 1.0f, 100.0...
Funto/OpenGL-Timestamp-Profiler
profiler.h
// profiler.h #ifndef PROFILER_H #define PROFILER_H #include <GL/glew.h> #include <string.h> #include <assert.h> #include <stdint.h> #include "hole_array.h" #include "thread.h" #include "utils.h" #define ENABLE_PROFILER // comment this to disable the profiler #define INVALID_TIME ((uint64_t)(-1)) #define INVALID_QU...
Funto/OpenGL-Timestamp-Profiler
drawer2D.h
// drawer2D.h #ifndef __DRAWER2D_H__ #define __DRAWER2D_H__ #include <GL/glew.h> #include "utils.h" // Simple class to draw strings in a [-1;1]x[-1;1] coordinates system class Drawer2D { private: GLuint m_id_vbo; // General-purpose VBO // Unicolor shader GLuint m_id_vert_color; GLuint m_id_frag_color; GLuint m...
Funto/OpenGL-Timestamp-Profiler
math_utils.h
<reponame>Funto/OpenGL-Timestamp-Profiler // math_utils.h #ifndef MAT_UTILS_H #define MAT_UTILS_H #include <math.h> #ifndef PI_FLOAT #define PI_FLOAT 3.14159265358979323846f #endif // ----------------------------------------- // Vectors inline float vecLength(const float v[3]) { return sqrtf(v[0]*v[0] + v[1]*v[1] ...
Funto/OpenGL-Timestamp-Profiler
scene.h
<reponame>Funto/OpenGL-Timestamp-Profiler // scene.h #ifndef SCENE_H #define SCENE_H #include "camera.h" #include "grid.h" #include "thread.h" #include "utils.h" class Scene { private: static const int NB_GRIDS_X = 2; static const int NB_GRIDS_Y = 2; static const int NB_THREADS = NB_GRIDS_X * NB_GRIDS_Y; Camer...
Funto/OpenGL-Timestamp-Profiler
grid.h
<reponame>Funto/OpenGL-Timestamp-Profiler // grid.h #ifndef GRID_H #define GRID_H #include <GL/glew.h> #include "camera.h" #include "utils.h" class Grid { private: static const int GRID_WIDTH; static const int GRID_HEIGHT; static const int GRID_NB_INDICES; static const float GRID_WORLD_SIZE; static const fl...
boolgom/EntryArduino
EntryArduino/EntryArduino/sckt.h
#ifndef UNICODE #define UNICODE 1 #endif // link with Ws2_32.lib #pragma comment(lib,"Ws2_32.lib") #include <winsock2.h> #include <ws2tcpip.h> #include <stdio.h> #include <stdlib.h>// for _wtoi
chamara-dev/ThreeSixtyPlayer
Example/ThreeSixtyPlayer/TSPViewController.h
// // TSPViewController.h // ThreeSixtyPlayer // // Created by <NAME> on 09/01/2016. // Copyright (c) 2016 <NAME>. All rights reserved. // @import UIKit; @interface TSPViewController : UIViewController @end
chamara-dev/ThreeSixtyPlayer
Example/ThreeSixtyPlayer/TSPAppDelegate.h
<filename>Example/ThreeSixtyPlayer/TSPAppDelegate.h // // TSPAppDelegate.h // ThreeSixtyPlayer // // Created by <NAME> on 09/01/2016. // Copyright (c) 2016 <NAME>. All rights reserved. // @import UIKit; @interface TSPAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window...
quim0/eWFA-GPU
utils/sequence_reader.h
<reponame>quim0/eWFA-GPU /* * Copyright (c) 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, mo...
quim0/eWFA-GPU
src/wavefront_structures.h
/* * Copyright (c) 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, dis...
quim0/eWFA-GPU
utils/logger.h
<gh_stars>1-10 /* * Copyright (c) 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merg...
quim0/eWFA-GPU
utils/arg_handler.c
/* * Copyright (c) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, dis...
quim0/eWFA-GPU
utils/arg_handler.h
<reponame>quim0/eWFA-GPU /* * Copyright (c) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, mo...
obiwac/x-compositing-wm
src/cwm.h
// this file contains helpers for the compositing part of the window manager prototype #include <wm.h> #include <X11/extensions/Xcomposite.h> // we need to use Xfixes because, for whatever reason, X (and even Xcomposite, which is even weirder) doesn't include a way to make windows transparent to events #include <X1...
obiwac/x-compositing-wm
src/wm.h
<reponame>obiwac/x-compositing-wm // this file contains helpers for the window manager #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xatom.h> #include <X11/extensions/Xinerama.h> #if !defined(DEBUGGING) #define DEBUGGING 0 #e...
obiwac/x-compositing-wm
src/opengl.h
<filename>src/opengl.h // this file contains OpenGL helpers for the window manager // shaders static void gl_compile_shader_and_check_for_errors /* lmao */ (GLuint shader, const char* source) { glShaderSource(shader, 1, &source, 0); glCompileShader(shader); GLint log_length; glGetShaderiv(shader, GL_INFO_LOG_LEN...
obiwac/x-compositing-wm
src/main.c
#define DEBUGGING 1 #include <cwm.h> #include <opengl.h> #include <math.h> #include <unistd.h> #include <sys/param.h> // structures and types typedef struct { unsigned internal_id; int exists; int visible; uint64_t farness; float opacity; float x, y; float width, height; float visual_opacity; float vi...
shansfolder/Kiezzer
kiezzer/Kiezzer/Controllers/CameraViewController.h
// // CameraViewController.h // Kiezzer // // Created by Penergy on 13-10-27. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface CameraViewController : UIViewController <UIImagePickerControllerDelegate, UINavigationControllerDelegate> { UIImagePickerController *pick...
shansfolder/Kiezzer
kiezzer/Kiezzer/Controllers/DetailViewController.h
// // DetailViewController.h // Kiezzer // // Created by <NAME> on 13-10-26. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> @interface DetailViewController : UIViewController <MKMapViewDelegate> - (IBAction)goToGeneralDataVC:(id)sender; @property (wea...
shansfolder/Kiezzer
kiezzer/Kiezzer/Controllers/ClubsTableViewController.h
// // ClubTableViewController.h // Kiezzer // // Created by Penergy on 13-10-23. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface ClubsTableViewController : UITableViewController @property (nonatomic, strong) NSMutableArray *clubs; @end
shansfolder/Kiezzer
kiezzer/Kiezzer/Controllers/GallaryViewController.h
// // GallaryViewController.h // Kiezzer // // Created by Penergy on 13-10-27. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface GallaryViewController : UICollectionViewController @property (strong, nonatomic) IBOutlet UIImageView *gallaryImage; @end
shansfolder/Kiezzer
kiezzer/Kiezzer/Views/FotosTableViewCell.h
// // FotosTableViewCell.h // Kiezzer // // Created by Penergy on 13-10-26. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface FotosTableViewCell : UITableViewCell @property (strong, nonatomic) IBOutlet UIImageView *cellBkImage; @property (strong, nonatomic) IBOutlet UI...
shansfolder/Kiezzer
kiezzer/Kiezzer/Views/ClubCell.h
// // ClubCell.h // Kiezzer // // Created by Penergy on 13-10-23. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface ClubCell : UITableViewCell @property (strong, nonatomic) IBOutlet UILabel *nameLabel; @property (strong, nonatomic) IBOutlet UIImageView *ratingImageView...
shansfolder/Kiezzer
kiezzer/Kiezzer/Controllers/ActivityIndicatorViewController.h
<gh_stars>0 // // ActivityIndicatorViewController.h // Kiezzer // // Created by <NAME> on 13-10-27. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface ActivityIndicatorViewController : UIViewController @end
shansfolder/Kiezzer
kiezzer/Kiezzer/Controllers/GallaryDetailViewController.h
// // GallaryDetailViewController.h // Kiezzer // // Created by <NAME> on 13-10-27. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface GallaryDetailViewController : UIViewController @property (weak, nonatomic) IBOutlet UIImageView *gallaryImage; @property (strong, nona...
shansfolder/Kiezzer
kiezzer/Kiezzer/Controllers/GeneralDataViewController.h
<gh_stars>0 // // GeneralDataViewController.h // Kiezzer // // Created by <NAME> on 13-10-26. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface GeneralDataViewController : UIViewController @property (weak, nonatomic) IBOutlet UILabel *temperatureLabel; @property (weak,...
shansfolder/Kiezzer
kiezzer/Kiezzer/Controllers/FotosTableViewController.h
// // FotosTableViewController.h // Kiezzer // // Created by <NAME> on 13-10-26. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface FotosTableViewController : UITableViewController - (IBAction)intoPhoto:(id)sender; @end
shansfolder/Kiezzer
kiezzer/Kiezzer/Views/GallaryViewCell.h
// // GallaryViewCell.h // Kiezzer // // Created by Penergy on 13-10-27. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface GallaryViewCell : UICollectionViewCell @property (strong, nonatomic) IBOutlet UIImageView *gallaryImage; @end
shansfolder/Kiezzer
kiezzer/Kiezzer/ViewController.h
<filename>kiezzer/Kiezzer/ViewController.h // // ViewController.h // Kiezzer // // Created by Penergy on 13-10-23. // Copyright (c) 2013年 com.Kiezzer. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController - (IBAction)clubButton:(id)sender; - (IBAction)userButton:(id)sender; ...
yp/Heu-MCHC
include/util.h
<reponame>yp/Heu-MCHC<filename>include/util.h<gh_stars>1-10 /** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 <NAME> * * Distributed under the t...
yp/Heu-MCHC
pers-lib/m4ri/testsuite/test_kernel.c
<reponame>yp/Heu-MCHC<gh_stars>1-10 /******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2009 <NAME> <<EMAIL>> * * Distributed under the terms of the GNU General Public License (GPL) * version 2 or higher. * * This code is dist...
yp/Heu-MCHC
include/gen-ped-IO.h
<filename>include/gen-ped-IO.h<gh_stars>1-10 /** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 <NAME> * * Distributed under the terms of the GNU...
yp/Heu-MCHC
pers-lib/m4ri/src/pluq_mmpf.h
<filename>pers-lib/m4ri/src/pluq_mmpf.h /** * \file lqup_mmpf.h * \brief LQUP factorization using Gray codes. * * * \author <NAME> <<EMAIL>> * * \example testsuite/test_lqup.c */ #ifndef LQUP_MMPF_H #define LQUP_MMPF_H /******************************************************************* * * ...
yp/Heu-MCHC
pers-lib/m4ri/src/grayflex.c
<reponame>yp/Heu-MCHC /****************************************************************************** * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2007 <NAME> <<EMAIL>> * Copyright (C) 2007 <NAME> <<EMAIL>> * * Distributed under the terms of the GNU General Public License (GPL) * vers...
yp/Heu-MCHC
pers-lib/m4ri/src/permutation.c
/****************************************************************************** * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2008 <NAME> <<EMAIL>> * * Distributed under the terms of the GNU General Public License (GPL) * version 2 or higher. * * This code is distributed in the hope tha...
yp/Heu-MCHC
pers-lib/m4ri/src/lqup.h
/** * \file lqup.h * * \brief PLUQ matrix decomposition routines. * * \author <NAME> <<EMAIL>> * * \note This file should be called pluq.h and will be renamed in the * future. */ #ifndef PLUQ_H #define PLUQ_H /******************************************************************* * * M4RI: Line...
yp/Heu-MCHC
pers-lib/m4ri/src/trsm.c
/******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2008 <NAME> <<EMAIL>> * * Distributed under the terms of the GNU General Public License (GPL) * version 2 or higher. * * This code is distributed in the hope that it will be...
yp/Heu-MCHC
pers-lib/m4ri/testsuite/walltime.h
/* wall clock */ /* see "Software Optimization for High Performance Computing" p. 135 */ #include <time.h> #include <sys/time.h> double walltime( double *t0 ) { double mic, time; double mega = 0.000001; struct timeval tp; static long base_sec = 0; static long base_usec = 0; (void) gettimeofday(&tp,NULL);...
yp/Heu-MCHC
pers-lib/m4ri/src/misc.h
/** * \file misc.h * \brief Helper functions. * * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> */ #ifndef MISC_H #define MISC_H /******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2007, 2008 <NAME> <<EMAIL>> * Cop...
yp/Heu-MCHC
pers-lib/m4ri/src/brilliantrussian.h
<filename>pers-lib/m4ri/src/brilliantrussian.h /** * \file brilliantrussian.h * \brief M4RI and M4RM. * * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> * * \note For reference see <NAME>; Accelerating Cryptanalysis with * the Method of Four Russians; 2006; * http://eprint.iacr.org/2006/251.pdf */ #ifn...
yp/Heu-MCHC
pers-lib/m4ri/src/parity.h
#ifndef PARITY_H #define PARITY_H /******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2008 <NAME> <<EMAIL>> * * Distributed under the terms of the GNU General Public License (GPL) * version 2 or higher. * * This code is distr...
yp/Heu-MCHC
src/conversion-2pedphase.c
<reponame>yp/Heu-MCHC /** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 <NAME> * * Distributed under the terms of the GNU General Public License...
yp/Heu-MCHC
src/util.c
<reponame>yp/Heu-MCHC /** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 <NAME> * * Distributed under the terms of the GNU General Public License...
yp/Heu-MCHC
pers-lib/m4ri/testsuite/test_trsm.c
#include <stdlib.h> #include "m4ri/m4ri.h" int test_trsm_upper_right (int m, int n, int offset, const char* description){ printf("upper_right: %s m: %4d n: %4d offset: %4d ... ",description, m, n, offset); mzd_t* Ubase = mzd_init (2048,2048); mzd_t* Bbase = mzd_init (2048,2048); mzd_randomize (Ubase); mzd...
yp/Heu-MCHC
pers-lib/m4ri/src/misc.c
/****************************************************************************** * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2007 <NAME> <<EMAIL>> * * Distributed under the terms of the GNU General Public License (GPL) * version 2 or higher. * * This code is distributed in the hope tha...
yp/Heu-MCHC
src/log.c
/** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 <NAME> * * Distributed under the terms of the GNU General Public License (GPL) * * * This f...
yp/Heu-MCHC
pers-lib/m4ri/src/lqup.c
<filename>pers-lib/m4ri/src/lqup.c<gh_stars>1-10 /******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2008 <NAME> <<EMAIL>> * * Distributed under the terms of the GNU General Public License (GPL) * version 2 or higher. * * Thi...
yp/Heu-MCHC
pers-lib/m4ri/src/pluq_mmpf.c
/******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2008 <NAME> <<EMAIL>> * * Distributed under the terms of the GNU General Public License (GPL) * version 2 or higher. * * This code is distributed in the hope that it will b...
yp/Heu-MCHC
pers-lib/m4ri/src/m4ri.h
<gh_stars>1-10 /** * \file m4ri.h * \brief Main include file for the M4RI library. * * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> */ /****************************************************************************** * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2007 <NAME> <<EMAI...
yp/Heu-MCHC
pers-lib/m4ri/testsuite/test_multiplication.c
#include <stdlib.h> #include "m4ri/m4ri.h" /** * Check that the results of all implemented multiplication algorithms * match up. * * \param m Number of rows of A * \param l Number of columns of A/number of rows of B * \param n Number of columns of B * \param k Parameter k of M4RM algorithm, may be 0 for automat...
yp/Heu-MCHC
pers-lib/m4ri/testsuite/test_elimination.c
<reponame>yp/Heu-MCHC #include <stdlib.h> #include "m4ri/m4ri.h" int elim_test_equality(int nr, int nc) { int ret = 0; printf("elim: m: %4d, n: %4d ",nr,nc); mzd_t *A = mzd_init(nr, nc); mzd_randomize(A); mzd_t *B = mzd_copy(NULL, A); mzd_t *C = mzd_copy(NULL, A); mzd_t *D = mzd_copy(NULL, A); mzd_t...
yp/Heu-MCHC
pers-lib/m4ri/testsuite/test_lqup.c
<filename>pers-lib/m4ri/testsuite/test_lqup.c #include <stdlib.h> #include "m4ri/m4ri.h" int test_lqup_full_rank (size_t m, size_t n){ printf("pluq: testing full rank m: %5zu, n: %5zu",m,n); mzd_t* U = mzd_init (m,n); mzd_t* L = mzd_init (m,m); mzd_t* U2 = mzd_init (m,n); mzd_t* L2 = mzd_init (m,m); mzd_t...
yp/Heu-MCHC
pers-lib/m4ri/src/solve.h
<gh_stars>1-10 /** * \file solve.h * * \brief System solving with matrix routines. * * \author <NAME> <<EMAIL>> * * \attention This file is currently broken. */ #ifndef SOLVE_H #define SOLVE_H /******************************************************************* * * M4RI: Linear Algebra over GF(2) ...
yp/Heu-MCHC
include/my_time.h
<reponame>yp/Heu-MCHC /** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 <NAME> * * Distributed under the terms of the GNU General Public License...
yp/Heu-MCHC
include/log-build-info.h
<reponame>yp/Heu-MCHC /** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 <NAME> * * Distributed under the terms of the GNU General Public License...
yp/Heu-MCHC
pers-lib/m4ri/src/brilliantrussian.c
<filename>pers-lib/m4ri/src/brilliantrussian.c /******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2007, 2008 <NAME> <<EMAIL>> * Copyright (C) 2008 <NAME> <<EMAIL>> * * Distributed under the terms of the GNU General Public Lic...
yp/Heu-MCHC
src/conversion-2bob.c
<filename>src/conversion-2bob.c<gh_stars>1-10 /** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 <NAME> * * Distributed under the terms of the GN...
yp/Heu-MCHC
src/my_time.c
/** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 <NAME> * * Distributed under the terms of the GNU General Public License (GPL) * * * This f...
yp/Heu-MCHC
pers-lib/m4ri/testsuite/bench_elimination.c
<reponame>yp/Heu-MCHC #include <stdlib.h> #include "m4ri/m4ri.h" #include "cpucycles.h" #include "walltime.h" int main(int argc, char **argv) { int halfrank = 0; size_t m, n, r; const char *algorithm; unsigned long long t; double wt; double clockZero = 0.0; if (argc < 3) { m4ri_die("Parameters m,n ...
yp/Heu-MCHC
pers-lib/m4ri/testsuite/bench_multiplication.c
<filename>pers-lib/m4ri/testsuite/bench_multiplication.c<gh_stars>1-10 #include <stdlib.h> #include "cpucycles.h" #include "walltime.h" #include "m4ri/m4ri.h" int main(int argc, char **argv) { int n, cutoff; unsigned long long t; double wt; double clockZero = 0.0; if (argc != 3) { m4ri_die("Parameters ...
yp/Heu-MCHC
include/bp_double.h
/** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 <NAME> * * Distributed under the terms of the GNU General Public License (GPL) * * * This f...
yp/Heu-MCHC
pers-lib/m4ri/testsuite/bench_lqup.c
<gh_stars>1-10 #include <stdlib.h> #include "m4ri/m4ri.h" #include "cpucycles.h" #include "walltime.h" int main(int argc, char **argv) { int halfrank = 1; int n,m; unsigned long long t; double wt; double clockZero = 0.0; if (argc != 3) { m4ri_die("Parameters m, n expected.\n"); } m = atoi(argv[1]...
yp/Heu-MCHC
pers-lib/m4ri/src/strassen.c
<reponame>yp/Heu-MCHC /******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2008 <NAME> <<EMAIL>> * Copyright (C) 2008 <NAME> <<EMAIL>> * Copyright (C) 2008 <NAME> <<EMAIL>> * * Distributed under the terms of the GNU General ...
yp/Heu-MCHC
pers-lib/m4ri/src/packedmatrix.h
<filename>pers-lib/m4ri/src/packedmatrix.h<gh_stars>1-10 /** * \file packedmatrix.h * \brief Dense matrices over GF(2) represented as a bit field. * * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> */ #ifndef PACKEDMATRIX_H #define PACKEDMATRIX_H /************************************************************...
yp/Heu-MCHC
pers-lib/m4ri/src/trsm.h
/** * \file trsm.h * * \brief Triangular system solving with Matrix routines. * * \author <NAME> <<EMAIL>> */ #ifndef TRSM_H #define TRSM_H /******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2008 <NAME> <<EMAIL>> * * Dist...