text
stringlengths
5.71k
33.7k
/* * Algorithm.cpp * Copyright (C) 2017 transpalette <<EMAIL>> * * Distributed under terms of the MIT license. */ #include "Algorithm.h" #include <math.h> #include <thread> #include <fstream> #include <iostream> #include <string> #include <ctime> #include "../Eigen/Eigenvalues" Algorithm::Algorithm(MNISTData *da...
#include <set> #include "vtr_log.h" #include "vtr_linear_map.h" #include "timing_graph_builder.h" #include "vpr_error.h" #include "vpr_utils.h" #include "atom_netlist.h" #include "atom_netlist_utils.h" #include "tatum/TimingGraph.hpp" using tatum::EdgeId; using tatum::NodeId; using tatum::NodeType; using tatum::Tim...
/* * Copyright 1993-2007 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE * CODE FOR ANY PURPOSE. IT IS PROVIDED...
//===--- SILGenDistributed.cpp - SILGen for distributed -------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2020 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condit...
#include "Astar.h" #include <iostream> #include <random> #define K_LMRKS 16 int Astar::run(node_t source, node_t target) { Timer _t; Label f_solution(routing_infty,-1); f_solution.f_score = routing_infty; astar_f_heap queue; map<node_t, Label> nodesLabeled; set<node_t> is_settled; Label...
/* * Copyright (C) Cvitek Co., Ltd. 2019-2020. All rights reserved. * * File Name: TgBf16MatchTemplateKenrel.cpp * Description: */ #include "CviBackendContext.h" #include "backend/backend_tl_api.h" #include <cmath> #include <iostream> #include <llvm/Support/Debug.h> #include <llvm/Support/Format.h> #include <llvm/...
//using g++ 6.3.0 ; aka MinGW.org GCC-6.3.0-1 /** * logic tree of Morse code * * @author andythebreaker * @version 0.0.1, 07/04/2021 */ #include <algorithm> #include <iostream> #include <string> #include <list> #include <map> #include <vector> #include <math.h> #include <stdlib.h> #include <fstream> #include <reg...
// Bracelet-Decoder algo app // (c) <NAME>, September-2017, <EMAIL> #include "detect_marks.hpp" double find_possible_marks(mark_list_t &possible_marks_final, cv::Mat &frame_gray, cv::Mat &frame_thresh, unsigned int MinPixelWidth, unsigned int MaxPixelWidth, unsigned int MinPixelHeight, uns...
/* * Copyright 2016 -- 2021 IBM Corporation * * 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 o...
#include "DataManager.hpp" #include "MessageInterface.hpp" #include "RgbColor.hpp" // #define DEBUG_ADDTOBUFFER // static data // bool DataManager::maxDataExceeded = false; RealArray2D DataManager::storedSpPosX; RealArray2D DataManager::storedSpPosY; RealArray2D DataManager::storedSpPosZ; RealArray2D D...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2020, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #include "platform/platform.h" #include "math/util/frustum.h" #include "math/mMathFn.h" #include "math/mathUtils.h" #include "math/mSphere.h" #include "platform/profiler.h" //TODO: For OBB/frustum ...
// Copyright (c) 2007-2012 CIYAM Pty. Ltd. ACN 093 704 539 // Copyright (c) 2012-2021 CIYAM Developers // // Distributed under the MIT/X11 software license, please refer to the file license.txt // in the root project directory or http://www.opensource.org/licenses/mit-license.php. #ifdef PRECOMPILE_H # include "preco...
// // Copyright (C) 2008 by sinamas <sinamas at users.sourceforge.net> // // This program 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 Foundation. // // This program is distributed in the hope tha...
/// Routines to manage the overall operation of the file system. Implements /// routines to map from textual file names to files. /// /// Each file in the file system has: /// * a file header, stored in a sector on disk (the size of the file header /// data structure is arranged to be precisely the size of 1 disk se...
// // multiple_light.cpp // testgl // // Created by apple on 2019/5/30. // Copyright © 2019 自动化. All rights reserved. // #include "multiple_light.hpp" #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include "shader.h" #i...
#include "quickstep/KinematicForest.h" #include <iostream> #include <math.h> #include <assert.h> /* assert */ #include <functional> // reference_wrapper #include <cassert> #include "quickstep/utils.h" #include "quickstep/DisjointSet.h" using namespace std; using namespace quickstep; //std::vector<int> DOFInd...
/* Copyright ©2013 The Regents of the University of California (Regents). All Rights Reserved. Permission to use, copy, modify, and distribute this software and its documentation for educational, research, and not-for-profit purposes, without fee and without a signed licensing agreement, is hereby granted, pr...
// // Created by zhong on 2021/4/26. // #include <utility> #include <utils/cmake_vars.h> #include "glsupport.hh" #include "third_party/imgui/imgui.h" #include "third_party/imgui/imgui_impl_glfw.h" #include "third_party/imgui/imgui_impl_opengl3.h" using namespace DRL; using DRL::details::Mesh; using DRL::details::Ver...
/* Copyright (c) 2017, Massachusetts Institute of Technology 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 condition...
/* 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/. */ /* A program that computes a function ordering for an executable based on runtime profile information. Thi...
// // ndnrtcTOP_base.cpp // ndnrtcTOP // // Created by <NAME> on 2/16/18. // Copyright © 2018 UCLA REMAP. All rights reserved. // #include "ndnrtcTOP_base.hpp" #include <stdio.h> #include <map> #include <iostream> #include <ndn-cpp/interest.hpp> #include <ndn-cpp/face.hpp> #include <ndn-cpp/security/key-chain.hp...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
/****************************************************************************//* * Copyright (C) 2021 <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, includ...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QFile> #include <QTextStream> #include <QHostAddress> #include "netconfig.h" #include "pokemondlg.h" #include "authentication.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); ...
/* * This program 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 Foundation; * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of ...
/****************************************************************************** Copyright (c) 2009-2012, 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: 1. Redistributions ...
#include <light_engine.hpp> #include <gui_common.hpp> using namespace LE; void generate_points(glm::vec3 const & min_pt, glm::vec3 const& max_pt) { shader_prog_ptr_t shader_prog = shader_prog_t::create_default(); for (size_t i = 0; i < 10; ++i) { point_t point(min_pt + (max_pt - min_pt) * glm::vec3((float...
/* Regression Test for the Low-density parity-check Encoder and Decoder Table entries below copied from: https://www.etsi.org/deliver/etsi_en/302700_302799/302755/01.04.01_60/en_302755v010401p.pdf Copyright 2018 <NAME> <<EMAIL>> */ #include <iostream> #include <random> #include <cmath> #include <cassert> #include <c...
#include "TebContributor.hh" #include "Endpoint.hh" #include "EbLfClient.hh" #include "Batch.hh" #include "EbCtrbInBase.hh" #include "utilities.hh" #include "psalg/utils/SysLog.hh" #include "psdaq/service/MetricExporter.hh" #include "xtcdata/xtc/Dgram.hh" #ifdef NDEBUG #undef NDEBUG #endif #include <string.h> #inc...
// xyz2mesh.cpp #define CGAL_EIGEN3_ENABLED #include <CGAL/Timer.h> #include <CGAL/boost/graph/graph_traits_Polyhedron_3.h> #include <CGAL/trace.h> #include <CGAL/IO/Polyhedron_iostream.h> #include <CGAL/Surface_mesh_default_triangulation_3.h> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include...
#include <omp.h> #include <errno.h> #include <iomanip> #include "preprocessor.hpp" #include "inner.hpp" #include "logger.hpp" #include "junction.hpp" #include "bed_utils.hpp" using namespace std ; void Preprocessor::run() { auto c = Configuration::getInstance() ; cout << "Preprocessing.." << endl ; load...
/* SoLoud audio engine Copyright (c) 2013-2014 <NAME> 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 granted to anyone to use this software for any purpose, including commercia...
/*************************************************************************************************************************** * target_tracking.cpp * * Author: Qyp * * Update Time: 2019.4.17 * * 说明: 目标追踪示例程序 * 1. 订阅目标位置(来自视觉的ros节点) * 2. 追踪算法及追踪策略 * 3. 发布上层控制指令 (px4_command::ControlCommand) *****...
#include <marsyas/system/MarSystemManager.h> #include <marsyas/marsystems/SimilarityMatrix.h> #include <marsyas/marsystems/Metric2.h> #include <marsyas/marsystems/DTW.h> #include <marsyas/marsystems/AveragingPattern.h> #include <marsyas/Collection.h> using namespace std; using namespace Marsyas; #define MAX_TEMPLATES...
#include "I2C.h" #include "TaskManager.h" #include "Configuration.h" #include "Interrupt.h" #include "USART.h" extern USART com1; I2C::I2C(I2C_TypeDef* i2c, u32 speed,u8 remap,u8 priGroup,u8 preEvt,u8 subEvt,u8 preErr,u8 subErr) { //record gpio, irq, rcc, etc..... mI2C = i2c; mSpeed = speed; //i2c bu...
/* Copyright (c) DataStax, 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 in writing, so...
#include <common.h> #include <io.h> #include <psxpad.h> #include <psxapi.h> #include <psxetc.h> #include <psxspu.h> #include "spu_ram.h" #include "spu_reverb.h" #define SCR_W 640 #define SCR_H 240 #define OT_LEN 2 #define PACKET_LEN 65535 struct DB { DISPENV disp; DRAWENV draw; uint32_t...
#include "prelude.h" #include <array> #include <cassert> #include <iostream> #include <list> #include <string> #include <vector> auto test_not_() -> void { using Prelude::not_; auto even = [](int x) { return x % 2 == 0; }; auto odd = not_<int>(even); assert(odd(3) == true); assert(odd(2) == false); } auto ...
#include <stdio.h> #include <cstdlib> #include <ctime> #include <fstream> #include <dirent.h> #include <iostream> #include <sstream> #include <string> #include "stereo_sdf/SGMStereo.h" #include "stereo_sdf/utils.h" #include <Eigen/Dense> // Headers from package stereo_utils. #include <stereo_utils/stereo_utils.hpp> ...
#include "merge.hpp" po::variables_map parse_merge_command(po::parsed_options parsed) { uint32_t num_cores = tbb::task_scheduler_init::default_num_threads(); std::string num_threads_message = "Number of threads to use when possible [DEFAULT uses all available cores, " + std::to_string(num_cores) + " detected o...
/* * Barcode * Copyright <NAME> and <NAME> * * Distributed under the terms of the MIT License. * The full license is in the file LICENSE, distributed with this software. */ #include "struct_main.h" #include "struct_hamil.h" #include <cmath> #include <cassert> #include <iostream> #include "fftw_array.h" #inclu...
#include "scripting/script_renderer.h" #include "world.h" #include "halley/core/graphics/painter.h" #include "halley/maths/bezier.h" #include "halley/support/logger.h" #include "scripting/script_graph.h" #include "scripting/script_node_type.h" using namespace Halley; #ifndef DONT_INCLUDE_HALLEY_HPP #define DONT_INCLUD...
// Boost.Geometry // Copyright (c) 2019, Oracle and/or its affiliates. // Contributed and/or modified by <NAME>, on behalf of Oracle // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html #include "common.hpp" #include <boost/geometry/algorithms/difference.hpp> #includ...
/********************************************************************************************* SAATunes v 1.04 A library to play MIDI tunes on the SAA1099 sound generator chip using an arduino Based on <NAME>'s PlayTune library, which plays a tune on a normal arduino using its built in hardware...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <math.h> /*********************************************************** * $Id: L2hienAlgo09.cxx,v 1.1 2011/09/22 20:44:10 pibero Exp $ * \author <NAME>, MIT, 2008 *********************************************************** * Descr...
/*=============================================================================== |*Author: <NAME> |*Date: October 2016 |*Description: Calculate the shortest path between two points on a map using the |* A* algorithm. \*===============================================================================*/ #inc...
#include <iostream> #include <string> #include <vector> #include <iomanip> #include <stack> #include <set> #include <queue> #include <unordered_map> #include <bitset> #include <array> #include <numeric> #include <algorithm> using std::string; typedef unsigned int uint; void dc3(std::vector<int>&, std::vector<int>&); ...
#include "adjust_orientation_LBFGS.h" #include <Eigen/Dense> #include <Eigen/Sparse> using Eigen::Matrix3d; using Eigen::Vector3d; void evalfunc_ad_LBFGS(int N, double* x, double *prev_x, double* f, double* g, void* user_pointer) { double alpha = x[0]; double beta = x[1]; double gamma = x[2]; double cos_alpha = std::...
#include "Dialect/Stencil/Passes.h" #include "Dialect/Stencil/StencilDialect.h" #include "Dialect/Stencil/StencilOps.h" #include "Dialect/Stencil/StencilTypes.h" #include "Dialect/Stencil/StencilUtils.h" #include "PassDetail.h" #include "mlir/Dialect/StandardOps/IR/Ops.h" #include "mlir/IR/Builders.h" #include "mlir/IR...
/* * wnd_manager.cpp * The window manager. */ #include "pch.h" #include "anchor.h" #include "application.h" #include "datetime.h" #include "datetime_dmy.h" #include "net_client.h" #include "tt_day.h" #include "tt_period.h" #include "vec2.h" #include "window.h" #include "window_main.h" #include "window_second.h" #i...
//===- llvm/BinaryFormat/ELF.cpp - The ELF format ---------------*- C++ -*-===// // // 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 // //===---------------------------...
/* Copyright (C) 2018 Yosshin(@yosshin4004) */ #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "common.h" #include "dds_parser.h" #include "dds_util.h" static const DdsGlFormat s_tblGlFormats[] = { /* DxgiFormat_Unknown */ {0,0,0}, /* DxgiFormat_R32G32B32A3...
/* ######################## # Hydjet1 # # version: 1.9 patch1 # ######################## * Interface to the HYDJET generator, produces HepMC events * * Original Author: <NAME> */ #include <iostream> #include <cmath> #include "boost/lexical_cast.hpp" #include "FWCore/Concurrency/interface/SharedResource...
#include <Arduino.h> #include <TFT_eSPI.h> // Hardware-specific library #include <SPI.h> #include "gps.h" TFT_eSPI tft = TFT_eSPI(); // Invoke custom library TFT_eSprite spr = TFT_eSprite(&tft); // Sprite #include "DHT.h" #define DHTPIN 0 // what pin we're connected to #define DHTTYPE DHT11 // DHT 11 DH...
// Copyright 2019 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <getopt.h> #include <memory> #include "flow_export.h" #include "mediaserver.h" #ifdef LINK_VENDOR #include "vendor_s...
#include "dommodel.h" #include <QtGui> #include <QtXml> #include "editortab.h" #include "editortabswidget.h" #include "mainwindow.h" extern EditorTabsWidget* tabWidget; extern QVector<DomItem*> copy_item; extern bool paste; extern MainWindow* mw_one; extern int childCount; extern QUndoGroup* undoGroup;...
// Copyright 2015 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...
#include "DQM/GEM/interface/GEMDQMEfficiencyClientBase.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Utilities/interface/isFinite.h" #include "TEfficiency.h" #include "TPRegexp.h" #include <regex> GEMDQMEfficiencyClientBase::GEMDQMEfficiencyClientBase(const edm::ParameterSet& ps) ...
#include <array> #include <fmt/format.h> #include <string_view> #include <vector> #include "Constants.hh" #include "CTypeWrapper.hh" #include "Interpreter.hh" #include "OPCode.hh" #include "builtin/BuiltIn.hh" #include "dynlib/DynLibLoader.hh" #include "dynlib/DynLib.hh" #include "fmt/core.h" #include "ir/QuadCollecti...
//----------------------------------------------------------------------------- // GUIBitmap.cpp // Displays a bitmap on screen //----------------------------------------------------------------------------- #include "GUIBitmap.h" // Library includes #include "IwGx.h" #include "IwTextParserITX.h" // Project includes...
/* * Copyright (C) 2013 Intel Corporation * * 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...
// Copyright 2017-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "test_fixture.h" #include "ArcballCamera.h" // ospray_testing #include "ospray_testing.h" // ospcommon #include "ospcommon/utility/multidim_index_sequence.h" extern OSPRayEnvironment *ospEnv; namespace OSPRayTestScenes { // Hel...
/* * Copyright 2016, <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 w...
#include <cstdlib> #include "quantum.h" #include "rand.h" #include "qalgorithms.h" #include "methods.h" #include <iostream> // Register class Register::Register(unsigned int num_qubits) { /* By default, initializes vaccum (|000...>) to amplitude one and the rest zero. This can be adjust with logic ga...
#include "simlib/file_manip.hh" #include "simlib/debug.hh" #include "simlib/defer.hh" #include "simlib/directory.hh" #include "simlib/file_contents.hh" #include "simlib/file_info.hh" #include "simlib/file_path.hh" #include "simlib/opened_temporary_file.hh" #include "simlib/random_bytes.hh" #include "simlib/temporary_di...
#include <iostream> #include <SDL_ttf.h> #include "common.h" #include "DungeonMaster.h" #include "GarbageGobbler.h" #include "Log.h" #include "minigames/Born.h" #include "minigames/Dead.h" #include "minigames/Fuck.h" #include "minigames/Fuzz.h" #include "minigames/Kids.h" #include "minigames/Play.h" #include "minigam...
// This file os part of FVM // Copyright (c) 2012 FVM Authors // See LICENSE file for terms. #include <iostream> #include <cassert> #include <numeric> #include "NcDataWriter.h" #include "netcdfcpp.h" #include "StorageSite.h" #include "Array.h" #include "OneToOneIndexMap.h" #include "CRConnectivity.h" int NcDataWrite...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QFileDialog> #include <QProcess> #include <QDesktopWidget> #include <QInputDialog> #include <QJsonDocument> #include <QMessageBox> #include "testdialog.h" #include "octaldialog.h" #include <iostream> #include <sstream> using namespace std; QJsonObject Ma...
#include "project2.h" using namespace std; typedef map<string, int> mapT; mapT tables; int save_tables() { string fname = "Tables.bin"; FILE* fp = fopen(fname.c_str(), "w"); if (!fp) return -errno; mapT::iterator it = tables.begin(); for (int i = 0; it != tables.end(); it++, i++) { fprintf(fp, "%s=%s...
#include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/tensor_types.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/framework/shape_inference.h" using namespace tensorflow; // NOLINT(build/namespaces) using shape_...
#include "cls_builder.h" #include <boost/tokenizer.hpp> #include <arpa/inet.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <chrono> #include <exception> #include <iostream> #include <regex> #include <fstream> //#include <sys/time.h> #include <signal.h> #include <string> // enum for the CSV inpu...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #include <time.h> #include <errno.h> // for ENOMEM #include <signal.h> #include "mtwrap.h" // port of forest-fire.py to C/C++ // recommended by kernel documentation #include <fcntl.h> #include <unistd.h> #include <sys/...
/* * LDPC.cpp * * Created on: 22 Dec, 2014 * Author: <NAME> * User: mehrdad */ #include <cstdlib> #include "Report.h" #include "Channel.h" #include "Encoding.h" #include "Utils_2.h" // vector, array #include "Variable_Node.h" #include "Check_Node.h" #include "Edge.h" #include "LDPC.h" /****************...
/*! * @copyright * Copyright (c) 2015-2017 Intel Corporation * * @copyright * 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 * * @copyright * http://www.apache.org/licenses/LICENSE-...
#include <gl\glew.h> #include <gl\glfw3.h> #include <gl\freeglut.h> #include <glm\glm.hpp> #include <glm\gtc\matrix_transform.hpp> #include "trackball.h" #include "model.h" #include "Utility.h" using namespace glm; #define width 1024 #define height 768 bool MouseLeftPress = false; bool MouseMiddlePr...
//////////////////////////////////////////////////////////////////////// // Include files //////////////////////////////////////////////////////////////////////// #include "generateGrid.h" using namespace std; //////////////////////////////////////////////////////////////////////// // Command line arguments...
#include <iostream> #include <sstream> #include <string> #include "GL/glew.h" #include "GL/freeglut.h" #include "IL/il.h" #include "../Engine/Engine.h" #include <glm/mat4x4.hpp> #include <glm/gtc/matrix_transform.hpp> using namespace cgj; #define CAPTION "Terrestrial Planet by Group 11" //Shader input attributes #de...
/* I was unable to find good information on how the PLL dividers work in the ECP5 PLL Design and Usage Guide, so I ran several frequencies through Lattice's clarity designer, and was surprised with what I found: | Input | Output | refclk | feedback | output | fvco | | 12 | 48 | 1 | 4 | 12 | 5...
#include "chat.h" #include "login.h" #include <QMessageBox> #include <windows.h> #include <commdlg.h> #include <iostream> #include "mysql.h" #include <QFileDialog> #include <time.h> #include <QtCore> #ifdef UNICODE #define TCHARToQString(x) QString::fromUtf16((x)) #else #define TCHARToQString(x) QString::from...
#include "gqf.h" #include <stdio.h> /* printf, scanf, puts, NULL */ #include <stdlib.h> #include<iostream> #include <fstream> #include "hashutil.h" #include "kmer.h" #include <vector> #include <chrono> #include<cmath> #include <random> #include <algorithm> #include "Benchmark_Utils_Script/generators.hpp" #include ...
/* -*-C++-*- $NetBSD: menu.cpp,v 1.5 2002/03/25 17:23:19 uch Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by UCHIYAMA Yasushi. * * Redistribution and use in source and binary forms, with or with...
/* * Copyright (C) 2015 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. */ // notes for those who cherish the odd // pts 320 subtract 10.0 MHz always. /...
#include <stdio.h> #include "agif.h" #include <gif_lib.h> #include "quant.h" #include <iostream> #include <cassert> #include <vector> #include <algorithm> #include <map> #include <QColor> #include <QRgb> #include <QHash> #include <QMultiMap> #include <QPainter> #include <QVariant> typedef QList< QPair<QRgb, int> > Q...
/**************************************************************************** ** ** Copyright (C) 2014-2015 Canonical, Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL3$ ** Commercial License Usage ** Licensees holding valid commercial Q...
#include <pge/rendering/voxel/VoxelChunk.h> #include <pge/rendering/voxel/VoxelTerrain.h> #include <pge/util/Math.h> using namespace pge; void VoxelChunk::create(const SceneObjectRef &voxelTerrain, const Point3i &centerRelativePosition) { _renderMask = 0xffff; _voxelTerrain = voxelTerrain; if (_sharedData == ...
// -*- mode: c++; indent-tabs-mode: nil; -*- // // Copyright (c) 2009-2012 Illumina, Inc. // // 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 limit...
// Copyright (c) 2015 The Chromium Embedded Framework 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 "include/base/cef_bind.h" #include "include/cef_pack_resources.h" #include "include/cef_resource_bundle.h" #include "inclu...
/** * Copyright (C) 2018 Xilinx, Inc * * 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: <NAME> */ #include <cctype> #include <cstring> #include <vector> #include <algorithm> #include <sstream> #include <string> #include <lean/thread.h> #include <lean/debug.h> #incl...
/** * Copyright (c) 2017 Tiny Express Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of condit...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condit...
/** ============================================================================ Name : Parallel Maximum Clique (PMC) Library Author : <NAME> (<EMAIL>) Description : A general high-performance parallel framework for computing maximum cliques. The library is designed to be fast for large...
/* * Copyright (c) 2012 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...
//--------------------------------------------------------------------- // // File: TVideoPreviewView.cpp // // Author: <NAME> // // Date: 05.27.98 // // Desc: Video preview area // // Copyright ©1998 mediapede Software // //--------------------------------------------------------------------- // Includes #include "Bu...
#include "Parser.h" #include "StoreVisitor.h" #include "Store.h" #include <iostream> #include <string> #include <cstdio> #include <cctype> #include <vector> #include <cassert> #include "LinAlgOps.h" namespace { struct Context { Store* store; char* buf; size_t buf_size; std::vector<Group*> group...
/* * Copyright (C) 2010-2013 Groupement d'Intérêt Public pour l'Education Numérique en Afrique (GIP ENA) * * This file is part of Open-Sankoré. * * Open-Sankoré 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 Found...
/* <stig/indy/disk/util/disk_util.cc> TODO Copyright 2010-2014 Stig LLC 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 r...
/* * CEGALatch.cpp * * Created on: 11.07.2009 * Author: gerstrong */ #include "CEGALatch.h" #include "fileio/ResourceMgmt.h" #include "fileio/lz.h" #include "graphics/GsGraphics.h" #include <base/video/CVideoDriver.h> #include <base/TypeDefinitions.h> #include "fileio/KeenFiles.h" #include "engine/core/CBeh...