text
stringlengths
3.08k
12.5k
// main class that hold the whole hierarchy tree and all the operations that are performed on it #pragma once #include <memory> // for shared_ptr #include <sstream> #include <string> #include <utility> // for std::pair #include <vector> #include "dag.hpp" #include "eprp_var.hpp" #include "graph_info.hpp" #include ...
#include <stdio.h> #include <algorithm> // std::sort #include <vector> #include <stack> // We will user a pair for the queries: // (R, x) and (Q, -1) where the -1 is ignored typedef std::pair<char, int> Query; // Class Edge // Members: first_, second_, removed_ // Description: Class that contains in first and second...
#include "PipelineClass.h" #include <iostream> using std::endl; using std::cout; using std::clog; extern MipsSimulatorClass MipsSimulator; extern UsefulStructures usefulstructures; void PipelineClass::Instruction_Fetch() { /// Fetch the instruction from the memory /// (in this simulator the instruction is stored i...
/* ; Project: Open Vehicle Monitor System ; Date: 11th Sep 2019 ; ; Changes: ; 1.0 Initial release ; ; (C) 2011 <NAME> / Stegen Electronics ; (C) 2011-2017 <NAME> ; (C) 2011 <NAME> @ EPRO/DX ; (C) 2018 <NAME> ; (C) 2019 <NAME> @Dimitrie78 ; ; Permissio...
#include <unordered_map> #include <vector> #include <string> #include <sstream> #include <fstream> #include <stdexcept> // std::runtime_error #include <math.h> #include <iostream> #include <utility> #include <time.h> //clock_t, clock, CLOCKS_PER_SEC #include <stdlib.h> //exit() #include "../include/imported_functions...
#include <list> // std::list #include <iostream> // std::cout, std::endl #include "movie.hpp" #include "book.hpp" homelib::Book g_harryPotter("H<NAME>", "<NAME>", 1998); homelib::Movie g_harryPotterMovie("H<NAME>", homelib::Movie::FANTASY, 2002); homelib::Book g_warAndPeace("War and Peace", "<NAME>", 1869); void Ac...
#include <QFileInfo> #include <QApplication> #include <QDir> #include "image/image.hpp" #include "mapping/fa_template.hpp" #include "libs/gzip_interface.hpp" #include "mapping/atlas.hpp" #include "program_option.hpp" #include "fib_data.hpp" extern std::vector<atlas> atlas_list; std::string get_fa_template_path(void);...
/* * TcpClient.cpp * * Created on: Oct 25, 2018 * Author: xuleilx */ #include "TcpClient.h" #include <string.h> #include <netdb.h> #include <unistd.h> #include <iostream> #include <errno.h> #include <stdio.h> #include <sys/ioctl.h> TcpClient::TcpClient() : m_sock(-1) { // TODO Auto-generated constructor...
#include "ColorInterpolator.h" #include "../Constants.h" #include <cmath> ColorInterpolator::ColorInterpolator(){ // //Empty Constructor // } void ColorInterpolator::updateFinalColorValues(float* rgb0, float* rgbf){ //In the future | this into a single 32 bit unsigned integer for(int rChannel = 0; rChannel ...
// // GameScene.cpp // dinky2d // // Created by vincent on 2017/8/17. // Copyright © 2017年 ookcode. All rights reserved. // #include "GameScene.hpp" #include<ctime> #define NODE_LEN 20.0f #define LOST_WORD "胜败乃兵家常事, 少侠请重新来过" GameScene::GameScene() { init(); } void GameScene::init() { glm::vec2 winSize = ...
// // Copyright (C) 2004-2011 by Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This library is distributed in the hope that it will be use...
// Tags: Combinatorics // Difficulty: 5.3 // Priority: 1 // Date: 07-09-2021 #include <bits/stdc++.h> #define all(A) begin(A), end(A) #define rall(A) rbegin(A), rend(A) #define sz(A) int(A.size()) #define pb push_back #define eb emplace_back #define mp make_pair #define mt make_tuple using namespace std; ...
// Copyright 2014 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
//////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2021 christmann informationstechnik + medien GmbH & Co. KG // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal...
/* * 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 "GrVkTextureRenderTarget.h" #include "GrRenderTargetPriv.h" #include "GrVkGpu.h" #include "GrVkImageView.h" #include "GrVkUtil.h" #include "SkMipMap.h" #include "v...
#include <bits/stdc++.h> using namespace std; #define long int64_t template <typename Fun> class y_combinator_result { Fun fun_; public: template <typename T> explicit y_combinator_result(T&& fun) : fun_(std::forward<T>(fun)) {} template <typename... Args> decltype(auto) operator()(Args&&... ...
/* * luogu2468 * * 一道二合一题,有多行时用二维前缀和二分, * 二分的值是选取的数的范围 z ,题目只要求选的数的数量最小, * 所以肯定从大的开始选。用数组 num[x][y][z] 表示在第 1..x 行, * 第 1..y 列中间, >= z 的数字有多少个, sum[x][y][z] 表示 * 满足上列条件的数字之和,这样就可以二分了。 * 只有一行的时候用主席树就好了,比前面暴力还好写。 * 注意除法上的技巧。 * */ #include <cstring> #include <algorithm> #include <iostream> #include <cstdio> usi...
/*------------------------------------------------------------*/ /* filename - tframe.cpp */ /* */ /* function(s) */ /* TFrame member functions ...
/** 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 may n...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
//====================================================================== // // nanoIO paddle keyer (c) 2018, <NAME>, W1HKJ // // based on code from Iambic Keyer Code Keyer Sketch // Copyright (c) 2009 <NAME> // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "Loopback.hpp" #include <chrono> void Loopback::initialize_queue_pairs() { // See section 3.5 of the RDMA Aware Networks Programming User // Manual for more details on queue pair bringup. // Create shared completion queue #ifde...
/** * MaNGOS is a full featured server for World of Warcraft, supporting * the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8 * * Copyright (C) 2005-2017 MaNGOS project <https://getmangos.eu> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gen...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include <boost/foreach.hpp> #include <algorithm> #...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 <NAME> http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is ...
#include <drivers/ps2.h> using namespace drivers; enum class StrokeType { Pressed, Released }; enum class SpecialCharacterType { Normal, Escape, Backspace, Tab, Enter, LeftControl, LeftShift, RightShift, LeftAlt, CapsLock, F_Key, }; constexpr inline struct _KeyDes...
/******************************************************************************* Copyright (C) 2010 <NAME> ( a t ) ualberta.ca 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 versio...
#define BOOST_TEST_MODULE TEST_MODEL_USE_MODEL #include <boost/test/unit_test.hpp> #include "libs/model_prediction/prediction_flow.h" #include "libs/model_prediction/prediction_data.h" #include "libs/model_prediction/prediction_row.h" #include "libs/model_prediction/prediction_output.h" #include "libs/model_prediction/...
/* * CResourceLoader.cpp * * Created on: 23.10.2010 * Author: gerstrong */ #include "CResourceLoader.h" #include "graphics/GsGraphics.h" #include <base/video/CVideoDriver.h> #include <base/GsTimer.h> #include <base/utils/StringUtils.h> #include <base/video/GsEffectController.h> #include <cassert> CResour...
#include "json_ptz_samples.h" #include "json/json.h" using namespace std; json_ptz_samples::json_ptz_samples() { } json_ptz_samples::json_ptz_samples(std::vector<std::pair<struct stereo_ptz_pose, struct stereo_detect_box> > &value) { ptz_samples_ = value; } std::vector<std::pair<struct stereo_ptz_pose, struct s...
#include <api/dev/proc.h> #include <os.h> /* Definis un process (/dev/proc) */ char *Process::default_tty = "/dev/tty"; u32 Process::proc_pid = 0; Process::~Process() { delete ipc; arch.change_process_father(this, pparent); // on change le pere des enfants } Process::Process(char *n) : File(n, TYPE_PROCESS) {...
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> using namespace std; #define ll long long #define mem(Arr,x) memset(Arr,x,sizeof(Arr)) const int maxN=101; const int maxM=510; const int inf=2147483647; int n,m; int W[maxN],V[maxN]; int Cnt[maxN]; namespace G1 { int edg...
#include <stdio.h> #include <iostream> #include <stdlib.h> #include <random> #include <string> #include <fstream> #include <tuple> using namespace std; void generate_graph(int n, float p, char filename[50]) { // generates erdos-renyi graph with n nodes, probability p, saves it to a file with number file_num ofst...
/* * Rectangular matrix multiplication. * * Adapted from Cilk 5.4.3 example * * https://bradley.csail.mit.edu/svn/repos/cilk/5.4.3/examples/matmul.cilk; * See the paper ``Cache-Oblivious Algorithms'', by * <NAME>, <NAME>, <NAME>, and * <NAME>, FOCS 1999, for an explanation of * why this algorithm is good for...
#include "FastSimulation/Utilities/interface/BaseNumericalRandomGenerator.h" #include "FastSimulation/Utilities/interface/RandomEngineAndDistribution.h" #include <cmath> // #include <iostream> BaseNumericalRandomGenerator::BaseNumericalRandomGenerator(double xmin, double xmax, int n, int iter) : xmin(xmin), xmax(...
#include <dirent.h> #include "registeration.hpp" #include <ConciseArgs> using namespace std; class RegApp{ public: RegApp(boost::shared_ptr<lcm::LCM> &publish_lcm); ~RegApp(){ } void doRegisterationBatch(std::string ref_filename); private: boost::shared_ptr<lcm::LCM> lcm_; ...
#include "global.hpp" wxWindow *wxMainWindow; wxChoice *wxEntitySelection1; wxChoice *wxEntitySelection2; wxStaticText *wxEntityText; wxGrid *wxEntityGrid; wxListBox *wxScriptsListBox; wxListBox *wxQuestsListBox; wxListBox *wxTextsListBox; wxCheckBox *wxGridCheckBox; wxCheckBox *wxMinimapCheckBox; wxChoice *wxDisplayS...
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
//Includes #include <cfloat> #include "brown.c" //Declarations const valarray<size_t> oktypes = {1u,2u,101u,102u}; const size_t I = 0u, O = 1u; size_t N, dim; int zmn; double std; //Description string descr; descr += "Zero-mean, Gaussian brown noise (1-D).\n"; descr += "Makes vector of Gaussian white noise with speci...
#include "test.hpp" #include "option.hpp" using namespace exstream; using namespace testing; #define TEST_CASE_NAME OptionTest struct test_exception : std::exception { test_exception() noexcept : exception("Test exception") { } }; struct complex_constructible final { complex_constructible(c...
// Serial.cpp //#include "stdafx.h" #include <Windows.h> #include "Serial.h" CSerial::CSerial() { memset( &m_OverlappedRead, 0, sizeof( OVERLAPPED ) ); memset( &m_OverlappedWrite, 0, sizeof( OVERLAPPED ) ); m_hIDComDev = NULL; m_bOpened = FALSE; } CSerial::~CSerial() { Close(); } BOOL CSerial::Open( int n...
#include <LexicalMatrixCSVGenerator.hpp> #include <LexicalMatrixStatistics.hpp> #include <BaseLexicalMatrix.hpp> #include <fstream> void LexicalMatrixCSVGenerator::update_status() { if (!this->params.show_status()) { return; } auto currentTime = std::chrono::steady_clock::now(); std::chron...
/*========================================================================= Library: TubeTK Copyright 2010 Kitware Inc. 28 Corporate Drive, Clifton Park, NY, 12065, USA. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
//***************************************************************** // Copyright 2015 MIT Lincoln Laboratory // Project: SPAR // Authors: Yang // Description: Implementation of TestScript // // Modifications: // Date Name Modification // ---- ---- --...
/******************************************************************************* Name: <NAME>, <NAME>, and <NAME> Date Created: 12-02-2015 Filename: proxy.cpp *******************************************************************************/ //Standard library #include <cstdlib> #include <cstddef> #include <iostream> #i...
/* * 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 Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute,...
#include <string> #include <cstdlib> #include <iostream> #include <cmath> #include <cassert> #include <vector> #include <map> #include <algorithm> #include <boost/random/mersenne_twister.hpp> #include <boost/random/uniform_01.hpp> #include <rstbx/indexing_api/indexing_api.h> #include <rstbx/dps_core/direction.h> #inc...
/* * Copyright 2016, The Android Open Source Project * Copyright 2018, The LineageOS 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/LIC...
// Copyright(c) 2019, Intel Corporation // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the ...
#pragma once #include <cstdint> #include <string> #include <RED4ext/Common.hpp> namespace RED4ext::v0 { struct SemVer { struct PrereleaseInfo { uint32_t type; uint32_t number; }; uint8_t major; uint16_t minor; uint32_t patch; PrereleaseInfo prerelease; }; SemVer CreateSe...
#include "PCA9685.h" #define LOGLEVEL LEVEL_WARN #define LOGNAME "PCA96" #include <cLog.hpp> #define LEDn_ON_L(n) ((uint16_t)(0x06 + ((uint8_t)(n))*4)) #define LEDn_ON_H(n) (uint16_t)(0x07 + (n)*4) #define LEDn_OFF_L(n) (uint16_t)(0x08 + (n)*4) #define LEDn_OFF_H(n) (uint16_t)(0x09 + (n)*4) #define ADDR (uint16...
/* * Copyright 2004-2019 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 * *...
/* * CS 106B, <NAME> * * This program contains code to demonstrate pointers. * * NOTE 1: This program will compile with warnings due to uninitialized variables. * Note 2: This program will crash (purposefully) on some choices. */ #include <iostream> #include "console.h" #include "simpio.h" using n...
/* * qchannel.cxx * * Class for implementing a serial queue channel in memory. * * Portable Windows Library * * Copyright (c) 2001 Equivalence Pty. Ltd. * * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with...
/* * Copyright 2012 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
// Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
/** * @file ScriptHost.cpp * * This module contains the implementation of the ScriptHost class. * * © 2019 by <NAME> */ #include "Components.hpp" #include "JsonWrapper.hpp" #include "ScriptHost.hpp" #include "WebSocketWrapper.hpp" #include <stdlib.h> #include <string> #include <StringExtensions/StringExtensions...
/* * Copyright 2020 IFPEN-CEA * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
// mgdrawsplines.cpp // Copyright (c) 2004-2015, https://github.com/rhcad/vgcore, BSD License #include "mgdrawsplines.h" #include "mgshapet.h" #include "mgbasicsps.h" MgCmdDrawSplines::MgCmdDrawSplines(const char* name, bool freehand) : MgCommandDraw(name), m_freehand(freehand) { } bool MgCmdDrawSpl...
// This file is used in conjunction with RAVL, Recognition And Vision Library // Copyright (C) 2004, OmniPerception Ltd. // This code may be redistributed under the terms of the GNU // General Public License (GPL). See the gpl.licence file for details or // see http://www.gnu.org/copyleft/gpl.html // file-header-ends-h...
// Copyright <NAME> 2015. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/fiber/all.hpp> #include <iostream> #include <sstream> //#include <exception> #include <string> #incl...
/** * @file * @brief Implementation of the [Selection * sort](https://en.wikipedia.org/wiki/Selection_sort) * implementation using recursion * @details * The selection sort algorithm divides the input list into two parts: a sorted * sublist of items which is built up from left to right at the front (left) of * ...
/////////////////////////////////////////////////////////////////////////////////////////////////// // OpenGL Mathematics Copyright (c) 2005 - 2009 G-Truc Creation (www.g-truc.net) /////////////////////////////////////////////////////////////////////////////////////////////////// // Created : 2009-05-08 // Updated : 20...
//#define EIGEN_RUNTIME_NO_MALLOC #include "linmath.h" #include "sv_matrix.h" #include <Eigen/Core> #include <Eigen/LU> #include <Eigen/QR> #include <Eigen/SVD> #include <iostream> #ifdef EIGEN_RUNTIME_NO_MALLOC #define EIGEN_RUNTIME_SET_IS_MALLOC_ALLOWED(v) EIGEN_RUNTIME_SET_IS_MALLOC_ALLOWED(v) #else #define EIGEN...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2017 Intel Corporation. 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 noti...
#include <complex> #include <cstdio> #include <iostream> #ifdef CUDAHIPFFT #include "cudahipfft.h" #else #include <hip/hip_runtime.h> #include <hipfft.h> #endif #define CHECK(cmd) \ { ...
//Includes #include "sig2poly_burg.c" //Declarations const valarray<size_t> oktypes = {1u,2u}; const size_t I = 1u, O = 2u; size_t dim, P; int m0; //Description string descr; descr += "Does linear prediction for each row or col of X,\n"; descr += "using the Burg autoregressive (AR) method,\n"; descr += "which uses ti...
#include "SnpSinkMouse.h" #include <linux/uinput.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <memory.h> #include <network/snappyv1.pb.h> #include "util/loguru.h" SnpSinkMouse::SnpSinkMouse(const SnpSinkMouseOptions &options) : SnpComponent(options, "sinkMouse") { fid...
#include "barcode.hpp" #include <linux/input.h> #include <string.h> #include <fcntl.h> #include <linux/hiddev.h> //バーコードリーダで使う文字テーブル int code_table[] = { KEY_A, KEY_B, KEY_C, KEY_D, KEY_E, KEY_F, KEY_G, KEY_H, KEY_I, KEY_J, KEY_K, KEY_L, KEY_M, KEY_N, KEY_O, KEY_P, KEY_Q, KEY_R, KEY_S, KEY_T, KEY_U, KEY_V, KEY_W...
// Copyright <NAME> 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "keystate.h" #include <gsl/gsl> #include <cstring> void Channel_State::clear() { memset(key, 0, sizeof(key)...
#include "lexer.hpp" #include "errors.hpp" namespace { // Return true if the given char is in the given std::string. bool is_in_string(std::string str, char c) { return str.find(c) != std::string::npos; } // Return true if the given char is an operator. bool is_operator(const std::string& word) { return op...
/****************************************************************************** ** Filename: sigmenu.c ** Purpose: General purpose, menu-oriented signal handling routines ** Author: <NAME> ** History: Mon Oct 2 07:25:50 1989, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Li...
/** \class HLTElectronGenericFilter * * * \author <NAME> (CERN) * */ #include "HLTElectronGenericFilter.h" #include "DataFormats/Common/interface/Handle.h" #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" #include "FWCore/Me...
#include "sage3basic.h" #include "QtAstModel.h" #include <QDebug> #include <QList> #include "ItemTreeNode.h" #include "ItemModelHelper.h" #include "AstDisplayInfo.h" // ------------------ ModelNode ------------------------ /** * \brief Node for a tree consisting of DisplayInformation of an Ast * * Supports th...
#include <benchmark/benchmark.h> #include "benchmark.hpp" #include "fixtures/viper_fixture.hpp" using namespace viper::kv_bm; constexpr size_t RECLAIM_NUM_OPS_PER_ITERATION = 50'000; constexpr size_t RECLAIM_NUM_OP_THREADS = 32; constexpr size_t RECLAIM_NUM_WRITE_IT = 200; constexpr size_t RECLAIM_NUM_READ_IT = 40...
/* * 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 ...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
/******************************************************************************* * Copyright 1993-2008 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * This software and the informa...
/////////////////////////////////////////////////////////////////////////////// #include <string.h> #include <iostream> #include <vector> #include <cassert> #include <thread> #include <mutex> #include <dirent.h> #include <string> #include <stdlib.h> #include <sys/stat.h> #include <boost/program_options/options_descript...
#include <iostream> #include <algorithm> #include <vector> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> using namespace cv; using namespace std; Mat resize_(Mat inputImage) { Mat outputImage; int w = inputImage.size().width; int h = inputImage.size().height; Size rsiz = (w > h) ? S...
#include "Vector3D.h" using namespace std; //Constructors: Vector3D::Vector3D(double x,double y,double z){ _x=x; _y=y; _z=z; } Vector3D::Vector3D(Vector3D const& v){ _x=v.getX(); _y=v.getY(); _z=v.getZ(); } //Methods: void Vector3D::display() const{ cout<<"("<<_x<<","<<_y<<","<<_z<<")"<<e...
#include "mbed.h" #include "WizFi310Interface.h" #include "UDPSocket.h" #include "greentea-client/test_env.h" #include "unity/unity.h" #include "utest.h" using namespace utest::v1; #ifndef MBED_CFG_UDP_DTLS_HANDSHAKE_BUFFER_SIZE #define MBED_CFG_UDP_DTLS_HANDSHAKE_BUFFER_SIZE 512 #endif #ifndef MBED_CFG_UDP_DTLS_HA...
#include <iostream> #include <string> #include <list> #include <vector> #include <ctime> #include <cmath> #include <omp.h> #include <boost/program_options.hpp> #include <boost/filesystem.hpp> #include "SequenceIndex.h" #include "Loader.h" #include "UtilFunctions.h" #include "BWT.h" #include "../BioSequence/BioSequence...
/* * Copyright 2006 Sony Computer Entertainment Inc. * * Licensed under the MIT Open Source License, for details please see license.txt or the website * http://www.opensource.org/licenses/mit-license.php * */ #include <dae/daeMetaChoice.h> #include <dae/daeMetaElement.h> daeMetaChoice::daeMetaChoice( daeMetaEl...
/* Copyright 2021 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
/* $Id: device.cpp,v 1.4 2008/03/24 15:30:57 karl Exp $ Copyright (C) 2005, 2008, 2009 <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 3 of the License, o...
/* * 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...
// ------------------------------------------------------------------------------- // Copyright (c) <NAME>. // All Rights Reserved. See LICENSE in the project root for license information. // ------------------------------------------------------------------------------- #if defined(ARDUINO) && ARDUINO >= 100 #includ...
/*************************************************************************** * tools/benchmarks/tpie_stack_benchmark.cpp * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2006 <NAME> <<EMAIL>> * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LI...
#include <algorithm> #include <array> #include <bitset> #include <cassert> #include <chrono> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <unordered_map> #include <vector> using namespace std; ...
#include <iostream> #include <string> #include <mpi.h> #include <stdio.h> #include <unistd.h> // sleep #include <stdlib.h> // rand #include <fstream> #include <iterator> #include<ctime> #include<string> #include "Eigen/Core" #include "activations/Sigmoid.h" #include "activations/Identity.h" #include "Layer.h" #inclu...
/** * Copyright (c) 2011, 2012 * <NAME> <<EMAIL>> * and the IceCube Collaboration <http://www.icecube.wisc.edu> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appea...
/* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * 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, or (at your option) * any later version. * * ...
#include <iostream> using namespace std; // Functions for inserting an element in the tree // and creating the tree by calling insert method repetadly struct node *insert(node *, int ); struct node *create(node *); // Function for RR rotation struct node *RRrotation(node *); // Function for LL rotation struct node...
#include "StdAfx.h" #include "Player.h" #include "GameObject.h" #include "Compositor.h" #include "GDIBitmap.h" #include "DoubleWeapon.h" #include "Weapon.h" #include "Effect.h" #include "Main.h" #include "Map.h" #include "SmallExplosion.h" Player::Player(Map* map, Compositor* compositor) : Ship(map, compositor) ...
/* ----------------------------- MNI Header ----------------------------------- * @NAME : volume_similarity * @DESCRIPTION: an example of calculating volume similarity metrics * @COPYRIGHT : * Copyright 2011 <NAME>, McConnell Brain Imaging Centre, * Montreal Neurological Instit...
// Circle.cpp: implementation of the Circle class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "MediSurf.h" #include "Circle.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////...
/** * @file rdm.cpp * */ /* Copyright (C) 2018-2020 by <NAME> mailto:<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 rig...
//===- AsyncRuntimeRefCountingOpt.cpp - Async Ref Counting --------------===// // // 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 // //===-----------------------------...