text
stringlengths
3.08k
22k
#include "Game.h" //Delete this #include <iostream> using namespace std; Game::Game(int width, int height) { //Constructor //Platform plat = new Platform("images/paddle_3.png", -0.125, -0.81, 0.05, 0.25); //Initial x, y coords for ball Vec center((plat->getX() + (plat->getW()/2)), (plat->getY() +...
#include <iostream> #include <fstream> #include <string> #include <map> #include <algorithm> #include "translate.hpp" using namespace std; void translate(string filename){ fstream infile, outfile, dataToFile, funcToFile; string ext = ".pre", line, aux = "", aux2 = "", rot, param = ""; size_t found; int...
#include <stdio.h> #include <stdlib.h> #include "breakzip.h" #include "breakzip_config.h" #include "crc32.h" #include "mitm_common.h" #include "mitm_stage1/mitm_stage1.h" #include "mitm_stage2.h" DECLARE_string(target); DECLARE_bool(runtests); DECLARE_bool(only_emit_correct); DEFINE_string(input_shard, "target.out.0"...
/* * Copyright (c) 2000-2019 <NAME> <<EMAIL>> * * 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...
/** * GraviT delaunay tessellation test application two. * This application reads sets of points in vtk unstructured grid format * Each file contains a set of points to be tesslated. The application * loads the points from a file into a separate GraviT mesh object. Each * mesh object is tesslated and rendered by ...
/** * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
#include <Arduino.h> #include "AdvancedADC.h" #define TIMER1_RESOLUTION 65536UL // Timer1 is 16 bit uint8_t* ADCClass::buffer8_; uint16_t* ADCClass::buffer16_; volatile uint16_t ADCClass::current_index_; uint16_t ADCClass::buffer_len_ = 0; bool ADCClass::auto_trigger_on_; uint8_t* ADCClass::channels_; uint8_t ADCCla...
#include "stdafx.h" #include "terrainloader.h" #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> using namespace graphic; using boost::property_tree::ptree; cTerrainLoader::cTerrainLoader(cTerrain2 *terrain) : m_terrain(terrain) { } cTerrainLoader::~cTerrainLoader() { } // ...
/*************************************************** This is a library for our I2C LED Backpacks Designed specifically to work with the Adafruit LED Matrix backpacks http://www.adafruit.com/category/37_103 http://learn.adafruit.com/adafruit-led-backpack/0-dot-56-seven-segment-backpack These displays use I...
/* Copyright 2009-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, distribute, sublice...
/* * PeanoPatch.cpp * * Created on: 16 Oct 2017 * Author: dan */ #include "PeanoPatch.h" #include "PeanoVariable.h" #include "PeanoPatchData.h" #include <string> #include <iostream> #include <fstream> #include <unordered_map> #include <vector> #include <limits> #include "boost/lexical_cast.hpp" #include "...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include "helper_functions.h" using std::string; using ...
/*****************************************************************/ /* NAME: <NAME> */ /* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */ /* FILE: UCMD_MOOSApp.cpp */ /* DATE: July 1st, 2016 ...
#include <iostream> #include <fstream> #include <cstdio> #include <string> #include <signal.h> #include <unistd.h> #include <cstring> #include <atomic> #include "stdlib.h" #include "stdio.h" #include <vector> #include <algorithm> #include <unordered_map> #include <utility> #include <functional> #include <cmath> #...
//#include <librealsense/rs.hpp> //#include <librealsense/rscore.hpp> #include <librealsense2/rs.hpp> #include <librealsense2/rsutil.h> #include <librealsense2/hpp/rs_processing.hpp> #include <librealsense2/rs_advanced_mode.hpp> #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include "kinectfusion.h" #in...
/* * http_pm_seq.cpp * * This demo application loads in memory all the packets contained into a specified * .pcap file. * After that, it analyzes all the HTTP traffic (reordering the TCP packets to have * a well-formed stream), and searches for specific patterns (contained into a file * specified by a command li...
#include <tkn/fb.hpp> #include <tkn/types.hpp> #include <nytl/approx.hpp> #include <nytl/matOps.hpp> #include <ostream> #include "bugged.hpp" using namespace tkn; using namespace nytl::approxOps; TEST(bits) { auto fb0 = fb32(0); EXPECT(fb0.sign, 0u); EXPECT(fb0.bar, 0u); EXPECT(fb0.nums, 0u); // number represen...
#include <iostream> #include <set> #include <vector> #include <utility> #include <cassert> #include <set> #include <algorithm> #include <unordered_map> #include "common.h" //#include "common2.h" #include "assembler.h" using namespace std; assembler::assembler(): assembler(20000, 20) { } assem...
/* * Copyright (C) 2007 <NAME> <<EMAIL>> * Copyright (C) 2009 <NAME> * * 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 Lice...
// // Big Integer // // Description // comparison O(n) // addition, subtraction O(n) // multiplication O(n^{1.7}): Karatsuba // division O(n^2): <NAME> // #include <iostream> #include <iomanip> #include <cstdio> #include <cstdlib> #include <cstring> #include <vector> #include <sstream> #include <functional> #...
/* Name: <NAME> ID: 002270716 Email: <EMAIL> Course: CPSC 380 Operating Systems Last Date Modified: 1 May 2019 Project: Rate Monotonic Scheduler */ #define _GNU_SOURCE #include <sched.h> #include <iostream> #include <stdio.h> #include <chrono> #include <thread> #include <unistd.h> #include <pthread.h> ...
/* * * 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"); y...
#include "WebRequest.h" #include "minorGems/util/stringUtils.h" #include "minorGems/util/StringBufferOutputStream.h" #include "minorGems/network/SocketClient.h" WebRequest::WebRequest( const char *inMethod, const char *inURL, const char *inBody, const char *inProxy ) : mError( false...
/**** * FSMm => un muy pequeño compilador de listas de palabras a FSM C/C++ ****/ #include <iostream> #include <fstream> #include <algorithm> #include <list> #include <string> #include <limits> using std::string; const string prefix = "F_FSM_"; //Nombre de variable const string char_name = prefix + "char"; //Etiquet...
/* Copyright (c) 2015, Intel Corporation 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 conditions and the following disclaime...
#include <iostream> #include <thread> #include <chrono> #include <string> #include <vector> #include <ncurses.h> #include <time.h> #include <sstream> #include <iomanip> #include "util.h" #include "SysInfo.h" #include "ProcessContainer.h" // for test //#include "ProcessParser.h" //#include "Process.h" //void test(); u...
#include "Engine/Math/Vector4.hpp" #include "Engine/Core/StringUtils.hpp" #include "Engine/Math/IntVector4.hpp" #include "Engine/Math/Vector2.hpp" #include "Engine/Math/Vector3.hpp" #include <cmath> #include <sstream> const Vector4 Vector4::Zero(0.0f, 0.0f, 0.0f, 0.0f); const Vector4 Vector4::One(1.0f, 1.0f, 1.0f, 1...
// // Created by osboxes on 12/3/18. // // // Created by osboxes on 11/12/18. // #include <opencv2/core/mat.hpp> #include "gtest/gtest.h" #include "gmock/gmock.h" #include <DominoCV.h> using namespace std; #define VS vector<string> #define VI vector<long long> class DominoCVTest : public ::testing::Test { protect...
/*main.cpp*/ // // <NAME> // U. of Illinois, Chicago // CS 251: Spring 2020 // Project #07: open street maps, graphs, and Dijkstra's alg // // References: // TinyXML: https://github.com/leethomason/tinyxml2 // OpenStreetMap: https://www.openstreetmap.org // OpenStreetMap docs: // https://wiki.openstreetmap.org/wi...
// // "$Id: file_chooser.cxx 6092 2008-04-11 12:57:37Z matt $" // // File chooser test program. // // Copyright 1999-2005 by <NAME>. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public // License as published by the Free Software Fo...
/************************************************************** * * 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 y...
/** * PocketNOC - v1.2 * author: <NAME> * * PocketNOC.cpp * * Includes the main function for the PocketNOC program as well as * all the PubSub functionality. */ /* Copyright 2000-2004 KnowNow, Inc. All rights reserved. @KNOWNOW_LICENSE_START@ Redistribution and use in source and binary forms, with or withou...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during i...
/* * sixad-sixaxis.cpp * * This file is part of the QtSixA, the Sixaxis Joystick Manager * Copyright 2008-10 <NAME> <<EMAIL>> * * QtSixA can be redistributed and/or modified under the terms of the GNU General * Public License (Version 2), as published by the Free Software Foundation. * A copy of the license is ...
/* OneLoneCoder.com - Code-It-Yourself! Asteroids at the command prompt (quick and simple c++) "This one just kept growing..." - @Javidx9 License ~~~~~~~ One Lone Coder Console Game Engine Copyright (C) 2018 Javidx9 This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistr...
/* * Software License Agreement (BSD License) * * Copyright (c) 2011, <NAME>, Inc. * 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 reta...
#include "SimpleApp.h" #include <algorithm> #include <fstream> #include <iterator> #include <stdexcept> using namespace std; SimpleApp::SimpleApp() { } SimpleApp::~SimpleApp() { } int SimpleApp::run() { bool initOK = false; try { initGL(); init(); camera.resize(width, height); initOK = true; }catch (con...
#include <assert.h> #include <iostream> #include <random> #include <sys/time.h> #include "okk_param.h" #include "bmlib_runtime.h" #define BMLIB_SAFE_CALL(cmd) assert(cmd == BM_SUCCESS) #define DIV_UP(a, b) (((a) - 1) / (b) + 1) #ifdef USING_CMODEL #define MAXIT (1) #else #define MAXIT (100) #endif typedef struct { ...
#include "MOCKNetworkHost.h" #include "MOCKNetworkStream.h" void MOCKNetworkStream::Init( byte* buffer, u32 bufferSize, u32 bitLength = 0 ) { byte* newBuffer = (byte*) malloc( bufferSize ); mBuffer = newBuffer; mBufferSize = bufferSize; memcpy( newBuffer, buffer, bufferSize ); if( bitLength == 0 ) bitLength ...
#include <Scene/World.hpp> #include <cocos/2d/CCCamera.h> #include <cocos/base/CCEventListenerKeyboard.h> #include <cocos/base/CCEventDispatcher.h> #include <cocos/audio/include/SimpleAudioEngine.h> #include <cocos/ui/UIText.h> #include <cocos/ui/UIButton.h> #include <Object/Rifle.hpp> bool World::Initialize() { i...
#include "std_include.h" // std library includes, definition of scalar, etc.. has a "using namespace std" in it, because I'm lazy //we'll use TCLAP as our command line parser #include <tclap/CmdLine.h> #include "cuda_profiler_api.h" #include "functions.h" #include "gpuarray.h" #include "periodicBoundaryConditions.h" ...
/* * Copyright 2017 resin.io * * 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 w...
#include "items_list_widget.h" #include "ui/imgui_util.h" #include "ui/widgets/misc.h" #include "ui/widgets/modal.h" #include "imgui_stdlib.h" ItemsListWidget::ItemsListWidget(UIState_ptr ui_state, Item::CategoryID cat_id) : Drawable(ui_state), m_cat_id(cat_id) { m_manager = m_workspace.getCurrentManager(); ...
#include "Lapierre.h" #include <ros/ros.h> // TODO - remove - only used for debugging /* Constructor for the Lapierre class */ Lapierre::Lapierre(double k1, double k2, double k3, double theta, double k_delta, ros::Publisher surge_pub, ros::Publisher yaw_rate_pub, ros::Publisher rabbit_pub) : surge_pub_(surge_pub), ...
/** * @file utils.cpp * @brief Some useful functions for displaying and matching features * @date May 24, 2014 * @author <NAME> */ #include "utils.h" #include <fstream> using namespace std; /* ************************************************************************* */ void draw_keypoints(cv::Mat& img, const st...
/* * File: HW2_141044058_AliYasin_Eser.cpp * HW2 icin hazirlanmis programdir, esitlik fonksiyonu hazirlanmis * herhangi bir tip veya class icin mod operasyonu yapar * Author: aliyasineser * * Created on 19 Ekim 2015 Pazartesi, 23:38 */ #include "DayOfYear.h" #include <cstdlib> #include <iostream> #include <...
#include "pearl/pearl.h" #include <vector> #include "rapter/typedefs.h" #include "rapter/util/parse.h" // console::parse_argument #include "rapter/io/io.h" // readPrimitives, readPoints #include "rapter/util/containers.hpp" // add #include "rapter/simpleTypes.h" #include "rapter/util/containers.hpp" //#in...
#include "LeNet.hpp" LeNet::LeNet( std::vector<std::vector<float>>& _train_data, std::vector<unsigned>& _train_labels, std::vector<std::vector<float>>& _test_data, std::vector<unsigned>& _test_labels, const unsigned _class_num, const unsigned _channel_num, const unsigned _image_x, const unsigned _image_y, con...
/* / Program: ann / File: network.cpp / Author: <NAME> / Assignment: 2 / Class/Instructor: CS 402/ <NAME> / Last Date Modified: November 11, 2017 / / Description: cpp file for network class. This class represents the neural network / using several multi-dimensional vectors to hold weights, biases, activations, and inpu...
// Copyright (c) 2021 <NAME> // // SPDX-License-Identifier: BSL-1.0 // 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 <fstream> #include <memory> #include <vector> #include <unordered_map> #include <al...
// // (C) handyman97 (https://github.com/handyman97) // // 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 // #include <assert.h> #include <ctype....
//**.****|****.****|****.****|****.****|****.****|****.****|****.****|****.****| // * blattnig.cc * galprop package * 2005/02/15 //**"****!****"****!****"****!****"****!****"****!****"****!****"****!****"****| #include <cstdio> #include <cstdlib> #include <fstream> #include <iostream> #...
#include <iostream> #include <iomanip> #include <cstdlib> #include <Windows.h> #include <highgui.h> #include <cv.h> using namespace std; using namespace cv; void printMat(CvMat* arr); void GenRandn(CvMat* arr, int seed); // 生成标准正态分布的随机矩阵 void GenRand(CvMat* arr, int seed); // [0, 1]均匀分布的随机矩阵 // 比较函数 static int ...
#include <EasyDx/One.hpp> #include "MainScene.hpp" #include <DirectXColors.h> #include <d3d11.h> #include "VertexShader.hpp" #include "PixelShader.hpp" #include "HullShader.hpp" #include "DomainShader.hpp" #include <numeric> struct alignas(16) CbPerObject { DirectX::XMMATRIX World; DirectX::XMMATRIX WorldViewP...
// This is free and unencumbered software released into the public domain. // // Anyone is free to copy, modify, publish, use, compile, sell, or // distribute this software, either in source code form or as a compiled // binary, for any purpose, commercial or non-commercial, and by any // means. // // In jurisdictions ...
/** \class PythiaFilterEMJetHeep * * PythiaFilterEMJetHeep filter implements generator-level preselections * of events with for studying background to high-energetic electrons * * \author <NAME> (KSU), <NAME> (Princeton) * ************************************************************/ #include "DataFormats/Com...
/** * Copyright (C) 2019-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
#include <petsc.h> #include <h2opus.h> #include "spatial_statistics.h" #include "../common/example_problem.h" #define DEFAULT_ETA 1.0 // PETSc entry point to functor evaluation static PetscScalar petsc_kernel(PetscInt sdim, PetscReal x[], PetscReal y[], void *ctx) { Spatial_Statistics<H2Opus_Real> *kgen = static_...
/** * @file imdb-graph.hpp * * @copyright SPDX-FileCopyrightText: 2022 Battelle Memorial Institute * @copyright SPDX-FileCopyrightText: 2022 University of Washington * * SPDX-License-Identifier: BSD-3-Clause * * @authors * <NAME> * */ #include <string> #include <vector> std::vector<std::string> actors{ ...
/*---------------------------------------------------------------------------*\ Copyright (C) 2013-2014 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it ...
#include <iostream> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/viz/vizcore.hpp> #include <kfusion/kinfu.hpp> #include <kfusion/cuda/marching_cubes.hpp> #include <io/capture.hpp> #include <fstream> #include <iostream> using namespace kfusion; using namespace std; st...
#include "deque.h" #include <gtest/gtest.h> #include <algorithm> #include <deque> using nic11::Deque; TEST(DequeTest, checkPushBackAndIterator) { Deque<int> d; for (int i = -24; i < 147; ++i) { d.push_back(i); } ASSERT_EQ(d.size(), size_t(147 + 24)); Deque<int>::const_iterator it = d.cbegi...
/*========================================================================= Program: Visualization Toolkit Module: vtkOSPRayProperty.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WI...
#include "Common.h" #include "Renderer.h" void _checkForGLError(const char *file, int line) { GLenum err (glGetError()); static int numErrors = 0; while(err!=GL_NO_ERROR) { std::string error; numErrors++; switch(err) { case GL_INVALID_OPERATION: error...
/** Copyright (C) 2012-2014 <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, distribute, su...
/* The MIT License (MIT) Copyright (c) 2017 Lancaster University. 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...
#include <string> #include <vector> #include <cstdlib> #include <CL/sycl.hpp> #include "common.h" #include "polybenchUtilFuncts.h" using DATA_TYPE = float; class Polybench_3mm_1; class Polybench_3mm_2; class Polybench_3mm_3; void init_array(DATA_TYPE* A, DATA_TYPE* B, DATA_TYPE* C, DATA_TYPE* D, s...
#include "VoDTopologyOracle.hpp" #include "Scheduler.hpp" #include "boost/random/normal_distribution.hpp" #include "UGCPopularity.hpp" #include <boost/lexical_cast.hpp> #include <initializer_list> #include <boost/random/mersenne_twister.hpp> // random generator extern boost::mt19937 gen; VoDTopologyOracle::VoDTopolog...
#include<stdio.h> #include<string.h> const int oo = 2000000000; const int BLOCKSIZE = 700; const int MAXL = 500000+10; const int MAXBLOCK = MAXL/BLOCKSIZE*2+1000; void swap(int &a,int &b){a^=b;b^=a;a^=b;} int max(int a,int b){return a>b?a:b;} int min(int a,int b){return a<b?a:b;} int data[MAXBLOCK][BLO...
#include "vmu931/vmu931.h" #include <ros/ros.h> #include <sensor_msgs/Imu.h> #include <sensor_msgs/MagneticField.h> #include <vmu931/Vmu931.h> Vmu931::Vmu931(ros::NodeHandle nh, ros::NodeHandle pnh) { // get params pnh.param("serial_port", serial_port_, std::string("/dev/ttyACM0")); pnh.param("publish_imu...
/** @defgroup MleParts Magic Lantern Parts */ /** * @file MleIv2dMovieRole.cxx * @ingroup MleParts * * This file implements the 2D Movie Role targeting the Inventor platform. * * @author <NAME> * @date May 1, 2003 */ // COPYRIGHT_BEGIN // // Copyright (C) 2000-2007 Wizzer Works // // Wizzer Works makes ava...
#include "write.h" #include "read.h" #include "chunk.h" #include "globals.h" #include "aquila/aquila.h" #include "libmfcc.h" #include <gsl/gsl_vector.h> #include <gsl/gsl_statistics.h> #include <cmath> int binOffset = 0; int mfccOffset = 0; double avg [NUM_AXIS]; double sdev[NUM_AXIS]; int bins[NUM_AXIS][NUM_BINS]; ...
// (C) Copyright <NAME> 2001 - 2003. // (C) Copyright <NAME> 2001 - 2002. // (C) Copyright <NAME> 2001 - 2002. // (C) Copyright <NAME> 2001 - 2003. // (C) Copyright <NAME> 2002. // (C) Copyright <NAME> 2002 - 2003. // (C) Copyright Synge Todo 2003. // Use, modification and distribution are subject to the // Bo...
#include "myCamController.h" myCamController::myCamController(){ m_nWinWidth = 640; m_nWinHeight= 480; m_nRectW = 320; m_nRectH = 320; m_nCurrentLabel = 0; m_bTrained = false; m_bGetTrainImage = false; m_nNumPerBatch = 100; m_nNumCurrent = 0; m_nNumOfClasses = 5; m_nNumOfFeature = 1764; m_gestureDict.ins...
/* Starshatter OpenSource Distribution Copyright (c) 1997-2004, Destroyer Studios LLC. 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 t...
/* * Copyright (c) 2006 <NAME> * 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 above copyright * notice, this list of conditions an...
/* * Copyright (C) 2014 <NAME> * http://kodi.tv * * 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; either version 2, or (at your option) * any later version. * * This Prog...
// Copyright (C) 2002-2003 RealVNC Ltd. All Rights Reserved. // Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. // // This file is part of the VNC system. // // The VNC system is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License ...
#include "ros/ros.h" #include "std_msgs/String.h" #include "control_msgs/GripperCommandAction.h" #include "actionlib/server/simple_action_server.h" #include "serial/serial.h" #include <sstream> #include <thread> #include <vector> #include <functional> #include <assert.h> #include <mutex> class SerialComsC { public:...
#include <iostream> #include <iomanip> #include <math.h> #include <fstream> #include <string> double equation_11(double x) { return x * pow(2, x) - 1; } double equation_11_der(double x) { return pow(2, x) * (x * log(2) + 1); } double equation_11_sol(double x) { return 0.6411857445049859; } double algeb...
/* 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, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ...
// restore.cpp /** * Copyright (C) 2008 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will ...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2018 The Bitcoin Core developers // Copyright (c) 2021 The PuertoRicoTainoCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <logging.h> #include...
/* MANGO Multimedia Development Platform Copyright (C) 2012-2016 Twilight Finland 3D Oy Ltd. All rights reserved. */ #include <algorithm> #include <mango/core/cpuinfo.hpp> namespace { using namespace mango; #if defined(MANGO_CPU_INTEL) // -------------------------------------------------------------...
#include "ShapefileLoader.h" #include "PlanarGraph.h" #include "ArcData2D.h" #include <Table.h> #include <DBase3File.h> #include <cassert> #include <shapefil.h> #include <iostream> #include <cmath> #include <sstream> #include <deque> using namespace std; ShapefileLoader::ShapefileLoader() : FileTypeHandler("ESRI S...
/* -------------------------------------------------------------------------- * * File TestEffectsAdvance.cpp * Author <NAME> * * -------------------------------------------------------------------------- * * Copyright (c) 2010-2013 cocos2d-x.org * * http://www.co...
// // OctreePersistThread.cpp // libraries/octree/src // // Created by <NAME> on 8/21/13. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "OctreePersistThread.h" #in...
#include <iostream> #include <map> #include <vector> #include <fstream> #include <utility> #include <algorithm> bool isPointer(const std::string& s) { return s.size() && s.back() == '*'; } std::string type_from_ptr(const std::string& s){ return s.substr(0, s.size()-1); // return string without * } bool is_v...
template<class T> T polyEval(std::vector<T>& p, T x) { int k = (int)p.size()-1; // last valid index if(k < 0) return 0; T y = p[k]; while(k > 0) { k -= 1; y = y*x + p[k]; } return y; } template<class T> void polyTrunc(std::vector<T>& p, T tol) { int i = (int)p.size(); while(i > 1) { // a po...
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include <math.h> #include <base/math.h> #include <engine/graphics.h> #include "render.h" void CRenderTools::RenderEvalEnvelope(CEnvPo...
#include "Light.hpp" #include "Bounds.hpp" #include <imgui.h> #include <functional> Light::Light(const Light& other) { color = other.color; cutOff = other.cutOff; position = other.position; pcfKernelSize = other.pcfKernelSize; direction = other.direction; m_type = other.m_type; m_lightSpace...
#include "sevenSegDisplay.h" #include "utils.h" #define LED_TOP_LEFT 0x00000020 #define LED_BOTTOM_LEFT 0x00000040 #define LED_COLON 0x00008000 #define LED_GREEN_LIGHT 0x00000001 #define LED_AMBER_LIGHT 0x01000000 #define LED_RED_LIGHT 0x00010000 #define LED_CHAR1_SEG_B 0x00000002 #define LED_CHAR1_SEG_C 0...
#include "chrono_parallel/solver/ChSolverParallel.h" using namespace chrono; ChShurProduct::ChShurProduct() { data_manager = 0; } void ChShurProduct::operator()(const DynamicVector<real>& x, DynamicVector<real>& output) { data_manager->system_timer.start("ShurProduct"); const DynamicVector<real>& E = dat...
#include "Geometry.h" Lightning::GeometryComponent::GeometryComponent() { vector<Vertex> _vertices; //Empty Vertex vector<uint> _indices; //Empty Index vector<Texture> _textures; //Empty Texture MeshInitialize(_vertices, _indices, _textures); } Lightning::GeometryComponent::GeometryComponent(vector<Vertex> _ve...
/* * Copyright (c) 2019-2021, 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...
//***************************************************************************** // Copyright 2017-2020 Intel 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://w...
/* // Copyright (c) 2018 Intel 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...
/* * Copyright (C) 2019 <NAME> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include "debugger.h" #include "imgui.h" // static const char Debugger::s_io_window_name[] = "IO"; Debugger::IOWindow::IOWindow(Debugger* d) : Window(d) {}...
/* * Copyright (C) 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 agree...
/* * MIT License * * Copyright (c) 2021 CSCS, ETH Zurich * 2021 University of Basel * * 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 with...