text
stringlengths
5.71k
33.7k
#include "TLibCommon/TComStatistics.h" #include <math.h> #include <string.h> double QP_config = -1; bool isDepthPic = false; UInt ViewIdVal = 0; UInt numSubCU = 0; UInt numCU = 0; UInt numSkip = 0; UInt numMerge = 0; UInt numInter2Nx2N = 0; UInt numOthers = 0; double rateSkip = 0.0; double rateMerg...
#include "tdm_solve_lag.h" #include "tdm_db.h" #include "tdm_net.h" #include "timing_graph.h" #include "gurobi_c++.h" void TdmLagMultiplierUpdater::removeAccIssue(Node *node) { auto *timingGraph = _tdmLagData._timingGraph; double driverSum = 0, fanoutSum = 0; if (node == timingGraph->getSink()) fa...
// // writeFb.cpp // MNNConverter // // Created by MNN on 2019/01/31. // Copyright © 2018, Alibaba Group Holding Limited // #include <fstream> #include <iostream> #include <algorithm> #include <set> #include <string> #include "MNN_generated.h" #include "half.hpp" #include "logkit.h" #include "writeFb.hpp" #includ...
//================================================================================== // BSD 2-Clause License // // Copyright (c) 2014-2022, NJIT, Duality Technologies Inc. and other contributors // // All rights reserved. // // Author TPOC: <EMAIL> // // Redistribution and use in source and binary forms, with or withou...
#include "lab_m1/tema1/Survivio.h" #include "lab_m1/tema1/transform2D.h" #include "lab_m1/tema1/object2D.h" #include "lab_m1/tema1/Character.h" #include "lab_m1/tema1/Projectile.h" #include "lab_m1/tema1/Obstacle.h" #include "core/engine.h" #include "utils/gl_utils.h" #include <vector> #include <string> #include <ios...
// -*- C++ -*- // // ====================================================================== // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright ...
/* * Copyright (c) 1999-2004 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * Portions Copyright (c) 1999-2004 Apple Computer, Inc. All Rights * Reserved. This file contains Original Code and/or Modifications of * Original Code as defined in and that are subject to the Apple Publ...
const char *help = "\ Multi-class SVM with interpolation option\n\ Author: <NAME> \n\ Based on SVMTorch Multi III (c) Trebolloc & Co 2002\n\ Last modified: 19.07.2007 \n\ This program will train several SVMs, for classification with\n\ more than two classes, using a one-against-all approach.\n\ It uses a gaussian kerne...
#include <stdlib.h> #include <stdio.h> #include <locale> #include <getopt.h> #include "src/pfssSolution.h" #include "src/carRotInfo.h" #include "src/filenames.h" #include "boost/filesystem.hpp" #include "boost/regex.hpp" #include "boost/format.hpp" #include "boost/algorithm/string.hpp" using namespace boost::filesys...
/* * 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); you ma...
/************************************************************************* * * file: mem.cpp * * ==================================================================== * Memory allocation and deallocation, string, linked list, and resizable * hash table utilities. * Init_memory_utilities() should be called befor...
// Copyright 1996-2019 Cyberbotics 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 or agr...
// -*- C++ -*- // // ====================================================================== // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright ...
#pragma once #include <list> #include <vector> #include <random> #include <functional> #include <iostream> #include <fstream> #include <assert.h> #define STILL 0 #define NORTH 1 #define EAST 2 #define SOUTH 3 #define WEST 4 extern bool quiet_output; struct Color { float r, g, b; }; namespace hlt{ struct Lo...
/* * IPK - Computer Communications and Networks * Project 1 * <NAME> (xtotha01) * Client/server application for file transfer via HTTP using RESTful API. * 19.3.2017 * * CLIENT */ #include <iostream> #include <string> #include <vector> #include <fstream> #include <streambuf> #include <algorithm> #include <errn...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2014, 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: // // * R...
/* ** deko3d Example 08: Deferred Shading (Multipass Rendering with Tiled Cache) ** This example shows how to perform deferred shading, a multipass rendering technique that goes well with the tiled cache. ** New concepts in this example: ** - Rendering to multiple render targets (MRT) at once ** - Floating point render...
#include <fstream> #include <iostream> #include <math.h> #include <string> #include <vector> #include "pb2cnf.h" #include "utils.h" using namespace std; using namespace PBLib; string OUTPUT_FILE = "cnf.dimacs"; string OUT_DIR = "out"; string META_FILE = "meta.txt"; const int CSVERR_W = 10; const int CSVERR_B = 11; ...
/*********************************************************************************** Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. (c) Copyright 1996 - 2002 <NAME> (<EMAIL>), <NAME> (<EMAIL>) (c) Copyright 2002 - 2004 <NAME> (c) Copyright 2002 - 2005 <NA...
#include "ColorUtil.h" #include <map> #include <sstream> #include <cstdio> #include <SDL2/SDL_log.h> #define RGBA(R, G, B, A) {{{R/255.0f, G/255.0f, B/255.0f, A/255.0f}}} #define RGB(R, G, B) RGBA(R, G, B, 0xff) NVGcolor ColorUtil::stringToColor(const std::string &color) { static std::map<std::string, NVGcolor> ...
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE ...
/* ************************************************************************ * Copyright 2018-2019 Advanced Micro Devices, Inc. * ************************************************************************ */ #include "cblas_interface.hpp" #include "norm.hpp" #include "rocblas.hpp" #include "rocblas_init.hpp" #include "...
/* socket_io_client.cpp * <NAME>, June 2012 * websocket++ handler implementing the socket.io protocol. * https://github.com/LearnBoost/socket.io-spec * * This implementation uses the rapidjson library. * See examples at https://github.com/kennytm/rapidjson. */ #include "socket_io_client.hpp" // Comment this o...
#include <stdio.h> #include <stdlib.h> #include <ode/ode.h> #include <drawstuff/drawstuff.h> #include "uart_mcu.h" #ifdef _MSC_VER #pragma warning(disable:4244 4305) // for VC++, no precision loss complaints #endif #ifdef dDOUBLE #define dsDrawBox dsDrawBoxD #define dsDrawSphere dsDrawSphereD #define dsDrawCa...
#include <csignal> #include "main.h" #include "Autons.hpp" #include "Configuration.hpp" #include "DriverControl.hpp" #include "objects/controller/controller.hpp" #include "objects/lcdCode/DriverControl/AutonomousLCD.hpp" #include "objects/lcdCode/DriverControl/DriverControlLCD.hpp" #include "objects/lcdCode/gui.hpp" ...
#include <cstdio> #include <cstdlib> #include <iostream> #include <cfloat> #include <SDKFile.hpp> #include <SDKCommon.hpp> #include <SDKApplication.hpp> #ifdef _OPENMP #include <omp.h> #else #warning No OpenMP support. Expect performance impacts. #endif #define __NO_STD_STRING #include "CrypTool.h" unsigned long Di...
/* -*- mode: c++; fill-column: 132; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* fileOpr.c - File type operation. Will call low level file drivers */ #...
/* * Kaidan - A user-friendly XMPP client for every device! * * Copyright (C) 2016-2021 Kaidan developers and contributors * (see the LICENSE file for a full list of copyright authors) * * Kaidan is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License a...
// // initialisation.cpp // // // Created by <NAME> on 09/03/2017. // // //--Checked and commented 16/05/18---// //-----Initialisation functions-----// #include "lung_model_discrete_branching.hpp" int initialise_system(Tree &stree, Conversions &cons, Options &o) { //-- Output file of simulation summary --// ofst...
#include <chrono> #include <fstream> #include <iostream> #include <iterator> #include <map> #include <queue> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #include "base/base.h" #include "json11.hpp" #include "ninetan/ninestream_util.h" #include "strings/numbers....
/* * thunks.cpp - Thunks to share data and code with MacOS * * SheepShaver (C) 1997-2008 <NAME> and <NAME> * * 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 L...
/* * ******** merced: calculate the transfer matrix ********* * $Revision: 1 $ * $Date: 2006-02-01 19:06:56 -0800 (Wed, 01 Feb 2006) $ * $Author: hedstrom $ * $Id: Watt.cpp 1 2006-02-02 03:06:56Z hedstrom $ * ******** merced: calculate the transfer matrix ********* * * # <<BEGIN-copyright>> * # <<END-copyrigh...
#include <pybind11/chrono.h> #include <semaphore.h> #include <torch/extension.h> #include <torch/script.h> #include <torch/torch.h> #include <algorithm> #include <atomic> #include <cassert> #include <chrono> #include <condition_variable> #include <functional> #include <iostream> #include <iterator> #include <limits> #...
/* * robotnik_trajectory_pad * Copyright (c) 2013, Robotnik Automation, SLL * 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 c...
#include "ServerConnection.h" #include "handlers/Auth.h" #include "handlers/BlockChange.h" #include "handlers/Chat.h" #include "handlers/Chunk.h" #include "handlers/PlayerInfo.h" #include "handlers/PlayerMovement.h" #include "handlers/Time.h" #include "handlers/WorldInfo.h" #include "world/RemoteSource.h" #include "we...
// (C) Copyright 1996-1999 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and the limited warr...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <array> #include <iostream> #include <map> #include <vector> #include <k4arecord/playback.h> #include <k4a/k4a.h> #include <k4abt.h> #include <BodyTrackingHelpers.h> #include <Utilities.h> #include <Window3dWrappe...
#include "Butter.hpp" #include "Car.hpp" #include "CarCamera.hpp" #include "GameManager.hpp" #include "Orange.hpp" #include "OrthogonalCamera.hpp" #include "PerspectiveCamera.hpp" #include "Roadside.hpp" #include "Table.hpp" #include "LightSource.hpp" #include "CandleLight.hpp" #include "Vector4.hpp" #include "Candle....
/* * Copyright (c) 2017-2018 InterlockLedger Network * * 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 appli...
//===-- LLVMTargetMachine.cpp - Implement the LLVMTargetMachine class -----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/// @file TreeCalClusterAssociator.cxx /** * @brief Provides X-Y space points from the same tower from TkrClusterCol * * * @authors <NAME> * * $Header: /nfs/slac/g/glast/ground/cvs/TkrRecon/src/PatRec/TreeBased/TreeCalClusterAssociator.cxx,v 1.25 2013/02/19 04:16:18 usher Exp $ * */ #include "TreeCalClusterAsso...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
#include "circuit.hpp" #include <cstdio> #include <tuple> #include <queue> #include "game.hpp" #include "types.hpp" sf::Texture Circuit::textureAtlas{}; std::vector<Circuit::TileType> Circuit::tileTypes{}; Circuit::Circuit(Game& _game) : game{ _game } { } bool Circuit::loadFromFile(const std::string...
/*************************************************************************** file : raceresults.cpp created : Thu Jan 2 12:43:10 CET 2003 copyright : (C) 2002 by <NAME>� email : <EMAIL> version : $Id: raceresults.cpp,v 1.9.2.1 2008/05/31 15:55:36 b...
#include "TouchBtn.hpp" //TouchBtn::TouchBtn(LGFX& ) //{ //// lcd = ; //} //TouchBtn::TouchBtn(LGFX& ): lcd() {lcd = ;} void TouchBtn::setlayoutSpritePos(lgfx::v1::touch_point_t _layoutSpritePos) { layoutSpritePos = _layoutSpritePos; } void TouchBtn::initBtn(int _btnID, String _btnIDlabel, int _b_x,...
/** @file MODULE : CoeffTokenH264VlcEncoder TAG : CTH264VE FILE NAME : CoeffTokenH264VlcEncoder.cpp DESCRIPTION : A coeff token Vlc encoder implementation as defined in H.264 Recommendation (03/2005) Table 9.2 page 200. The trailing ones and total coeffs are combined in this to...
/*Deep Euler implementation of a sonochemical bubble model*/ #include <iostream> #include <fstream> #define _USE_MATH_DEFINES #include <cmath> #include <vector> #include <string> #include <chrono> #include <torch/script.h> #include <Eigen/Core> #include <boost/numeric/odeint.hpp> const double rho_L = 9...
//============================================================================ // Name : Athena_Blocks.cpp // Author : <NAME> // Version : v1.0 // Date : 9/25/2012 // Copyright : Copy at your own risk // Description : Hello World in C++, Ansi-style /*IMPORTANT DETAILS: * * Answer: 80684432319041...
#include "utility.h" ostream& operator<<(ostream& os, const _6dof& dof) { os << dof.rx << ',' << dof.ry << ',' << dof.rz << ','<< dof.x << ','<< dof.y << ','<< dof.z; return os; } bool headString(string line,string chara){ if(line.find(chara)==0)return true; else return false; } double getDist2(POINT_3D a,P...
#include "MyDirectX.h" LPD3DXSPRITE sprite_obj; //font LPDIRECT3DTEXTURE9 font; LPD3DXSPRITE sprite_handler; struct TRANSFORM { D3DXVECTOR3 position; float xrot, yrot, zrot; float scale; }; const string APPTITLE = "Paddle 3D Game"; const int SCREENWIDTH = 640; const int SCREENHEIGHT =...
#include <stdio.h> #include <iostream> #include <GLTools.h> #include <GLShaderManager.h> #include <GLFrustum.h> #include <GLBatch.h> #include <GLMatrixStack.h> #include <GLGeometryTransform.h> #include <StopWatch.h> #include "sbm.h" #include <GL/glu.h> #ifdef __APPLE__ #include <glut/glut.h> #else #define FREEGLUT_S...
#include "peer_manager_eth.h" // constructors PeerManagerETH::PeerManagerETH() { this->mode = PeerManagerETH::PUSH; } PeerManagerETH::PeerManagerETH(unsigned short port) { this->mode = PeerManagerETH::PUSH; } PeerManagerETH::PeerManagerETH(const std::shared_ptr<Node>& node, const std::shared_ptr<NodeTableETH>& nod...
#include <vector> #include "GreedySelector.hh" using namespace std; GreedySelector::td_t::td_t() { int i, j; for (i = 0; i < GreedySelector::NOF_CORE; i++) for (j = 0; j < GreedySelector::NOF_CFU; j++) allocTable[i][j] = 0; } void GreedySelector::td_t::recursiveCluster(dfg_t* d, set<node_t*> &nodes, s...
#include "Matrix4x4.h" #include "MathUtils.h" #include <stdexcept> Matrix4x4::Matrix4x4() { SetIdentity(); } void Matrix4x4::SetIdentity() { // Set all to 0 for (int i = 0; i < 16; i++) m_values[i] = 0.0f; // fill diagonal with 1s m_values[0] = m_values[5] = m_values[10] = m_values[15] = 1.0...
#include <sys/stat.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <algorithm> #include <chrono> #include <boost/log/trivial.hpp> #include <boost/date_time/gregorian/gregorian.hpp> #include "lib/comma_separated_values.h" #include "lib/stock.h" /** * Class setup. */ stockinfo::stockinfo(const s...
/* lp_materials.C materials functions Copyright (c) 2007-2008, <NAME> This software is freely distributable free of charge and without license fees with the following conditions: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WAR...
/* vcflib C++ library for parsing and manipulating VCF files Copyright © 2010-2020 <NAME> Copyright © 2020 <NAME> This software is published under the MIT License. See the LICENSE file. */ #include "Variant.h" #include "split.h" #include "pdflib.hpp" #include <string> #include <iostream> #inclu...
/* Copyright (c) <NAME> and the Grit Game Engine project 2015 * * 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, cop...
/* * Copyright 2016-2018 <NAME> et al. * * 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 agr...
#include "Globals.h" #include "Application.h" #include "ModuleSceneIntro.h" #include "Primitive.h" #include "PhysBody3D.h" #include "PhysVehicle3D.h" #include "ModulePlayer.h" ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled) { } ModuleSceneIntro::~ModuleSceneIntro(...
#include <pybind11/functional.h> #include <pybind11/pybind11.h> #include "config_utility.h" #include "constants.h" #include "live_model.h" #include "multistep.h" #include <exception> #include <memory> #define STRINGIFY(x) #x #define MACRO_STRINGIFY(x) STRINGIFY(x) namespace py = pybind11; namespace rl = reinforceme...
/* CCCC - C and C++ Code Counter Copyright (C) 1994-2005 <NAME> (<EMAIL>) 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) ...
/*************************************************************** * File name : main.cpp * * Description : This file is the south bound application used* * to register yang files for sonic submodules. * ************************************************************...
#include "HostDebugger.hpp" #include <Acceptor.h> #include <Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h> #include <lldb/Core/Module.h> #include <lldb/Core/PluginManager.h> #include <lldb/Host/ConnectionFileDescriptor.h> #include <lldb/Host/MainLoop.h> #include <lldb/Host/common/NativeProcessProtocol....
// vim:ts=4:sts=4:sw=4:expandtab #include <fcntl.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/un.h> #include <unistd.h> #include <netinet/in.h> #include <arpa/inet.h> #include <chrono> #include <cmath> #include <cstring> #include <iostream> #include <fstream> #include <string> #include <vector> #inc...
// // Created by wuyong on 19-1-24. // #include "fft_enhance.hpp" FFTEnhancer::FFTEnhancer(const std::string& pi_2_yml, const std::string& pi_4_yml) { cv::FileStorage angf(pi_2_yml, cv::FileStorage::READ); if (!angf.isOpened()) { std::cout << "can not read" << pi_2_yml << std::endl; } angf["angf"] >> angf_...
/* * The server implementation of Cards Against Humanity * This handles communication between clients and runs the game. * * Written by: <NAME> * UCID: 10062604 * * Features: * + Accepts any client connection * + Sends messages to clients * + Can receive messages from client * + Implements all steps of ...
/* * Copyright (C) 2008 The Android Open Source Project * * 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...
#include "vix_all.h" #include <maya/MFnAttribute.h> #include <maya/MFnDagNode.h> #include <maya/MAnimUtil.h> #include <maya/MFnWeightGeometryFilter.h> #include <maya/MFnGeometryFilter.h> #include <maya/MFnSkinCluster.h> #include <maya/MFnBlendShapeDeformer.h> #include <maya/MItSelectionList.h> #include <maya/MFnSingleI...
// cam.cpp - camera control and image post processing #include <Arduino.h> #include "esp_camera.h" // The camera driver,see https://github.com/espressif/esp32-camera/tree/master/driver #include "cam.h" // own interface // Instantiate the externs from the header int cam_crop_left; int cam_crop_top; int...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> #include <iomanip> // for std::setprecision using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; void NormalizeAngle(double& phi) { phi = atan2(sin(phi), cos(phi)); } /** * Initializes Unscented Kalman filter * This is...
// SFVChains.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "CharacterFactory.h" #define WHOLE_CONSOLE 10000 using namespace std; using namespace concurrency; using namespace tinyxml2; atomic<unsigned int> max_tasks = 0; void updateMaxTasks(atomic<unsigned int>& new_count) ...
#include <iostream> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <conio.h> #include <windows.h> using namespace std; int sitio=0; int nv; int sitio_1=0; int pos_asig=0; int pos_asig_1=0; //DATOS DE ALUMNOS// struct dt_alumno{ char nombre[30]; char direccion[30]; float carnet; ...
/* * Copyright 2008 The Native Client 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 <ctype.h> #include <math.h> #include <stdlib.h> #include <signal.h> #include <syscall.h> #include <sys/prctl.h> #i...
#include "emu.h" #include <array> #include <cstdio> #include <cstdlib> #include <iostream> #include <map> #include <vector> // Macro to avoid verbose switch syntax // https://gitlab.com/higan/higan/blob/master/higan/processor/mos6502/disassembler.cpp #define op(id, oper) ...
/* Copyright (c) 2003-2016, <NAME> Antiprism - http://www.antiprism.com 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 rig...
/** * GeoDa TM, Copyright (C) 2011-2015 by <NAME> - all rights reserved * * This file is part of GeoDa. * * GeoDa 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 * ...
#include <iostream> #include <cstring> #include <cstdio> #include <map> #include <vector> #include <string> #include <ctime> #include <algorithm> #include <cmath> #include <cstdlib> using namespace std; string inPath = "./wiki50k/"; extern "C" void setInPath(char *path) { int len = strlen(path); inPath = "";...
#include "gpuTrackingBeamformSimulate.hpp" #include "Config.hpp" // for Config #include "StageFactory.hpp" // for REGISTER_KOTEKAN_STAGE, StageMakerTemplate #include "Telescope.hpp" #include "buffer.h" // for Buffer, mark_frame_empty, mark_frame_full, pass_metadata #include "bufferContainer.hpp" // fo...
/* * Copyright (C) 2018-2020 <NAME> (https://gitlab.com/nnaumenko) * All rights reserved. * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include "metaf.hpp" #include "testdata_real.h" #include <iostream> #include <chrono> #include ...
#include "attack-system.hpp" #include <math.h> #include <spdlog/spdlog.h> #include "core/tags.hpp" #include "core/maths.hpp" #include "core/constants.hpp" #include "components/targeting.hpp" #include "components/shoot-at.hpp" #include "components/shoot-laser.hpp" #include "components/health.hpp" #include "components/...
#include <iostream> #include <iomanip> #include <string> #include <fstream> #include <cstdlib> #include <cstring> #include <vector> #include "graph.hpp" #include "pagerank.hpp" //#include <omp.h> static bool get_options(const int argc, char ** const argv, double &jump_prob, std::string &personalize_filename, persona...
/* * CSVDataSource.cpp * * Copyright (C) 2015-2016 by CGV (TU Dresden) * Alle Rechte vorbehalten. */ #include "CSVDataSource.h" #include "stdafx.h" #include "mmcore/CoreInstance.h" #include "mmcore/param/BoolParam.h" #include "mmcore/param/ButtonParam.h" #include "mmcore/param/EnumParam.h" #include "mmcore/param...
/* 摄像机 https://learnopengl-cn.github.io/01%20Getting%20started/09%20Camera/ glm::mat4 view; view = glm::lookAt(glm::vec3(0.0f, 0.0f, 3.0f), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 1.0f, 0.0f)); */ #include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #include <common/Sh...
/*============================================================================= Boost.Wave: A Standard compliant C++ preprocessor library Sample: IDL oriented preprocessor http://www.boost.org/ Copyright (c) 2001-2010 <NAME>. Distributed under the Boost Software License, Version 1.0. (See ac...
// This file is part of snark, a generic and flexible library for robotics research // Copyright (c) 2011 The University of Sydney // 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. Redistr...
/*========================================================================= Program: Visualization Toolkit Module: vtkAMRUtilities.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 WITHOUT ANY W...
/* * Copyright (c) 2015 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * 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...
#include "chess_md2.h" #include <cstdio> #include <cmath> #include <cfloat> const float SPHERE_PADDING = 10.0; typedef struct { int numVerts; int numTris; int numFrames; GLfloat minY; Sphere boundingSphere; } ModelInfo; bool loadModel(char *filename, Vertex* &verts, Mesh* &tris, TexCoord* &texCoords, ...
/* * OpenGL system interface * Author: <NAME> <<EMAIL>> * * SPDX-License-Identifier: MIT * * Copyright 2019-2022 <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 w...
#include "alignPairwise.h" #include <cmath> #include <iostream> #include <string> #include <vector> #include "../match/matchAa.h" #include "../match/matchNuc.h" #include "../utils/safe_cast.h" namespace details { inline int round(double x) { return safe_cast<int>(std::round(x)); } }// namespace details cla...
/* This file is part of the KDE project Copyright 2007 <NAME> <<EMAIL>> Copyright 2004 <NAME> <<EMAIL>> Copyright 1998,1999 <NAME> <<EMAIL>> 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 Soft...
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
#include <chrono> #include <random> #include <iostream> #include <iomanip> #include <string> #include <sstream> #include <ctime> #include <typeinfo> #include <array> #include <algorithm> #include <numeric> #include <conio.h> // for _getch() & _putch() #include <fcntl.h> // for displaying unicode in windows console #in...
/* * Copyright 2018-2019, 2021 Internet Corporation for Assigned Names and Numbers, Sinodun IT. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at https://mozilla.org/MPL/2.0/. */ #include <al...
#include <atomic> #include <bits/types/siginfo_t.h> #include <chrono> #include <condition_variable> #include <cstdlib> #include <cstdint> #include <errno.h> #include <fcntl.h> #include <filesystem> #include <limits.h> #include <linux/in.h> #include <mutex> #include <poll.h> #include <stdio.h> #include <string.h> #inclu...
/** * @file llpostprocess.cpp * @brief LLPostProcess class implementation * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU L...
// ----------------------------------------------------------------------------- // Design Information // ----------------------------------------------------------------------------- // // Description: PRIMATEs v1 - APE-120 instantiation. // // Authors: <NAME>, <NAME>, ...
/* * If not stated otherwise in this file or this component's license file the * following copyright and licenses apply: * * Copyright 2020 RDK Management * * 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 cop...
#include "ViewerInh.h" #include <igl/collapse_edge.h> #include <igl/edge_flaps.h> #include <igl/vertex_triangle_adjacency.h> #include <igl/adjacency_list.h> #include <Eigen/Core> #include <set> #include <math.h> #include "igl/circulation.h" void ViewerInh::init_ds_for_data() { int num_of_meshes = static_cast<int>...