text stringlengths 3.08k 22k |
|---|
#include "hls_design_meta.h"
const Port_Property HLS_Design_Meta::port_props[]={
Port_Property("ap_clk", 1, hls_in, -1, "", "", 1),
Port_Property("ap_rst_n", 1, hls_in, -1, "", "", 1),
Port_Property("m_axi_INPUT_IMAGE_AWVALID", 1, hls_out, 0, "m_axi", "VALID", 1),
Port_Property("m_axi_INPUT_IMAGE_AWREADY", 1, hls_i... |
/*
* quad-gs.cpp
*
* This work was supported by the Director, Office of Science, Division
* of Mathematical, Information, and Computational Sciences of the
* U.S. Department of Energy under contract number DE-AC03-76SF00098.
*
* Copyright (c) 2004
*
*
* Creation Date: June 7, 2004
* Modified: June 26, 2... |
#include "../include/neat.h"
Neat::Neat() {}
Neat::Neat(int input, int output) {
reset(input, output);
}
Neat::~Neat() {
for (auto it = all_connections.begin(); it != all_connections.end(); it++) {
delete it->second;
}
for (auto it = all_nodes.begin(); it != all_nodes.end(); it++) {
... |
#include "Polygon.h"
#include <simulation.geometry/boundingVolumes/BoundingSphere.h>
#include <algorithm>
#include <math/MathDefs.h>
using namespace nspace;
using namespace std;
using namespace nspace::math::operators;
Classification classifySphere(const BoundingSphere & sphere, const Polygon & polygon){
co... |
/* -*-C-*-
********************************************************************************
*
* File: variables.c (Formerly variables.c)
* Description: Variable handler for control flags
* Author: <NAME>, OCR Technology
* Created: Tue Dec 12 09:03:49 1989
* Modified: Thu Apr 4 11:01:37 1... |
/*
VRM Music Generator based on libJDKSmidi C++ MIDI Library
*/
const char *version = "1.23"; // from February 2011
/*
Copyright (C) 2010 V.R.Madgazin
www.vmgames.com
<EMAIL>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as pub... |
#include "L1Trigger/RegionalCaloTrigger/interface/L1RCTORCAMap.h"
#include <vector>
using std::vector;
L1RCTORCAMap::L1RCTORCAMap(){
rawEMET = std::vector<unsigned short>(56*72);
rawHDET = std::vector<unsigned short>(56*72);
rawEMFG = std::vector<unsigned short>(56*72);
rawHDFG = std::vector<unsigned short>(5... |
#include<stdio.h>
#include<stdlib.h>
#include<bits/stdc++.h>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
int height;
Node(int x){
data = x;
left = NULL;
right = NULL;
height = 1;
}
};
struct Node* deleteNode(struct Node* root, int data);
int max(int a, int b);
in... |
#include "jni"
#include "BeardDetector.h"
using namespace std;
using namespace cv;
template <class T>
ostream& operator<<(ostream& os, vector<T>& vec) {
for (auto& print : vec) os << print << ' ';
return os;
}
template <class T1, class T2>
ostream& operator<<(ostream& os, pair<T1, T2>& pair) {
os << pair.first << ... |
#include "galaxy.h"
#include <time.h>
using namespace std;
const int MAX_DIST=6000;
//The purpose of this program is to simulate a galaxy. The galaxy will have a random number of solar systems.
//Each solar system will have a random amount of planets in it. A planet can either be an inner or outer planet.
//The progra... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <math.h>
#include <vector>
#include <termios.h>
#include <signal.h>
#include <sys/time.h>
//#include "hid.h"
#include "ports.h"
#include "lo/lo.h"
#define DBUG 0
// HID STUFF
extern "C" {
int rawhid_open(int max, int vid, i... |
#include "TrackingTools/TrajectoryState/interface/PerigeeConversions.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateClosestToPoint.h"
#include "MagneticField/Engine/interface/MagneticField.h"
#include <cmath>
#include <vdt/vdtMath.h>
PerigeeTrajectoryParameters PerigeeConversions::ftsToPerigeePara... |
#include "Common.h"
#include "PlayerHandGadget.h"
#include "GameManager.h"
Int16 CPlayerHandGadget::card_width = 20;
Int16 CPlayerHandGadget::card_height = 28;
Int16 CPlayerHandGadget::card_spacing = 14;
extern GameManager *gManager;
CPlayerHandGadget::CPlayerHandGadget() {
Reset();
}
Boolean CPlay... |
//
// Copyright 2004-present Facebook. All Rights Reserved.
//
#include <stdlib.h>
#include <assert.h>
#include <iterator>
#include <vector>
#include "common.h"
using namespace std;
#define WARP_SIZE 32
/// A simple pair type for CUDA device usage
template <typename K, typename V>
struct Pair {
inline Pair() {}
... |
/*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version... |
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include "Game.h"
#include "Player.h"
#include "core/Window.h"
Game::Game(int numCells) : m_numCells(numCells) {}
Game::~Game() {}
void Game::onInit(const Window& window) {
m_windowWidth = window.getWidth();
m_windowHeight = window.getHeight();
double ce... |
#include "App.h"
#include "Textures.h"
#include "Input.h"
#include "Map.h"
#include "Render.h"
#include "Window.h"
#include "FlyEnemy.h"
#include "ModuleController.h"
#include "Pathfinding.h"
#include "Player.h"
#include "Audio.h"
#include "ScenePause.h"
#include "GameplayHUD.h"
#include "Defs.h"
#include "Log.h"
Fly... |
#define PI 3.14159265358979323846
#define TWO_PI 3.14159265358979323846 * 2
#define HALF_PI PI / 2.0
#define ROUNDNUM(x) (int)(x + 0.5)
#include <dmsdk/sdk.h>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include "world_structures.h"
#include "buffer.h"
#include "raycasting.h"
... |
/********************************************************************************
* Copyright 2009 The Robotics Group, The <NAME>-<NAME> Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... |
#include "sprite.h"
#include "engine.h"
#include "texture.h"
#include "atlas.h"
#include <cstring>
#define HEADER "Header"
#define DATA "Data"
#define MESHES "Meshes"
typedef deque<Texture *> Textures;
typedef unordered_map<int, Mesh *> Meshes;
static Vector3Vector vertEmpty;
static IndexVector trisEmpty;
c... |
/*
Copyright 2021 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
/**
*-----------------------------------------------------------------------------
* Title : Common Platform MPS module class.
* ----------------------------------------------------------------------------
* File : l2Mps_mps.cpp
* Author : <NAME>, <EMAIL>
* Created : 2017-10-20
* --------------... |
#include <stdio.h>
#include <string.h>
#include <string>
#ifdef _WIN32
#include "WinGetopt.h"
#else
#include <getopt.h>
#endif
#include "EncryptKit.h"
#ifndef QT_NO_DEBUG
// debug mode
# define LOG(f, ...) do{\
printf(f, ##__VA_ARGS__);\
printf("\n");\
}while(0)
#else
// release mod... |
#include <time.h>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "..\\..\\Utils\\Image\\TGALoader.h"
#include <gl/gl.h>
#include <gl/glaux.h>
#pragma comment(lib,"opengl32.lib")
#pragma comment(lib,"glaux.lib")
#pragma comment(lib,"kernel32.lib")
#pragma comme... |
// Copyright (C) 2014-2016 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <boost/lexical_... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance with... |
/**
* This is an example to the usage of the reducer class to perform reduction
* of lattices. This serves as a comparison between the different reduction
* methods when used before searching for the shortest vector. The output is
* formated to include the number of clock ticks spent on each algorithm as well
* as... |
#include <stdio.h>
#include <stdlib.h>
#include "Engine/Includes/CGame.h"
#include "Font/font.h"
#define CRD_PILE 0
#define CRD_FOUNDATION 1
#define CRD_RESERVE 2
#define CRD_WASTE 3
SDL_Surface *screen;
SDLFont *font1; // 2 fonts
SDLFont *font2;
CGame Klondike;
void Initializ... |
#include <tcframe/spec.hpp>
#include <bits/stdc++.h>
using namespace tcframe;
using namespace std;
const int MAX_MALE = 1000;
const int MAX_FEMALE = 1000;
class ProblemSpec : public BaseProblemSpec {
protected:
int T;
int A, B, K;
string res;
void InputFormat() {
LINE(A, B, K);
}
v... |
// ref1: http://dovgalecs.com/blog/extreme-learning-machine-matlab-mex-implementation/
// ref2: http://eigen.tuxfamily.org/dox/group__TutorialLinearAlgebra.html
#include "elm.h"
#include <iostream>
#include <set>
#include "opencv2/gpu/gpu.hpp"
#include "helper_timer.h"
#include "Eigen/Dense"
using namespace cv;
usin... |
/**
* \file WdbeWrdevDeploy.cpp
* Wdbe operation processor - write device access library deployment scripts (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WDBECMBD
#include <Wdbecmbd.h>
#else
#... |
/*
A program to read from Athena++ hdf5 and calculate the minimum and maximum aspect ratios of the mesh cells.
By: <NAME>, unless stated otherwise.
WARNING: Only spherical_polar coordinates implemented!
*/
#define VERBOSE
#include <fstream>
#include <vector>
#include <utility> // pair
#include "aspect_ratios.hpp... |
#include <Arduino.h>
#include <Wire.h> //I2C
#include <NewPing.h> //Ultrasonic Sensors
#include <LiquidCrystal_I2C.h> //LCD
/*#################################################################################################
#### Constants ############################################################################... |
#include <std_msgs/String.h>
#include <std_msgs/Bool.h>
#include <std_msgs/Float32.h>
#include <hri_msgs/IdsMatch.h>
#include <hri_msgs/IdsList.h>
#include <std_srvs/Empty.h>
#include <ros/ros.h>
#include <geometry_msgs/TransformStamped.h>
#include <tf2_ros/transform_listener.h>
#include <hri/hri.h>
#include <hri/base.... |
//=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... |
#include <iostream>
#include <sstream>
#include "ggl/chem/MoleculeComponent.hh"
#include "ggl/chem/MoleculeComponent_GMLparser.hh"
#include "ggl/chem/SMILESparser.hh"
#include "ggl/chem/SMILESwriter.hh"
#include "ggl/chem/MoleculeUtil.hh"
#include "sgm/Graph_boost.hh"
#include "utilPrintGraph_Interface.icc"
using ... |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2016 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundat... |
#include "CookaPhone.h"
#include <SoftwareSerial.h>
#include "Enums.h"
#include "Globals.h"
#include "Util.h"
#include "MemoryFree.h"
CookaPhone::CookaPhone() {
hasGPRS = false;
networkTimeEnabled = false;
fonaSS.begin(4800);
connect();
}
bool CookaPhone::sendData(byte checkpointNumber, int vehicleNumber, un... |
/*
* Copyright (C) 2018 Red Hat, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* GnuTLS is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your opt... |
#include <string>
#include <iostream>
#include <vector>
#ifdef USE_PCL
#include <pcl/point_types.h>
#include <pcl/io/ply_io.h>
#include <pcl/octree/octree.h>
#endif
using namespace std;
#pragma pack(push)
#pragma pack()
struct PointCloudComparisonResult {
// This must manually be kept synchronized with PointClou... |
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <random>
#include <system_error>
#include <fcntl.h>
#ifdef _WIN32
# include <io.h>
#else
# include <unistd.h>
# include <sys/mman.h>
#endif
#include <sys/stat.h>
#include "allocator.hp... |
#include "bomb.h"
Bomb::Bomb(glm::vec3 new_position) {
this->position = new_position;
this->speed = 0.0f;
this->rotation = 0.0f;
const int n = 16;
GLfloat vertex_buffer_data[n * 9] = {};
for(int i=0;i<n;i++){
vertex_buffer_data[9 * i + 0] = radius_1 * cos(2 * M_PI/n * i);
vert... |
#include <assert.h>
#include <fstream>
#include <iostream>
#include <regex>
#include <sstream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
typedef uint8_t u1;
typedef uint16_t u2;
typedef uint32_t u4;
// Target: CAP 2.1
vector<char> read_file_binary(const string &path) {
ifstream f... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
/** @file
* \brief Resource compiler for game engine.
*
* Reads in PNG files and generates a packed resource file along with a
* Resources.h file. The Resources.h file contains #defines for each resource,
* which are ultimately indexes into an array of BBitmaps in the game engine.
*
* TODO:
* Support song data... |
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistribu... |
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
#include <sstream>
#include <cmath>
#include <set>
#include <map>
#include <ctime>
#include <mpi.h>
#include <bits/stdc++.h>
// An instance holds RGB values, and if it's from the training set,
// an int qualifying if the value is a skintone or ... |
/*
* ibeo_scala.cpp - ROS implementation of the Ibeo ScaLa driver.
* Copyright (C) 2017 AutonomouStuff, Co.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* v... |
#include <Eigen/Dense>
#include <Eigen/Core>
#include <iostream>
#include <fstream>
#include <utility>
#include <cmath>
#include <experimental/random>
#include <cstdlib>
#include <Eigen/unsupported/Eigen/FFT>
using namespace Eigen;
#include "kshape.h"
typedef Matrix<long double,Dynamic,Dynamic> M... |
#include "nm_math.hpp"
#include <glm/geometric.hpp>
bool nm_math::ray_sphere(float *t, glm::vec3 ray_o, glm::vec3 ray_d, glm::vec3 sphere_o, float sphere_r)
{
glm::vec3 v = ray_o - sphere_o;
float discriminant = powf(glm::dot(v, ray_d), 2) - (glm::dot(v, v) - powf(sphere_r, 2));
if (discriminant < 0) {
... |
#include <vector>
#include <string>
#include <unordered_map>
#include <memory>
#include <iostream>
#include <functional>
#include <cctype>
#include <SDL.h>
#include <SDL_opengl.h>
#include <SDL_net.h>
#include <physfs.h>
#include <physfsrwops.h>
#include <res_path.h>
#include <scheme-defs.h>
#include <sch... |
#include "decisions.hpp"
#include "graph.hpp"
#include "types.hpp"
#include <stdexcept>
#include <unordered_set>
namespace simulator {
using gitc::bomb_container;
using gitc::bomb_id;
using gitc::bomb_info;
using gitc::decision_list;
using gitc::duration;
using gitc::factory_container;
using gitc::factory_id;
using ... |
/*
-------------------------------------------------------------------------------
Copyright (c) 2019 <NAME>.
Contributor(s): none yet.
-------------------------------------------------------------------------------
This software is provided 'as-is', without any express or implied
warranty. In no event w... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "Draw2D.h"
#include "AppSDL2OGL.h"
#include "fastmath.h"
#include "Vec2.h"
#include "geom2D.h"
//#include "TerrainSimplex.h"
#include "CastleWorld.h"
#include "... |
/* Copyright 2007-2015 QReal Research Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
// DHCP look-up functions based on the udp client
// http://www.ietf.org/rfc/rfc2131.txt
//
// Author: <NAME>
// Rewritten and optimized by Jean-<NAME>, http://jeelabs.org/
//
// Rewritten dhcpStateMachine by <NAME>
// as to implement dhcp-renew when lease expires (jun 2012)
//
// Various modifications and bug fixes co... |
// LicenseManagerConfig.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2008 <NAME> (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#... |
#include <unordered_map> //std::unordered_map
#include <iostream> //std::cout std::cerr
#include <fstream> //std::ifstream
#include <string> //std::string
#include <vector> //std::vecto
#include <cmath> //std::ceil
#include <iterator> // std::distance
#include "general.hpp"
#include "kmers.hpp"
#include "DNA.hpp"
#inc... |
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <glad/glad.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <SDL.h>
#include <SDL_opengl.h>
#include "shader.h"
#include "object.h"
#include "frameBuffer.h"
#include "logging.h"
using glm::vec2;
using glm::vec3;
using glm::ma... |
#include "library.h"
// FUNCTIONS USED BY THE WHOLE PROGRAM
double calculate_height(const double velocity, const double time){
return (velocity*time - 16.087*time*time + 0.5);
}
double calculate_time(const double velocity){
return 2*velocity/32.174;
}
double calculate_distance(const double velocity, const double ... |
//
// table_summary.cpp
//
// summarize a data table
//
// Copyright 2019 <NAME> @ CSHL
//
#include <algorithm>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <climits>
#include "error.h"
... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "EBTGAStrategy.H"
#include "NamespaceHeader.H"
//-----------------... |
#include <stdexcept>
#include <string.h>
#include <cassert>
#include <deque>
#include "utils/file.h"
#include "utils/utils.h"
#define DEBUG_LEVEL 5
#include "common/debug.h"
struct Floor {
uint16_t microchips;
uint16_t generators;
Floor() {
this->microchips = 0;
this->generators = 0;
}
uint16_t getPairs(... |
//
// Created by codesgeeking on 2020/9/17.
//
#ifdef linux
#include <sys/socket.h>
#endif
#include "Session.h"
#include <vector>
static const uint8_t PACKAT_01[3] = {0x05, 0x01, 0x00};
static const uint8_t PACKAT_02[3] = {0x05, 0x01, 0x00};
static const uint8_t SEND_PACKAT_01[2] = {0x05, 0x00};
static const uint8... |
#include "CollisionFeature.h"
#include "FixedFunctionPrimitives.h"
#include "glad/glad.h"
#include "imgui/imgui.h"
#include "imgui/ImGuizmo.h"
#include <iostream>
void CollisionFeature::Initialize(int width, int height) {
DemoBase::Initialize(width, height);
size_imgui_window = true;
manipulator = manTranslation.a... |
#include "cykSDH_with_ferns.h"
#include "cykTools.h"
#include<iomanip>
#include <cmath>
using namespace std;
using namespace arma;
SDH_with_ferns::SDH_with_ferns(){
maxItr = 15;
g_lambda = 1; // original 1.0
nu = 0.0001;
nbits = 32;
if_classification = true;
}
void SDH_with_ferns::init(sdh_with_fe... |
//
// Created by spera on 11/02/19.
//
#include <lookup_and_phases.h>
#include <string>
std::string Lookup::literal(Lookup::Phases A){
switch(A){
case Lookup::PreMainSequence: return "PreMainSequence"; break;
case Lookup::MainSequence: return "MainSequence"; break;
case Lookup::TerminalMa... |
//#define GLIBCXX_PARALLEL
#include <algorithm>
#include <iostream>
#include <vector>
#include <random>
#include <climits>
#include <cstdlib>
#include <iomanip>
#include "segment_g.h"
#include "pbbslib/get_time.h"
#include "pbbslib/sequence_ops.h"
#include "pbbslib/parse_command_line.h"
using namespace std;
int str... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2014 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the... |
#include "altruct/structure/math/modulo.h"
#include "structure_test_util.h"
#include "gtest/gtest.h"
#include <functional>
using namespace std;
using namespace altruct::math;
using namespace altruct::test_util;
typedef moduloX<int> modx;
TEST(modulox_test, constructor) {
modx m1;
EXPECT_EQ(... |
/*
* HomieLEDCTNode.cpp
*
* Created on: 16.03.2019
* Author: ian
*/
#include <HomieLEDCTNode.h>
#include <LoggerNode.h>
/* gamma 2.8
const uint16_t PROGMEM HomieLEDCTNode::gamma8[] = {
0,0,0,0,0,0,0,1,1,1,2,2,3,3,4,5,
6,7,8,10,11,13,15,17,19,21,24,26,29,32,35,39,
42,46,50,54,59,63,68,73,79,84,90,96,... |
/*
* FileConn.cpp
*
* Created on: 2013-12-9
* Author: <EMAIL>
*/
#include "FileConn.h"
#include "TokenValidator.h"
#include <sys/stat.h>
static ConnMap_t g_file_conn_map;
static UserMap_t g_file_user_map;
static char g_current_save_path[BUFSIZ];
static uchar_t g_tmp_file_buf[PARTIAL_FILE_SIZE];
static ch... |
// (C) Copyright 1996,1998 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warr... |
#include "console_client.hpp"
#include <chrono>
#include <cstdio>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <iterator>
#include <sstream>
#include <utility>
#include <vector>
#include "gds_uuid.hpp"
using namespace gds_lib;
using namespace gds_lib::gds_types;
GDSConsoleClient::GDSConsole... |
/*
assign_util.cpp
Copyright 2020 <NAME>
*/
#include "assign_util.h"
assign_utilities::destination_information::destination_information(
const std::string& dest_location,
const std::string& fetch_instructions,
const std::string& address_for_lea,
bool in_register,
bool can_use_lea,
MoveInstru... |
#include <sys/stat.h>
#include <stdio.h>
#include <stdarg.h>
#include <getopt.h>
#include <errno.h>
#include <map>
#include <vtkSmartPointer.h>
#include <vtkExtractEdges.h>
#include "vtkUnstructuredGrid.h"
#include "vtkUnstructuredGridReader.h"
#include "H5hut.h"
#if !defined (PARALLEL_IO)
#define MPI_Init(argc, a... |
/**
* Copyright (c) 2015, <NAME>, Quintelligence d.o.o. and contributors
* All rights reserved.
*
* This source code is licensed under the FreeBSD license found in the
* LICENSE file in the root directory of this source tree.
*/
/////////////////////////////////////////////////
// Find-File-Descriptor
#ifdef GL... |
// Functions to create, delete and query AST (Abstract Syntax Tree) nodes.
#include "headers/ast.h"
#include "headers/token.h"
#include "headers/parser.h"
#include "headers/arena.h"
#include "headers/ast.h"
#include "headers/common.h"
#include "headers/context.h"
#include <stdlib.h>
#include <stdio.h>
#incl... |
// copyright to SohtaMei 2019.
#include <stdint.h>
#include <Arduino.h>
#ifndef ESP32
#include <avr/interrupt.h>
#endif
#include "analogRemote.h"
static uint8_t port_irrx;
static void (*funcLed)(uint8_t onoff) = NULL;
enum {
STATE_H_IDLE,
STATE_H_HDR,
STATE_H_BIT,
STATE_H_ANALOG,
STATE_L_HDR,
STATE_L_BIT,
S... |
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
/*
Copyright 2022 NVIDIA CORPORATION
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... |
#include "Raytracer.h"
#include "Console.h"
#include "Intersect.h"
#include "SceneGraph.h"
#include "Thread.h"
struct RaytraceThread : public Thread
{
public:
int run()
{
Sleep(1);
Console::Out() << "Raytracing started...";
camera.raytrace(threadNo, numThreads, stop, sc... |
#include "structured_point_cloud_chain.h"
#define num_nearest_neighbors 1
Vector3 EdgeVertex::ApplyEdgeTransform(Vector3 p) const {
Vector4 p_aug;
p_aug << p, 1.0;
p_aug = edge * p_aug;
return Vector3(p_aug(0), p_aug(1), p_aug(2));
}
std::vector<Matrix4> StructuredPointCloudChain::GetCurrentEdges() const {
... |
/*****************************************************************************
*
* Rokko: Integrated Interface for libraries of eigenvalue decomposition
*
* Copyright (C) 2014 by <NAME> <<EMAIL>>
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://ww... |
/* MD4C.C - RSA Data Security, Inc., MD4 message-digest algorithm
Modified from original version published in RFC1320 by
<NAME> (<EMAIL>)
*/
/* Copyright (C) 1990-2, RSA Data Security, Inc. All rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Da... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
/*
* Copyright (c) 2018-2020, <NAME> <<EMAIL>>
* Copyright (c) 2021, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the ... |
#include "stdafx.h"
#include "input_helper_cue.h"
#include "../SDK/mem_block_container.h"
namespace {
class input_dec_binary : public input_decoder_v2 {
enum {
m_rate = 44100,
m_bps = 16,
m_channels = 2,
m_channelMask = audio_chunk::channel_config_stereo,
m_sampleBytes = (m_bps/8)*m_chan... |
/***********************************************************************
* Copyright 2011-2012 Computer Graphics Group RWTH Aachen University. *
* All rights reserved. *
* Distributed under the terms of the MIT License (see LICENSE.TXT). *
***************************... |
// Copyright (c) 2018 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
//
// buildSignedDistanceField function is adopted from Christopher Batty's code
// https://cs.uwaterloo.ca/... |
/*
* ISC License
*
* Copyright (C) 1997-2018 by
* <NAME>
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 no... |
/*
* Copyright (C) 2008 - 2012 TrinityCore <http://www.trinitycore.org/>
*
* Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation;... |
//===--- SILGenGlobalVariable.cpp - Lowering for global variables ---------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
#define MAX_DEPTH 4
#define MAX_ANGLE 5
#define MAX_THRUST 100
#define K 3
#define TAU 6.283185307179586232
#define PI TAU / 2
// Step:
// * Populate sim world
// * Compute MAX_DEPTH ne... |
/* ************************************************************************
* Copyright 2018-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "cblas_interface.hpp"
#include "norm.hpp"
#include "rocblas.hpp"
#include "rocblas_init.hpp"
#include "... |
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
#define Pi 3.141592653568979323846
#define eps 1e-8
#define sgn(d) (( (d) < -eps)? (-1): ( ( (d) > +eps)? (+1): (0)))
#define Sqr(x) ((x)* (x))
#define fabs(x) ((x) < 0? ( -(x)): (x))
#define Deg2Red(deg) ((deg) * Pi / 180.0)
#define Red2Deg(... |
/***************************************************
This is a library for the FXAS21002C GYROSCOPE
Designed specifically to work with the Adafruit FXAS21002C Breakout
----> https://www.adafruit.com/products/
These sensors use I2C to communicate, 2 pins (I2C)
are required to interface.
Adafruit invests t... |
#include "Etterna/Globals/global.h"
#include "RageSurface.h"
#include "RageUtil/Utils/RageUtil.h"
#include <stb/stb_image.h>
#include <climits>
int32_t
RageSurfacePalette::FindColor(const RageSurfaceColor& color) const
{
for (auto i = 0; i < ncolors; ++i)
if (colors[i] == color)
return i;
return -1;
}
/* XXX: ... |
#include "OscMessage.h"
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#if _WIN32
#include <winsock2.h>
#define tosc_strncpy(_dst, _src, _len) strncpy_s(_dst, _len, _src, _TRUNCATE)
#else
#include <netinet/in.h>
#define tosc_strncpy(_dst, _src, _len) strncpy(_dst, _src, _len)
#endif
#if... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <pthread.h>
#include <gsl/gsl_rng.h>
#include "linelib.h"
char attribute_file[MAX_STRING], center_file[MAX_STRING], hin_file[MAX_STRING], output_file[MAX_STRING], output_center_file[MAX_STRING], attribute_types[MAX_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.