text
stringlengths
5.71k
33.7k
#include "arrmor_detection.h" // 计算两个点之间的距离 double calc_distance(Point2f p1, Point2f p2) { return pow(pow(p1.x-p2.x,2)+pow(p1.y-p2.y,2),0.5); } armor::armor(){} armor::armor(const LED_Stick& L1, const LED_Stick& L2){ Led_stick[0]= L1; Led_stick[1]= L2; error_angle = fabs(L1.rect.angle - L2.rect.angle...
#include "ProjHelperFun.h" #include "Constants.h" #include "TridagPar.h" void updateParams(const unsigned g, const REAL alpha, const REAL beta, const REAL nu, PrivGlobs& globs) { // parallelizable directly since all reads and writes are independent. // Degree of parallelism: myX.size*myY.size // Access to...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "gdef.h" #include <limits> #include <vector> #include "gpos.h" #include "gsub.h" #include "layout.h" #include "maxp.h" // GDEF - The Glyph...
#include <cassert> #include "HyperionConfig.h" #include "Poco/RegularExpression.h" #include "Poco/StringTokenizer.h" #include "Poco/Timestamp.h" #include "Poco/Delegate.h" #include "Poco/NumberParser.h" #include "hyperion/Hyperion.h" #include "hyperion/ImageProcessorFactory.h" #include "leddevice/LedDevice.h" #incl...
// -*- mode: c++; indent-tabs-mode: nil; -*- // // Copyright (c) 2009-2012 Illumina, Inc. // // 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 limit...
// Copyright 2017 Google Inc. // // 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...
#include <stddef.h> #include <cstring> #include <assert.h> #include "sd_spi.hpp" #include "FreeRTOS.h" #include "task.h" using namespace drv; using namespace hal; #define WAIT_RESPONSE_CNT 10 #define TRANSMITTER_BIT 6 #define END_BIT 0 #define DATA_TOKEN_CMD17_18_24 0xFE #define DATA_TOKEN_CMD25 0xFC #...
/* ESP8266 Simple Service Discovery Copyright (c) 2015 <NAME> Original (Arduino) version by <NAME>, July 23, 2014. Can be found at: https://github.com/nomadnt/uSSDP License (MIT license): Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
/** * @file inter_code_generator.h * @brief 中间代码生成器类具体实现 */ #include "../include/inter_code_generator.h" #define POS(cur) cur->line_number, cur->pos map<string, VARIABLE_INFO_ENUM> Info::VAR_INFO_MAP = { {"double", VARIABLE_INFO_ENUM::DOUBLE}, {"float", VARIABLE_INFO_ENUM::DOUBLE}, {"int"...
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001-2003 <NAME>. * * All rights reserved. Email: <EMAIL> Web: www.q12.org * * ...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
#include "minnesota_potential.hpp" minnesotaPotential::minnesotaPotential(int numberOfParticles, double density) { L = pow((numberOfParticles)/density, 1./3.); piOverL = M_PI/L; VRfactor = V_0R/(L*L*L)*pow(M_PI/kappa_R,1.5); VTfactor = -V_0T/(L*L*L)*pow(M_PI/kappa_T,1.5); VSfactor = -V_0S/(L*L*L)*pow(M_PI/...
// Copyright 2017 Google Inc. // Copyright 2020 The Open GEE Contributors // // 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 // // Unles...
// *************************************************************************** // BamWriter_p.cpp (c) 2010 <NAME> // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- // Last modified: 25 October 2011 (DB) // ---------------------------------...
/* * CANopen main program file for Linux SocketCAN. * * @file main * @author <NAME> * @copyright 2015 <NAME> * * This file is part of CANopenSocket, a Linux implementation of CANopen * stack with master functionality. Project home page is * <https://github.com/CANopenNode/CANopenSocket>. CANopenS...
//////////////////////////////////////////////////////////////////////////////// // // Copyright 2013 - 2015, Göteborg Bit Factory. // // 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 witho...
/* <NAME> Cisco Systems, Inc. */ /* Copyright (c) 2015-2015 Cisco Systems, Inc. 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...
#include "nau/geometry/box.h" #include "nau/math/vec3.h" #include "nau/geometry/vertexData.h" #include "nau/material/materialGroup.h" using namespace nau::geometry; using namespace nau::math; using namespace nau::render; using namespace nau::material; Box::Box(void) : Primitive() { float n = 1.0f; std::shared_...
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (C) 2020, Raspberry Pi (Trading) Ltd. * * egl_preview.cpp - X/EGL-based preview window. */ #include <map> #include <string> // Include libcamera stuff before X11, as X11 #defines both Status and None // which upsets the libcamera headers. #include "core/...
// // FishQuizPopup.cpp // PehlaSchool // // Created by <NAME> on 9/3/18. // // #include <Menu/CoopScene.hpp> #include "FishQuizPopup.hpp" #include "ui/CocosGUI.h" #include "Managers/UserManager.hpp" #include "Managers/LanguageManager.hpp" #include "Managers/GameSoundManager.h" #include "Utils/TodoUtil.h" #incl...
#include "r1Model.h" #include "ExternalTools/Assimp/include/Importer.hpp" #include "ExternalTools/Assimp/include/scene.h" #include "ExternalTools/Assimp/include/postprocess.h" #include "ExternalTools/MathGeoLib/include/Math/Quat.h" #include "Modules/m1Objects.h" #include "Objects/Object.h" #include "Objects/Componen...
//-------------------------------------------------------------------------- // Code generated by the SmartSoft MDSD Toolchain // The SmartSoft Toolchain has been developed by: // // Service Robotics Research Center // University of Applied Sciences Ulm // Prittwitzstr. 10 // 89075 Ulm (Germany) // // Information abo...
/************************************************************************************ * * Sporks, the learning, scriptable Discord bot! * * Copyright 2019 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
#include "models/filename.h" #include <QCollator> #include <QJSEngine> #include <QRegularExpression> #include <QSettings> #include <algorithm> #include "filename/ast/filename-node-variable.h" #include "filename/ast-filename.h" #include "filename/filename-cache.h" #include "filename/filename-execution-visitor.h" #includ...
/*************************************************************************** XML Configuration File Handling. Load Settings. Load & Save Hi-Scores. Copyright <NAME>. See license.txt for more details. ***************************************************************************/ // see: http://www.b...
#include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <string> #include <cstring> PFNGLGENBUFFERSPROC glGenBuffers; PFNGLBINDBUFFERPROC glBindBuffer; PFNGLBINDBUFFERRANGEPROC glBindBufferRange; PFNGLBUFFERDATAPROC glBufferData; PFNGLMAPBUFFERPROC glMapBuffer; PFNGLUNMAPBUFFERPROC glUnmapBuffer; PFNGLDELETEBUFF...
// // kfilter.cpp // carma_pack // // Created by <NAME> on 6/27/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #include <random.hpp> #include "include/kfilter.hpp" // Global random number generator object, instantiated in random.cpp extern boost::random::mt19937 rng; // Object containing some common r...
#include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <iostream> #include "Core/Shader.h" #include "Camera/CenteredCamera.h" #include "Model.h" #include "Light.h" #include "Models/Lamp.h" #include "Models/Cube.h" #include...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "dexoperatortx.h" #include "config/configuration.h" #include "main.h" #include ...
/*************************************************************************** * Copyright 1998-2017 by authors (see AUTHORS.txt) * * * * This file is part of LuxRender. * * ...
#include <Geometry/Geometry.h> #include <Strategy2/Field.h> #include "vision.hpp" using namespace vision; std::map<unsigned int, Vision::RecognizedTag> Vision::run(cv::Mat raw_frame) { in_frame = raw_frame.clone(); preProcessing(); findTags(); //findElements(); return pick_a_tag(); } void Vision::preProcessing...
#include <config.h> #include <mwoibn/loaders/robot.h> #include <mwoibn/robot_class/robot_ros_nrt.h> #include <mwoibn/robot_class/robot_xbot_nrt.h> #include <mwoibn/visualization_tools/rviz_track_point.h> #include <mwoibn/point_handling/robot_points_handler.h> // std::vector<mwoibn::Vector3> // contactPoints(mwoibn::...
//===- Timing.cpp - Execution time measurement facilities -----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General...
// system include files #include <memory> // user include files #include "Calibration/EcalCalibAlgos/interface/ECALpedestalPCLHarvester.h" #include "CondCore/DBOutputService/interface/PoolDBOutputService.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/EventSetup.h" #include "C...
//xugong5 problem: //1 tracking miss //2 tf_old_data and process die //xugong6 solve tf_old_data problem , tf::TransformListener lr(ros::Duration(100)); // changshu_2 base on xugong6 ,change parameter related with vehicle ,Lidar height #include <ros/ros.h> #include <sensor_msgs/point_cloud_conversion.h> #include <se...
// $Id: ngt.cpp 245 2009-04-02 14:05:40Z fabio_brugnara $ /****************************************************************************** IrstLM: IRST Language Model Toolkit Copyright (C) 2006 <NAME>, ITC-irst Trento, Italy This library is free software; you can redistribute it and/or modify it under the terms of the...
/* * Copyright (C) 2007 <NAME> <<EMAIL>> * * This file is part of FFmpeg. * * FFmpeg 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 * version 2.1 of the License, or (at your option) any ...
#include "airplane.h" #include "main.h" Airplane::Airplane(float xs, float ys, float zs, color_t color) { this->position = glm::vec3(xs, ys, 0); this->rotation_x = 0; this->rotation_z = 0; this->rotation_y = 0; this->fuel = 1000; this->orc[0][0] = 1; this->orc[0][1] = 0; this->orc[0][2...
#include "Graphics.hpp" #include "../PHL.hpp" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../Resources.hpp" PHL_Surface db = {0}; PHL_Surface backBuffer = {0}; PHL_Surface dbAlt = {0}; PHL_Surface backBufferAlt = {0}; const int cWidth = 320; const int cHeight = 240; Screen scrnTop = { GF...
/* * PathNetwork.cpp * * Created on: Dec 15, 2015 * Author: jcassidy */ #include "PathNetwork.hpp" #include "OSMDatabase.hpp" #include <boost/container/flat_map.hpp> using namespace std; const char* OSMWayFilterRoads::includeHighwayTagValueStrings_[] = { "residential", "primary", "primary_li...
#include "CardAreaDetection.h" #include <opencv2/videostab/ring_buffer.hpp> // defines includes #include <opencv2\imgcodecs\imgcodecs_c.h> #include <opencv2\imgproc\types_c.h> using namespace cv; IDAP::CardAreaDetection::CardAreaDetection(int _id, int _playerID, int _sizeID, int _xPos, int _yPos, int _width, ...
#include <hal.h> #include <algorithm> namespace hal { using namespace device; namespace internal { template<uint32_t x, uint32_t b, uint8_t nbits> static constexpr uint32_t encode() { static_assert(x < (1 << nbits), "bit field overflow"); return ((x & (1 << 0)) ? (b << 0) : 0) | ((x & (1 << 1)) ? (...
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
// // Academic License - for use in teaching, academic research, and meeting // course requirements at degree granting institutions only. Not for // government, commercial, or other organizational use. // // File: StarshotACS1.cpp // // Code generated for Simulink model 'StarshotACS1'. // // Model version ...
/***************************************************************************** * * main.cpp file for the saliency program VOCUS2. * A detailed description of the algorithm can be found in the paper: "Traditional Saliency Reloaded: A Good Old Model in New Shape", <NAME>, <NAME>, <NAME>, in Proceedings of the IEEE Inter...
#define RUN_ME_WITH_SH /* g++ -Wall -std=c++14 -g -DDEBUG -DIL_STD -DVERBOSE -o ${0%.*} ${0} \ -I/opt/ibm/ILOG/CPLEX_Studio1261/cplex/include \ -I/opt/ibm/ILOG/CPLEX_Studio1261/concert/include \ -L/opt/ibm/ILOG/CPLEX_Studio1261/cplex/lib/x86-64_linux/static_pic \ -L/opt/i...
#include "ConvertersX11.h" #include <X11/Xlib.h> #include <X11/cursorfont.h> #include <X11/keysym.h> #include "ResourceManager.h" #define XES(et) case et: return #et namespace tk { std::string xEventToStr(int eventType) { switch(eventType) { case 0: return "error?"; case 1: return "reply?"; XES(KeyPress); XES(K...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "PetscCompGridVTO.H" #include "FluxBox.H" #include "IntVectSet.H" #...
#include "TextureAtlas.h" #include <frm/core/Texture.h> #include <apt/Image.h> #ifdef frm_TextureAtlas_DEBUG #include <imgui/imgui.h> static eastl::vector<frm::TextureAtlas::Region*> s_dbgRegionList; #endif using namespace frm; using namespace apt; /***************************************************************...
#include <string> #include <R.h> #include <Rinternals.h> #include <R_ext/GraphicsEngine.h> #include "systemfonts.h" #include "utils.h" #include "FontDescriptor.h" // these functions are implemented by the platform ResultSet *getAvailableFonts(); ResultSet *findFonts(FontDescriptor *); FontDescriptor *findFont(FontDe...
/** * @file * @brief Example node to publish raw sensor output on ROS topics * * ROS Parameters * sensor_hostname: hostname or IP in dotted decimal form of the sensor * udp_dest: hostname or IP where the sensor will send data packets * lidar_port: port to which the sensor should send lidar data * imu_port: port...
/* * Copyright 2001-2008, <NAME>, <EMAIL> * This file may be used under the terms of the MIT License. */ //! Transaction and logging #include "Journal.h" #include "Inode.h" #include <Drivers.h> #include <util/kernel_cpp.h> struct run_array { int32 count; int32 max_runs; block_run runs[0]; int32 CountRuns...
#include <trident/ml/batch.h> #include <trident/kb/kb.h> #include <trident/kb/querier.h> #include <fstream> #include <algorithm> #include <random> #include <unordered_map> BatchCreator::BatchCreator(string kbdir, uint64_t batchsize, uint16_t nthreads, const float valid, const float test, ...
/*************************************************************************** * timing.cc -- Functions related to computing crack timing and keeping * * track of rates. * * * **********...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
/** * @file * This file is part of SeisSol. * * @author <NAME> (rettenbs AT in.tum.de, http://www5.in.tum.de/wiki/index.php/Sebastian_Rettenberger,_M.Sc.) * * @section LICENSE * Copyright (c) 2013, SeisSol Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * ...
/*IMa2p 2009-2015 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <NAME> */ #undef GLOBVARS #include "imamp.hpp" #include "update_gtree_common.hpp" #include "updateassignment.hpp" /*********** LOCAL STUFF **********/ static struct genealogy_weights holdallgweight_t_RY; static struct genealogy_weights holdgweight_t_RY[M...
#include <crv.h> #include <crvBezier.h> #include <crvSnap.h> #include <gmi_analytic.h> #include <gmi_null.h> #include <apfMDS.h> #include <apfMesh2.h> #include <apf.h> #include <PCU.h> #include <mth.h> #include <mth_def.h> #include <pcu_util.h> /* * This contains all the tests for bezier subdivision */ void vertFun...
#include "state_lattice_planner/state_lattice_planner_ros.h" StateLatticePlannerROS::StateLatticePlannerROS(void) :local_nh("~") { local_nh.param("HZ", HZ, {20}); local_nh.param("ROBOT_FRAME", ROBOT_FRAME, {"base_link"}); local_nh.param("N_P", N_P, {10}); local_nh.param("N_H", N_H, {3}); local_nh.p...
#include "stdafx.h" #include "OrientationModifier.h" #include "../interface/PropertyChoice.h" #include "../interface/PropertyInt.h" #include "../interface/PropertyCheck.h" #include "HeeksConfig.h" void COrientationModifierParams::set_initial_values() { HeeksConfig config; config.Read(_T("OrientationModifier_m_spa...
//===--- HFSortPlus.cpp - Cluster functions by hotness --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// // FPolyPath.cpp // DigMMMac // // Created by <NAME> on 3/30/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #include "FPolyPath.hpp" #include "FApp.hpp" #include "core_includes.h" FPolyPathInterp::FPolyPathInterp() { mValid = false; mIndexStart = -1; mIndexEnd = -1; mPercentInterp =...
#include "UIController.h" #include "UIElement.h" #include "Slider.h" #include "Button.h" #include "Label.h" #include "Image.h" #include "Graph.h" using namespace ci; using namespace ci::app; using namespace std; using namespace MinimalUI; class FontStyleExc; int UIController::DEFAULT_PANEL_WIDTH = 216; int UIControl...
#include <cgv/base/node.h> #include <cgv/base/register.h> #include <cgv/gui/event_handler.h> #include <cgv/gui/provider.h> #include <cgv/gui/key_event.h> #include <cgv/gui/mouse_event.h> #include <cgv/utils/file.h> #include <cgv/utils/dir.h> #include <cgv/render/drawable.h> #include <cgv/render/attribute_array_binding....
#include "StdAfx.h" #include "WindowData.h" #include "Draw.h" #include "HandMotionLawsCustom.h" #include "Position.h" extern bool zoom; using namespace std; using namespace HandMoves; //------------------------------------------------------------------------------- bool RepeatMove (MyWindowData &wd); bool Make...
#include "WMap.hpp" //------------------------------------------------------------------------------------------------------------------------------------------------- WMap::WMap(MainController* pC, Data* pR) { c = pC; r = pR; timer = new QTimer; QObject::connect(timer,SIGNAL(timeout()),...
/*****************************************************************/ /* NAME: <NAME> */ /* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */ /* FILE: EchoVar.cpp */ /* DATE: July 22 2006 ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <raids/redis_cmd.h> #include <raids/redis_msg.h> #include <raids/redis_exec.h> #include <raikv/work.h> #include <raikv/key_hash.h> #include <raimd/md_set.h> #include <raids/set_bits.h> static const char * set_status_string[] = { "o...
//////////////////////////////////////////////////////////////////////// // Build MSX1 palette // // <NAME> (<EMAIL>) // // FLAGS: -std=gnu++14 -g `pkg-config opencv --cflags --libs` -Ofast -lpthread -fopenmp -lgomp -Wno-format-nonliteral #include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/hig...
#include "PointCloud.h" Camera *PointCloud::PointCloud::camera = new Camera(298.44268798828125, 247.51919555664062, 615.1951904296875, 615.19525146484375); PointCloud::PointCloud() { color = cv::Mat(0, 3, CV_32FC1); depth = cv::Mat(0, 3, CV_32FC1); } PointCloud::PointCloud(vector<char> *color_buffer, vector<char...
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certai...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/btree/btree.h> #include <vespa/vespalib/btree/btreebuilder.h> #include <vespa/vespalib/btree/btreenodeallocator.h> #include <vespa/vespalib/btree/btreeroot.h> #include <vespa/vespalib/btree...
// SPDX-License-Identifier: Apache-2.0 /** * Copyright (C) 2020 <NAME> <<EMAIL>> * * @file unittest_nntrainer_modelfile.cpp * @date 16 July 2020 * @brief NNTrainer datafile parmeterized tester. * @see https://github.com/nnstreamer/nntrainer * @author <NAME> <<EMAIL>> * @bug No known bugs except for NYI items *...
#include "all_defines.hpp" #include "types.hpp" #include "processes.hpp" #include "executors.hpp" #include "history.hpp" #include <iostream> /*----------------------------------------------------------------------------- Cons -----------------------------------------------------------------------------*/ Object::ref...
/////////////////////////////////////////////////////////////////////////////// // SORT: A Simple, Online and Realtime Tracker // // This is a C++ reimplementation of the open source tracker in // https://github.com/abewley/sort // Based on the work of <NAME>, <EMAIL>, 2016 // // <NAME>, <EMAIL>, 2016 // // This ...
// Copyright 2001 Google 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 by applicable...
#include <exception> #include <iostream> #include <sstream> #include <string> #include <vector> #define __CL_ENABLE_EXCEPTIONS #include <CL/cl.hpp> const bool DEBUG = false; using namespace std; const char *readableStatus(cl_int status); void showPlatformAndDeviceInfo(const cl::Platform& platform, int...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Musical constraints problems * Melodic (or Matrix) Interpolation * Main author: * <NAME> ircam 2009 * */ #include <gecode/driver.hh> #include <gecode/int.hh> #include <gecode/minimodel.hh> #include <gecode/set.hh> #include <cstdlib> #inc...
#include "DesignRuleChecker.h" int DesignRuleChecker::checkAcuteAngleViolationBetweenTracesAndPads() { std::cout << "Starting " << __FUNCTION__ << "()..." << std::endl; std::cout << std::fixed << std::setprecision((int)round(std::log(mInputPrecision))); int numViolations = 0; // Iterate nets for ...
// // opencv_artoolkit_main.cpp // nftSimple // // Created by <NAME> on 7/20/20. // // // opencv_artoolkit_github.cpp // // // Created by <NAME> on 7/20/20. // //-----------------------//#include "ar_toolkit.h"--------------- #ifdef _WIN32 # include <windows.h> #endif #include <stdio.h> #ifdef _WIN32 # define ...
/* ======================================== * Ditherbox - Ditherbox.h * Copyright (c) 2016 airwindows, All rights reserved * ======================================== */ #ifndef __Ditherbox_H #include "Ditherbox.h" #endif AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new Ditherbox(aud...
/*------------------------------------------------------------------------- * * pgxc_ctl.c * * Main module of Postgres-XC configuration and operation tool. * * Copyright (c) 2013 Postgres-XC Development Group * *------------------------------------------------------------------------- */ /* * PXC_CTL Pos...
/** * VGMTrans (c) - 2002-2021 * Licensed under the zlib license * See the included LICENSE for more information */ #include "pch.h" #include <algorithm> #include <memory> #include <numeric> #include "DLSFile.h" #include "VGMInstrSet.h" #include "VGMSamp.h" #include "Root.h" using namespace std; // ******* // ...
/*************************************************************************** * * $Id: StFgtCosmicTrackQA.cxx,v 1.2 2012/01/31 16:48:34 wwitzke Exp $ * Author: <NAME> (<EMAIL>), Oct. 18 2011 * *************************************************************************** * * Description: Plotting class for differ...
#include<iostream> #include<stdlib.h> #include<GL/glut.h> #include<math.h> using namespace std; /* -- Variable declarations -- */ int ch = 1; // Choice for the menu int w = 600, h = 600; //Width and height of the window int pressed; /* -- Function declarations -- */ void brick(int); // Displaying Brick void g...
#include <mvnc.h> #include <opencv2/opencv.hpp> #include <time.h> #include <cstring> #include <vector> #include <string> #include <fstream> #include <streambuf> #include <sstream> #include <memory> #include <x86intrin.h> #include <sys/types.h> #include <unistd.h> #include "gflags/gflags.h" DEFINE_bool(profile,false,"P...
#include <iostream> #include "obj.h" #include <GodotGlobal.hpp> #include <Viewport.hpp> #include <StaticBody2D.hpp> #include <SceneTree.hpp> #include <Rect2.hpp> #include <Label.hpp> #include <String.hpp> #include <wchar.h> #include <string> #include <stdlib.h> #include "City.h" #include "Player.h" #inclu...
#include "testform.h" #include "ui_testform.h" #include "mainwindow.h" TestForm::TestForm(QWidget *parent) : QWidget(parent), ui(new Ui::TestForm) { ui->setupUi(this); m_mapString.insert(1,tr("Please set the parameters, then click Test button, the test can begin to go. ")); resetTestHandle(); ...
/** * Diff formatter, based on code by <NAME>, converted to work with the * Dairiki diff engine by <NAME> * * GPL. */ #include <stdio.h> #include <string.h> #include <sstream> #include <stdarg.h> #include "Wikidiff2.h" #include <regex> void Wikidiff2::diffLines(const StringVector & lines1, const StringVector & ...
/*! \file guidedFilter_kinect_rgb.cpp * \brief An example showcasing the effect of the `Guided Filter` algorithm on color images. * \details This example demonstrates the performance of the [Guided Image Filtering] * (http://research.microsoft.com/en-us/um/people/kahe/eccv10/) * algorithm on ...
/* Copyright (c) 2019, Electrux All rights reserved. Using the BSD 3-Clause license for the project, main LICENSE file resides in project's root directory. Please read that file and understand the license terms before using or altering the project. */ #include "../src/VM/Core.hpp" #include "Core/Int.hpp" #inclu...
// // Created by ay27 on 17/6/20. // #include <stdlib.h> #include <superneurons.h> using namespace SuperNeurons; base_layer_t<float>* conv_bn_relu(base_layer_t<float>* bottom, size_t outnums, size_t kernel_h, size_t kernel_w, size_t stride, size_t pad...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condit...
/***************************************************************************** * @file gammacorrection.cpp * @brief The Role for a Gammacorrection Example application (UDP or TCP) * @author FAB, WEI, NGL, DID * @date May 2020 *-------------------------------------------------------------------...
/* * info.c * * information support functions * * Copyright (c) 2010-2012, PostgreSQL Global Development Group * contrib/pg_upgrade/info.c */ #include "postgres.h" #include "knl/knl_variable.h" #include "pg_upgrade.h" #include "access/transam.h" #include "catalog/pg_tablespace.h" static void create_rel_file...
/*************************************************************************/ /* export.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "drawing_graph.h" #include "compare_data.h" #include <iostream> #include <cstdlib> OneDay::OneDay(string one_line) { string info[5]; int count = 0; for (int i = 0; i < one_line.size(); ++i) { if (one_line[i] == ' ')count++; else { switch (count) { case 0: info[0] += one_line[i]; break; cas...
/*! \file Peridigm_EnergyReleaseDamageModel.cpp */ //@HEADER // ************************************************************************ // // Peridigm // Copyright (2011) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the ...
#include "./header.h" using namespace cv; using namespace std; void help_message(char* argv[]) { cout << "Usage: [Question_Number] [Input_Options] [Output_Options]" << endl; cout << "[Question Number]" << endl; cout << "1 Perspective warping" << endl; cout << "2 Cylindrical warping" << endl; cout << "3 Bonus per...