text
stringlengths
5.71k
33.7k
// https://www.duskborn.com/posts/a-simple-vulkan-compute-example/ // https://gist.github.com/sheredom/523f02bbad2ae397d7ed255f3f3b5a7f // https://vulkan-tutorial.com/en/Texture_mapping/Combined_image_sampler // export VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation #include <vulkan/vulkan.h> #include <cstdio> #includ...
// This file will go and find a cut boundary for BerekelyAlphaBeta classifier and then computes the full rejection of that boundary. Then the plan is to find a rejection against effiency. // You were trying to get a radial fit done. // TODOs: // // 1) combine the radial and energy varibles in to one TH3D // 2) Clean...
#include <map> #include <vtkCellArray.h> #include <vtkCellData.h> #include <vtkCellLocator.h> #include <vtkCenterOfMass.h> #include <vtkDataSet.h> #include <vtkDataSetSurfaceFilter.h> #include <vtkMergePoints.h> #include <vtkPointData.h> #include <vtkPointLocator.h> #include <vtkPolyData.h> #include <vtkSelectEnclosedP...
#include <stdio.h> #include <opencv2/opencv.hpp> #include <queue> #include "opencv2/highgui/highgui.hpp" #include <iostream> #include <opencv2/imgproc/imgproc.hpp> #include <vector> #include <ros/ros.h> #include <image_transport/image_transport.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/image_encodings....
//*************************************************************************************** // This program is unit test of LJ interaction. //*************************************************************************************** #include <gtest/gtest.h> #include <particle_simulator.hpp> #include <particle_mesh.hpp> ...
/* Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ using namespace std; #include "TFCSApplyFirstPCA.h" #include "ISF_FastCaloSimEvent/TFCSSimulationState.h" #include "TApplication.h" #include "TBrowser.h" #include "TChain.h" #include "TFCSMakeFirstPCA.h" #include "TFile.h" #inclu...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
// // main.cpp // SmartCalc // // Created by <NAME> on 2015-06-08. // Copyright (c) 2015 <NAME>. All rights reserved. // #include <iostream> #include <sstream> #include <fstream> #include <string> #include <stdio.h> #include <SDL2/SDL.h> #include <SDL2_image/SDL_image.h> #include <SDL2_ttf/SDL_ttf.h> #include "Equ...
#include <stdio.h> #include "snownet_test.h" #include <iostream> // std::cout #include <future> // std::async, std::future #include <chrono> // std::chrono::milliseconds #include <sstream> // std::stringstream #include <string.h> // strlen #include <thread> #in...
/** * WiFi Events *0 SYSTEM_EVENT_WIFI_READY < ESP32 WiFi ready *1 SYSTEM_EVENT_SCAN_DONE < ESP32 finish scanning AP *2 SYSTEM_EVENT_STA_START < ESP32 station start *3 SYSTEM_EVENT_STA_STOP < ESP32 station stop *4 SYSTEM_EVENT_STA_CONNECTED ...
/////////////////////////////////////////////////////////// // // TEMPORARY INPUT // This cpp file contains the definitions for the input /////////////////////////////////////////////////////////// // // // namespace Inputdata:: // The data in the input deck are collected in the class // "Input". Fo...
/* * Copyright (c) 2008-2010 <NAME> (snavely (at) cs.cornell.edu) * and the University of Washington * * 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 Lice...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
/* * Copyright (c) 2020-2021 <NAME> <<EMAIL>> * * specgram is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include "test.hpp" #include "../src/renderer.hpp" #include <X11/Xlib.h> class ExposedRenderer : public Renderer { public: usi...
/* =========================================================================== Doom 3 GPL Source Code Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?). Doom 3 Source Code is free software: you can redistribute it and/or modify...
#include <hypobase.h> //#include "hypomods.h" //#include "hypopanels.h" #include "wx/utils.h" //#include "osmopanels.h" //#include "hypograph.h" #include <hypotools.h> #include <string> //[[NSApplication sharedApplication] activateIgnoringOtherApps : YES]; // Main window base class MainFrame::MainFrame(const wx...
#include <gflags/gflags.h> #include <inference_engine.hpp> #include <samples/common.hpp> #include <samples/ocv_common.hpp> #include <samples/slog.hpp> #include <opencv2/opencv.hpp> #include <algorithm> #include <iostream> #include <string> #include <vector> #include <memory> #include <chrono> using namespace Inference...
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
// ============================================================================ // // libwalter PictureButton.cpp // // Distributed under the terms of the MIT License. // // Authors: // <NAME> - http://www.biffuz.it/ // // Contains portions from Haiku, copyright 2001-2005. // // =======================================...
#include "Model.h" #include "Eigen/Dense" #include "statistics.cpp" #include <iostream> #include <string> #include <vector> #include <map> #include <cmath> #include <iomanip> #include <algorithm> #include <chrono> using Eigen::MatrixXd; using namespace std::chrono; void progress(const float &prog, const float &total...
/** * DmxSimple - A simple interface to DMX. * * Copyright (c) 2008-2009 <NAME>, Tinker.it! All rights reserved. * Additions for XMega Chips by <NAME> - Intellignet Lighting Institute Eindhoven */ #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include "pins_arduino.h" #include "DmxSimple....
/* * * serialcomm_s300.cpp * * * Copyright (C) 2014 * Software Engineering Group * RWTH Aachen University * * * Author: <NAME> * * * 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; ...
#include "globals.hpp" #include "basis.hpp" #include "ellipse.hpp" #include <math.h> #include <assert.h> //local use only void update_idet(void); void ellipsify_basis(void); //void correct_basis(void); double a1x = 0.0; double a1y = 0.0; double a2x = 0.0; double a2y = 0.0; double ra1x = 0.0; double ra1y = 0.0; double...
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /*====== This file is part of PerconaFT. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. PerconaFT is free software: you can redistribute it and/or modif...
/* * dhTest - simple Diffie-Hellman exerciser. */ #include <stdlib.h> #include <stdio.h> #include <Security/cssm.h> #include "cspwrap.h" #include "common.h" #include <security_cdsa_utils/cuFileIo.h> #include <strings.h> #define USAGE_DEF "noUsage" #define LOOPS_DEF 10 #define KEY_SIZE_DEF 512 #define DERIVE_KEY_S...
// Copyright (c) 2017-2018, The Masari Project // Copyright (c) 2014-2018, The Monero 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: // // 1. Redistributions of source code must re...
/**************************************************************************** * * Copyright (c) 2016 PX4 Development Team. 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. Redistri...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file input format is based loosely on // Tools/DumpRenderTree/ImageDiff.m // The exact format of this tool's output to stdout is important, t...
/** * Copyright (c) 2015, <NAME>, Quintelligence d.o.o. and contributors * All rights reserved. * * This source code is licensed under the FreeBSD license found in the * LICENSE file in the root directory of this source tree. */ ///////////////////////////////////////////////// // MD5 void TMd5::Init(){ DefP=...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2015 Couchbase, 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 * * ...
/* * Copyright 2017 MapD Technologies, 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 o...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
#include "zCamE1MessageProcessor.h" #include "../atreyu/include/rcammodule.h" #include "stdMessage.h" #ifdef TESTING #include "dummySerial.h" #else #include "serial.h" #endif #include "log.h" #include "utils.h" #define MAX_MSG_LENGTH 32 // Common indices #define SYNC1_INDEX 0 #define SYNC2_INDEX 1 #define LENGTH_IND...
// Copyright (c) 2009-2017 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: dnlebard #include "HarmonicDihedralForceCompute.h" namespace py = pybind11; #include <iostream> #include <sstream> #include <stdexcept> #inc...
/* * TLSH is provided for use under two licenses: Apache OR BSD. * Users may opt to use either license depending on the license * restictions of the systems with which they plan to integrate * the TLSH code. */ /* ============== * Apache License * ============== * Copyright 2013 Trend Micro Incorporated * *...
#include "GlslGenerator.h" #include <stdio.h> #include <stack> #include <vector> #include <forward_list> #include <sstream> #include <glm/gtc/matrix_transform.hpp> #include "model/Entity.h" #include "model/Object.h" #include "model/CsgOperator.h" #include "model/Transform.h" #include "model/Project.h" #include "mode...
/* * Copyright (c) 2015, Nagoya 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: * * * Redistributions of source code must retain the above copyright notice, this * list ...
// // JacobiSvd.cpp // // Created by jwkangmacpro on 2018. 2. 2.. // Copyright © 2018년 jwkangmacpro. All rights reserved. // #include "JacobiSvd.h" JacobiSVD::JacobiSVD() { mColSize_A = 0; mRowSize_A = 0; mNumOfSingularValues = 0; mNuclearNorm = 0.0; mSVDCompute_ms = 0.0; //m...
/************** tabjmg C++ Program Source Code File (.CPP) *************/ /* PROGRAM NAME: tabjmg Version 1.2 */ /* (C) Copyright to the author <NAME> 2017 */ /* This file contains the MongoDB classes using the Java Driver. */ /*********************************...
// Copyright (c) 2020- <NAME>, Autonomous Systems Lab, ETH Zurich // Licensed under the MIT License (see LICENSE for details) #include "tsdf_plusplus/integrator/integrator.h" #include <pcl/common/centroid.h> #include <voxblox/core/voxel.h> Integrator::Integrator(const Config& config, std::shared_ptr<Map> map) : ...
// ========================================================================== // An Object-Oriented Boilerplate Code for GLFW // // Author: <NAME>, University of Calgary // Date: January 2017 // // Modified by: <NAME> // April 2017 // ========================================================================== #incl...
// ____ ______ __ // / __ \ / ____// / // / /_/ // / / / // / ____// /___ / /___ PixInsight Class Library // /_/ \____//_____/ PCL 02.01.01.0784 // ---------------------------------------------------------------------------- // Standard GREYCstoration Process Module Version 01.00.02.0272 // -----...
/* -*-C-*- */ /********************************************************************** * This source code is public domain, and may be freely distributed, * * modified, and used for any purpose. IT COMES WITH ABSOLUTELY NO * * WARRANTY OF ANY KIND. * ************************************...
#include "MappingContainer.h" #include "vlq.h" MappingContainer::MappingContainer() {} MappingContainer::~MappingContainer() {} int MappingContainer::addName(std::string &name) { int index = getNameIndex(name); if (index < 0) { _names.push_back(name); index = (int) _names.size() - 1; _...
#include <ros/ros.h> #include <ros/console.h> #include <actionlib/server/simple_action_server.h> #include <behaviors/ElevatorAction.h> #include <elevator_controller/ElevatorSrv.h> #include <talon_state_controller/TalonState.h> #include <elevator_controller/ElevatorSrv.h> #include "behaviors/enumerated_elevator_indices....
/**************************************************************************** * * Copyright (c) 2020-2022 PX4 Development Team. 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. Red...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. * Copyright (c) 2013,2014,2015,2017,2018, by the GROMACS development team, led by * <NAME>, <NAME>, <NAME>, and <NAME>...
/* Copyright 2022, <NAME> primegen is free source code, under the MIT license (see LICENSE). You can redistribute, use and/or modify it. Please give feedback to the authors if improvement is realized. It is distributed in the hope that it will be useful. */ #include <cstdint> #define _USE_MATH_DEFINES #include <cmath...
// // VROOBJLoader.cpp // ViroRenderer // // Created by <NAME> on 12/13/16. // Copyright © 2016 Viro Media. All rights reserved. // // 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 w...
int zH7x ,ZB , YMP3 , UOO//r , // Hj ,hi,//vY iO,ZJtT, Wjzgq,aip ,P//u ,bsl , OIx , xukAX2e, rlmP, hK ,u7o/*C60q*/ //G8 , UU/*J*/,VBVO,oWPb ,NXHWG , /*d*/jN , BvC,m1o8 ,// S64S,//2 wwlf2, Ke ,BkEu , OMx ,N4XEq, Ji; void f_f0() {volatile int h ,If , DS, q ,pR ;{ volatile int OMzrz...
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt /* This is an example illustrating the use of the deep learning tools from the dlib C++ Library. I'm assuming you have already read the dnn_introduction_ex.cpp, the dnn_introduction2_ex.cpp and the dnn_introduction3...
// // OsciAvAudioPlayer.cpp // emptyExample // // Created by Hansi on 13.07.15. // // a huge chunk of this file is based on the // blog entry https://blinkingblip.wordpress.com/2011/10/08/decoding-and-playing-an-audio-stream-using-libavcodec-libavformat-and-libao/ // (had to make some adjustments for changes in ffmp...
// Benchmarks of applications of block-iterable delayed sequences #include <limits> #include <optional> #include <utility> #include <benchmark/benchmark.h> #include <parlay/delayed.h> #include <parlay/primitives.h> #include <parlay/sequence.h> #include <parlay/utilities.h> // =======================================...
#include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #inc...
/* * Copyright 2010 The Native Client 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 "native_client/tests/fake_browser_ppapi/test_scriptable.h" #include <string.h> #include "native_client/src/include/nacl_macros.h" #...
/* || File : etf2html.cpp || Date : 11-Aug-97 || Description: Text/enriched to HTML translator || || Author : <NAME> || Copyright : Qualcomm, Incorporated, 1997 Copyright (c) 2016, Computer History Museum All rights reserved. Redistribution and use in source and binary forms, with or without modi...
//====- LowerDIPPass.cpp - dip Dialect Lowering Pass ---------------------===// // // 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 // //...
#include "SystemData.h" #include "Gamelist.h" #include <boost/filesystem.hpp> #include <fstream> #include <utility> #include <stdlib.h> #include <SDL_joystick.h> #include "Renderer.h" #include "AudioManager.h" #include "VolumeControl.h" #include "Log.h" #include "InputManager.h" #include <iostream> #include "Settings.h...
/* * Copyright 2015-2016 <NAME> * Copyright 2016 The Maru OS 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 req...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
// VolumeControl.cpp : Defines the entry point for the console application. // #ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. #define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows. #endif #include "CEndpoint.h" #i...
/* Parallel.cpp This library implements a limited functionality parallel port on the Arduino DUE board (ARM Cortex-M3 based). The DUE board pins out the data bus on the extended digital headers along with the control signals NC1 and NWR. Some of the address signals are connected to the PWM pins (A0...
// Filename: m3D_hdf5_strain_analyzer.cpp // Created on 17 Feb 2009 by <NAME> // // Copyright (c) 2002-2013, <NAME> // 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 o...
// #include "config.h" // #include <WifiClient.h> // #ifdef ESP32 // #include <Update.h> // #endif // #include <SPIFFSEditor.h> // #include <AsyncJson.h> #include "wifiRestServerModule.h" // #include "asynccallbackjsonwebhandler.h" // #include "WiFiConnection.h" // #define RESTSERVER_PORT_DEFAULT 80 // extern ...
/** * Flow decomposition methods */ #include "flow_decomp.hpp" void decompose_paths_from_flow(BDD* bdd, vector<vector<double>>& zero_arc_flow, vector<vector<double>>& one_arc_flow, vector<vector<int>>& paths, vector<double>& path_weights) { vector<double> weights(0); decompose_path...
#include "mesh.h" #include <cassert> #include "includes.h" #include "shader.h" #include "extra/textparser.h" using namespace std; Mesh::Mesh() { vertices_vbo_id = 0; normals_vbo_id = 0; uvs_vbo_id = 0; colors_vbo_id = 0; indices_vbo_id = 0; vao = 0; } Mesh::Mesh( const Mesh& m ) { vertices = m.vertices; ...
#include "Isis.h" #include <iostream> #include <istream> #include <sstream> #include <cmath> #include <QString> #include <QFileInfo> #include <QByteArray> #include <QTextStream> #include <QStringList> #include "FileName.h" #include "ImportPdsTable.h" #include "ProcessImportPds.h" #include "Table.h" #include "UserInt...
#pragma once /* * mat4x4 implementation using (row-major ordered) array */ /** * TODO comment */ template<typename T> inline constexpr matrix4x4<T> operator*(const matrix4x4<T> & matA, const matrix4x4<T> & matB) { return(matrix4x4<T>((matA[0][0]*matB[0][0]) + (matA[0][1]*matB[1][0]) + (matA[0][2]*matB[2][0]) + (...
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // This testbench offers partial testing of the simumated memory controller // response banks: // * Response integrity. // * Response ordering per AXI identifier. // /...
#include "Shader.h" #include "../support/glad/glad.h" #include "GLFW/glfw3.h" #include "../toy/scene.h" #include <iostream> #define GET_ARRAY_SIZE(array,length){length = (sizeof(array) / sizeof(array[0]));} #define PI 3.1415926 namespace { void framebuffer_size_callback(GLFWwindow* window, int width, int height) { ...
// Copyright 2019 Ocado Innovation Limited // 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...
//===- SwitchLoweringUtils.cpp - Switch Lowering --------------------------===// // // 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 // //===---------------------------...
/** @file lane_detection_webots.cpp * @brief The source file for lane detection when using IMACS framework with WEBOTS simulator * Copyright (c) 2020 sayandipde * Eindhoven University of Technology * Eindhoven, The Netherlands * * Name : lane_detection.cpp * * Authors : <NAME> (<E...
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
/* Copyright (c) <NAME>, 1997. */ /* JET - I've modified it a little, but it works nicely. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ #if defined(_WIN32) #pragma warning ...
/**************************************************************************** ** ** Qt/Embedded virtual framebuffer ** ** Created : 20000605 ** ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. ** ** This file is part of the Qt GUI Toolkit. ** ** Licensees holding valid Qt Professional Edition licenses may...
#include <cctype> #include <algorithm> #include <iomanip> #include <iostream> #include <random> #include <sstream> #include <unordered_map> #include <string> #include <type_traits> #include <vector> #include <boost/algorithm/string.hpp> #include <boost/archive/text_oarchive.hpp> #include <boost/archive/text...
/* Copyright (c) 2020, Dyssol Development Team. All rights reserved. This file is part of Dyssol. See LICENSE file for license information. */ #include "DAESolver.h" #include <ida/ida.h> #include <ida/ida_ls_impl.h> #include <sunlinsol/sunlinsol_dense.h> #include <nvector/nvector_serial.h> #include <cstring> ...
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #pragma warning(push) #pragma warning(disable:4819) #include <opencv2/opencv.hpp> #pragma warning(pop) #include <functional> #include <vector> #include <iomanip> #include <random> using namespace std; using namespace cv; // 6.1 & 6.2 namespace filters { Mat g_sr...
// // algotest_tensor_tests.cpp // Algotest // // Created by <NAME> on 8/21/17. // Copyright © 2017 AdvaSoft. All rights reserved. // #include "algotest_tests.h" #include "algotest_timer.h" #include "algotest_tensor.h" using namespace algotest; DECLARE_TEST(Tensor_crop_test) { tensor<int> a = tensor<int>::ar...
#include <iostream> #include <cmath> #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> #include <cstdlib> #define and && #define or || //#include <gmp.h> const int fov = 90; const double ratio = std::tan(fov / 2.0); const int screenwidth = 1000; const int screenheight = 850; const sf::Vector2i size(screenwidth,...
#include <opencv2/core/mat.hpp> #include "SbmTuner.h" #include "Config.h" #include "Logger.h" #include "SgbmProcessor.h" #include "CvUtil.h" #include "ConfigSerializer.h" #include "Util3D.h" static const char *DISPARITY_WIN_NAME = "disparity"; static const char *FILTERED_DISPARITY_WIN_NAME = "filtered disparity"; sta...
/** * Copyright (c) 2017-present, 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 "camera.h" #include "console.h" #include "debug.h" #include "input.h" #includ...
#include "DDDG.h" #include "BaseDatapath.h" gzFile dynamic_func_file; gzFile instid_file; gzFile line_num_file; gzFile memory_trace; gzFile getElementPtr_trace; gzFile prevBasicBlock_trace; DDDG::DDDG(BaseDatapath *_datapath, std::string _trace_name) : datapath(_datapath), trace_name(_trace_name) { num_of_reg_dep...
#include "VideoProcessing.h" #include "MultiTracker.h" #include <fstream> #include <sstream> #include <filesystem> #ifdef _WIN32 #include <Windows.h> #endif const double GOOD_MATCH_RATIO = 0.65; // FINETUNED const size_t SMALL_MATCHES_NUMBER = 9; // FINETUNED const double IoU_THRESHOLD = 0.3; // Gets names o...
/* -*- C++ -*- */ /*============================================================================= // // // This file is part of the TypeAccess/C-Super-Script software package. // // // // Copyright (C) 1995 <NAME>, <NAME>, // // <NAME>, and Carnegie Mellon University ...
#include "MainMenu.h" #include "GameState.h" #include "Splash.h" #include <fstream> #include "LevelMenu.h" #include <thread> GameState::state GameState::_state = Not_init; // Need to initialize these sf::RenderWindow GameState::_mainWindow; unsigned short GameState::port1 {52977}; unsigned short GameState::port2 {183...
/* * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WH...
/////////////////////////////////////////////////////////////////////////////// // SOFTWARE COPYRIGHT NOTICE AGREEMENT // // This software and its documentation are copyright (2014) by the // // Broad Institute. All rights are reserved. This software is supplied // ...
#include <algorithm> #include <cstdlib> #include <filesystem> #include <iomanip> #include <memory> #include <optional> #include <stdexcept> #include <string> #include <utility> #include <vector> #include "commander/commander.h" #include "config/argv.h" #include "config/commandLineOptions.h" #include "config/config.h" ...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" #ifndef WIN32 #include <sys/stat.h> #endif #include <boost/filesystem.hpp...
/* ------------------------------------------------ * * The MIT License (MIT) * Copyright (c) 2020 <EMAIL> * ------------------------------------------------ */ #include "util_trt.h" #include "trt_age_gender.h" #include <unistd.h> /* * https://github.com/yu4u/age-gender-estimation */ #define FACE_DETECT_ONNX_MOD...
//////////////////////////////////////////////////////////////////////////////// // // Package: Laelaps // // Library: liblaelaps // // File: laeReports.cxx // /*! \file * * $LastChangedDate: 2016-04-08 15:42:39 -0600 (Fri, 08 Apr 2016) $ * $Rev: 4380 $ * * \brief Implementations of Laelaps requested and/...
// // asteroids.cpp // #include "asteroids.h" #include "datum/debug.h" using namespace std; using namespace lml; using namespace DatumPlatform; using leap::extentof; namespace { struct Icosahedron { size_t subdivs = 0; vector<Vec3> vertices[8]; vector<uint32_t> indices[8]; }; void subdivide(vect...
#include "timer.h" #include "ball.h" #include "ball.cpp" #include "color.cpp" #include "input.cpp" #include "nonedit.cpp" #include "other_handlers.cpp" #include "timer.cpp" #include <stdlib.h> using namespace std; #define pi 3.1415 GLMatrices Matrices; GLuint programID; GLFWwindow *window; /********************...
// https://github.com/richardghirst/PiBits/blob/master/MPU6050-Pi-Demo/demo_dmp.cpp #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdint.h> #include <string.h> #include <math.h> #include <signal.h> #include <ros/ros.h> #include <sensor_msgs/Imu.h> #include <geometry_msgs/Vector3Stamped.h> #inclu...
// -*- c++ -*- //============================================================================== // IRIS - Long-range Interaction Solver Library // // Copyright (c) 2017-2021, the National Center for Supercomputing Applications // // Primary authors: // <NAME> <<EMAIL>> // <NAME> <<EMAIL>> // <NAME> <<EMAIL>...
#include "../tomb5/pch.h" #include "laraflar.h" #include "gameflow.h" #include "delstuff.h" #include "control.h" #include "effects.h" #include "effect2.h" #include "lara_states.h" #include "sound.h" #include "items.h" #include "collide.h" #include "larafire.h" #include "../specific/output.h" #include "objects.h" #inclu...
/* * Cream Library * Copyright (C) 2013 <NAME>, CICM - Université Paris 8 * All rights reserved. * Website : https://github.com/CICM/CreamLibrary * Contacts : <EMAIL> * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ ...
#include "../../H/Assembler/Assembler.h" #include "../../H/BackEnd/Selector.h" #include "../../H/UI/Safe.h" #include "../../H/Docker/Docker.h" #include "../../H/Docker/Mangler.h" #include "../../H/Assembler/Assembler_Types.h" extern Selector* selector; Assembler::Assembler(string Input){ vector<Word*> Words = T...