text
stringlengths
5.71k
33.7k
/* * Copyright (C) 2018-2020 <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; either version 2 of the License, or * (at your option) any later version. * * This program is...
// Fill out your copyright notice in the Description page of Project Settings. #include "Grid.h" #include "../PowerUps/SlimeTree.h" #include "../PowerUps/Rock.h" #include "../PowerUps/Shrub.h" #include "../Characters/CoreFragment.h" #include "CoreFragmentReceiver.h" // Sets default values AGrid::AGrid() { // Set th...
#include "MyClassification.h" #include "MySharkML.h" #include "GetImageFeatures.h" #include "SuperPixelGraph.h" #include <algorithm> CMyClassification::CMyClassification(void) { m_patchSize = 16; m_numBins = 16; m_numTrees = 100; m_BK_Label = 26; m_bCropped = false; m_bPCA = false; } CMy...
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <malloc.h> #include <fcntl.h> #include <string.h> #include <unistd.h> #include <sys/mman.h> #include <assert.h> #include <signal.h> #include <vector> #include <string> #include "util.h" #include "memmgr.h" #include "programmer....
#include <mavlink/v2.0/common/mavlink.h> #include <ros/ros.h> #include <stdio.h> #include <stdlib.h> #include <string> #include <std_msgs/String.h> #include <math.h> #include <iostream> #include <vector> #include <sensor_msgs/NavSatFix.h> #include <geometry_msgs/PoseStamped.h> #include <geometry_msgs/Vector3Stamped.h>...
#include "kids/timestream/solver.h" #include <tula/algorithm/ei_stats.h> #include <tula/filename.h> #include <tula/formatter/matrix.h> #include <tula/logging.h> // #include <tula/matplotlibcpp.h> namespace { // underscore shorthand for translations std::unordered_map<std::string_view, std::string> _ = { // process...
#include <cstdlib> #include <cstdio> #include <iostream> #include <array> #include <type_traits> #include <vector> #include <random> #include <utility> #include <chrono> #include <GL/glew.h> #include <GL/freeglut.h> #include "glm/glm.hpp" #include "glm/gtc/matrix_transform.hpp" #include "glm/gtx/transform.hpp" #inclu...
#pragma once ////////////////////////////////////////////////////////////////////// //! Includes ////////////////////////////////////////////////////////////////////// #include "gui/platforms/graphics/RHI/windows/d3d11/RHI_device_d3d11.h" #include "core/shared/debugging/asserts.h" #include "gui/platforms/graphics/R...
/*************************************************************************** GLVector.cpp - for description see c3dvector.h ------------------- begin : Mon Feb 5 2001 copyright : (C) 2001-2003 by <NAME> email :...
/* * NightCharts * Copyright (C) 2010 by <NAME>, <NAME> / ITGears Co. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any...
#include "calibrationtable.h" #include "aescrypto.h" #include <algorithm> #include <vector> using namespace nvinfer1; using namespace nvcaffeparser1; using namespace plugin; using namespace cv; using namespace std; // INT8 calibration variables static const int kFIRST_CAL_BATCH = 0; // First batch void calcPReLU(co...
#include <cmath> #include "phase_vocoder.h" #include "DSPF.h" void PhaseVocoder :: initialize() { internalBufLen = pvocFrameLen * 2; /* Windowing function */ hWin = new dtype[pvocFrameLen]; for(int i = 0; i < pvocFrameLen; ++i){ hWin[i] = 0.5 * cos((2 * M_PI * static_cast<dtype>(i)) / static_cast<dtype>(pvocFr...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "spline.h" using namespace std; // for convenience using json = nlohmann::json...
#include "PixelSelector2.h" int computeHistQuantil(int* hist, float below) { int th = hist[0]*below+0.5f; for(int i=0;i<90;i++) { th -= hist[i+1]; if(th<0) return i; } return 90; } PixelSelector::PixelSelector(int w, int h) { randomPattern = new unsigned char[w*h]; s...
/* MIT License Copyright(c) 2020 Futurewei Cloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
#include "igm.h" IGM::IGM(Player* player_, BuildingList* bl_, TileMap* tm_) : player(player_), bl(bl_), tm(tm_) { player->getInventory()->addMiscResource(IRON_ORE, 3); player->getInventory()->addMiscResource(CLOTH, 1); currState = DEFAULTSTATE; sampleCastle = new Castle(-1); sampleTC = new Towncenter(-1); sample...
#include <vector> #include <cmath> #include <chrono> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <algorithm> #include <stdexcept> #include <random> #include <limits> #include <memory> // unique_ptr #include "tgaimage.h" #include "geometry.h" constexpr int g_depth_cutoff =...
/* Copyright (c) 2016 <NAME> See the file LICENSE for copying permission. */ #include <iostream> #include <chrono> #include "automata.h" #include "pda.h" #include "cm.h" #include "emptiness.h" using std::cout; using std::endl; using namespace std::chrono; using z3::context; using z3::solver; using namespace fol...
/************************************************************/ /* NAME: <NAME> */ /* ORGN: UNH */ /* FILE: SurveyPath.cpp */ /* DATE: 23 Feb 2016 */ /**********...
/* -------------------------------------------------------------------------- * * OpenSim: ExternalForce.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simulation. * ...
#include "homework.h" #include "utils.h" #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> void mouse_callback(GLFWwindow* window, double xpos, double ypos); //void scroll_callback(GLFWwindow* window, double xoffset, double yoffset); void processInput(GLFWwindow *window, bool &flag); auto camera = Camera...
// // FILE NAME: CIDKernel_Error_Win32.Cpp // // AUTHOR: <NAME> // // CREATED: 09/12/1998 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (<NAME>.) It is licensed under the MIT Open Source // license: // // https://opensource.or...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include <iterator> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "spline.h" #include "waypoint.h" // how far, in waypoints, do ...
//===--- RISCV.cpp - RISCV Helpers for Tools --------------------*- 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) 2020 Samsung Electronics Co., Ltd. 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 without restriction, including without limitation the rights *...
/*========================== begin_copyright_notice ============================ Copyright (C) 2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #include "cmcl/Support/BuiltinTranslator.h" #include "cmcl/Support/AtomicsIface.h" #inc...
// Copyright (c) 2006, <NAME> // // This code may be used under either of the following two licences: // // 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 // restrictio...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
#include "game.h" #include "event.h" Game::Game(Window& window):window(window), mobSystem_(*this), physicsSystem_(*this), renderSystem_(*this), groundTiles_(worldBounds.width, worldBounds.height, '.'){ } void Game::setup(){ const auto& b = worldBounds; // Create player auto& playerMob = createMob(MobType::P...
// // Created by kellerberrin on 20/12/19. // #include "kpl_mcmc_polytomyupdater.h" namespace kpl = kellerberrin::phylogenetic; kpl::PolytomyUpdater::PolytomyUpdater() { // std::cout << "Creating a PolytomyUpdater" << std::endl; Updater::clear(); name("Polytomies"); reset(); } kpl::PolytomyUpdater::~Pol...
/* * Copyright 2020 The Project Author: lixiang * * 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 "DagOptimizeCommutAssoc.h" #include <algorithm> #include <iterator> DagOptimizeCommutAssoc::DagOptimizeCommutAssoc(void) { } DagOptimizeCommutAssoc::~DagOptimizeCommutAssoc(void) { } bool_node* CAoptimizer::lnewNode(bool_node* mother, bool_node* father){ bool_node* bn = newNode(bnTyp...
// Copyright (c) 2012, 2013 <NAME>. // 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/. #include "i23dSFM/sfm/sfm.hpp" #include "i23dSFM/image/image.hpp" using namesp...
// Copyright 2019 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. #include "chrome/browser/ui/ash/launcher/app_service/app_service_instance_registry_helper.h" #include <set> #include <string> #include <vector> #include...
#ifndef __PROGTEST__ #include <cstdio> #include <cstdlib> #include <cstring> #include <climits> #include <cmath> #include <cassert> #include <iostream> #include <iomanip> #include <sstream> #include <string> #include <vector> #include <map> #include <set> #include <deque> #include <queue> #include <stack> #include <al...
// Copyright 2015 PDFium 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 <limits> #include <string> #include "fpdfsdk/fpdfview_c_api_test.h" #include "public/fpdfview.h" #include "testing/embedder_test.h" #include "testing/...
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2012 <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) ...
/* Copyright 1987 - 1996 by Abacus Research and * Development, Inc. All rights reserved. */ /* Forward declarations in ToolboxEvent.h (DO NOT DELETE THIS LINE) */ #include <base/common.h> #include <QuickDraw.h> #include <CQuickDraw.h> #include <EventMgr.h> #include <WindowMgr.h> #include <OSUtil.h> #include <Toolb...
#include "stdafx.h" // platform name helper LPCSTR CDiskImage::pidname[cppidLast]= { "N/A", "Amiga", "Atari ST", "PC", "Amstrad CPC", "Spectrum", "<NAME>", "Archimedes", "C64", "Atari 8-bit", }; CDiskImage::CDiskImage() { MakeCRCTable(); dti=NULL; Destroy(); } CDiskImage::~CDiskImage() { Destroy();...
/*========================================================================= Program: VolumeSlice : generates images slices from volume data Module: vtkSurface Language: C++ Date: 2010/03 Auteur: <NAME> =========================================================================*/ // .NAME VolumeSlice // .SE...
/* * 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...
// Buffer size for all volumes involved. static const size_t TotalBufferSize=0x4000000; class RSEncode // Encode or decode data area, one object per one thread. { private: RSCoder RSC; public: void EncodeBuf(); void DecodeBuf(); void Init(int RecVolNumber) {RSC.Init(RecVolNumber);} byte *Buf; ...
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2015 Google Inc. All rights reserved. // http://ceres-solver.org/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of so...
/* The MIT License (MIT) * * Copyright (c) 2016 <NAME>, KryptoLogik 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 limitati...
//////////////////////////////////////////////////////////////////////////////// // // // Name: GlobalP0Toys_Faster.cxx // // ...
/** * @example standalone/025_bitmap_font_text.cpp * @brief Shows rendering of text using a font stored in a texture+metrics * * Copyright 2008-2019 <NAME>. Distributed under the Boost * Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ...
/*------------------------------------------------------------------------- * * MATLAB MEX gateway for projection * * This file gets the data from MATLAB, checks it for errors and then * parses it to C and calls the relevant C/CUDA fucntions. * * CODE by <NAME> * * * * * * */ #inclu...
#include "tesseract/baseapi.h" extern "C" { #include "allheaders.h" #include "stdpre.h" #include "tessocr.h" #include "gserrors.h" #include "gp.h" #include "gssprintf.h" #include "gxiodev.h" #include "stream.h" #include <climits> #ifndef PATH_MAX #define PATH_MAX 4096 #endif #undef DEBUG_ALLOCS #ifdef DEBUG_ALLOCS ...
#include"render.h" #include <cmath> #include<stdio.h> #include <vector> #include <set> #include <algorithm> #include <random> #include "kay.h" #include"kmath.h" struct TriangleMesh { std::vector<Vec2f> vertices; std::vector<Vec3i> indices; std::vector<Vec3f> colors; // defined for each face }; void rende...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2017-2020, Waterplus http://www.6-robot.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
/* Vorpaline - geogram demo program */ #include <geogram/basic/common.h> #include <geogram/basic/logger.h> #include <geogram/basic/command_line.h> #include <geogram/basic/command_line_args.h> #include <geogram/basic/progress.h> #include <geogram/basic/stopwatch.h> #include <geogram/basic/process.h> #inclu...
// Copyright 2015 The Chromium OS 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 "tpm_manager/server/tpm_status_impl.h" #include <algorithm> #include <optional> #include <vector> #include <base/check.h> #include <base/fil...
// Copyright (c) Prevail Verifier contributors. // SPDX-License-Identifier: Apache-2.0 #pragma once /* * Build a CFG to interface with the abstract domains and fixpoint * iterators. * * All the CFG statements are strongly typed. However, only variables * need to be typed. The types of constants can be inferred fr...
/** * This is written by <NAME> to parse a STIL file into a FLAT tabular * test pattern format that contains input test patterns for execution on * automatic test equipment * * Function to parse files for static analysis, and generation of output * file containing the test patterns for the automatic test equipmen...
/* * <NAME> * <EMAIL> * * finite_automaton.cpp */ #include <boost/foreach.hpp> #include <boost/iterator.hpp> #include <cstdlib> #include <cassert> #include <fstream> #include <iostream> #include <sstream> #include <string> #include <vector> #include "common_configs.h" #include "mem_controller.h" #include "finite...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "api.h" #include "core/session/onnxruntime_cxx_api.h" #ifdef USE_WEBNN #include "core/providers/webnn/webnn_provider_factory.h" #endif #include <iostream> #include <vector> namespace { OrtEnv* g_env; } // name...
#include "cmatrix4x4f.h" matrix4x4f::matrix4x4f( float m0, float m4, float m8, float m12, float m1, float m5, float m9, float m13, float m2, float m6, float m10, float m14, float m3, float m7, float m11, float m15 ) { m[0]=m0; m[4]=m4; m[8] =m8; m[1...
#include <renderer.h> #include <stdlib.h> #include <rasterizer.h> #include <s1516.h> #include <freelist.h> #define TINYOBJLOADER_IMPLEMENTATION #include <tiny_obj_loader.h> #define SCENE_MAX_NUM_MODELS 512 #define SCENE_MAX_NUM_INSTANCES 512 #include <imgui.h> #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #define NOM...
#include <iostream> #include <unistd.h> #include <fstream> #include <cstdlib> #include <SDL.h> #include "chip8.h" using namespace std; chip8::chip8() : running(true){ SDL_Init(SDL_INIT_VIDEO); SDL_CreateWindowAndRenderer(640, 320, 0, &window, &renderer); SDL_RenderSetLogicalSize(renderer, 64, 32); SD...
#include <ddk_nav_2d/frontier_planner.h> #include <math.h> #define PI 3.14159265 typedef std::pair<double,unsigned int> Entry; // Euclidean + index typedef std::multimap<double, Entry> Queue; // Manhatan, Euclidean, index FrontierPlanner::FrontierPlanner(std::string map_frame) { map_frame_ = map_frame; frontier_...
//Jin: cuda_device_runtime.cc //Defines CUDA device runtime APIs for CDP support #include <iostream> #include <map> unsigned long long g_total_param_size = 0; unsigned long long g_max_total_param_size = 0; #if (CUDART_VERSION >= 5000) #define __CUDA_RUNTIME_API_H__ #include <builtin_types.h> #include <driver_type...
#include <algorithm> #include <curl/curl.h> #include <functional> #include <fstream> #include <iostream> #include <random> #include <regex> #include <string> #include <vector> #include <dirent.h> #include <fts.h> #include <grp.h> #include <pwd.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #in...
/* * Copyright 2008 <NAME>, o<EMAIL>.<EMAIL>_<EMAIL> * Copyright 2008 <NAME> * All rights reserved. Distributed under the terms of the MIT License. */ #include "CommandManager.h" #include <bluetooth/bluetooth_error.h> #include <bluetooth/debug.h> inline void* buildCommand(uint8 ogf, uint8 ocf, void** param, siz...
#include <stdlib.h> // for rand() stuff #include <stdio.h> // for printf #include <time.h> // for time() #include <math.h> // for cos(), pow(), sqrt() etc. #include <float.h> // for DBL_MAX #include <string.h> // for mem* #include <ros/ros.h> #include <ros/console.h> #include <std_msgs/Int32.h> #include <geometry_msg...
/* * Copyright (C) 2019 Open Source Robotics Foundation * * 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 appl...
/** * Copyright (C) 2014 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
/* * Copyright (c) 2019, The Robot Studio * 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 cond...
#include "utils.h" #include "hard_clustering.h" #include <boost/random/discrete_distribution.hpp> #include <boost/random/mersenne_twister.hpp> using namespace std; CUGMMLite::CUGMMLite(AdaHardCluster& mdl_, unsigned long int dim_) : copt::BoundedProblem<double>(2), mdl(mdl_), dim(...
#include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/stream/EDProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/Framework/interface/makeRefToBaseProdFrom.h" #include "FWCore/ParameterSet/interface/Param...
/* * @author: <NAME> * @created: 09-2020 * Copyright (c) 2020 The University of Southern California. All Rights Reserved. * Copyrights licensed under an Academic/non-profit use license. * See the accompanying LICENSE file for terms. */ #include "agents_loader.h" #include <string> #include <cstring> #include <iost...
#include <iostream> #include <vector> #include <string> #include <cstring> #include <random> #include "validator.h" #include "z3client.h" using namespace z3; default_random_engine gen_vld; uniform_real_distribution<double> unidist_vld(0.0, 1.0); bool validator::enable_z3server = true; /* class validator start */ va...
#include "stratton-chu/plane-surface.hpp" #include "stratton-chu/parabolic-surface.hpp" #include "stratton-chu/distorted-surface.hpp" #include "stratton-chu/parallel-beam.hpp" #include "stratton-chu/stratton-chu-field.hpp" #include "stratton-chu/utils.hpp" #include "stratton-chu/csv-saver.hpp" #include "stratton-chu/v...
// Copyright (c) 2019 London Trust Media Incorporated // // This file is part of the Private Internet Access Desktop Client. // // The Private Internet Access Desktop Client 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 Softwa...
#include "MikrotikAPI.h" using namespace std; MikrotikAPI::MikrotikAPI(const string &strIpAddress, const string &strUsername, const string &strPassword, int port) { Connect(strIpAddress, port); if(fdSock != -1) { // attempt login int loginResult = Login(strUsername, ...
#include <list> #include <algorithm> #include "dsp/digital.hpp" #include "moDllz.hpp" #include "midi.hpp" #include "dsp/filter.hpp" /* * MIDIdualCV converts upper/lower midi note on/off events, velocity , channel aftertouch, pitch wheel, mod wheel breath cc and expression to CV */ namespace rack_plugin_moDllz { ...
/******************************BEGINNING OF FILE******************************/ //Programmer : <NAME> //Date : 11 Nov 07 //File : gws4g2_hw8_functions.cpp //Purpose : To write the function implementation for the hw8 project #include "gws4g2_hw8.h" int getInputType(ifstream &inFile) { char inputType = ...
#include "similarity.h" #include "types.h" #include "random_pcg.h" #include <iostream> #include <cmath> #include <armadillo> #include <memory> constexpr const static double HALF_PI = 1.57079632679490; constexpr const static double PI = 3.14159265358979; extern "C" { double map_clusters( void *xi, void *xj, p...
/* ************************************************************************************** * Author: <NAME> * <EMAIL> * * MIT License * ----------- * <EMAIL> * * Permission is hereby granted, free of cha...
/* * * * * * * * * * * * * Author's note * * * * * * * * * * * *\ * _ _ _ _ _ _ _ _ _ _ _ _ * * |_| |_| |_| |_| |_|_ _|_| |_| |_| _|_|_|_|_| * * |_|_ _ _|_| |_| |_| |_|_|_|_|_| |_| |_| |_|_ _ _ * * |_|_|_|_|_| |_| |_| |_| |_| |_| |_| |_| |_...
#include <stdio.h> #ifdef _WIN32 #include <windows.h> #else #include <unistd.h> #endif #include <string> #include "tinyxml2.h" #include "cd.h" #include "cdreader.h" #if defined(_WIN32) #include <direct.h> #else #include <sys/stat.h> int _mkdir(const char* dirname){ return mkdir(dirname, S_IRWXU | S_IRWXG | ...
#include "trail.service.hpp" trail::trail(account_name self) : contract(self), environment(self, self) { if (!environment.exists()) { env_struct = env{ self, //publisher 0, //total_tokens 0, //total_voters 0, //total_ballots asset(0, S(4, VOTE)),...
#pragma once #include <linux/types.h> #include <linux/usb/ch9.h> #include <linux/usb/gadgetfs.h> #include <stdio.h> #include "../thirdParty/usbgadget.h" // HID Descriptor type struct hid_class_descriptor { __u8 bDescriptorType; __le16 wDescriptorLength; } __attribute__((packed)); // Class used to define the HID ...
#include "StaticMesh.h" StaticMesh::StaticMesh(ID3D11Device* d3d11Device, ID3D11DeviceContext* d3d11DevCon) :rotangle(0.f), d3d11Device(d3d11Device), d3d11DevCon(d3d11DevCon){ this->layout[0] = { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 }; this->layout[1] = { "TEXCOORD"...
#include <math.h> #include <CL/sycl.hpp> #include <list> #include <sycl/ext/intel/ac_types/ac_complex.hpp> #include <sycl/ext/intel/fpga_extensions.hpp> // dpc_common.hpp can be found in the dev-utilities include folder. // e.g., $ONEAPI_ROOT/dev-utilities//include/dpc_common.hpp #include "dpc_common.hpp" // included...
// Copyright ETHZ 2017 // author: mathias, 2017, <EMAIL> #include "MeshMRF.h" #include "../LikelihoodImage/LikelihoodImage.h" #include "../PRSTimer/PRSTimer.h" #include "../MeshUtil/MeshGeom.h" #include <iostream> #include <utility> #include <opencv2/opencv.hpp> // Global stuff, dirty but posssible other than that? ...
#include "RecoEgamma/EgammaPhotonAlgos/interface/EnergyUncertaintyPhotonSpecific.h" #include "TMath.h" #include <iostream> EnergyUncertaintyPhotonSpecific::EnergyUncertaintyPhotonSpecific( const edm::ParameterSet& config ) { } EnergyUncertaintyPhotonSpecific::~EnergyUncertaintyPhotonSpecific() { } void Ene...
/* * strategy_keepvalue.cpp * * Created on: 20. 10. 2019 * Author: ondra */ #include "strategy_leveraged_base.h" #include <chrono> #include <imtjson/object.h> #include "../shared/logOutput.h" #include <cmath> #include "../imtjson/src/imtjson/string.h" #include "sgn.h" using ondra_shared::logDebug; temp...
#include "abstractops.h" #include "encode.h" #include "memory.h" #include "print.h" #include "smt.h" #include "state.h" #include "utils.h" #include "value.h" #include "vcgen.h" #include <chrono> #include <fstream> #include <functional> #include <map> #include <optional> #include <sstream> #include <variant> #include <...
/* * 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 ...
#include "admodel.h" #include<ctime> /** Feature to try and get closer to the optimal point (minimum) using Newton steps with the inverse Hessian. If successful it gives evidence that the mode has been reached and the nearby curvature is well approximated by a quadratic form. Let x be the current MLE para...
//************************************************************************************ /** Copyright (C) <2013> <<NAME>,<NAME> and <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 Fou...
#include <iostream> #include <stdlib.h> #include <caffe/caffe.hpp> #include <Eigen/Eigen/Dense> // opencv #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/core/eigen.hpp> #include <algorithm> #include <iosfwd> #include <memory> #include <s...
#include <iostream> #include "GeneratorInterface/PhotosInterface/interface/PhotosInterface.h" #include "FWCore/PluginManager/interface/ModuleDef.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "GeneratorInterface/PhotosInterface/interface/PhotosFactory.h" #include "FWCore/ServiceRegistry/interface/Serv...
#include <time.h> #include <math.h> #include <string> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <imgui.h> #include <imgui_impl_glfw.h> #include <imgui_impl_opengl3.h> #include <ImGuizmo.h> #include "core/Scene.h" #include "core/Renderer.h" #include "core/TiledRenderer.h" #include "parser/SceneLoader.h...
#include "MapOSC.hpp" /** libo utills */ #define OSC_HEADER_SIZE 16 // bundle\0 + 8 byte timetag. #define OSC_IDENTIFIER "#bundle\0" #define OSC_IDENTIFIER_SIZE 8 #define OSC_EMPTY_HEADER "#bundle\0\0\0\0\0\0\0\0\0" #define OSC_ID OSC_IDENTIFIER #define OSC_ID_SIZE OSC_IDENTIFIER_SIZE #define OSC_BYTE_SWAP16(x) ...
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include "plugin.h" #include "D3DRenderer.h" #include "D3D1XDepthStencilTexture.h" #include "D3D1XBaseTexture.h" #include "D3D1X2DRenderTarget.h" #include <dire...
// Copyright 2014 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. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <linux/fb.h> #include ...
/* parallel FFT functions - 1998, 1999 <NAME>, MS 1111, Dept 9221, Sandia National Labs (505) 845-7873 <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. This software is d...
/*! @file ThreePlane.cpp Distributed under Open Software License 3.0 http://www.opensource.org/licenses/osl-3.0.php @verbatim $Id$ Class representing a plane in 3-space. Requires definition of three points. */ #include "stdafx.h" #include ".\threepoint.h" #include ".\threeplane.h" #i...
/* WebServer.cpp - Dead simple web-server. Supports only one simultaneous client, knows how to handle GET and POST. Copyright (c) 2014 <NAME>. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published ...