text
stringlengths
3.08k
22k
// Distributed under the MIT License. // See LICENSE.txt for details. #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/Tov.hpp" #include <algorithm> #include <array> #include <boost/numeric/odeint.hpp> // IWYU pragma: keep #include <cmath> #include <cstddef> #include <functional> #include <pup.h> #in...
//Linked List #include <iostream> using namespace std; class ThreeD { public: int ht; int wid; int dep; int vol() { return ht * wid * dep; } ThreeD(int i, int j, int k) : ht(2 * i), wid(2 * j), dep(2 * k) {} //constructor for initialization ThreeD() {}//default constructor /* alternatively, ThreeD(int i, in...
#pragma once #include <iostream> #include <opencv2\viz.hpp> #include <opencv\highgui.h> #include "DSStream.h" #include "DSMatcher.h" #include "DSFrame.h" #include "DSRectifier.h" #include "support.h" int hue_min = 77, hue_max = 119, sat_min = 77, sat_max = 208, val_min = 45, val_max = 235, morph_size = 15; void cr...
/***************************************************************************** * this file is part of the Project RBC * * Copyright (c) 2016-2017, <NAME> <<EMAIL>> * Copyright (c) 2016-2019, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modific...
/* * Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit). * * Use of this source code is governed by MIT license that can be found in the * LICENSE file in the root of the source tree. All contributing project aut...
/*--------------------------------------------------------------------------- // Copyright (c) 2018-present, Lenovo. All rights reserved. // Licensed under BSD, see COPYING.BSD file for details. //--------------------------------------------------------------------------- */ #include <cstdlib> #include <sstream> #in...
#include "ukf.h" #include "Eigen/Dense" #include <cfloat> #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 ignore...
#include <cstdio> #include <cmath> #include <vector> #include <algorithm> const long double eps = 1e-4; const int MAXN = 2222; const int MAXF = 2222; const int INF = ~0u >> 2; int dcmp(const long double &x) { return fabs(x) < eps ? 0 : (x > 0 ? 1 : -1); } namespace Geometry_2D{ struct Point{ long double x, y; ...
#include "GameBoard.h" GameBoard::GameBoard(){ //default constructor...do something here } GameBoard::GameBoard(Player p1, Player p2){ activePlayer = p1; passivePlayer = p2; initBoard(); } /* // Simply one perspecive for now (not functional) ostream& operator<<(ostream& os, const GameBoard& b){ os << " a b c ...
// Copyright 2011 The Kyua Authors. // 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 conditio...
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*- // // Modified from // https://github.com/hzeller/rpi-rgb-led-matrix/blob/master/examples-api-use/clock.cc // // This code is public domain - the source file is GPL v2 // Note also the led-matrix library this depends on is GPL v2 #include "led-matrix....
#include <boost/filesystem.hpp> #include <sstream> #include <yaml-cpp/yaml.h> #include "core/Params.h" #include "core/StatusPrinter.h" Params::Params() { } Params::~Params() { clear(); } Params::ParamValue& Params::getValueContainer(const std::string& key) const { ParamValue* valuePtr = NULL; ParamValueMap:...
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<vector> #include<iostream> #include<fstream> #include<string> #include<unistd.h> using namespace std; class Arco { public: int numarc; int linha1, linha2; int riseout, risein; int difin, difout; char saida1, saida2; }; char* bindec(int num, int tam...
#include "Slash.h" #include <mpi.h> #include <chrono> #include "DataLoader.h" #include "DistributedLog.h" Slash::Slash(uint64_t K, uint64_t L, uint64_t range_pow, uint64_t reservoir_size) { hasher = new DOPH<uint32_t, uint32_t>(K, L, range_pow); hash_tables = new HashTable<uint32_t, uint32_t>(L, reservoir_size,...
//======================================================================= // Copyright (c) 2016 <NAME> // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //======================================================================= #inclu...
// MAME/MESS floppy image // // https://github.com/mamedev/mame/blob/master/src/lib/formats/mfi_dsk.cpp #include "SAMdisk.h" #include "DemandDisk.h" #include "BitstreamDecoder.h" #ifdef HAVE_ZLIB #include "zlib.h" #endif // Note: all values are little-endian struct MFI_FILE_HEADER { char signature[16]; // "MESSF...
#include "Solvers.h" #include <math.h> #include "Basic.h" bool CG(FPfield *xkrylov, int xkrylovlen, FPfield *b, int maxit, double tol, GENERIC_IMAGE FunctionImage, grid *grd) { // allocate residual, image, p, b, calculated on central points FPfield *r = new FPfield[xkrylovlen]; FPfield *v = new FPfield[x...
#include <cstdint> #include "cpu.h" void cpu::sys(uint16_t addr) { } void cpu::cls() { } void cpu::ret() { pc = sp; sp -= 1; } void cpu::jp(uint16_t addr) { pc = addr; } void cpu::call(uint16_t addr) { sp += 1; _stack.write(sp, pc); pc = addr; } void cpu::se_imm8(uint8_t reg, uint8_t imm) { if ( vs...
// // GraphTools library // Copyright 2017-2019 Illumina, Inc. // All rights reserved. // // Author: <NAME> <<EMAIL>> // // 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...
#include <array> #include <cassert> #include <sstream> #include <gtest/gtest.h> #include <gnuplot-iostream.h> #include "rti/ray/rectangle_origin_z.hpp" #include "rti/rng/cstdlib_rng.hpp" #include "rti/rng/mt64_rng.hpp" #include "rti/util/utils.hpp" using namespace rti; // Test Fixture class rectangle_origin_z_doubl...
// Filename: m3D_hdf5_fiber_converter.cpp // Created on 30 May 2007 by <NAME> // // Copyright (c) 2002-2013, <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: // // * Redistributions o...
#include "header.h" #include "Demo4Object.h" #include "Demo4Main.h" Demo4Object::Demo4Object(Demo4Main* pEngine, int iMapX, int iMapY) : DisplayableObject(pEngine) , m_pMainEngine( pEngine ) , m_iMapX(iMapX) , m_iMapY(iMapY) , m_iDir(0) { // The ball coordinate will be the centre of the ball // Because we start dra...
// NPCPath.cpp: implementation of the CNPCPath class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "n3me.h" #include "NPCPath.h" #include "LyTerrain.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif /////////////...
#pragma once #include "../../../../core/thread_pool/job_queue/JobQueue.hpp" // render resource includes #include "../resources/RenderResource.hpp" #include "../../PRender.hpp" #include <string> #include <vector> #include <memory> #include <stdexcept> class RenderGraph; class Subpass; class Pass : public std::enab...
// Copyright(c) 2018 <<NAME>> #include "video.h" Video::Video() {} Video::~Video() {} namespace vidHelpers { inline uint32_t getBits(uint32_t val, const uint8_t upperbit, const uint8_t lowerbit) { return (val >> lowerbit) & ((1 << ((upperbit + 1) - lowerbit)) - 1); } inline bool getBit(uint...
// zlibdemo.cpp Copyright (C) Codemist, 1990-2020 // The file preserve.cpp can be preprocessed to generate zlibdemo.cpp, // which is why the header line above is "strange". /************************************************************************** * Copyright (C) 2020, Codemist. ...
#include "World.hpp" #include <unordered_set> #include <algorithm> #include <numeric> #include "Math/algorithms.hpp" void World::updateInc(double dt, u32 itLevel) { removeNeeded(); for (u32 i = 0u; i < itLevel; ++i) { update(dt / itLevel); } for (auto& [_, wobj1] : _objectsMap) {_; auto obj1 = wobj1.lock()...
#include <iostream> #include <algorithm> #include <vector> #include <tuple> #include <cfloat> typedef long double LD; typedef long L; #define BSIZE 1<<15 char buffer[BSIZE]; L bpos = 0L, bsize = 0L; L read_long(FILE* fp); L read_long(); class Particle { private: L velocity; L time_launched; ...
#include "streamcluster.h" #define HALF_BUF ((BUF_SIZE) / 2) #define BUF_SIZE ((OFFSET) << 9) #define UNROLL_FACTOR 16 void setup(float* target, float* local_target, int* center_table, int* local_center_table) { #pragma HLS INLINE OFF memcpy(local_target, target, DIM * sizeof(float)); memcpy(local_center_table,...
/* Copyright (C) 2014-2015 <NAME> <<EMAIL>> All rights reserved. This file is part of generic_list. https://github.com/jay/generic_list generic_list 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 versio...
/* MikMod sound library (c) 1998, 1999, 2000, 2001, 2002 <NAME> and others - see file AUTHORS for complete list. 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 Foundation; either version 2 of...
#include <string> #include "GameSystem.h" #include "Level.h" using namespace std; GameSystem::GameSystem() { } /*PUBLIC*/ void GameSystem::playGame() { while (true) { loadLevel("level1.txt"); //Title and Menu printTitle(); printPressEnter(); int option; //Menu Options bool menuIsDone = false; ...
#include "STM32F405RTG6Board.h" #include <SimpleFOC.h> /// I2C 1 #define SDA PB7 #define SCL PB6 // Temperature Senror #define ADDR_TEMP_SENSOR 0x48 /// SPI 2 (AS5048A) #define MOSI_ENC PB15 #define MISO_ENC PB14 #define CLK_ENC PB13 #define CS_ENC PB12 /// SPI 1 (DRV8305) #define MOSI_DRV PA7 #define MIS...
#include <GL/glew.h> #ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #include "ParticleSystem.h" #include <iostream> #include <math.h> using namespace std; // create the particles with the shader storage buffer objects ParticleSystem::ParticleSystem() { num = 0; size_m...
#include <memory> #include <regex> #include <string> #include <sstream> #include "common.hpp" #include "io/bulkio.hpp" #include "printer/cexpr_emit.hpp" #include "printer/cprinter.hpp" #include "printer/cudaprinter.hpp" #include "expression.hpp" #include "symdiff.hpp" // Note: CUDA printer disabled until new impleme...
#include "weighted-objectives.h" #include <algorithm> #include <set> #include <string> #include <iostream> #include <sstream> #include "tasbot.h" #include "../cc-lib/arcfour.h" #include "../cc-lib/textsvg.h" #include "util.h" using namespace std; struct WeightedObjectives::Info { explicit Info(d...
/* MIT License Copyright (c) 2021 Ravin.Wang(<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, merge, p...
// Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #include "internalCommandsHandler.hpp" #include <assert.h> #include "consensus/hash_defs.h" #include "ethereum/eth_kvb_storage.hpp" #include "storage/concord_metadata_storage.h" using namespace BasicRandomTests; using...
/* * StoryFit * EE459 Spring 2021 * Team 13 * <NAME> and <NAME> */ #include "BMETest.Scene.h" #include "storyfit.h" #include "textbox.h" #include "rectangle.h" #include "sensors.h" #include "OptionsMenu.Scene.h" BMETest::BMETest(Game* game, Scene* parent) : Scene(game, parent) { } BMETest::~BMETest() { ...
#include "sm-log-segments.h" #include <memory> log_segment_mgr::log_segment_mgr(uint64_t ssize, uint64_t scsize) : segment_size(ssize) , segment_close_size(scsize) , active_segment(rcu_alloc()) , segment_change_mutex(PTHREAD_MUTEX_INITIALIZER) { active_segment->start_offset = 0; active_segment...
/* Copyright (c) 2012-2021, <NAME> * All rights reserved. * * This software may be used and distributed according to the terms of * the New BSD License, which is incorporated herein by reference. */ #include "erbgenerator.h" #include "filewriter.h" #include "util.h" #include <QList> #include <QPair> constexpr au...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
#include <iostream> #include <list> #include <sstream> #include <string> #include <utility> #include <vector> using namespace std; const int INFINITY = 10000; const int HIGH_VALUE = 8000; const int CHECK_VALUE = 9000; class dist { public: int x; int y; int d; dist(int x, int y, int d) { this-...
#include "module.h" #include "function.h" #include <stdlib.h> #include <iostream> #include <fstream> #include <sstream> #include <time.h> using namespace v8; using namespace webcuda; using std::cout; using std::endl; using std::string; using std::ofstream; using std::stringstream; Persistent<ObjectTemplate> Module::c...
#include "args.hxx" #include "asio.hpp" #include <cmath> #include <cstdlib> #include <iostream> #include <optional> #include <thread> extern "C" { #include <X11/Xlib.h> #include <X11/extensions/dpms.h> } struct MonitorState { int64_t epochMs; double statePollRateHz; bool poweredOn; }; std::optional<bool> dpms...
/*********************************************************************************************** Tremolo ------- VCV Rack module based on Tremolo by <NAME> from Airwindows <www.airwindows.com> Ported and designed by <NAME> Changes/Additions: - CV inputs for speed and depth - polyphonic See ./LICENSE.md for all lic...
#include "Plot.h" int DEFAULT_BORDER[4] = { 0,0,0,0 }; Plot::Plot(wxRect& boundary, double xLim[2], double yLim[2], bool showX, bool showY, bool showTitle) : Plot(boundary, xLim, yLim, DEFAULT_BORDER){ } Plot::Plot(wxRect& boundary, double xLim[2], double yLim[2], int border[4], bool showX, bool showY, bool showTit...
/** * @file Point2Test.cpp * @brief Point2 class tester. * @author zer0 * @date 2016-04-20 * @date 2019-02-20 (Rename: PointTest -> Point2Test) */ #include <gtest/gtest.h> #include <libtbag/predef.hpp> #include <libtbag/geometry/Point2.hpp> #include <libtbag/algorithm/Equals.hpp> #include <atomic> #inclu...
/* @file: control_base.cpp @author: pdsherman @date: April. 2021 @brief: control base object */ #include <pendulum/LoggingData.h> #include <pendulum/State.h> #include <pendulum/Control.h> #include <hardware/pendulum_hardware/PendulumHardware.hpp> #include <libs/control/Pid.hpp> #include <libs/control/...
/* * Dataset.cpp * * Created on: Mar 18, 2016 * Author: derek */ #include <random> #include <chrono> #include <vector> #include <string> #include <algorithm> #include <eigen3/Eigen/SVD> #include <eigen3/Eigen/Dense> #include "Dataset.h" #include "Types.h" #include "BayesClassifier.h" #include "DecisionTree....
/* * Copyright (c) 2019 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2025-03-24 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
#include "../stk500task.h" void stk500ImportFiles::importFile(DirectoryEntryPtr dirStartPtr, QString sourceFilePath, QString destFilePath, double progStart, double progTotal) { /* Parse file name from the destination path */ QString fileName = destFilePath; fileName.remove(0, fileName.lastIndexOf('/') + 1)...
/** * @file * @copyright defined in ../../../LICENSE */ #include "../Common/common.hpp" #include "BancorX.hpp" ACTION BancorX::init(name x_token_name, uint64_t min_reporters, uint64_t min_limit, uint64_t limit_inc, uint64_t max_issue_limit, uint64_t max_destroy_limit) { require_auth(get_self()); settin...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008-2013, Image Engine Design 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: // // ...
#include <fst/fstlib.h> using namespace std; #include <include/LegacyRnnLMHash.h> #include <include/LegacyRnnLMDecodable.h> #include <include/LegacyRnnLMReader.h> #include <include/RnnLMDecoder.h> #include <include/util.h> #include "utf8.h" #ifdef _OPENMP #include <omp.h> #endif using namespace fst; typedef LegacyRnnL...
/* 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...
/*******************************************************************\ Module: Type Naming for C Author: <NAME>, <EMAIL> \*******************************************************************/ /// \file /// Type Naming for C #include "type2name.h" #include <util/arith_tools.h> #include <util/c_types.h> #include <uti...
/* The MIT License Copyright (c) 2015 <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, publi...
// Copyright (c) 2020 <NAME> // FEniCS Project // SPDX-License-Identifier: MIT #include "e-regge.h" #include "dof-transformations.h" #include "element-families.h" #include "lattice.h" #include "maps.h" #include "math.h" #include "polyset.h" #include <xtensor/xbuilder.hpp> #include <xtensor/xview.hpp> using namespa...
/* * Copyright 2014. Los Alamos National Security, LLC. This material was produced * under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National * Laboratory (LANL), which is operated by Los Alamos National Security, LLC * for the U.S. Department of Energy. The U.S. Government has rights to use, ...
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
/* * Copyright (c) 2011, Georgia Tech Research Corporation * All rights reserved. * * Author: <NAME> <<EMAIL>> * Date: 05/2012 * * Humanoid Robotics Lab Georgia Institute of Technology * Director: <NAME> http://www.golems.org * * Algorithm details and publications: * http://www.golems.org/node/1570 ...
#pragma once /* Bitmask ======= A generic implementation of the BitmaskType C++ concept http://en.cppreference.com/w/cpp/concept/BitmaskType Version: 1.1.2 Latest version and documentation: https://github.com/oliora/bitmask Copyright (c) 2016-2017 <NAME> (<EMAIL>) Distribut...
#include "box.h" #include <stdio.h> #include <math.h> #include <stdlib.h> int nms_comparator(const void *pa, const void *pb) { detection a = *(detection *)pa; detection b = *(detection *)pb; float diff = 0; if(b.sort_class >= 0){ diff = a.prob[b.sort_class] - b.prob[b.sort_class]; } else { ...
/* * Copyright (C) 2004-2021 Intel Corporation. * SPDX-License-Identifier: MIT */ // // This tool counts the number of times a routine is executed and // the number of instructions executed in a routine // #include <fstream> #include <iomanip> #include <iostream> #include <string.h> #include "pin.H" #include <st...
// Copyright (c) 2013 <NAME> // // 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 <hpx/hpx.hpp> #include "tests.hh" #include "algorithms.hh" #include "block_matrix.hh" #include "matrix.hh" #include <hpx/h...
/* Copyright 2011 <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, s...
/*************************************************************************/ /* rect2.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
//hace aparecer los cilindros rojos y azules en la banda transportadora //y da la velocidad inicial (dado por apply_body_wrench) a la banda transportadora //la comunicacion de ros: // hace aparecer el modelo mendiante el servicio: /gazebo/spawn_urdf_model // inicializa la velocidad del cilindro mediante: /gazebo...
#include <iostream> #include <list> using namespace std; // 表示树的平衡因子是否改变(即树高是否变化) #define LH +1 // 左高 #define EH 0 // 等高 #define RH -1 // 右高 typedef struct BSTNode { int key; // 关键字 int bf; // 平衡因子 struct BSTNode *left, *right; } BSTNode, *BSTree; /* A B ...
/**************************************************************************** * * * OpenNI 1.x Alpha * * Copyright (C) 2011 PrimeSense Ltd. * * ...
////////////////////////////////////////////////////////////////////// // // AmbientOcclusionShaderOp.cpp - Implementation of the AmbientOcclusionShaderOp class // // Author: <NAME> // Date of Birth: January 28, 2005 // Tabs: 4 // Comments: // // License Information: Please see the attached LICENSE.TXT file // //...
#include <cstdlib> #include <omp.h> #include <iterator> #include <vector> #include <algorithm> #include <cstring> // #include <seqUtils.h> template <class T,class StrictWeakOrdering> void omp_par::merge(T A_,T A_last,T B_,T B_last,T C_,int p,StrictWeakOrdering comp){ typedef typename std::iterator_traits<T>::diffe...
/* *********************************************************************************************************************** * * Copyright (c) 2019 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated ...
/* * See header file for a description of this class. * * \author <NAME> - CIEMAT * * threadsafe version (//-) oct/nov 2014 - WATWanAbdullah -ncpp-um-my * */ // This class header #include "DQM/DTMonitorClient/src/DTLocalTriggerSynchTest.h" // Framework headers #include "FWCore/Framework/interface/EventSetup...
// mex clipper.cpp mexclipper.cpp // modified to include ClippedOffset's ArcTolerance and MiterLimit properties -- <NAME> <<EMAIL>>, 9/13/2015 #include "mex.h" #include "clipper.hpp" using namespace ClipperLib; typedef __int64 LONGML64; typedef __int64 longML64; void read_polygons_MATLAB(const mxArray *prhs, Path...
#include "shared/vkFramework/LineCanvas.h" LineCanvas::LineCanvas(VulkanRenderContext& ctx, bool useDepth, const std::vector<VulkanTexture>& outputs, VkFramebuffer framebuffer, RenderPass screenRenderPass): Renderer(ctx) { framebuffer_ = framebuffer; const PipelineInfo pInfo = initRenderPass( ...
// test rest api using cpprestsdk // <NAME> (<EMAIL>) // g++ -std=c++11 -I/usr/local/include -o httpclientStream httpclientStream.cpp -L/usr/local/lib -lcpprest -lboost_system -lboost_chrono -lboost_thread -lboost_random -lboost_regex -lssl -lcrypto // #include <iostream> #include <sstream> #include <codecvt> using ...
#include <stdlib.h> #include <string.h> #include <memory> #include <string> #include <vector> #include "WAVM/IR/FeatureSpec.h" #include "WAVM/IR/Module.h" #include "WAVM/Inline/Assert.h" #include "WAVM/Inline/BasicTypes.h" #include "WAVM/Inline/CLI.h" #include "WAVM/Inline/Hash.h" #include "WAVM/Logging/Logging.h" #inc...
/* * @brief Ground robot behavior simulation for , nodeth, node(node)e IARC mission 7. */ #include <ros/ros.h> #include <vector> #include <elikos_lib/pid.hpp> #include <algorithm> #include <memory> #include "TargetRobot.hpp" #include "ObstacleRobot.hpp" #include "MAV.h" #include "GameManager.hpp" #include "Simul...
/****************************************************************************** * a DXT viewing utility * * Author : <NAME> * * Copyright (C) 2007 Electronic Visualization Laboratory, * University of Illinois at Chicago * * This library is free software; you can redistribute it and/or modify it * under the ter...
#include <stdio.h> #include <sys/time.h> #include <time.h> #include "hclib_cpp.h" #define GAP_PENALTY -1 #define TRANSITION_PENALTY -2 #define TRANSVERSION_PENALTY -4 #define MATCH 2 enum Nucleotide {GAP=0, ADENINE, CYTOSINE, GUANINE, THYMINE}; signed char char_mapping ( char c ) { signed char to_be_returned = -...
/**The MIT License (MIT) Copyright (c) 2017 by Zhanghao 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...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: Game-specific impact effect hooks // //=============================================================================// #include "cbase.h" #include "c_te_effect_dispatch.h" #include "tempent.h" #include "c_te_legacytempents.h" #...
#include <dirent.h> #include <unistd.h> #include <string> #include <vector> #include "linux_parser.h" using std::stof; using std::stoi; using std::stol; using std::string; using std::to_string; using std::vector; // DONE: An example of how to read data from the filesystem string LinuxParser::OperatingSystem() { st...
#include "../../../include/xtd/io/path.h" #include "../../../include/xtd/environment.h" #define __XTD_CORE_NATIVE_LIBRARY__ #include <xtd/native/path.h> #undef __XTD_CORE_NATIVE_LIBRARY__ #include <filesystem> using namespace std; using namespace xtd; using namespace io; char path::alt_directory_separator_char() noex...
#include "qssintegrator.h" #include "debugUtils.h" #include <iostream> using std::abs; using mathUtils::sign; QssIntegrator::QssIntegrator() : ode_(0) { N = 0; epsmax = 20; epsmin = 1e-2; dtmin = 1e-15; dtmax = 1e-6; tstart = 0; itermax = 2; tfd = 1.000008; abstol = 1e-8; ...
#include <stdint.h> #include <cstdlib> #include <string> #include <iostream> #include "hpack.h" #include "huffman.h" using namespace hpack; static const struct HeaderField static_table[STATIC_TABLE_SIZE] = { {"", ""}, // 0 {":authority", ""}, // 1 {":meth...
#include "audiostream.h" AVFramePtr CreateAudioFrame(AVSampleFormat sample_fmt, int sample_rate, uint64_t channel_layout) { LOG_ENTER; auto frame = CreateAVFrame(); frame->format = sample_fmt; frame->sample_rate = sample_rate; frame->channel_layout = channel_layout; frame->channels = av_get_channel_layout_nb_cha...
#include "GridGraph.h" #include "global.h" #include "GenGuide.h" void GridGraph::init(int nNodes) { conn.resize(nNodes, {-1, -1, -1, -1}); edgeCost.resize(nNodes, {-1, -1, -1, -1}); edgeCount = 0; } void GridGraph::addEdge(int u, int v, EdgeDirection dir, db::CostT w) { if (hasEdge(u, dir)) return; ...
#include <algorithm> #include <fstream> #include <iostream> #include <string> #include <random> #include <gflags/gflags.h> #include "clever_kopt.h" #include "de_berg.h" #include "retrieve_solution.h" #include "naive_kopt.h" #include "gain_func.h" #include "slow_embedding.h" #include "dynamic.h" #include "new_naive.h" ...
// // Created by marcin on 25.04.15. // #include "ObjFileLoader.h" #define VERTICES_PROC_STATUS 0 #define NORMALS_PROC_STATUS 1 #define TEXTURES_PROC_STATUS 2 #define SHADING_PROC_STATUS 3 #define FACES_PROC_STATUS 4 #define OBJECT_PROC_STATUS 5 #define MATERIAL_PROC_STATUS 6 #define GROUP_PROC_STATUS 7 #define INVALI...
#include"Game.h" SpriteRenderer* Renderer; void Game::init() { // Default game values float shipVelocity = 90.0f; // Seed the random number generator srand(time(0)); // Load the shaders ResourceManager::LoadShader("resources/shaders/2Dshader.vert", "resources/shaders/2Dshader.frag", nullptr, "sprite"); // C...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "...
/* ************************************************************************ * Copyright 2016-2020 Advanced Micro Devices, Inc. * ************************************************************************ */ #include <fstream> #include <iostream> #include <limits> #include <stdlib.h> #include <sys/time.h> #include <vec...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SampleCode.h" #include "Resources.h" #include "SkCanvas.h" #include "SkErrorInternals.h" #include "SkGr.h" #include "SkReadBuffer.h" #include "SkShader.h" #include ...
#include "runtime/chxvm.h" #include <iomanip> #include <numeric> #include <sstream> #ifdef CHAINER_COMPILER_ENABLE_NVTX #include <nvToolsExt.h> #endif // CHAINER_COMPILER_ENABLE_NVTX #include <chainerx/array.h> #include <common/log.h> #include <common/strutil.h> #include <runtime/chainerx_util.h> #include <runtime...
#include <sigc++/sigc++.h> #include <iostream> #include "signals.h" class MyPlugin { public: fsigc::signal<void> sig0; fsigc::signal<void, int> sig1; fsigc::signal<void, int, int> sig2; fsigc::signal<void, int, int, int> sig3; fsigc::signal<void, int, int, int, int> sig4; fsigc::signal<vo...
// // mine-common.cc // Part of Mine crypto library // // You should not use this file, use mine.cc // instead which is automatically generated and includes this file // This is seperated to aid the development // // Copyright (c) 2017-present Amrayn Web Services // // This library is released under the Apache 2...
// AsmJit - Machine code generation for C++ // // * Official AsmJit Home Page: https://asmjit.com // * Official Github Repository: https://github.com/asmjit/asmjit // // Copyright (c) 2008-2020 The AsmJit Authors // // This software is provided 'as-is', without any express or implied // warranty. In no event will the...