text
stringlengths
8.71k
38.4k
#include <iostream> #include <fstream> #include <sstream> #include <cstdlib> #include <math.h> #include <vector> #include <time.h> #include <string> using namespace std; #define pow2(n) (1 << (n)) #define bit_map(x, n) (((x) & (1 << (n))) != 0) #define bx(x) ((x) - (((x)>>1) & 0x77777777) \ - (((x)>>2...
/**************************************************************************** Copyright (c) 2008-2010 <NAME> Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. http://www.cocos2d-x.org...
// allegrosmfwr.cpp -- Allegro Standard Midi File Write #include <stdlib.h> #include <string.h> #include <math.h> #include <errno.h> #include <string> #include <iostream> #include <fstream> using namespace std; #include "allegro.h" // event_queue is a list element that keeps track of pending // things to...
/* Copyright 2005-2015 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks 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 Foundat...
// Copyright (c) 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdio.h> #include <string.h> #include <iostream> #include <queue> #include <sstream> #include "ppapi/c/pp_errors.h" #include "ppapi/c/ppb_...
/************************************************************************* * Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. * * See LICENSE.txt for license information ************************************************************************/ #include "enqueue.h" #include "argcheck.h" #include "c...
/** * @file AllSTDPSynapses.cpp * * @ingroup Simulator/Edges * * @brief A container of all STDP synapse data */ #include "AllSTDPSynapses.h" #include "AllVertices.h" #include "AllSpikingNeurons.h" #include "ParameterManager.h" AllSTDPSynapses::AllSTDPSynapses() : AllSpikingSynapses() { totalDelayPost_ = nul...
// IPA-DN-Ultra Library Source Code // // License: The Apache License, Version 2.0 // https://www.apache.org/licenses/LICENSE-2.0 // // Copyright (c) IPA CyberLab of Industrial Cyber Security Center. // Copyright (c) NTT-East Impossible Telecom Mission Group. // Copyright (c) <NAME>. // Copyright (c) SoftEth...
/*========================================================================= Copyright 2009 Rensselaer Polytechnic Institute 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/lice...
#include "include/lambdaMapper.hpp" #include "include/bresenham.h" #include <yaml-cpp/yaml.h> #include <nav_msgs/OccupancyGrid.h> #include <geometry_msgs/PoseStamped.h> #include <tf2/LinearMath/Transform.h> #include <tf2/convert.h> #include <tf2/transform_datatypes.h> #include <tf2_geometry_msgs/tf2_geometry_msgs.h> #i...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
/* Utility functions for GLaDOS Dr. <NAME> and the UAF CS 321 class, 2021-01 (Public Domain) */ /* make headers actually include function definitions here */ #define GLaDOS_IMPLEMENT_MEMORY 1 #define GLaDOS_IMPLEMENT_STRING 1 #include "GLaDOS/GLaDOS.h" // Fatal error in kernel: prints the error message a...
/* * MIT License * * Copyright (c) 2018 <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, m...
// Copyright 2008 Isis Innovation Limited #include "OpenGL.h" #include "CalibImage.h" #include <stdlib.h> #include <gvars3/instances.h> #include <cvd/utility.h> #include <cvd/convolution.h> #include <cvd/fast_corner.h> #include <cvd/vector_image_ref.h> #include <cvd/image_interpolate.h> #include <TooN/se3.h> #include ...
// -*- C++ -*- // // Package: FastPrimaryVertexWithWeightsProducer // Class: FastPrimaryVertexWithWeightsProducer // /**\class FastPrimaryVertexWithWeightsProducer FastPrimaryVertexWithWeightsProducer.cc RecoBTag/FastPrimaryVertexWithWeightsProducer/src/FastPrimaryVertexWithWeightsProducer.cc Description: The...
#include "identify_vntr.h" namespace { class Igor : Program { public: std::string version; /////////// //options// /////////// std::string input_vcf_file; std::string ref_fasta_file; std::string output_vcf_file; std::vector<GenomeInterval> intervals; std::string interval_list...
int k// ,v,N , //IAQ MW ,/*N*/tlZ , h6Hn , h2A , nv , FAv, Bv , R ,//so a6ra, ks ,TOp , vJb8 , yoq5A, HpY ,FV,iZT, K6WoC , Qhh , j2v ,hs ,Y1u , aMM, Ryk//wMyC ,tEn,//j9 p,PRWI ,Vo,VAq,hP , ogMe , Dfe, DUE , MUxq ,b4N , ni , l5Z ,CH, Hek , F70J,J,//Wx oly ,//Oc ljv0C; void f_f0 (){i...
#include <odml_visual_odometry/feature_detection.hpp> #include <fstream> #include <ros/package.h> #define EIGEN_USE_THREADS #include <eigen3/Eigen/SparseCore> #ifndef CUDA_CHECK #define CUDA_CHECK(callstr) \ { ...
/* (c) Copyright [2017] Hewlett Packard Enterprise Development LP 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 app...
#pragma once #include <iostream> #include <vector> #include <queue> #include <algorithm> #include "rectangle.hpp" #define MAX_OVERLAP 0.2 template<typename T, size_t N, size_t M, size_t m = 40> struct Xtree { struct Node; struct SplitHistory { struct SHNode { size_t value; size_t color; ...
#include <fstream> #include "depth_camera_cmd.h" #ifdef _MSC_VER #pragma warning(disable:4996) // disable "declared deprecated" warning #endif static const uint32_t Crc32Table[] = { 0x00000000, 0x04C11DB7, 0x09823B6E, 0x0D4326D9, 0x130476DC, 0x17C56B6B, 0x1A864DB2, 0x1E475005, 0x2608EDB8, 0x22C9F00F, 0x2F8AD6D6, 0x...
int cr, dU6h //d6 , vXF,tkWX ,gBta,Z8 , //nH kbvL, OSoc , /*j*/ eda9t ,y, Ul, y1 , yR , jGb1/**/ , AJhv , rFiv/*8VGE*/,// SL/*W*/, uOi /*W*/ ,tYqu,p, RXHPL ,HaP , Ep,jL ,fj,uw6, ESyt , rEb , VmJ //z8 ,g, NuMLLN ,xbzw2 ,WCmDn , ajD,//NZgzIL QkCo, ShRq, jX6Vr ,N538, LJ7 //WKi ,Z,SPNu ,RDdd , ...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * <NAME> <<EMAIL>> * * Copyright: * <NAME>, 2008 * * Last modified: * $Date: 2011-05-11 12:44:17 +0200 (Wed, 11 May 2011) $ by $Author: tack $ * $Revision: 12001 $ * * This file is part of Gecode, the gen...
#include <thread> #include <iostream> #include "use.h" typedef std::lognormal_distribution<double> lognorm; using namespace std; // Return the position of component of which TTF is minimum size_t get_min_c(double* temp_guess, double* min_value, double* total_array, vector<rel_component_t*>component...
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
/* * Copyright (c) 2015, <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 source code must retain the above copyright * notice, this list of condit...
#include "Genes/Gene_Pool.h" #include <vector> #include <iostream> #include <map> #include <iomanip> #include <csignal> #include <fstream> #include <cmath> #include <algorithm> #include <future> #include <thread> #include <chrono> using namespace std::chrono_literals; #include <array> #include <cstdio> #include <files...
// // compiler.cpp // cloxpp // // Created by <NAME> on 2018-09-02. // Copyright © 2018 <NAME>. All rights reserved. // #include "compiler.hpp" Compiler::Compiler(Parser* parser, FunctionType type, std::unique_ptr<Compiler> enclosing) : parser(parser), type(type), function(std::make_shared<FunctionObject>(0, ...
/* ------------------------------------------------ * * The MIT License (MIT) * Copyright (c) 2020 <EMAIL> * ------------------------------------------------ */ #include "util_tflite.h" #include "tflite_handpose.h" #include "custom_ops/transpose_conv_bias.h" #include <list> /* * https://github.com/google/mediapip...
/** * \file qfc_sim.h * \brief functions useful for simulation model in admb * \date 7/28/2011 * \author <NAME> * \ingroup QFC * * Following user defined functions are more useful for doing simulation model in admb, * the easy way to use these functions is with your tpl file * under the GLOBALS_S...
/* This file is part of Cloudy and is copyright (C)1978-2019 by <NAME> and * others. For conditions of distribution and use see copyright notice in license.txt */ /*ZoneEnd last routine called after all zone calculations, before iter_end_check, * upon exit radiation field is for outer edge of current zone */ /*ZoneS...
/* Copyright 2013 KLab Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
/* * Copyright 2019 Intel Corporation * * 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...
#include <stdio.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #include <stddef.h> #include <raikv/shm_ht.h> #include <raikv/ht_search.h> #include <raikv/ht_cuckoo.h> using namespace rai; using namespace kv; static const uint32_t MAX_CUCKOO_RETRY = 5; static const uint64_t cuckoo_position_8k = 8 * 10...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2013 Couchbase, 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 * * ...
#include <iostream> #include "parser.h" #include "ppm.h" #include <cmath> #include <cfloat> typedef struct { parser::Vec3f a; parser::Vec3f b; } Ray; typedef struct { float t; int objectType; int objectFace; int objectIndex; } Intersection; typedef struct { parser::Vec3f position;...
#include "includes.h" Client g_cl{ }; typedef void(__thiscall* o_proc_movement)(void*, CMoveData*); // loader will set this fucker. char username[33] = "\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x90"; // init routine. ulong_t __stdca...
#include "Graph.h" /****shared macros****/ #define MUSSP_MAX(x, y) ( ( (x) > (y) ) ? x : y ) #define MUSSP_MIN(x, y) ( ( (x) < (y) ) ? x : y ) #define MUSSP_ABS(x) ( ( (x) < 0 ) ? -x : x ) #define REDUCED_EDGE_WEIGHTS(i, j, e) {\ edge_weights[e] += distance2src[i];\ edge_weights[e] -= distance2src[j];\ }\ ...
//#ifdef UNIT_TEST //#include <windows.h> //#include <limits.h> //#include <dbgtrace.h> //#include "feedq.h" //#else #include "tigris.hxx" //#endif #ifndef _ASSERT #define _ASSERT( f ) if( (f) ) ; else DebugBreak() #endif inline BOOL ENTRY::operator==( ENTRY& rhs ) { /*++ Routine Description : ...
#include <iostream> #include <vector> typedef long long ll; typedef long double ld; #define MAXN 256 using namespace std; // Utils ll gcd(ll a, ll b) { while (b) { ll t = a % b; a = b, b = t; } return a; } ll lcm(ll a, ll b) { return (a * b) / gcd(a, b); } // 高精分数实...
/* * 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 "include/private/SkNx.h" #include "include/utils/SkRandom.h" #include "src/core/Sk4px.h" #include "tests/Test.h" template <int N> static void test_Nf(skiatest::Repor...
#include "scene.hpp" #include <iostream> #define TEXTURE_BUFFERS 6 // Private static attributes // Instances counter std::size_t Scene::instances = 0U; // Elements unique ID's std::size_t Scene::element_id = 1U; // Glad loaded flag bool Scene::initialized_glad = false; // Screen width GLsizei Scene::screen_wid...
// Copyright (c) 2014 The Bitcoin Core and Deuscoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypto/ripemd160.h" #include "crypto/common.h" #include <string.h> // Internal implementation co...
//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-2022 <NAME> and <NAME> //LIC// //LIC// This lib...
/* main.cpp Copyright (C) 2013 by <NAME> - http://cosinekitty.com/raytrace This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is granted to anyone t...
/* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in t...
#include <algorithm> #include <list> #include <mutex> #include "imgui/imgui.h" #define IMGUI_DEFINE_MATH_OPERATORS #include "imgui/imgui_internal.h" #ifdef _WIN32 #include "imgui/imgui_impl_dx9.h" #else #include "imgui/imgui_impl_opengl3.h" #endif #define STBI_ONLY_PNG #define STBI_NO_FAILURE_STRINGS #define STBI_NO...
/** * Author: <NAME> * Created: 04 July 2007 * $Id: L1RCTParameters.cc,v 1.24 2010/05/24 11:54:35 efron Exp $ **/ #include <iostream> #include <fstream> #include <cmath> #include "CondFormats/L1TObjects/interface/L1RCTParameters.h" #include <iomanip> #include "FWCore/MessageLogger/interface/MessageLogger.h" usin...
// Copyright (c) 2009-2016 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: joaander #include "RandomGenerator.h" #include <cassert> #include <stdexcept> namespace py = pybind11; using namespace std; // windows defines...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 ArangoDB GmbH, Cologne, Germany /// /// 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...
/* -------------------------------------------------------------------------- * * OpenSim: ContactGeometry.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simulation. * * S...
// Copyright (c) 2019-2021 LG Electronics, 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...
#include <iostream> #include "Style.h" #include <cstring> #include <fstream> #define CONSOLIDATE_CONSTRAINTS (true) namespace { UtfHandler utf {}; } namespace Style { using std::strcmp; /* * Generates a Style from a .bcf file (once I learn how it works -_-). * * The meaning of a .bcf file is described in t...
#include "ros/ros.h" #include <tf/tf.h> #include <tf/transform_listener.h> #include <math.h> #include <sstream> #include <string> #include <iostream> #include <cstdio> #include <ctime> #include <unistd.h> #include <cmath> #include <stdio.h> #include <stdlib.h> #include <tbb/atomic.h> #include <tf/transform_broadcaster....
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile #include "../Platform/MacOsVersion.h" #include "../cpp_foundation/XStringArray.h" // //static XBool IsOSValid_OLDOLD(const XString8& MatchOS, const XString8& CurrOS) //{ // /* example for valid matches are: // 10.7, only 10.7 (...
#include "EnginePch.h" #include "Core.h" // http://members.chello.at/easyfilter/bresenham.html #pragma warning(disable: 4244) //================================================================================================= void Pixel::PlotLine(int x0, int y0, int x1, int y1, float th, vector<Pixel>& pixels) { ...
#include "core/context.h" #include "funcs/deconv.h" #include "test_saber_func.h" #include "test_saber_base.h" #include "tensor_op.h" #include "funcs/funcs_utils.h" #include "saber_types.h" #include <vector> #include "debug.h" #include "test/saber/conv_func_helper.h" #ifdef USE_X86_PLACE #include "saber/funcs/impl/x86/x...
// Graphics library by ladyada/adafruit with init code from Rossum // MIT license // include ThaiFont Engine By ThaiEasyElec.com #include "ST7735_TEE.h" #include "glcdfont.c" #if IF_ARDUINO #include "Arduino.h" #include <avr/pgmspace.h> #include "pins_arduino.h" #include "wiring_private.h" #define AO_H *portOut...
#include "GENIEXSecExtract/XSecLooper.h" #include <cstdlib> #include "TFile.h" #include "TH1.h" #include "TVector3.h" #include "TCanvas.h" #include "TMath.h" #include "TStyle.h" #include <PlotUtils/MnvH1D.h> //====================================== //! transverseCCQETwoTrack XSec //===================================...
//#include "myqglwidget.h" //MYGLWidget::MYGLWidget(QWidget *parent) : //QGLWidget(parent) { // _refreshTimer.setSingleShot(false); // QObject::connect( // &_refreshTimer, SIGNAL(timeout()), // this, SLOT(update()) // ); // _refreshTimer.start(40); // _rx=0; // _ry=0; // _rz=0; // _se...
/* * Copyright 2012-2014, <NAME> <<EMAIL>> * Distributed under the terms of the MIT License. */ #include <string.h> #include <KernelExport.h> #include <directories.h> #include <stdio.h> #include <driver_settings.h> #include "intel_extreme.h" #include "driver.h" #define TRACE_BIOS #ifdef TRACE_BIOS # define TRA...
// $Id: $ /*! * \file PROTOTYPE4_FEM.C * \brief * \author <NAME> <<EMAIL>> * \version $Revision: $ * \date $Date: $ */ #include "PROTOTYPE4_FEM.h" #include <TAttMarker.h> // for kFullCircle #include <TCanvas.h> #include <TF1.h> #include <TGraph.h> #include <cassert> #include <cmath> #include <cstdlib> // ...
/* * H.265 video codec. * Copyright (c) 2013-2014 struktur AG, <NAME> <<EMAIL>> * * This file is part of libde265. * * libde265 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 3 o...
//=========================================================================== /* This file is part of the CHAI 3D visualization and haptics libraries. Copyright (C) 2003-2009 by CHAI 3D. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU General...
#include "phase_limiter/auto_mastering.h" #include <cmath> #include <iostream> #include <vector> #include <string> #include <stdexcept> #include <algorithm> #include <fstream> #include <mutex> #include "gflags/gflags.h" #include "picojson.h" #include "tbb/tbb.h" #include <optim.hpp> #include <boost/archive/binary_iarc...
#include "APCConnector.h" #include <boost/bind.hpp> #include <boost/thread.hpp> #include <string> using namespace std; #ifdef WIN32 #pragma warning( disable : 4996 ) #endif ///////////////////////////////////////////////// // CAPCKATimer ///////////////////////////////////////////////// CAPCKATimer...
// PRINT-RJ.cpp : Ten plik zawiera funkcję „main”. W nim rozpoczyna się i kończy wykonywanie programu. // #include "TD2_MINIMAL_API.h" #define CURL_VERBOSE 0 #define CURL_CA "cacert.pem" #define CURL_USERAGENT "PRINT-RJ/1.0.0" #define CURL_USERPWD "" //#define CURL_USERPWD "<PASSWORD>:PASSWORD" #define api...
/*************************************************************************** file : car.cpp created : Sun Mar 19 00:05:43 CET 2000 copyright : (C) 2000-2014 by <NAME>, <NAME> email : <EMAIL> version : $Id: car.cpp,v 1.24.2.5 2016/0...
/* cluster.cpp Copyright (c) 2014, 2015, 2016 <NAME> This file is distributed under the terms of the MIT license. Please see the file 'LICENCE.txt' in the root directory or http://opensource.org/licenses/mit-license.php for information. */ #include "cluster.h" #include "combination.h" #include "constants.h" #include...
// Copyright (c) 2018 Graphcore Ltd. All rights reserved. #include "Reduction.hpp" #include "IntermediatePartials.hpp" #include "IntermediatePartialsUtil.hpp" #include "ReductionPlan.hpp" #include "ReductionStages.hpp" #include "poplibs_support/Algorithms.hpp" #include "poplibs_support/logging.hpp" #include "poputil/...
//34567890123456789012345678901234567890123456789012345678901234567890123456 #include <SdFat.h> // SD card & FAT filesystem library #include <Adafruit_SPIFlash.h> // SPI / QSPI flash library #include <ArduinoJson.h> // JSON config file functions #include "Adafruit_TinyUSB.h" #include "global...
#include "database.h" #include <sstream> #include <iomanip> #include <iostream> typedef std::vector<std::string> StrVec; // ----- MySQL table schema ----- const DatabaseTable kProbSettingTable("problem_settings", { //*: used by both stages {"problem_id", "INT", "UNIQUE NOT NULL"}, //* {"i...
/* Copyright (c) 2018, <NAME>. (<EMAIL>) All rights reserved. This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe) Dynacoe was released under the MIT License, as detailed below. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated doc...
/* 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 ...
// // psystem.cpp // // Proper particle system for handling a wide variety of effects: // smoke, dust, mud, sparks, blood... // #include "game.h" #include "psystem.h" #include "mav.h" #include "FMatrix.h" #include "..\DDEngine\Headers\poly.h" #include "animate.h" #include "interact.h" #include "sound.h" #include "pcom...
// Copyright (c) Lawrence Livermore National Security, LLC and other Conduit // Project developers. See top-level LICENSE AND COPYRIGHT files for dates and // other details. No copyright assignment is required to contribute to Conduit. //----------------------------------------------------------------------------- ///...
/******************************************************************************* * COMPLETE COVERAGE PATH PLANNING ALGORITHM * At before project, turtlebot3 create map with gmapping. This map is m3.yaml * at HOME file. (64x64) At this project, this map is used for path planning algorithm. * Firstly, map is readed with ...
//----------------------------------------------------------------------------- // Copyright 2019 <NAME> // Copyright 2019 <NAME> // This file is part of the OpenPLC Software Stack. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. ...
#include "NvInfer.h" #include "cuda_runtime_api.h" #include "logging.h" #include <fstream> #include <iostream> #include <map> #include <sstream> #include <vector> #include <chrono> #include <cmath> #define CHECK(status) \ do\ {\ auto ret = (status);\ if (ret != 0)\ {\ std::c...
#include "Display.h" #include <TaskManager.h> #include <logger.h> static const uint8_t bootscreen[] = { 0x00, 0x60, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x78, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,...
#include <algorithm> #include <chrono> #include <climits> #include <cstdio> #include <ctime> #include <iostream> #include <mutex> #include <string> #include <thread> #include <vector> #if defined(_WIN32) #pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup") #include <Windows.h> #undef min #undef max #end...
//Implementation of papaer On Learning, Representing and Generalizing a Task in a Humanoid Robot //<NAME> and <NAME> and <NAME> #include "stdafx.h" #include <iostream> #include <sstream> #include <fstream> #include <cstdlib> #include "MathLib.h" #include "gmr.h" #define MAXITER 200 GaussianMixture::GaussianMixtur...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "base/os.h" #include <boost/random.hpp> #include <iostream> #include <pugixml/pugixml.hpp> #include <cfg/cfg_init.h> #include <oper/operdb_init.h> #include <controller/controller_init.h> #include <pkt/pkt_init.h> #include <services/ser...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include "../include/Richards.h" #include "../include/TEMLogger.h" // The order of this include with respect to boost // seems to matter for certain installs! #include <lapacke.h> extern src::severity_logger< severity_level > glg; Richards::Richards() { delta_t = SEC_IN_DAY;//Total time to incorporate...
// normalization.cpp: test suite runner for conversion tests between classic cfloats and blocktriples // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include <universal/utility/directives.hpp> /...
/* * Copyright (c) 2014-2016, Freescale Semiconductor, Inc. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list * of conditions...
// Copyright (c) 2015 The Truthcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> extern "C" { #include "linalg/src/tc_mat.h" } #incl...
//===-- ThumbRegisterInfo.cpp - Thumb-1 Register Information -------------===// // // 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 // //===----------------------------...
#include <limits.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "luksan.h" #define MAX2(a,b) ((a) > (b) ? (a) : (b)) #define MIN2(a,b) ((a) < (b) ? (a) : (b)) /* *********************************************************************** */ /* SUBROUTINE PLIS ALL SYSTEMS ...
/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
// // YaPB - Counter-Strike Bot based on PODBot by <NAME>. // Copyright © 2004-2022 YaPB Project <<EMAIL>>. // // SPDX-License-Identifier: MIT // #include <yapb.h> ConVar cv_display_welcome_text ("yb_display_welcome_text", "1", "Enables or disables showing welcome message to host entity on game start."); ConVar cv_en...
#include <iostream> #include <sstream> #include <unordered_map> #include <list> #include <fstream> #include <gtkmm.h> #define GL_GLEXT_PROTOTYPES #include <GL/gl.h> #include <GL/glu.h> #include <lcm/lcm-cpp.hpp> #include <bot_core/camtrans.h> #include <bot_param/param_client.h> #include <bot_param/param_util.h> #inc...
//-------------------------------------------------------------------------- // // Environment: // This software is part of the EvtGen package developed jointly // for the BaBar and CLEO collaborations. If you use all or part // of it, please give an appropriate acknowledgement. // // Copyright Informat...
/** * \class L1TEventInfoClient * * * Description: see header file. * * * \author: <NAME> - HEPHY Vienna * * */ // this class header #include "DQM/L1TMonitorClient/interface/L1TEventInfoClient.h" // system include files #include <cstdio> #include <sstream> #include <fstream> #include <iostream> #include <...
#include "stdafx.h" #include <iostream> #include "dNewton.h" #define DEMO_GRAVITY -9.81f dNewton* gNewton; struct BasciCarParameters { enum DifferentialType { m_4WD, m_RWD, m_FWD, }; dFloat VEHICLE_MASS; dFloat ENGINE_MASS; dFloat TIRE_MASS; dFloat ENGINE_ARMATURE_RADIO; dFloat ...
#include "PNEvolution.hpp" #include <cmath> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_odeiv2.h> using Quaternions::Quaternion; using Quaternions::exp; using Quaternions::log; using Quaternions::conjugate; using Quaternions::xHat; using Quaternions::yHat; using Quaternions::zHat; using Q...
/* Copyright (c) 2017 landave 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...
// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/bringup/bin/netsvc/inet6.h" #include <arpa/inet.h> #include <lib/zircon-internal/fnv1hash.h> #include <stdint.h> #include <stdio.h> #include...