text
stringlengths
3.08k
12.5k
#include <mctop_alloc.h> #include <pthread.h> #include <getopt.h> #include <limits.h> #if __x86_64__ # include <numaif.h> #endif #include <parallel/algorithm> #include "mctop_rand.h" #include "mctop_sort.h" struct timespec timespec_diff(struct timespec start, struct timespec end) { struct timespec temp; if ((en...
/* * The copyright in this software is being made available under the 2-clauses * BSD License, included below. This software may be subject to other third * party and contributor rights, including patent rights, and no such rights * are granted under this license. * * Copyright (c) 2017, IntoPix SA <<EMAIL>> * A...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <set> using namespace std; bool inside(long long x, int a, int b) { return a<=x && x<=b; } bool f(long long x1, long long x2, long long y1, l...
// Copyright (c) 2019 Graphcore Ltd. All rights reserved. #include "popops/NormaliseImage.hpp" #include "poplibs_test/Util.hpp" #include "popops/codelets.hpp" #include "poputil/Util.hpp" #include <boost/multi_array.hpp> #include <boost/program_options.hpp> #include <boost/random.hpp> #include <poplar/Program.hpp> #inc...
/******************************************************************************* * Copyright (c) 2012-2014, The Microsystems Design Labratory (MDL) * Department of Computer Science and Engineering, The Pennsylvania State University * All rights reserved. * * This source code is part of NVMain - A cycle accurate timing...
/* * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
// MIT License // Copyright (c) 2019 <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, p...
#include <Arduino.h> #include "src/timer/Timer.h" #include "src/data_type.h" #include "src/inputs/push_button.h" #include "src/inputs/coded_rotary_switch.h" #include "src/inputs/connect_wire.h" #include "src/inputs/usb_connection.h" #include "src/inputs/on_off_switch.h" #include "src/inputs/toggle_switch.h" #include...
// // Created by artur on 5/10/21. // #include "Drone.h" Drone::Drone() { Matrix3x3 initMat = Matrix3x3(); vector3D initVec = vector3D(0,0,1); vector3D transInZ = vector3D(0,0,1); this->deck = Cuboid("../data/cuboidModel.txt", "../data/deck.txt", initMat, initVec); initVec = (this->deck)[3] + tra...
#include<iostream> #include<string.h> #include<stdlib.h> using namespace std; class book{ static int total_transaction; static int successful_transaction; static int unsuccessful_transaction; char* title; char* author; char* publisher; float* price; int* stock; void price_update(...
/** Universidade Federal de Juiz de Fora main.cpp Propósito: Arquivo principal do trabalho. @author <NAME> @version 1.0 30/03/19 */ #include <iostream> #include <fstream> #include <string> #include <sstream> #include <ctime> #include "Grafo.h" #include "Steiner.h" using namespac...
#include <cstdio> #include <unistd.h> #include <value.h> #include <merkle.h> #include <streams.h> typedef std::vector<unsigned char> valtype; bool piping = false; int main(int argc, const char** argv) { if (argc < 2) { fprintf(stderr, "syntax: %s [--position=<index>] [--preprocessed] [--legacy] [--btcdeb...
#include "math.hpp" #include "d3d.hpp" #include "frame.hpp" #include "cbuffer.hpp" #include "camera.hpp" #include "params.hlsli" #include "timer.hpp" // ============================================================= // set parameters // ============================================================= struct Params // glo...
#include "SSMFVoronoiSegment.h" #include "Border.h" #include "SSMFVertex.h" #include "MGError.h" #include <iostream> #include <math.h> #include <fstream> #include <stdio.h> #ifdef WIN32 #include <direct.h> #else #include <unistd.h> #endif void SSMFVoronoiSegment:: discretize( NodeMap& fixedNodes, NodeMap& allNodes, s...
#include "coral/tools/partitioner/partitioner.h" #include <algorithm> #include <cmath> #include <fstream> #include <memory> #include "absl/container/flat_hash_set.h" #include "absl/flags/parse.h" #include "absl/memory/memory.h" #include "coral/test_utils.h" #include "coral/tools/partitioner/utils.h" #include "gmock/g...
#include "c_prediction_.h" #include "../utils/c_hook.h" #include "c_client.h" #include "../hacks/c_prediction_system.h" #include "../hacks/c_antiaim.h" #include "../sdk/c_input.h" #include "../sdk/c_base_view_model.h" #include "../utils/math.h" #include <intrin.h> #include "../hacks/aimbot_recode.h" void c_prediction_...
/* Copyright 2008-2012 <NAME> and Internap Network Services Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to...
// General definition of an abstract Display so that multiple displays // can be specified (curses-based, graphical tiles, etc). #pragma once #include <string> #include "Animation.hpp" #include "AnimationFactory.hpp" #include "DisplayConstants.hpp" #include "DisplayItem.hpp" #include "DisplayMap.hpp" #include "DisplayS...
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) 2012 <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 t...
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #include "caf/inbound_path.hpp" #include "caf/actor_system_config.hpp" #include "caf/defa...
/* Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the "license" file acco...
#include "ingame/ingame_core.h" #include <cstdio> #include <cstring> #include "wrapfbg.h" bool bKeepRunning = true; GameHeader g_game; int main(int argc, char* argv[]) { if ((argc >= 2) && !strcmp(argv[1], "cs")) { g_game.game = GC_CHASINGSHADOWS; g_game.ingameMapWidth = GCCS_INGAME_MAP_WID...
/* * This file is part of the DUDS project. It is subject to the BSD-style * license terms in the LICENSE file found in the top-level directory of this * distribution and at http://www.somewhere.org/somepath/license.html. * No part of DUDS, including this file, may be copied, modified, propagated, * or distributed...
/* GUIDO Library Copyright (C) 2002 <NAME>, <NAME>, <NAME> Copyright (C) 2002-2013 Grame 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 http://mozilla.org/MPL/2.0/. Grame Research Labora...
#include "CommandLineUI.hpp" #include "JsonSudokuHandler.hpp" #include "SudokuFactory.hpp" #include <iostream> #include <fstream> using namespace std; using namespace SSLib; class CommandLineUI::CommandLineUiImpl { public: CommandLineUiImpl(string filePath); enum SolutionPosition { Start, ...
/** * @date Fri Jan 27 14:10:23 2012 +0100 * @author <NAME> <<EMAIL>> * * Copyright (C) Idiap Research Institute, Martigny, Switzerland */ #include <stdexcept> #include <algorithm> #include <boost/shared_array.hpp> #include <bob.math/lu.h> #include <bob.core/assert.h> #include <bob.core/array_copy.h> // Declar...
/* * ModelPropertyTest.cpp * * Created on: 14-05-2009 * Author: jimali */ #include <fstream> #include <vector> #include <rw/graspplanning/GraspTable.hpp> #include <rw/math/Vector3D.hpp> using namespace rw::math; using rw::graspplanning::GraspTable; const int linesize = 8*256; char tmpStr[linesize]; Vect...
#include "Canvas.hpp" #include <algorithm> Canvas::Canvas(bool showRenderTime, std::wstring characterPalette) { this->showRenderTime = showRenderTime; this->characterPalette = characterPalette; consoleHandle = GetStdHandle(STD_OUTPUT_HANDLE); consoleBuffer = new wchar_t[CONSOLE_BUFFER_SIZE]; consoleBuffer[CONS...
/* * assignment2 Library.cpp */ #include "Library.h" #include <bits/stdc++.h> using namespace std; Borrower::Borrower(const vector<string> &v) : borrower_id(stoi(v[0])) , first_name(split(v[1], " ")[0]) , last_name(split(v[1], " ")[1]) , number_of_books_loaned(stoi(v[2])) { if (v[0].length() != 5...
/*----------------------------------------------------------------------------- Copyright 2017 Hopsan Group 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.o...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXTAM 100 #define bool short #define true 1 #define false 0 typedef struct String { char string[MAXTAM]; }String; typedef struct longString { char string[MAXTAM * 100]; }longString; typedef struct StarWars { String* nome; ...
#include <integrator.h> #include <brdf.h> #include <light.h> #define USE_OPENMP 1 /** * Integrator class */ Integrator::Integrator(std::shared_ptr<Camera> camera) : camera(camera) {} /** * PhongLightingIntegrator class */ PathIntegrator::PathIntegrator(std::shared_ptr<Camera> camera) : Integrator(camera) {} /...
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_A" // DUMMY #include "../link_cut_tree.hpp" #include "../../random/xorshift.hpp" #include <algorithm> #include <cassert> #include <iostream> #include <unordered_set> #include <utility> #include <vector> using namespace std; struct S { ...
#include "defineArea.h" #include "infoIO.h" #include "keyboard.h" #include <vector> bool defineAreaMode = false; const Hash pedHashes[] = { 664399832, 4209271110, 3886638041 }; static Ped myPed, bddefer; std::vector<Vector3> areaPoints; static int now = 0; void startDefineArea() { myPed = PLAYER::PLAYER_PED_ID(); ...
/* * Copyright (C) 2002 <NAME> * * http://vegastrike.sourceforge.net/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later v...
/* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any l...
#include "HIPixelMedianVtxProducer.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/Event.h" #include "DataFormats/VertexReco/interface/Vertex.h" #include "DataFormats/Verte...
/* Copyright (c) 1997, 1998 Carnegie Mellon University. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condition...
/** * @file FlightGogglesClient.cpp * @author <NAME> * @brief Node that outputs the expected pose of cameras based on motion capture * data to Unity for FlightGoggles operation. */ #include "FlightGogglesClient.hpp" #include <opencv2/core/version.hpp> /** * Constructor */ FlightGogglesClient::FlightGogglesCl...
#include "CH58x_common.h" #include "MAX30105.h" #include "heartRate.h" extern "C"{ #include "spo2_algorithm.h" } MAX30105 particleSensor; uint32_t irBuffer[100]; //infrared LED sensor data uint32_t redBuffer[100]; //red LED sensor data int32_t bufferLength; //data length int32_t spo2; //SPO2 value int8_t vali...
// Test5MatchUID.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <opencv.hpp> using namespace std; using namespace cv; struct Num { Mat * n = new Mat[10]; int max = 10; Mat UID = imread("./uid/UID_.png", IMREAD_UNCHANGED); Mat uid0 = imread("./uid/uid0.png", IMREAD_UNCHANGED); Mat uid1 = im...
#include <unittest++/UnitTest++.h> #include <iostream> #include <cstdlib> #include "m3g/Transformable.hpp" using namespace std; using namespace m3g; TEST (Transformable_default_variables) { Transformable* trans = new Transformable; float a[4]; trans->getOrientation (a); CHECK_CLOSE (0.f, a[0], 0.00001...
// g++ -o problema1.out problema1.cpp -lm #include <iostream> #include <string> #include <math.h> using namespace std; // Definir constantes. const double G = (6.693)*pow(10,-11); const double R_T = (6.378) * pow(10,6); const double M_T = (5.9736)* pow(10,24); const double R = 287.06; const double L = 6.5 * pow(10,-3);...
/* $$$$$$\ $$\ $$\ $$ __$$\ $$ | $$ | $$ / $$ |$$\ $$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$$$$$$$ |$$ | $$ |\_$$ _| $$ __$$\ $$ __$$\ $$ __$$\ \__| $$ __$$ |$$ | $$ | $$ | $$ | $$ |$$ / $$ |$$ | \__| $$ | $$ |$$ | $$ | $...
/////////////////////////////////////////////////////////////////////////////// // FILE: FilterWheel.cpp // PROJECT: Micro-Manager // SUBSYSTEM: DeviceAdapters //----------------------------------------------------------------------------- // DESCRIPTION: The example implementation of the demo...
#include <iostream> #include <fstream> #include <sstream> #include <vector> #include <string> #include "TTree.h" #include "TFile.h" using namespace std; TTree *paramTree = new TTree("SimionTree","Tree with parameters of ions"); char ChFile[100], delimiter; TString fName; void readSIMION(istream &SIMIONFile, vector<s...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2017, 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: // // * Re...
#include<iostream> #include<cstdio> #include<cstring> #define mo 51061 #define maxn 100010 #define lson son[k][0] #define rson son[k][1] #define ws(k) (son[pa[k]][1]==k) #define canrot(k) (pa[k]&&(son[pa[k]][0]==k||son[pa[k]][1]==k)) #define buffersize 20*1024*1024 #define LL long long using namespace std; char buffe...
/* Copyright (c) 2018, University of Washington All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions ...
#include <iostream> #include <fstream> using namespace std; const char FILENAME[] = "traccia.txt"; const int MAXLUN = 50; // lunghezza massima righe const int M = 3; // Numero di risposte alla domanda // legge una riga da istream is e la copia nel buffer riga void leggi_riga(istream &is, char *riga) { // consuma ...
#include <iostream> #include <string> #include <vector> #include <map> #include <cmath> #include <algorithm> using namespace std; // 使用重合检测法验证这个m是否正确 double all_fqc[26] = {0.082,0.015,0.028,0.043,0.127,0.022,0.020,0.061,0.070,0.002,0.008,0.040,0.024,0.067,0.075,0.019,0.001,0.060,0.063,0.091,0.028,0.010,0.023,0.001,0.0...
 //DİZİLERDE OK İŞARETİ ÇALIŞMASI #include <iostream> #include <cmath> #include <iomanip> #include <math.h> #include <string> #include <ctime> #include <clocale> #include <limits> #include <sstream> using namespace std; // --- SORU 1 --- void soruBiir() { setlocale(LC_ALL, "TURKISH"); int boyut = 0; ...
//Language: GNU C++0x #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <vector> #include <algorithm> #include <functional> #include <stack> #include <queue> #include <deque> #include <string> #include <sstream> #include <map> #include <set> #includ...
#include <gflags/gflags.h> #include <assert.h> #include <vector> #include "../src/random.hh" #include "../src/rdma/sop.hh" #include "rlib/benchs/reporter.hh" #include "rlib/benchs/thread.hh" #include "rlib/core/lib.hh" #include <random> #define VAL #ifdef VAL // the name of our cluster is VAL #include "../val/cpu...
//===-- CodeGenCommonISel.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 // //===---------------------------...
#include "segwayrmp/segwayrmp.h" #include "segwayrmp/impl/rmp_io.h" inline void printHex(char * data, int length) { for(int i = 0; i < length; ++i) { printf("0x%.2X ", (unsigned)(unsigned char)data[i]); } printf("\n"); } using namespace segwayrmp; static unsigned int BUFFER_SIZE = 256; ///////////////////...
// Copyright © 2017-2020 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #include "TxComparisonHelper.h" #include <TrustWalletCore/...
#include "packet.h" #include "../../utils/log/log.h" #include <cstdio> #include <cstdarg> #include <fstream> using namespace fw; using namespace net; BasePacket::BasePacket() { m_file = new std::fstream; } BasePacket::~BasePacket() { ///this may require more later. if(m_file != nullptr) {...
struct SEG { int siz, sum, ms, lms, rms; SEG(){} SEG(int v) { siz = 1; sum = ms = lms = rms = v; } SEG(int _siz, int _sum, int _ms, int _lms, int _rms) { siz = _siz; sum = _sum; ms = _ms; lms = _lms; rms = _rms; } SEG operator + (const SEG& rhs) const { return SEG(siz + rhs.siz, sum + rhs.sum,...
#include "bandpass_filter.h" #include <string> #include <omp.h> #include "filt.h" #include <iostream> #include <stack> #include <fstream> using namespace std; bandpass_filter::bandpass_filter(int64_t * min_freq, int64_t * max_freq, int64_t * sampling_frequency, int64_t * number_channels, int64_t * number_segments, in...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------...
//------------------------------------------------------------------ // // @@@ START COPYRIGHT @@@ // // 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. ...
// Copyright 2011-2012 <NAME> /******************************************************************************* * * * This software is provided 'as-is', without any express or implied * * warranty. In no event will the authors be h...
// (C) Copyright 2016-2021 Xilinx, Inc. // All Rights Reserved. // // 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 yo...
// // Copyright (c) 2017 – Technicolor R&D France // // The source code form of this open source project is subject to the terms of the // Clear BSD license. // // You can redistribute it and/or modify it under the terms of the Clear BSD // License (See LICENSE file). // #include <cstdlib> #include <iostream> #include...
/* color_render_ESWC_features_plugin.cpp * This plugin will render the feature values in ESWC file. */ #include "v3d_message.h" #include <vector> #include "color_render_ESWC_features_plugin.h" #include "color_render_eswc_dialog.h" using namespace std; Q_EXPORT_PLUGIN2(color_render_ESWC_features, neuron_ren...
#include <stdio.h> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <algorithm> #include <array> #include <vector> #include <set> char input_to_real[256]; void sortString(std::string& stringToSort) { std::sort(stringToSort.begin(), stringToSort.end()); } std::array<std::string, 1...
/* * computer.cpp * * Created on: 19.11.2020 * Author: jarko */ #include "utils/file.h" #include "utils/utils.h" #include "utils/graph.h" #include "computer.h" #define DEBUG_LEVEL 5 #include "common/debug.h" void Computer::reset() { this->pc = 0; for (auto &r : reg) { r = 0; } } Computer::Compute...
#include <stdio.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <raikv/util.h> #include <raikv/key_hash.h> #include <immintrin.h> #define PCRE2_CODE_UNIT_WIDTH 8 #include <pcre2.h> #include <raikv/pattern_cvt.h> using namespace rai; using namespace kv; enum reg_kind { IS_GLOB, IS_NATS }; sta...
#include "Loader.h" #include <glad.h> #include <iostream> #include <unordered_map> #include "SpriteShader.h" #include "StarshipSprite.h" #include "Game.h" #include "Texture.h" #include <unordered_map> #include "LaserSprite.h" #include <filesystem> #include "Animation.h" #include <tuple> #include <fstream> namespace {...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "einsum.h" #include "common.h" #include "utils/shape_utils.h" // Wasm interop method void einsum_f32(void *data) { uint32_t *dataIndex = static_cast<uint32_t *>(data); uint32_t const argc = dataIndex[0]; co...
/** @file A brief file description @section license License 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 und...
#include "cute.h" #include "test_MatVec.h" #include "MatVec.h" #include <iostream> #include "units_typedef.h" void empty_double_initialisation() { MatVec<double, 3> vec { }; bool same{true}; for (auto& el : vec) same &= el == 0; ASSERTM("somewhere not the same", same); } void incomplete_initialisation() { Ma...
/* * Copyright (c) 2015 <NAME>, <NAME>, <NAME> and <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <fstream> #include <cstdio> #include <cstring> #include <system_error> #include <vector> #include <cpprest/filestream.h> #include <cpprest/containerstream.h> extern "C" { #include <sys/types.h> #include <sys/stat...
#include "stdafx.h" #include "Texture.h" #include <d3d9types.h> #include "decompress.h" static const bool alwaysDecompressToRgba = false; #pragma pack( 4 ) // Surface pixel format. struct DDS_PIXELFORMAT { DWORD dwSize; DWORD dwFlags; // Four-character codes for specifying compressed or custom formats. DWORD dwF...
#include "Parser.h" #include <cstdint> #include <iostream> #include <sstream> using namespace std; Parser::Parser(StringPool *stringPool, TypeTable *typeTable, CompilationMessages *msgs) : stringPool(stringPool), typeTable(typeTable), lex(nullptr), msgs(msgs) { } const Token& Parser::peek() const { return le...
#include<iostream> #include<bits/stdc++.h> #include<fstream> using namespace std; const int maxn = 2005; int n, m; long dd[maxn][maxn], dds[maxn][maxn], dr[maxn][maxn], drs[maxn][maxn]; bool isrock[maxn][maxn]; long mod = 1e9 + 7; int rowsum[maxn][maxn], colsum[maxn][maxn]; // long getdr(int i, int j); ...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
#include <stdlib.h> #include <iostream> #include <sstream> #include <algorithm> #include <assert.h> #include "definition.h" #include "matchAlgorithmTools.h" #include "matchAlgorithm.h" using namespace std; extern students student[310]; extern departments department[25]; extern addmitted addmitted_department[25]; stru...
#include <iostream> #include "string.h" #include <fstream> #include "Usuario.h" #include <math.h> //<NAME> SECCION 2 //TODOS LOS EJERCICIOS /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int cargar(Usuario *Users,int n) { ifstream Data; st...
#include <cstdio> #include <cstdlib> #include <poll.h> #include <unistd.h> #include <cinttypes> #include <new> #include <cstring> #include "NetIf.hpp" #include "MacAddress.hpp" #include "Ethernet.hpp" #include "HashMap.hpp" #include "comlib.hpp" #include "dlib.hpp" #define OS_NTOHS ntohs #define OS_HTONS htons #def...
// AttSimplex.cpp // created by Kuangdai on 14-May-2016 // SPECFEM method, used for benchmark #include "AttSimplex.h" #include "XMath.h" extern "C" { void __simplex_MOD_simplex_fminsearch(double *tau_e, const double *tau_s, const int *nsls, const double *f, const int *nf, const double *Qval, int *iterco...
#include "usbwizard.h" UsbWizard::UsbWizard() { int rc; qInfo() << "Hello from UsbWizard"; rc = libusb_init (&ctx); if (rc < 0) { qInfo() << "failed to initialise libusb: " << libusb_error_name(rc); return; } // discover devices libusb_device **list; libusb_device *f...
/* * Copyright 2008, 2009 Google Inc. * Copyright 2006 Nintendo 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 * * Unle...
/* This file is for testing reading the data set in parallel in data paralle training. We assume that the dataset is in a single HDF5 file. Each dataset is stored in the following way: (nsample, d1, d2 ..., dn) Each sample are an n-dimensional array When we read the data, each rank will read a batch of s...
// MIT License // Copyright (c) 2019 <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, p...
/* * temporalchar.cc * * Created on: Jul 8, 2011 * Author: singhv */ #include "temporal_analysis.h" #include <vector> #include <cmath> using namespace std; using namespace cv; bool TemporalChar::has_next() { // If no new emage is available // if(!eit.has_next()) // { // // check if the last one is ava...
#include "minisatapiencoder.h" #include <iostream> using namespace Minisat; MinisatAPIEncoder::MinisatAPIEncoder(Encoding * enc, int trace_sat, bool restarts_enabled, int phase_saving) : APIEncoder(enc){ this->lastVar = 0; this->lastClause = -1; this->trace_sat = trace_sat; this->restarts_e...
/************************************************************************ > File Name: MtxDen.cpp > Author: <NAME> > Descriptions: Implementation of class MtxDen > Created Time: Sun Dec 31 15:52:40 2017 ************************************************************************/ #include "MtxDen.hpp" #include <c...
// Copyright 2014 The ChromeOS IME Authors. All Rights Reserved. // limitations under the License. // See the License for the specific language governing permissions and // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // distributed under the License is distributed on an "AS-IS" BASIS, // Un...
/* * Copyright (C) 2017 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ //===========================================================================...
#include <ESP8266WiFi.h> #include <WiFiUdp.h> #include <ArduinoOTA.h> #include "ota.h" #include <EEPROM.h> #include <ESP8266WebServer.h> #include <Wire.h> #include "si7006.h" #include "index.h" //Our HTML webpage contents #include "setup.h" #include "reset.h" #include "clear.h" #include "reboot.h" #include "setting.h...
#include "particles.h" #include <cstdlib> #include <glm/gtc/type_ptr.hpp> #include <iostream> extern float map(float src, float src_start, float src_end, float des_start, float des_end); extern float to_radians(float degree); ParticleSystem::ParticleSystem(GLint program, unsigned int num_particles, float radius, glm:...
#include <QQuickWindow> #include "../../../image.h" #include "../../ImageManager.h" #include "IntensityColouring.h" IntensityColouring::IntensityColouring(QQuickItem *parent) : QQuickPaintedItem(parent), m_slipperSize(QSizeF(6, 6)), m_slipperPen(QPen(QColor(255, 255, 255), 1)), m_slipperBrush(QBr...
#include<iostream> #include<graphics.h> #include<math.h> using namespace std; struct vertex{ float x; float y; float z; }; int nv = 5; // no. of vertices vertex poly[20] = {{0, 40, 0}, {-20, 0, -20}, {20, 0, -20}, {20, 0, 20}, {-20, 0, 20}}; //vertices, clockwise int edgemat[20][20] = {{0, ...
#include "AlphasenseSensor.h" #include "CompensationFactors.h" #include <stdio.h> // first constructor, set default values AlphasenseSensor::AlphasenseSensor(){ Type_sensor = 0; Type_compensate = 0; Algorithm = 1; We_z = Ae_z = We_t = Ae_t = 0.0; Sensitivity = 0; ppm_c = 0; ppm_u = 0; ambiental = NULL;...
/* * Copyright (C) 2011-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 "opencv2/highgui.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/imgproc.hpp" #include <iostream> #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <iostream> #include <fstream> #include <sstream> using namespace cv; using namespace std; int GroundTruth(Mat& _original...
/** * @file Veri_Yapıları_Ödevi * @description .txt dosyası içerisinden çekilen dataları Binary Search Tree içerisinde sakalama ve soy sayıları değerlendirilerek kazanılan bir oyun yapma * @date 14.12.2019 * @author <NAME> <EMAIL> */ #include "Bst.h" void Bst::insert(Node*& subNode, int data) { if (subNode == NU...