text
stringlengths
5.71k
33.7k
/************************************************************\ translation.cpp Files for international translation in Ben's project \************************************************************/ #include <stdio.h> #include <stdint.h> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <GL/gl.h> #include "gen...
// Protocoale de comunicatii // Tema 2 // <NAME> - 321CD #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <stdbool.h> #include <netinet/tcp.h> #inclu...
/* small class to filter positions and assign major minor. This class can be improved very much. Thorfinn 7march 2013 On the most basic level then this class will remove those sites with an effective sample size<minInd It can also be used for filtering away those sites not included in the -sites file.keep ...
/******************************************************************************/ // // CONFCALL.CPP - Source code for the CTSPIConferenceCall object. // // Copyright (C) 1994-2...
//===============================================================================================// /*! * \file MeshSOA.cpp * \author <NAME> * \version 1.0 */ //===============================================================================================// #include "MeshSOA.hpp" #include <cassert> ...
#include <stdio.h> #include <stdlib.h> #define _USE_MATH_DEFINES #include <IL/il.h> #include <math.h> #include <vector> #ifdef __APPLE__ # include <GLUT/glut.h> #else # include <GL/glew.h> # include <GL/glut.h> #endif #define ANG2RAD M_PI / 180.0 #define COWBOYS 8 #define RAIO_COWBOYS 5 ...
/* * (c) Copyright 2019 Xilinx, 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 ap...
//----------------------------------------------------------------------------- // File : KpixGuiRunView.cc // Author : <NAME> <<EMAIL>> // Created : 09/25/2008 // Project : SID Electronics API - GUI //----------------------------------------------------------------------------- // Descript...
/* Copyright (c) 2020, <NAME>, www.romanshuvalov.com 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...
/** Similarity Search “© Copyright 2017 Hewlett Packard Enterprise Development LP 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 conditi...
#include <algorithm> #include <cmath> #include <string> #include <unordered_set> #include <vector> #include "DataFormats/Math/interface/GeantUnits.h" #include "DetectorDescription/Core/interface/DDAlgorithm.h" #include "DetectorDescription/Core/interface/DDAlgorithmFactory.h" #include "DetectorDescription/Core/interfa...
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
/* * See header file for a description of this class. * * \author <NAME> - University and INFN Torino * * threadsafe version (//-) oct/nov 2014 - WATWanAbdullah -ncpp-um-my * */ #include <DQM/DTMonitorClient/src/DTOccupancyTestML.h> #include "FWCore/ServiceRegistry/interface/Service.h" #include "FWCore/Fram...
#include <array> #include <cassert> #include <cstring> #include <memory> #include <stdexcept> #include <string> #include <vector> #include <fmt/printf.h> using namespace std::literals; namespace { template <class T> struct Entry { T value; const char* tag; const char* description; }; template <...
//===- CreateSiFiveMetadata.cpp - Create various metadata -------*- C++ -*-===// // // 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 // //===---------------------------...
/* vim:tabstop=4:expandtab:shiftwidth=4 * * Idesk -- DesktopIconConfig.cpp * * Copyright (c) 2013 neagix * Copyright (c) 2002, Chris (nikon) (<EMAIL>) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
/* NeuQuant Neural-Net Quantization Algorithm * ------------------------------------------ * * Copyright (c) 1994 <NAME> * * NEUQUANT Neural-Net quantization algorithm by <NAME>, 1994. * See "Kohonen neural networks for optimal colour quantization" * in "Network: Computation in Neural Systems" Vol. 5 (1994) pp 3...
// -*- C++ -*- // // Package: ParticleTowerProducer // Class: ParticleTowerProducer // /**\class ParticleTowerProducer ParticleTowerProducer.cc RecoHI/ParticleTowerProducer/src/ParticleTowerProducer.cc Description: [one line class summary] Implementation: [Notes on implementation] */ // // Original Au...
// ========================================================================== // // Copyright (c) 2014-2019 The University of Texas at Austin. // // All rights reserved. // // ...
/* * (c) Copyright 2011-2013, Hewlett-Packard Development Company, LP */ #include "w_defines.h" /** * Implementation of verification related functions in btree_impl.h. */ #define SM_SOURCE #define BTREE_C #include "sm_base.h" #include "btree_page_h.h" #include "btree_impl.h" // these are for volume-wide verifi...
#include <Windows.h> #include "Global.h" #include "Input.h" #include "Player.h" #include "Bullet.h" // the con/destructor(s) Player::Player(const char *const scoreFileName, const COORD scoreSize, const unsigned short numOfScores, const COORD scorePos, // the score sprite parameters const char *const fileName,...
#include "conditionaltest_serial.h" #include "conditionaltest_workblock.h" #include "conditionaltest_resultblock.h" #include "ccmatrix_pair.h" #include "correlationmatrix_pair.h" #include "correlationmatrix.h" #include "correlationmatrix_pair.h" #include "expressionmatrix_gene.h" #include <ace/core/elog.h> #include <gs...
/****************************************************************************** ** Filename: clustertool.c ** Purpose: Misc. tools for use with the clustering routines ** Author: <NAME> ** History: 6/6/89, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Apache License, ...
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and <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 ...
// the trajectory action server for two wheel robot // communication includes // subscribe to topic "swarm_robot_poses" with message swarm_robot_poses.msg // subscribe to topic "two_wheel_poses" with message two_wheel_poses.msg // publish to topic "two_wheel_poses_cmd" with message two_wheel_poses.msg ...
/* Copyright (c) 2007 <NAME>. 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 require...
/* -------------------------------------------------------------------------- * * File Ch4_Bullets.cpp * Ported By <NAME> * Contact <EMAIL> * * Created By <NAME> * Contact <EMAIL> * * --------------------------------------------------------------...
/* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docum...
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2011 Universita' di Firenze, Italy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * *...
#include <yobaperl/perl.hpp> #include <yobaperl/test.hpp> #ifdef YOBAPERL_MULTIPLICITY #include <thread> #include <future> #endif using namespace yoba; bool test() { Perl perl; Test test(perl); // Eval { perl.eval(" $test = 'pass' "); PerlInterpreter * interp = perl.getInterpreter(...
#include "window/imgui_extra.h" #include <sstream> #include <iomanip> #include "fmt/format.h" #include "imgui/imgui_internal.h" #include "core/angle.h" #include "core/assert.h" #include "core/rgb.h" #include "core/numeric.h" #include "render/texture.h" #include "window/imgui_icons.h" namespace euphoria::window {...
//*********************************************************************************************** //16-step sequencer module for VCV Rack by <NAME> - AS - https://github.com/AScustomWorks/AS // //Based on SEQ16 VCV Rack by Autodafe http://www.autodafe.net //Based on code taken from the Fundamentals plugins by <NAME> ht...
#include "embroidermodder.h" #include <QDebug> #include <QtGlobal> #include <QSettings> namespace { // Note: on Unix we include the trailing separator. For Windows compatibility we omit it. QString SettingsDir() { #if defined(Q_OS_UNIX) || defined(Q_OS_MAC) QString homePath = QDir::homePath(); return homePath + ...
/** @file F_expns_methd.cpp * * Implementation of F-expansion and modified F-expansion methods */ #include <ginac/ginac.h> #include<cln/exception.h> #include <fstream> #include <sstream> #include <cstdlib> #include "inifcns.h" #include "simplify.h" #include "utility.h" #include "derivative.h" #in...
#include <Maestro.H> #include <Maestro_F.H> using namespace amrex; void Maestro::MakeGravCell(BaseState<Real>& grav_cell, const BaseState<Real>& rho0_s) { // timer for profiling BL_PROFILE_VAR("Maestro::MakeGravCell()", MakeGravCell); const auto& r_cc_loc = base_geom.r_cc_loc; ...
#include "app/rnn/hierarchical_softmax.h" #include <stdio.h> #include <stdlib.h> #include <algorithm> #include <cmath> #include <limits> #include <vector> #include "app/rnn/maxent.h" #include "app/rnn/util.h" using std::vector; static const int kDynamic = 0; class HSTree::Tree { public: // children array defi...
/* * Copyright (C) 2017 Glimp IP Ltd * * 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, pub...
/* * Copyright (c) 2017, <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 and ...
// [0m sgr0 Reset all attributes // [1m bold Set "bright" attribute // [2m dim Set "dim" attribute // [3m smso Set "standout" attribute // [4m set Set "underscore" (underlined text) attribute // [5m blink Set "blink" attribute // [7m rev Set "reverse" attribute // [8m invis Set "hidden" attribute enu...
/** * 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 ...
/* Copyright 2017-2020 Siemens AG 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, sub...
#include "Battleground.h" #include "..\FlowField.h" #include <SpriteBatchBuffer.h> #include <ds_imgui.h> #include "EventTypes.h" #include "utils\CSVFile.h" ds::vec2 convert_to_screen(int gx, int gy) { return{ START_X + gx * 46, START_Y + gy * 46 }; } // ---------------------------------------------------------------...
#include <algorithm> #include <iostream> #include <memory> #include <iterator> #include <map> #include <queue> #include <vector> #include<bits/stdc++.h> namespace Huffman { class node { public: std::shared_ptr<node> left,right; std::string str; size_t frequency=0; }; bool no...
#include "SFApp.h" //Playerscore int playerscore = 0; int gameoverbool = 0; int gamewincount = 0; SFApp::SFApp(std::shared_ptr<SFWindow> window) : fire(0), is_running(true), sf_window(window) { int canvas_w, canvas_h; SDL_GetRendererOutputSize(sf_window->getRenderer(), &canvas_w, &canvas_h); app_box =...
#include <iostream> #include <fstream> #include <cctype> #include <sstream> #include <stdexcept> #include <memory> #include <ctime> #include <boost/format.hpp> #include <boost/algorithm/string.hpp> #include "SGFTree.h" #include "KoState.h" #include "SGFParser.h" #include "Utils.h" using namespace Utils; void SGFTree...
#include <chrono> #include <iostream> #include <boost/filesystem.hpp> #include <boost/iostreams/device/mapped_file.hpp> #include <opencv2/highgui/highgui.hpp> #include "gil/mat.hpp" #include "gil/vec.hpp" #include "poisson_serial.hpp" #include "poisson_tbb.hpp" #include "cl/device.hpp" #include "cl/context.hpp" #i...
#include <bits/stdc++.h> using namespace std; const double EPS = 1e-9; // point and vector class class pv { public: double x, y; pv(); pv(const double &x, const double &y); pv operator+(const pv &other) const; pv operator-(const pv &other) const; pv operator*(const double &k) const; pv operator/(const...
/****************************************************************************** * * Copyright (c) 2014, <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 of sou...
#include "tiger/codegen/codegen.h" #include <cassert> #include <sstream> #include <iostream> extern frame::RegManager *reg_manager; namespace { constexpr int maxlen = 1024; constexpr int wordsize = 8; } // namespace namespace cg { void CodeGen::Codegen() { tree::StmList *stm_list = traces_.get()->GetStmList()...
/* -*- mode:C++; c-basic-offset:4 -*- Shore-kits -- Benchmark implementations for Shore-MT Copyright (c) 2007-2009 Data Intensive Applications and Systems Labaratory (DIAS) Ecole Polytechnique Federale de Lausanne All Rights Reserved. ...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "fpdfsdk/pwl/cpwl_scroll_bar.h" #include <algorithm> #include <sstre...
//-------------------------------------------------------------------- // Microsoft OLE DB Test // // Copyright 1995-2000 Microsoft Corporation. // // @doc // // @module CRowsetObject Implementation Module| This module contains implementation information // for rowset functions for the private library. // ...
/*************************************************************************** commandline.cpp <NAME> ------------------- Command line parsing stuff.. * Add argument with ' ' for arguments that do not use - (i.e. filenames) * Manditory for the ' ' requires only 1 argument...
/* Copyright (c) 2015 Convey Computer Corporation * * This file is part of the OpenHT toolset located at: * * https://github.com/TonyBrewer/OpenHT * * Use and distribution licensed under the BSD 3-clause license. * See the LICENSE file for the complete license text. */ #include "data.h" #include <stdio.h> #incl...
#include <cassert> #include <cstdio> #include <cstdlib> #include <iostream> #include <ctime> #include "CalibCalorimetry/EcalLaserAnalyzer/interface/ME.h" #include "CalibCalorimetry/EcalLaserAnalyzer/interface/MEGeom.h" #include "CalibCalorimetry/EcalLaserAnalyzer/interface/MEChannel.h" //GHM ClassImp(ME) using names...
/** * @file Scene.cpp * @author <NAME> <<EMAIL>> * @version 0.6 * * @section LICENSE * * Copyright (c) 2016 <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 * wi...
#include <algorithm> #include <cassert> #include "SDL.h" #include "ChooseClassPanel.h" #include "Button.h" #include "ChooseClassCreationPanel.h" #include "ChooseNamePanel.h" #include "ListBox.h" #include "TextBox.h" #include "../Entities/CharacterClass.h" #include "../Entities/CharacterClassCategory.h" #include "../...
/******************************************************************************* * Copyright 2017-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.apa...
#include <GL/glew.h> #include <GL/glut.h> #include <glm.hpp> #include <gtc/matrix_transform.hpp> #include <gtc/type_ptr.hpp> #include <iostream> #include <vector> #include <random> #include <fstream> #include <sstream> namespace VoronoiTool { class Constants { public: static constexpr double PI = 3.141592653589793...
// // Tags.cpp // libraries/voxels/src // // Created by <NAME> on 7/3/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 <iostream> #include <zconf.h> #include <zli...
/*****************************************************************************\ Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. This file is licensed under the Snes9x License. For further information, consult the LICENSE file in the root directory. \*************************...
/**************************************************************************** * Copyright (c) 2015 - 2016, CEA * 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 mus...
/* This file is part of solidity. solidity 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. solidity is distributed in the hope that i...
/* * Copyright (c) 2008 <NAME> <rusu -=- cs.tum.edu> * * 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 * not...
#include "../KoralFX.hpp" #include "../KoralfxComponents.hpp" #define PI_4 0.78539816339 #define SQRT2_2 0.70710678118 struct Mixovnik : Module { enum ParamIds { AUX1_VOLUME, AUX2_VOLUME, MIX_L_VOLUME, MIX_R_VOLUME, MIX_LINK, AUX1_MUTE, AUX2_MUTE, MIX_L_MUTE, MIX_R_MUTE, LINK_PARAM, PAN_PARAM ...
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // XSDK // Copyright (c) 2015 <NAME> // // Use, modification, and distribution is subject to the Boost Software License, // Version 1.0 (See accompanying file LICENSE). // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-...
// // GMLAN.cpp // canhacker // // Created by <NAME> on 3/23/22. // #include "GMLAN.hpp" #include "FrameDB.hpp" #include <bitset> #define PLAT_GEN_STAT 0x1F1 #define TRAN_ROT 0x0C7 #define PLAT_CONF 0x4E9 #define TRANS_STAT_3 0x4C9 #define TRANS_STAT_2 0x1F5 #define ENGINE_GEN_STAT 0x1A1 #defin...
/* * levelset2D.cpp */ #include "levelset2D.h" #include <stdio.h> #include <vector> #include <queue> #include "interp.h" #include "utility.h" #include <math.h> using namespace std; #if defined(__APPLE__) || defined(MACOSX) #include <GLUT/glut.h> #include <OpenGL/gl.h> #include <sys/time.h> #elif defined(WIN32) #i...
//------------------------------------------------- // // Class: DTTracoCard // // Description: Contains active DTTracoChips // // // Author List: // <NAME> // Modifications: // X/03 <NAME> // 22/VI/04 SV: last trigger code update // 13/XII/04 SV: Zotto's traco acceptance routine implemented // V/05 S...
int If, WgnE , ftB, //9j l5OE ,En , X0,Pl ,/*iYCv*/ RIU //gNv ,v , EWC, e , N , lu ,j1, RGmN , A ,Aku , o6 /*9nu*/,/*M*/JOC,/*0*/ nE1Jc ,//r O// // , ib ,mh9//9PCe , Ckr , VY , JPr , zK , vX ,dfyh , KC ,W3km3 , Z9 , IA5uZQS , t9 ,jb,esh//g ,ZsOTN,qdm,//9X yW ;void/*iIRj*///oi f_f...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
// // Copyright 2011 Light Transport Entertainment, Inc. // // Licensed under BSD license // // node.js and v8 #include <v8.h> #include <node.h> // C/C++ #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> // RDMA CM #include <rdma/rdma_cma.h> using namespace v8; static const int RDMA_BUFF...
//LIC// ==================================================================== //LIC// This file forms part of oomph-lib, the object-oriented, //LIC// multi-physics finite-element library, available //LIC// at http://www.oomph-lib.org. //LIC// //LIC// Copyright (C) 2006-2021 <NAME> and <NAME> //LIC// //LIC// This lib...
/************************************************************** * * 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...
#include "ukf.h" #include "tools.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 ignor...
// // Copyright (c) 2013, Ford Motor Company // 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...
// Copyright (C) 2020 Intel Corporation // apt-get install libfcgi-dev // gcc fcgitest.c -lfcgi #include <inference_engine.hpp> #include <stdlib.h> #include <string.h> #include <alloca.h> #include <string> #include <stdio.h> #include <iostream> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> #inc...
//------------------------------------ // (c) Reliable Software, 2000 - 2008 //------------------------------------ #include "precompiled.h" #include "CmdArgs.h" #include "CmdFlags.h" #include "SccProxyEx.h" #include "Catalog.h" #include "CmdLineVersionLabel.h" #include "Crypt.h" #include "GlobalMessages.h" #include...
#include"non_uniform_grid.h" #include"findneighbor.h" extern OctCell *bodygrid; extern Node *HeadListAllGrid; //x,y belong to [-1,1]X[-1,1] 需要将 [x_{i-1/2} x_{i+1/2}] => [-1,1] double approx_sol(double x, double y, double *doftmp, int n=nDOF ); //直接x,y是原始计算区域的坐标 [x_{i-1/2} x_{i+1/2}] double n_approx_sol(double x,dou...
/** @author <NAME> */ #include "ItemPropertyView.h" #include "ItemTreeView.h" #include "Item.h" #include "ItemList.h" #include "ItemManager.h" #include "ViewManager.h" #include "MenuManager.h" #include "MessageView.h" #include "PutPropertyFunction.h" #include "SelectionListEditor.h" #include "LazyCaller.h" #include...
#include "meemd.h" #include <stdio.h> #include <stdexcept> #include <netcdf.h> #include "tools.h" #include "eemd.h" #include <sstream> #include <ctime> const bool VERBOSE = 1; //---------------------------------------------------------------------- MEEMD::MEEMD( const std::string& filename, int type ) { if(VERBOSE) p...
/* Created by <NAME> and <NAME> Copyright (C) 2009 EPFL (Ecole Polytechnique Federale de Lausanne) This file is part of LFI (Library-level Fault Injector). LFI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by...
/// \file /// \brief This file implements all the slam functionality of the turtlebot /// /// PARAMETERS: /// ~odom_frame_id (string) - Name of the odometry frame /// ~body_frame_id (string) - Name of the baselink of the robot /// ~left_wheel_joint (sring) - Name of the left wheel joint /// ~right_wheel_joi...
// jhcGraphizer.cpp : turns parser alist into network structures // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 2018-2020 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file ex...
/* CH-231-A hw9_p1.cpp <NAME> <EMAIL> */ #include <iostream> #include <string> #include "RedBlackTree.h" void RedBlackTree::createNILNode(Node *node, Node *parent) { // Place NIL node properties to the given node and connect it to parent node->data = 0; node->color = BLACK; node->left = nullptr; ...
#include "Tree.h" Tree::Tree(string phrase , int dim , int base , bool istree , lbfgsfloatval_t alpha , lbfgsfloatval_t* words , lbfgsfloatval_t* theta , lbfgsfloatval_t* gWord , lbfgsfloatval_t* gTheta){ this -> phrase = phrase; this -> words = words; this -> theta = theta; this -> dim = dim; this -> alp...
#include <time.h> #include <stdio.h> #include "cpu_affinity.h" #include <vector> #define LOOP (1e9) //#define LOOP (0x40000000ll) //#define OP_FLOATS (80) //一次fmla是并行4组mul+add,所以`fmla v0.4s, v0.4s, v0.4s`这条指令是8 ops。一共10条指令,因此是80 ops。 // float32x4_t vfmaq_f32 (float32x4_t __a, float32x4_t __b, float32x4_t __c); // FML...
/* 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 of the License, or (at your option) any later version. This program is distributed in the hope that it will be usefu...
// Color.cpp // // Copyright (c) 1994-2020 By <NAME>, All Rights Reserved. // // 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 right...
#include "trajectory_scans_2_occgrid_alg_node.h" TrajectoryScans2OccGridAlgNode::TrajectoryScans2OccGridAlgNode(void) : algorithm_base::IriBaseAlgorithm<TrajectoryScans2OccGridAlgorithm>() { //init class attributes if necessary new_trajectory_ = false; last_step_ = 0; double p_free, p_obst, p_thres_free, p_t...
#include "geometrycentral/stripes.h" #include <Eigen/SparseCholesky> // ONLY WORKS FOR MESHES WITHOUT BOUNDARY Stripes::Stripes(HalfedgeMesh* m, Geometry<Euclidean>* g) : mesh(m), geom(g), phi(m), r(m), field(m), singularities(m), branchCover(m), omega(m...
#include "nice_tree/draw_nice.h" #include "reductions.h" #include "trie/brute_force.h" #include "trie/order_optimizer.h" /******************************************************************************* The implementation of a reduction consists of a function that gets a pointer to an instance, a reference to vector wh...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <unistd.h> #include <math.h> #include <map> #include <mpi.h> #include <omp.h> #include "LossyCountMinSketch.h" #include "HashFunction.h" /* Reads data in 64MB chunks */ #define CHUNK_SIZE (64*1024*1024) #define TRUE 1 #define FALS...
#include <GL/gl.h> #include <GL/glut.h> #include <vector> #include <map> #include <iostream> #include <math.h> using namespace std; GLfloat red[] = { 0.541176f, 0.1098f, 0.1098f, 1.0f }; GLfloat gray[] = { 0.6f, 0.6f, 0.6f, 1.0f }; GLfloat white[] = { 1.0f, 1.0f, 1.0f, 1.0f }; GLfloat green[] = { 0.1f, 0.9f, 0.1f, 1....
/* * SWCPU.cpp * * Created on: Jun 15, 2011 * Author: fritz */ #include "SWCPU.h" //TODO: hack to pass data for debug output Align cur_align; SWCPUCor::SWCPUCor(int gpu_id) { // cigar = bool(((gpu_id >> 8) & 0xFF) == 1); batch_size = 1; mat = 2.0f; mis = -5.0f; gap_open_read = -5.0f; gap_open_ref ...
#include "RfiFrameDrop.hpp" #include "Config.hpp" // for Config #include "Hash.hpp" // for Hash, operator!= #include "Stage.hpp" // for Stage #include "StageFactory.hpp" // for REGISTER_KOTEKAN_STAGE, StageMakerTemplate #include "Telescope.hpp" // for Telescope #include...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
/* Copyright (c) 2007 <NAME>. 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 require...
#include <unistd.h> #include <ctype.h> #include <new> #include <string.h> #include <stdlib.h> #include <stdio.h> template<class T> inline void NEVER(T s){ if(s){ fprintf(stderr,"ERROR: Something that should never happened has happened...\n"); exit(1); } }; template<class T> class Vector{ int size,alloc; T* p;...
#include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <array> #include <chrono> #include <cstring> #include <thread> #include <mutex> #include <future> #include <opencv2/opencv.hpp> #include <grpcpp/grpcpp.h> #include <glog/logging.h> #include "comm/interface.grpc.pb....