text
stringlengths
5.71k
33.7k
/* * Copyright 2020 Rockchip Electronics Co. LTD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
//q10789.cpp - 2011/11/21 //accepted at //run time = 0.020 #include <stdio.h> int prime[303]; int binarySearch(int search, int data[]){ int low = 0, high = 302, mid; while(low <= high){ mid = (low + high)/2; if(data[mid] == search) return mid; else if(search > data[mid]) low = mid + 1...
#include "d3d11.h" #include <stdio.h> #include <windows.h> #include <d3d11.h> #include "shaders/d3d11/vs.h" #include "shaders/d3d11/ps.h" struct d3d11 { ID3D11Device *device; ID3D11DeviceContext *context; IDXGISwapChain *swap_chain; ID3D11VertexShader *vs; ID3D11PixelShader *ps; ID3D11SamplerState *ss_point; ...
/////////////////////////////////////////////////////////////////////////////// // // LLAP very low power example - RFu-328 only // /////////////////////////////////////////////////////////////////////////////// // // Target: Ciseco RFu-328 // version: 0.1 // date: 25 August 2013 // // copyright/left...
// ShellExtObject.cpp : CShellExtObject の実装 #include "pch.h" #include "ShellExtObject.h" #pragma comment(lib, "mpr.lib") #pragma comment(lib, "Userenv.lib") namespace fs = std::filesystem; // CShellExtObject namespace { const wchar_t* SAVED_PATH_REG_KEY = L"SOFTWARE\\bosuke\\ShellExt"; const wchar_t* SAVED_PATH...
// ConsoleApplication1.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <boost/math/differentiation/autodiff.hpp> #include "Instrument.h" #include "Interpolator.h" #include "Holiday.h" #include "Utility.h" #include "YearFraction.h" using namespace ...
#include "ui_ca_modeler_gui.h" #include "ca_modeler_gui.h" #include "AttributeHandler/attribute_handler_widget.h" #include "VicinityHandler/vicinity_handler_widget.h" #include "JSON_nlohmann/json.hpp" #include <QTemporaryDir> #include <QMessageBox> #include <QFileDialog> #include <QCloseEvent> #include <QDebug> #inc...
/* ---------------------------------------------------------------------------- Project title : Jarvis (personal assistant) Made By : <NAME> Written in : C++ Started project : 1 April , 2021 Platform : Windows ...
/* * \brief Transactional XML editor * \author <NAME> * \date 2017-04-29 */ /* * Copyright (C) 2017 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU General Public License version 2. */ /* Genode includes */ #include <vfs/file_system_fact...
/* * Copyright (c) 2020, NVIDIA CORPORATION. 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 requi...
#include "proxy.h" #include "connect.h" #include "dynvec.h" #include "encrypt.h" #include <errno.h> #include <fcntl.h> #include "iomanage.h" #include <iostream> #include "log.h" #include <map> #include <memory> #include "socks5.h" #include <sstream> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <s...
// PEParser.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "my_structures.h" using namespace std; // formatting options #define FORMAT_TEXT 0 #define FORMAT_BYTE 1 #define FORMAT_WORD 2 #define FORMAT_DWORD 4 #define FORMAT_LONG 4 // padding between name and value #de...
int sky , xP , jl , NJe , i8Nyb//zkC , AlA/*dM*/, AcxG, h39,OyNx, Ez,ep , sx,SHw , bwF,//lE Zt, Pqu , Jp8xn , s93FD ,tWVQ , tf4,sCo0, had , Ke4m , Xi ,qua , Sl3M ,//3b A5Hy; void f_f0 () { {if( true ) { int pi ; volatile int nHjM ,ViqC,hCz ,iz ; { { volatile int I0111 , kp;A5H...
#include "RcppArmadillo.h" #include "utilities.h" // [[Rcpp::depends(RcppArmadillo)]] using namespace Rcpp; using namespace arma; using namespace std; /* SRC FUNCTIONS FOR SUBSPACE CLUSTERING * subspace_normalNJW : spectral clustering without zero-ing the diagonal * subspace_normalSM * * (01) fast_loss_prj : co...
/*************************************************************************/ /* qcp.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/* vim: set sts=0 ts=4 sw=4 noet : */ #include "VariableWidthContouring.h" //#include "chronograph.h" //#include <cairo/cairo-pdf.h> #include <algorithm> #include <map> #include <stack> using namespace std; BBox VariableWidthContouring:: computeBBox() const { BBox box(graph.verts.front().pos()); for ( MATvert & v...
/* * OneWireCRC. This is a port to mbed of <NAME>'s Adruino One Wire * library. Please see additional copyrights below this one, including * references to other copyrights. * * Copyright (C) <2009> <NAME> <<EMAIL>> * * This file is part of OneWireCRC. * * OneWireCRC is free software: you can redistribute it an...
/******************************** *<NAME> * *Object Oriented Programming * *<NAME> HW3 * *CoeCruz * ********************************/ #include <iostream> #include <fstream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <ss...
#include <GL\glew.h> #include <GL\freeglut.h> #include <iostream> #include "noises.h" #include "turbulance.h" using namespace std; #define DEF_floorGridScale 1.0 #define DEF_floorGridXSteps 10.0 #define DEF_floorGridZSteps 10.0 bool pause = false, enableR = false; int angle = 90, Xpos = 10, Ypos = 10, start =...
//===- Passes/MutateCallIntrinsicsPass.cpp --------------------------------===// // // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// #include "MutateCallIntrinsicsPass.hpp" #include "../Decl.hpp" #include "../Method.hpp" #include "../Object.hpp"...
#include "common.h" #include "InvertDatabase.h" void InvertDatabase::incr(int sz) { int oldsz = numcust; numcust = sz; curits.resize(numcust); curcnts.resize(numcust); curcids.resize(numcust); curitszs.resize(numcust); int i; int ttval = (int) (args->avg_cust_size * args->avg_trans_co...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <iostream> using namespace std; #define xtime(x) ((x<<1) ^ (((x>>7) & 1) * 0x1b)) static unsigned char in[16] = {0x32, 0x43, 0xF6, 0xA8, 0x88, 0x5A, 0x30, 0x8D, 0x31, 0x31, 0x98, 0xA2, 0xE0, 0x37, 0x07, 0x34}, out[16], state[4][4]; static unsigned ...
/*************** <auto-copyright.pl BEGIN do not edit this line> ************** * * osgWorks is (C) Copyright 2009-2012 by <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Software F...
int qXO,EDDl , KlH1,j8D , RakqRZ , nZY ,// Tx,iI8//FTj ,GSq , Yd ,n5 ,Qc ,ncj // ,// r1wD/*E*//*OXC*/, k5 , s6Ov2 ,aM,oaNSq ,rhu , gX , H1 /**/ , A7w , AvQXj , zS , uRL ,t8X/*i1*/ ,Q6 , IL,uk; void f_f0(){ int mhB3;volatile int mOaQ ,HQ , gy, wQ6H4,TmF ,VMnBK , O ; //Ca ;mhB3 = O + mOaQ +/*ek4...
/* * CellFit.cpp * * This cell is used to fit the cycling parameters of a cell to data. * It is done by the functions in determineCharacterisation.cpp * This cell should never be used by other functions (e.g. it should never be used for degradation simulations) * * Copyright (c) 2019, The Chancellor, Masters and...
// @HEADER // ************************************************************************ // // Digital Image Correlation Engine (DICe) // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. ...
#include "global.h" #include "snapshot.h" #include "maths/maths.h" #include "forcefields/ffparam.h" #include "forcefields/forcefield.h" #include "workspace/workspace.h" #include "tools/io.h" using namespace Maths; SnapShot::SnapShot(size_t _natoms) { ASSERT(_natoms > 0,ArgumentException,"Cannot create PhaseSpacePo...
/* Nexus Copyright(C) 2012 - <NAME> ISTI - Italian National Research Council - Visual Computing Lab 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 optio...
#include "refinement.h" using namespace Eigen; using namespace radialpose; static const double SMALL_NUMBER = 1e-8; static const double TOL_CONVERGENCE = 1e-10; static const double INITIAL_LM_DAMP = 1e-6; static const int MAX_ITER = 10; /* TODO: add check that cost decreases in LM TODO: move radial refinement from...
#include "core/context.h" #include "funcs/deconv.h" #include "funcs/deconv_act.h" #include "test_saber_func_NV.h" #include "tensor_op.h" #include "funcs/funcs_utils.h" #include "saber_types.h" #include <vector> using namespace anakin::saber; typedef TargetWrapper<X86> X86_API; typedef TargetWrapper<NV> NV_API; typede...
/*! * \author <NAME> - <EMAIL> * * @section LICENSE * * MiniSat, Copyright (c) 2003-2006, <NAME>, <NAME> * Copyright (c) 2007-2010, <NAME> * Open-WBO, Copyright (c) 2013-2017, <NAME>, <NAME>, <NAME> * MAPFtoMaxSAT, Copyright (c) 2020- , <NAME> * Permission is hereby granted, free of charge, to any p...
/* The MIT License (MIT) Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <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, co...
/* * Copyright 1993-2019 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
#include <mutex> #include <ftk/numeric/print.hh> #include <ftk/numeric/cross_product.hh> #include <ftk/numeric/vector_norm.hh> #include <ftk/numeric/linear_interpolation.hh> #include <ftk/numeric/bilinear_interpolation.hh> #include <ftk/numeric/inverse_linear_interpolation_solver.hh> #include <ftk/numeric/inverse_bilin...
// Note the omp parallel for requires -fopenmp at compile time // yields ~10x speedup. #include <gmpxx.h> #include <algorithm> #include <atomic> #include <cassert> #include <chrono> #include <cmath> #include <cstdio> #include <iostream> #include <fstream> #include <string> #include <vector> //#include <map> //#inclu...
#ifdef __cplusplus # ifdef __GNUC__ # define restrict __restrict__ # else # define restrict # endif #endif /** * resolved mass spring model * using the leap frog integrator. */ #include <cmath> #include <vector> #include <string> #include <iostream> #include <iomanip> #include <fstream> extern "C" { #include "re...
/* * Player - One Hell of a Robot Server * Copyright (C) 2000 <NAME> et al. * * 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)...
// // "$Id: Fl_File_Browser.cxx 9325 2012-04-05 05:12:30Z fabien $" // // Fl_File_Browser routines. // // Copyright 1999-2010 by <NAME>. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this // file is missing or d...
//===--- ToolChains.cpp - ToolChain Implementations -----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#define WIN32_LEAN_AND_MEAN #define _WIN32_WINNT 0x501 #include <iostream> #include <fstream> #include <ctime> #include <cmath> #include <string> #include <random> #include <WinSock2.h> #define HAVE_STRUCT_TIMESPEC #include <pthread.h> #include "GL/gl3w.h" #include "GLFW/glfw3.h" #include "glm/gtc/matrix_transform....
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
#define LANG "en-GB" #ifndef __cplusplus #error A C++ Compiler is required! #endif #include <iostream> #include <string> #include <ctime> using namespace std; #define TITLE "Word-ladder Cracker" #define VERSION 0.1 #define ACKNOWLEDGE "J.A.SAXBY" #define WRITTEN "Oct 12 2012" #define DESCRIPTION "WLC will solve a 4-...
/************************************* February 23, 2022 at 11:43:19 AM CST ***************************************************************************** * SGTL5000 Sound card initialization and control support. * Initializes sound card and controls TX-RX mixer switching * * started by <NAME>0GL, February 2022 * Has a...
#include "JsonImportPrivatePCH.h" #include "TerrainBuilder.h" #include "Landscape.h" #include "LandscapeInfo.h" #include "LandscapeLayerInfoObject.h" #include "JsonImporter.h" #include "UnrealUtilities.h" #include "MeshBuilder.h" #include "Materials/Material.h" #include "JsonObjects/JsonBinaryTerrain.h" #include "Run...
/* * Adplug - Replayer for many OPL2/OPL3 audio file formats. * Copyright (C) 1999 - 2006 <NAME>, <<EMAIL>>, et al. * * This library 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 * versi...
/* * Copyright © 2013 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publ...
// ***************************************************************************** /*! \file src/PDE/CompFlow/Problem/RayleighTaylor.cpp \copyright 2012-2015 <NAME>, 2016-2018 Los Alamos National Security, LLC., 2019 Triad National Security, LLC. All rights reserved. See th...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
/******************************************************************************* VFXEPOCH - Physically based simulation VFX Copyright (c) 2016 <NAME> <<EMAIL>> All rights reserved. Use of this source code is governed by the MIT license as written in the LICENSE file. **********************************...
#include "tpch_table_generator.hpp" extern "C" { #include <dss.h> #include <dsstypes.h> #include <rnd.h> } #include <filesystem> #include <utility> #include "benchmark_config.hpp" #include "storage/chunk.hpp" #include "storage/table_key_constraint.hpp" #include "table_builder.hpp" #include "utils/timer.hpp" extern ...
//============================================================== // Copyright Intel Corporation // // SPDX-License-Identifier: MIT // ============================================================= #include <CL/sycl.hpp> #include <sycl/ext/intel/fpga_extensions.hpp> #include <cmath> #include <iomanip> #include <random> #...
/*! \file SparseRenumbering.cpp \brief tridiagonal factorization algorithm with Cuthill-McKee \author <NAME>, ONERA, Laboratoire Jacques-Louis Lions \author <NAME>, Laboratoire Jacques-Louis Lions \date Jul. 12th 2015 \date Nov. 30th 2016 */ // This file is part of Dissection // // Dissection ...
// // main.cpp // Lab07_TexturedSolarSystem // // Created by <NAME> on 21/11/2017. // Copyright © 2017 <NAME>. All rights reserved. // #include <GLUT/glut.h> #include <cstdlib> #include <iostream> using namespace std; float rotationOfSun = 0.0; // 자전 float rotationOfMercury = 0; float rotationOfVenus = 0; float ...
/* ############################### This is the final core software program for the High Altitude Balloon Control Project for cs241 at Stanford University. Authors: <NAME>, <NAME>, <NAME>, <NAME> Known issues and future development: 1. Iridium module can send properly to the satellite module using both modes: binary ...
/******************************************************************************** * * Copyright (c) 2018 ROCm Developer Tools * * MIT LICENSE: * 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 So...
/*========================================================================= Program: Visualization Toolkit Module: GPURenderDemo.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribut...
// // 06_Arrays_Lists_Stack_in_Cpp.cpp // 06_Arrays_Lists_Stack_in_Cpp // // Created by <NAME> on 2021-09-29. // #include "06_Arrays_Lists_Stack_in_Cpp.h" void function_one_size_of_datatype () { unsigned int usDataSize = 128; printf("Data size of usDataSize (%d) is: %lu bytes\n", usDataSize, sizeof(us...
#include <iostream> #include <tclap/CmdLine.h> #include <H5Cpp.h> #include <memory> #include <thread> #include <list> #include <chrono> #include "gene.h" #include "medic.h" #include "drug.h" #include "protocol.h" #include "extrah5.h" #include "simulator.h" #include "branching_process.h" #include "limited_branching_pro...
#include "Scene.h" void Scene::Initialise(GLFWwindow* _window, std::shared_ptr<CameraObject> _camera) { window = _window; camera = _camera; // shader configuration // -------------------- shader->use(); shader->setInt("diffuseTexture", 0); shader->setInt("depthMap", 1); } void Scene::LoadScene() { //bo...
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
/* Copyright <NAME> Licensed under the Apache License, Version 2.0 https://www.apache.org/licenses/LICENSE-2.0 */ #include "Frustum.hpp" #include <iostream> #include <fstream> #include <sstream> #include <filesystem> #include <glm/gtc/reciprocal.hpp> #include <glm/gtx/transform.hpp> #include <nlohmann/json.hpp> #...
/* Properties of Helium by <NAME> Thermo properties from --------------------- <NAME>., <NAME>., <NAME>., and <NAME>., Interim equation, to be published in Int. J. Thermophys., 2010. #Using the EOS constants from REFPROP by permission while awaiting Ortiz-Vega publication in JPCRD Transport properties from ---------...
//===-- StringPrinter.cpp -------------------------------------------------===// // // 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 // //===---------------------------...
/* * Provides functionality for setting which screen is visible. Also provides functionality for changing the ship, and * the attributes that belong to the respective ship. */ #include "DragonFireSDK.h" #include "Globals.h" #include "StateToggle.h" #include "CustomMath.h" void reset() { counter.bull...
/** * @file test_traj_opt_node.cpp * @author <NAME> (<EMAIL>) * @brief * @version 1.0 * @date 2021-12-07 * * @copyright Copyright (c) 2021 * */ #include <geometry_msgs/Point.h> #include <geometry_msgs/PoseArray.h> #include <nav_msgs/Path.h> #include <quadrotor_msgs/PositionCommand.h> #include <ros/ros.h> #inc...
#include "TriDualGraph.h" #include <iostream> #include <sstream> #include <set> #include <tbb/parallel_for.h> #include <tbb/parallel_for_each.h> #include <tbb/blocked_range2d.h> #include <tbb/concurrent_vector.h> //#include <Eigen/SparseCholesky> //#include <Eigen/CholmodSupport> //#include <Eigen/SparseLU> #include ...
extern "C" { #include "ffmpeg/include/libavcodec/avcodec.h" #include "ffmpeg/include/libavdevice/avdevice.h" #include "ffmpeg/include/libavfilter/avfilter.h" #include "ffmpeg/include/libavformat/avformat.h" #include "ffmpeg/include/libavutil/avutil.h" #include "ffmpeg/include/libswscale/swscale.h" #include "ffmpeg/incl...
/* -*-C-*- ******************************************************************************** * * File: bestfirst.c (Formerly bestfirst.c) * Description: Best first search functions * Author: <NAME>, OCR Technology * Created: Mon May 14 11:23:29 1990 * Modified: Tue Jul 30 16:08:47 1991 (<N...
#include "parser.h" #include <map> #include <string> #include <vector> #include <cstdio> #include <cstdlib> #include <boost/bind.hpp> #include <boost/function.hpp> using std::string; using std::map; // Lookup Tables map<string, boost::function<Node()> > nud; map<string, boost::function<Node(Node)> > led; map<string,...
/* Copyright 2015 The Chromium OS 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 <common/gnubby.h> #include <fcntl.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #inc...
#include <iostream> #include <stdio.h> #include <fstream> #include <unistd.h> #include "Sonar.h" //#include <syllo_common/Utils.h> #define PI 3.14159265359 #if ENABLE_SONAR == 1 #include <bvt_sdk.h> #endif using std::cout; using std::endl; Sonar::Sonar() : initialized_(false), fn_(""), ip_addr_(""), logging_(...
/*********************************************************************************** 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...
// Copyright 2018 InnoVisioNate Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "Graphic.h" #include "utils.h" #include "Graphic_resource.h" #include "List.cpp" long __stdcall G::_IGPropertiesClient::QueryInterface(REFIID r...
/*========================================================================= 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 "calib_liq-vap.h" #include "tools.h" using namespace std; void readLiqVapRefStatesDM(double &T0, double &hL0, double &hG0, double &T1, double &hL1, double &hG1, double &T0bisL, double &vL0, double &pSat0L, double &T0bisG, double &vG0, double &pSat0G, double &T1bisL, double &vL1, double &pSat1L, double &T1bis...
/* Copyright 2005-2010 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...
#pragma once #include <rai/lib/blocks.hpp> #include <rai/node/utility.hpp> #include <boost/property_tree/ptree.hpp> #include <unordered_map> #include <unordered_set> #include <blake2/blake2.h> namespace boost { template <> struct hash<rai::uint256_union> { size_t operator() (rai::uint256_union const & value_a) co...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
/* * Copyright 2016 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 contributing ...
#include "intercomm.h" #include <chrono> #include <cstring> #include <iostream> #include <stdexcept> #include <thread> #include <unordered_map> #include <netdb.h> #include <poll.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include "is_buffering.h" #include "mac_sockets_defines.h" bool mpi_ope...
#define CF_USE_TIMER 1 #include "main.h" #include "arap_material.h" #include "hcheck.h" #include "neohookean_material.h" #include "tet_elastic_body.h" #include "typedefs.h" #include "utils.h" #include <mkl.h> #include <Eigen/PardisoSupport> #include <cstdio> #include <memory> using namespace baseline; bool baseline...
/* * Copyright 2017, 2018 <NAME> (low bandwidth trajectory follower) * * 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 req...
// Copyright (c) 2012 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 <math.h> #include <stdio.h> // FIXME(brettw) erase me. #ifndef _WIN32 #include <sys/time.h> #else #include <windows.h> #endif #include <time...
#include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> #include <ctime> #include <string> #include <algorithm> #include <set> #include <pthread.h> #include <vector> #include <map> using namespace std; const float pi = 3.141592653589793238462643383; int transeThreads = 8; int transeTrainTimes = 3000...
#include "tn93_shared.h" #ifdef _OPENMP #include "omp.h" #endif #include "argparse.hpp" using namespace std; using namespace argparse; #define HISTOGRAM_BINS 200 #define HISTOGRAM_SLICE ((double)HISTOGRAM_BINS) char sep = ':'; //--------------------------------------------------------------- void dump_histogram...
/****************************************************************************** * * Project: Generic common data format * Purpose: Generic Data model to read netcdf and hdf5 * Author: <NAME>, plieger "at" knmi.nl * Date: 2013-06-01 * **********************************************************************...
/*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...
#include"self_defination.h" /*************************** SatPosition 功能:根据卫星广播星历,计算卫星的位置、速度、钟差和钟速 输入参数: Eph 所有卫星的广播星历 satpos 存放卫星位置的数组 t 当前历元的时间 prn 卫星数 psr 伪距 xyz 测站坐标 返回值:0=计算失败 ****************************/ int SatPosition(Ephem* Eph, SatPosSet* satpos, GPSTIME* t,unsigned long prn,double psr...
#include "stdafx.h" #include <GWCA/Constants/Maps.h> #include <GWCA/Constants/AgentIDs.h> #include <GWCA/Context/GameContext.h> #include <GWCA/Context/WorldContext.h> #include <GWCA/Managers/UIMgr.h> #include <GWCA/Managers/ChatMgr.h> #include <GWCA/Managers/AgentMgr.h> #include <GWCA/Managers/MapMgr.h> #include <G...
/****************************************************************************** * * * pcdfilter_pa_ros_filter.cpp * * =========================== * ...
/////////////////////////////////////////////////////////////////////////////////// // School: Brno University of Technology, Faculty of Information Technology // // Course: Network Applications and Network Administration // // Project: DNS Sniffer ...
/***************************************************************************** Copyright (c) 1994, 2021, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. ...
/********************************************************************* This is a library for our Monochrome Nokia 5110 LCD Displays Pick one up today in the adafruit shop! ------> http://www.adafruit.com/products/338 These displays use SPI to communicate, 4 or 5 pins are required to interface Adafruit invests ...
#include "motis/railviz/railviz.h" #include "utl/concat.h" #include "utl/get_or_create.h" #include "utl/to_vec.h" #include "utl/verify.h" #include "motis/hash_map.h" #include "motis/core/common/logging.h" #include "motis/core/access/bfs.h" #include "motis/core/access/edge_access.h" #include "motis/core/access/real...
// /* * 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...
/* * BsmReceiver.cpp * * Created on: May 10, 2016 * Author: ivp */ #include "MessageReceiverPlugin.h" #include <Clock.h> #include <FrequencyThrottle.h> #include <mutex> #include <stdexcept> #include <thread> #include <tmx/apimessages/TmxEventLog.hpp> #include <tmx/j2735_messages/J2735MessageFactory.hpp> #i...
#include <asm/unistd.h> #include <linux/perf_event.h> #include <sys/ioctl.h> #include <unistd.h> #include <algorithm> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cstring> #include <random> #ifndef __aarch64__ #error This program is for 64-bit ARM only. #endif struct PerfEvent { perf_event_attr...
#include "morphohub_gui.h" morphoHub_GUI::morphoHub_GUI(V3DPluginCallback2 &callback,QWidget *parent) : QMainWindow(parent) { this->mainparent=parent; morphoHubcallback=&callback; setWindowTitle(tr("MorphoHub-GUI")); morphoHub_Init(); createActions(); createStatusBar(); createToolBar(); ...
#include "../include/GuiLite.h" #include "../include/ctrl_id.h" #include "trend_graph.h" #include <string.h> #include <stdio.h> //work resolution:1024*768 #define H_AXIS_WIDTH 470 #define V_AXIS_HEIGHT 140 //Horizen axis #define X_ORG_OF_H_AXIS 160 //Vertical axis #define X_ORG_OF_V_AXIS_1 155 #define X_ORG_OF_...
#include "PlyReader.h" #include <utility.reader.h> using namespace nspace; using namespace std; struct PlyProperty{ std::string name; std::string type; std::string indexType; std::string itemType; }; struct PlyElement{ std::vector<PlyProperty*> properties; std::...