text
stringlengths
5.71k
33.7k
// // Created by Monika on 14.02.2021. // #include <vector> #include <GUI/old/GUIWindow.h> #include <EntityComponentSystem/Transform.h> #include <EntityComponentSystem/Scene.h> #include <EntityComponentSystem/Component.h> #include <imgui_stdlib.h> #include <Render/Camera.h> #include <Render/PostProcessing.h> #include ...
// -*-C++-*- /* (c) Copyright 2007, Hewlett-Packard Development Company, LP See the file named COPYING for license details */ /** @file Convert dataseries files back into the Ellard text format */ /* =pod =head1 NAME ds2ellardnfs - convert the Ellard-style NFS files from dataseries back to the or...
#include <algorithm> #include <fstream> #include <iostream> #include <map> #include <mutex> #include <set> #include <string> #include <sstream> #include <thread> #include <vector> #include <queue> #include <stack> #include <queue> #include <sys/time.h> constexpr bool AllowDuplicateWords = true; typedef std::vector<u...
bool testIntAbs(std::string &reportString) { std::string testName = "IntAbs"; bool r = true; // result rsInt64 i64; i64 = rsAbs( 4294967294LL); r &= i64 == 4294967294; i64 = rsAbs( 4294967295LL); r &= i64 == 4294967295; i64 = rsAbs( 4294967296LL); r &= i64 == 4294967296; i64 = rsAbs( 2147483648LL); r &=...
#include "renderer/opengl/OpenGLContext.h" int sgDrawCount = 0; int sgBufferCount = 0; int sgDrawBitmap = 0; namespace lime { OpenGLContext::OpenGLContext (WinDC inDC, GLCtx inOGLCtx) { HardwareContext::current = this; mDC = inDC; mOGLCtx = inOGLCtx; mWidth = 0; mHeight = 0; mLineWidth = -1; m...
// __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // Version 2.0 (the "License"); you may not use this f...
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 version. * * This program is d...
/* Mit dieser Klasse ist eine Echtzeit-Kommunikation mit Simulink-Modellen möglich. Details, siehe BA von <NAME> (Kap. 6.3.2) und Dokumentation des Beispiels. Diese Datei stellt ein Minimalbeispiel ohne die Abhängigkeit zu ROS dar. Allgemein: * Die mit SL_ beginnenden Funktionen werden durch das Simulink-Modell aufger...
// Simple startrails composition program using OpenCV // Copyright 2018 <NAME> <<EMAIL>> // Based on script by <NAME> // SPDX-License-Identifier: MIT using namespace std; #include <getopt.h> #include <glob.h> #include <sys/resource.h> #include <sys/time.h> #include <unistd.h> #include <algorithm> #include <cstdlib> #...
// Draw.cpp - various draw operations #include <glad.h> #include <gl/glu.h> #include "Draw.h" #include "GLXtras.h" #include "Misc.h" #include <float.h> #include <stdio.h> #include <stdlib.h> #include <vector> // Screen Mode void GetViewportSize(int &width, int &height) { int vp[4]; glGetIntegerv(GL_VIEWPORT,...
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <torch/extension.h> #include <algorithm> #include <cmath> #include <thread> #inc...
#include <gst/gst.h> #include <gst/video/video-format.h> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> #define FPS 20 typedef struct _CustomData { GstElement *pipeline, *app_source; // GstElement *filesrc, *video_parse; GstElement *filesrc, *video_conv; // GstElement *video_queue, *vid...
// Dear ImGui: standalone example application for GLFW + OpenGL 3, using programmable pipeline // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) // If you are new to Dear ImGui, read documentation from the docs/ folder + read the to...
#pragma once #include <map> #include <vector> #include <iostream> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <Eigen/Dense> #include <DemBones/DemBonesExt.h> #include <DemBones/MatBlocks.h> #include <Python.h> #include "utils.h" namespace py = pybind11; using namespace std; using namespace Eige...
//---------------------------------------------------------------------------- // // License: See top level LICENSE.txt file. // // Author: <NAME> // // Description: HISTOA tag class definition. // //---------------------------------------------------------------------------- // $Id: ossimNitfHistoaTag.cpp 23245 201...
#include "frmboxes.h" #include "ui_frmboxes.h" #include "pkmviewer.h" #include "frmreport.h" #include "otinfo.h" #include <QFileDialog> #include <QMessageBox> #if (defined __APPLE__) const char * appath; #endif frmBoxes::frmBoxes(const char *apppath, QWidget *parent) : QMainWindow(parent), ui(new Ui::frmBoxes) ...
// Written by <NAME> 2009 // see license for more information #include "BasicBigraph.h" BasicBigraph::BasicBigraph(): PsmThreshold(0.0), PeptideThreshold(1e-3), ProteinThreshold(1e-3) {} BasicBigraph::BasicBigraph(double __psmthreshold, double __peptidethreshold, double __proteinthreshold): PsmThreshold(__p...
#include <mps/sdf/SDF.h> #include <mps/planner/util/Math.h> #include <mps/planner/util/Logging.h> #include <fstream> #include <yaml-cpp/yaml.h> #include <sim_env/utils/YamlUtils.h> #include <boost/filesystem/path.hpp> #include <stack> using namespace mps::sdf; using namespace mps::planner::util::math; using namespace ...
#include "../headers/operators.hpp" #include "../headers/nature.hpp" #include<iostream> #include <string.h> using namespace std; const double MIN_BETWEN_FLIGHT = 0.5; const double MAX_BETWEN_FLIGHT = 4.0; const double MAX_TIME_DUTY = 12.0; const double MAX_TIME_FLIGHT = 8.0; const string BASE1 = "IST"; const string BA...
#include "al/protocol/al_CommandConnection.hpp" #include <algorithm> #include <array> #include <iostream> namespace Convert { auto to_bytes(std::uint16_t x) { std::array<std::uint8_t, 2> b; b[0] = x >> 8 * 0; b[1] = x >> 8 * 1; /* b[2] = x >> 8 * 2; b[3] = x >> 8 * 3; b[4] = x >> 8 * 4; b[5] = x >> 8 * 5; b[6...
#include "RGBMoodLifx.h" #include "FastLED.h" // Dim curve // Used to make 'dimming' look more natural. #define NUM_LEDS 60 CRGB leds[NUM_LEDS]; #define DATA_PIN 11 #define CONTROLLER_TYPE WS2811 CLEDController *pLed; uint8_t dc[256] = { 0, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, ...
/* [PREDITLE] Jumpshot, p100, millionware on top Awp don't need no scope, hop around don't miss a shot 7 shots in my deagle always got me lookin' evil p100 like it's cheat-codes just need one shot never reload I hit the edgebug jumpbug spin around and flickshot (ooh) Didn't even see you but your skull's eating my AWP...
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* // ** Copyright UCAR (c) 1992 - 2015 // ** University Corporation for Atmospheric Research(UCAR) // ** National Center for Atmospheric Research(NCAR) // ** Research Applications Laboratory(RAL) // ** P.O.Box 3000, Boulder, Colorado, 80307...
/***************************************************************************** * * Program: EPTlib * Author: <NAME> <<EMAIL>> * * MIT License * * Copyright (c) 2020-2021 <NAME> * Istituto Nazionale di Ricerca Metrologica (INRiM) * Strada delle cacce 91, 10135 Torino * ITALY * * Permission is hereby grant...
#include <scylla_blas/logging/logging.hh> #include <scylla_blas/queue/scylla_queue.hh> using task = scylla_blas::scylla_queue::task; using response = scylla_blas::scylla_queue::response; using scylla_queue = scylla_blas::scylla_queue; using session_map_t = std::unordered_map<scmd::session *, std::unordered_set<scylla_...
#include "copy_elements.hpp" #include "insert_kv.hpp" #include "types.hpp" #include "config.h" #include <string> #include <stdexcept> #include <iostream> #include <fstream> #include <boost/format.hpp> #include <boost/noncopyable.hpp> #include <boost/date_time/posix_time/posix_time.hpp> #include <boost/filesystem.hpp>...
#include "Light.hpp" #include "utils.hpp" #include "Scene.hpp" #include <glm/gtc/matrix_transform.hpp> bool Light::useVSM = true; int Light::defaultRes = 1024; float Light::svmBleedFix = 0.2f; float Light::svmBlur = 1.0f; PointLight::PointLight(glm::vec3 pos, glm::vec3 e) { this->vector = glm::vec4(pos, 1.0f); ...
/* The MIT License (MIT) Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ri...
#include "lcd_display.h" #include "logging.h" #include <WiFi101.h> #include <Wire.h> #include <LiquidCrystal_I2C.h> /* Class to manage the display for the iot beer machine. For Character Map see https://www.sparkfun.com/datasheets/LCD/HD44780.pdf page 16. Page 17 does not apply. */ LiquidCrystal_I2C l(0x27,2...
#include "Graphyte.h" #include <iostream> // STANDARD #include "Cursor\Cursor.h" #include "Input\Input.h" #include "Rendering\Screen.h" #include "Rendering\Camera.h" #include "Text\TextRenderer.h" #include "Resources\ResourceManager.h" #include "Rendering\MeshRenderer.h" #include "IO\ModelLoader.h" // SFML AUDIO #...
#include "dwa_planner/dwa_planner.h" DWAPlanner::DWAPlanner(void) :local_nh("~"), local_goal_subscribed(false), scan_updated(false), local_map_updated(false), odom_updated(false) { local_nh.param("HZ", HZ, {20}); local_nh.param("ROBOT_FRAME", ROBOT_FRAME, {"base_link"}); local_nh.param("TARGET_VELOCITY...
/* _________________________________________________________________ Layer (type) Output Shapestd::endl; Param # ================================================================= conv2d_104 (Conv2D) (None, 26, 26, 32) 320 ____________________________________________________...
// Projeto_EDA_jogo.cpp // GROUP 06 // MEMBERS: <NAME> + <NAME> #include <iostream> #include <iomanip> #include <vector> #include <ctime> #include <fstream> #include <string> #include <cstddef> #include <sstream> #include <Windows.h> using namespace std; struct Tile { int topValue; int downValu...
#include "clahe_sw.h" using namespace std; // このrangeはどう渡される? template<class T, int histSize, int shift> void my_CLAHE_CalcLut_Body<T, histSize, shift>::operator()(const cv::Range& range) const { T* tileLut = lut_.ptr<T>(range.start); //lut_の行のサイズ maybe const size_t lut_step = lut_.step / sizeof(T); //const size_...
// ============================================================================= // Dynamic Adaptive System for Hierarchical Multipole Methods (DASHMM) // // Copyright (c) 2015-2017, Trustees of Indiana University, // All rights reserved. // // This software may be modified and distributed under the terms of the BS...
/***************************************************************************** * This file is provided under the Creative Commons Attribution 3.0 license. * * You are free to share, copy, distribute, transmit, or adapt this work * PROVIDED THAT you attribute the work to the authors listed below. * For more information,...
#include <iostream> #include <cstdio> #include <string> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <pthr...
#pragma once class Edge { public: unsigned int i0, i1; Edge(unsigned int i0, unsigned int i1) :i0(i0) ,i1(i1) { } unsigned int getFirst() const { return MIN(i0, i1); } unsigned int getSecond() const { return MAX(i0, i1); } bool operator<(const Edge& edge) const { int a0 = getFirst(); int b0 = edge.ge...
/* * * Copyright 2018 Asylo authors * * 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 agree...
#include "stdafx.h" #include "CMapManager.h" #include "Config.h" #include <fstream> #include <string> #include <gl\freeglut.h> #include "CPriorityQueueNode.h" #include <regex> #include "CAstar.h" CMapManager::CMapManager(std::string &strMapLocationPath, std::string strTestSuiteLocationPath): m_iMapHeight(-1), m_iMapW...
#undef WIRE_TEST #ifdef WIRE_TEST #define TEST #endif #include "Arduino.h" #include <ArduinoJson.h> #include "Wire.h" #include "../../ksp_main_controller/src/ConsoleSetup.h" #include "../../ksp_main_controller/src/ksp_display_defines.h" #include <SPI.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD135...
#include <string> #include <fstream> #include <utility> #include <iostream> #include <GL/glew.h> #include <glm/glm.hpp> #include <GLFW/glfw3.h> #include <glm/gtx/transform.hpp> #define UP glm::vec3(0.0f, 1.0f, 0.0f) #define SENSITIVITY 0.02f #define CAMERA_SPEED 0.01f bool keys[512] { 0 }; class Camera { public: Ca...
// /* testTrackReconstruction // add code to testTrackReconstruction.cc 081018 from // EvtGen/example1.cc to see if I can generate the // daughters of particles which decay in the detector. // revised 23 November 2008 * * Generate several tracks, fit them with KalmanTrack, and analyze the results. */ #inclu...
#include <CEngine.h> class GuiMaterialsLayer : public engine::CImGuiLayer { public : GuiMaterialsLayer( const std::string& name ) : engine::CImGuiLayer( name ) { m_lightRef = nullptr; m_materialRef = nullptr; m_materialSelectedIndex = -1; m_lightsAnimated = false; ...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during init) use_laser_ = true; // if th...
// Copyright (c) 2018 the Talvos developers. All rights reserved. // // This file is distributed under a three-clause BSD license. For full license // terms please see the LICENSE file distributed with this source code. #include <iostream> #include "CommandFile.h" #include "talvos/Commands.h" #include "talvos/Compute...
/* * Copyright 1995, 1996 Perforce Software. All rights reserved. * * This file is part of the Library RCS. See rcstest.c. */ /* * rcsparse.c - parse an RCS file into an RcsArchive structure * * Methods defined: * * RcsArchive::Parse() - parse the whole RCS archive * * Internal classes: * ...
// vim: ts=4:sw=4 /********************************************************************************** * Project: HistFitter - A ROOT-based package for statistical data analysis * * Package: HistFitter * * Namespace: - ...
#include "alfe/main.h" #include "alfe/avi.h" #include "alfe/ntsc_decode.h" #include "alfe/scanlines.h" #include "alfe/config_file.h" #include "alfe/wrap.h" int sampleFromIRE(float IRE) { return static_cast<int>(IRE * 1.4 + 60.49999); } class Program : public ProgramBase { public: void run() { ConfigFi...
#include "BoxComponent.hpp" #include "../World/TransformComponent.hpp" #include "bgfx_utils.h" #include "bgfx/bgfx.h" #include "bgfx/platform.h" #include <bx/bx.h> #include <bx/math.h> #include <iostream> struct PosNormalTangentTexcoordVertex { float m_x; float m_y; float m_z; uint32_t m_normal; uint32_t m_tang...
/* * Copyright (c) 2014, 2015 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, me...
#include <algorithm> #include <cassert> #include <cmath> #include <iostream> #include <map> #include <memory> #include <new> #include <stdexcept> #include <vector> #include <set> #include "boost/math/common_factor.hpp" #include "boost/numeric/ublas/matrix.hpp" #include "boost/numeric/ublas/vector.hpp" #include "boost/...
/* * Copyright (c) 2002-2012 Apple Inc. All Rights Reserved. * * The contents of this file constitute Original Code as defined in and are * subject to the Apple Public Source License Version 1.2 (the 'License'). * You may not use this file except in compliance with the License. Please obtain * a copy of the Lice...
#include <crtdbg.h> #include <math.h> #include <string.h> #define M_PI (3.141592653589793238462643) #define PI (3.141592653589793238462643) //#define MDCT_BLOCKTYPE_PROFILE #ifdef MDCT_BLOCKTYPE_PROFILE #include <windows.h> #endif static double win[4][36]; static double w[18]; static double w2[9];...
/* * ArcScripts for ArcEmu MMORPG Server * Copyright (C) 2009 ArcEmu Team <http://www.arcemu.org/> * Copyright (C) 2008-2009 Sun++ Team <http://www.sunscripting.com/> * Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/> * Copyright (C) 2007-2008 Moon++ Team <http://www.moonplusplus.info/> * * This p...
#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "j1Audio.h" #include "SDL/include/SDL.h" #include "SDL_mixer\include\SDL_mixer.h" #pragma comment( lib, "SDL_mixer/libx86/SDL2_mixer.lib" ) j1Audio::j1Audio() : j1Module() { music = NULL; name.assign("audio"); } // Destructor j1Audio::~j1Audio() {}...
/* listener.cpp - MQTT listener for the BMaC C&C server. Revision 0 Features: - Notes: - 2017/02/09, <NAME> <<EMAIL>> */ #include "listener.h" #include <iostream> #include <fstream> #include <sstream> using namespace std; #include <Poco/StringTokenizer.h> #include <Poco/String.h> #includ...
/* * Software License Agreement (BSD License) * * Copyright (c) 2016-2021, Natalnet Laboratory for Perceptual Robotics * 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. Redistribu...
/* INCLUDES FOR THIS PROJECT */ #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <vector> #include <cmath> #include <limits> #include <opencv2/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/features2d.hpp> #include <opencv2/...
/** * @file IndexManager.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017 Intel 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...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2017 ArangoDB GmbH, Cologne, Germany /// /// 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...
/* * Copyright (c) 2015, 2017, 2019 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation ...
//===--- Platform.cpp - Implement platform-related helpers ----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// // "$Id$" // // Fluid file routines for the Fast Light Tool Kit (FLTK). // // You may find the basic read_* and write_* routines to // be useful for other programs. I have used them many times. // They are somewhat similar to tcl, using matching { and } // to quote strings. // // Copyright 1998-2016 by <NAME> and o...
#pragma once #include <algorithm> #include <array> #include <cassert> #include <chrono> #include <cmath> #include <iostream> #include <iterator> #include <map> #include <memory> #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/...
// DHCP Library v0.3 - April 25, 2009 // Author: <NAME> - blog.jordanterrell.com #include <Arduino.h> #include "Ethernet.h" #include "Dhcp.h" #include "utility/w5100.h" int DhcpClass::beginWithDHCP(uint8_t *mac, unsigned long timeout, unsigned long responseTimeout) { return beginWithDHCP(mac, NULL, timeout, response...
#include <iostream> // FIXME: switch to MessagLogger & friends #include <vector> #include <string> #include <cassert> #include <exception> #include <tuple> #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2020 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
#include <program/Program.h> #include <common/components/worker/IncSyncedCounterWork.h> #include <common/net/message/nodes/SetTargetConsistencyStatesMsg.h> #include <common/net/message/nodes/SetTargetConsistencyStatesRespMsg.h> #include <common/net/message/storage/mirroring/StorageResyncStartedMsg.h> #include <common/...
//===- lib/CodeGen/GlobalISel/LegalizerInfo.cpp - Legalizer ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <vector> #include <fstream> #include "Scene.h" #include "Material.h" #include "Chroma.h" #include "AccStruct.h" #include "BVHTree.h" #include "SunSky.h" #include "StringHelper.h" #include "NextEventEstimatorLight.h" #define NAMELENGTH 32 Scene::Scene(const std::string &sceneName) : ...
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018 www.open3d.org // // Permissio...
// Created by jimmy on 2016-12-29. // Copyright (c) 2016 Nowhere Planet. All rights reserved. // #include "bt_dtr_tree.h" #include "bt_dtr_node.h" #include "bt_dtr_util.h" #include "dt_util.hpp" #include <iostream> #include "dt_random.hpp" using std::cout; using std::endl; BTDTRTree::BTDTRTree() { root_ = N...
#include <Arduino.h> #include <avr/power.h> #include <SPI.h> #include "SPIFlash.h" #include "RFM12B_arssi.h" #include "../common.h" #define NODEID 1 #define NETWORKID 100 //#define FREQUENCY RF12_433MHZ //Match this with the version of your Moteino! (others: RF69_433MHZ, RF69_868MHZ) #define KEY "this...
/* * Copyright 2019-2020, Offchain Labs, 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 ...
// ========================================================================== // // Copyright (c) 2014-2020 The University of Texas at Austin. // // All rights reserved. // // ...
//---------------------------------------------------------------------------- // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // // Description: class declaration for base codec(encoder/decoder). // //-----------------------------------------------------------------------...
#include <cmath> //#include <limits> #include <omp.h> #include "dist_calc.h" #include "immintrin.h" #include "utils.h" #ifndef SIMD #include "mkl_cblas.h" #endif // To use MKL, you can run these commands from a terminal. // This is where the paths are on caen, they will obviously be different if you're // on a diffe...
/*--------------------------------------------------------------------------- Copyright (2010): <NAME> and <NAME>. This code is distributed under the terms of the GNU General Public License 2.0. Permission to use, copy, modify, and distribute this software for any purpose without fee is hereby granted, provided...
// // Created by N on 2021/10/23. // #include <regex> #include <iostream> #include <string> #include <algorithm> #include <io.h> #include <cstdio> #include <cwchar> #include <cstdlib> #include "map" #include "hash_map" #include "hash_map_hpp.h" #define NON 0 #define PK 1 #define NOT_NULL 2 #define ...
#include <assert.h> #include <sys/types.h> #include <errno.h> #include <rtsLog.h> #include <rtsSystems.h> #include <SFS/sfs_index.h> #include <DAQ_READER/daqReader.h> #include <DAQ_READER/daq_dta.h> #include "daq_mtd.h" const char *daq_mtd::help_string = "\ \n\ MTD Help: \n\ Supported Banks: \n\ raw returns=...
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
// // Created by Karol on 03.09.2016. // #include "error_log.hpp" #include "FPSWidget.hpp" FPSWidget::FPSWidget() = default; FPSWidget::~FPSWidget() = default; bool FPSWidget::init(SDL_Renderer * render) noexcept { SDL_Texture_uptr tex{SDL_CreateTexture(render, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_TARGET,...
#include "window.h" #include <time.h> #include <sys/time.h> #include <unistd.h> #include "gl/gl.h" #include "glm/gtc/matrix_transform.hpp" #include "tools/text.h" // Common global variables //---------------------------------------------------- const std::string appTitle = "glslViewer"; static glm::mat4 orthoMatrix;...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
/* Copyright (c) 2017 The Board of Trustees of the University of Illinois * All rights reserved. * * Developed by: National Center for Supercomputing Applications * University of Illinois at Urbana-Champaign * http://www.ncsa.illinois.edu/ * * Permission is hereby granted, free of cha...
#include <TFile.h> #include <TH1.h> #include <TH2.h> #include <TStyle.h> #include <TPaveStats.h> #include <sstream> #include <cstdlib> #include <cassert> #include "Validation/RecoParticleFlow/interface/Comparator.h" #include "Validation/RecoParticleFlow/interface/TH2Analyzer.h" #include "Validation/RecoParticleFlow/...
// Copyright Contributors to the OpenVDB Project // SPDX-License-Identifier: MPL-2.0 #include <cppunit/extensions/HelperMacros.h> #include <openvdb/points/PointGroup.h> #include <openvdb/points/PointCount.h> #include <openvdb/points/PointConversion.h> #include <cstdio> // for std::remove() #include <cstdlib> // for s...
#include "DifferentialStepper.h" DifferentialStepper::DifferentialStepper( uint8_t interface, uint8_t pinL1, uint8_t pinL2, uint8_t pinL3, uint8_t pinL4, uint8_t pinR1, uint8_t pinR2, uint8_t pinR3, uint8_t pinR4 ) { _enabled = false; _interface = interface; _maxStepRate...
// // child_weight.cpp // // This is a function that calculates // weight change for children using the dynamic // weight model by <NAME> et al. and // Runge Kutta method to solve the ODE system. // // Input: // age .- Years since individual first arrived to Earth // sex .- Either 1 = ...
/* * Copyright (C) 2017 Google 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 agree...
#include "PositionBasedElasticRods.h" #include "PositionBasedDynamics/MathFunctions.h" using namespace PBD; const Real eps = 1e-6; const int permutation[3][3] = { 0, 2, 1, 1, 0, 2, 2, 1, 0 }; // ---------------------------------------------------------------------------------------------- bool PositionBasedCosse...
#include "pch.h" #include "mappreview.h" #include "mappvmaker.h" class MapPreviewImageImpl : public MapPreviewImage { private: TRef<Image> m_pimageSectorBkgnd; TRef<Image> m_pimageSectorEmpty; TRef<Image> m_pimageOwnerHighlight; TRef<Image> m_pimageSecondaryOwnerHig...
// SPDX-License-Identifier: Apache-2.0 // // Copyright 2000-2014 <NAME> // Copyright 2004-2013 Gigablast, Inc. // Copyright 2013 Web Research Properties, 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...
#include "PathGenerator.h" #include <vector> #include <math.h> //#include "helpers_planning.h" #include <string> #include <iostream> using std::vector; using std::string; using std::vector; PathGenerator::PathGenerator() {} PathGenerator::~PathGenerator() {} void PathGenerator::Init(double inc, MapPath mp) { ...
//======================================================================== // // Page.cc // // Copyright 1996-2007 Glyph & Cog, LLC // //======================================================================== //======================================================================== // // Modified under the Poppler p...
/** * @file * @brief Implementation of GBL track object with rotations. The logic is inspired by the implementation in proteus (Kiehn, * Moritz et al., Proteus beam telescope reconstruction, doi:10.5281/zenodo.2579153) * * @copyright Copyright (c) 2017-2022 CERN and the Corryvreckan authors. * This software is di...
/* Puzilla Copyright (C) 2013-2019 <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, includi...
// -*- C++ -*- // // Package: CaloOnlineTools/HcalOnlineDb // Class : LutXml // // Implementation: // <Notes on implementation> // // Original Author: <NAME>, <EMAIL> // Created: Tue Mar 18 14:30:20 CDT 2008 // #include <iostream> #include <string> #include <vector> #include <sstream> #include ...
/************************************************************************************************** Software License Agreement (BSD License) Copyright (c) 2014-2015, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt All rights reserved. Redistribution and use in source and binary forms...