text
stringlengths
5.71k
33.7k
// ImGui - binary_to_compressed_c.cpp // Helper tool to turn a file into a C array. // The data is first compressed with stb_compress() to reduce source code size. // Then encoded in Base85 to fit in a string so we can fit roughly 4 bytes of compressed data into 5 bytes of source code (suggested by @mmalex) // (If we u...
/* Copyright 2013-2021 MultiMC Contributors * * 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...
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* */ /* Aircraft Plume Chemistry, Emission and Microphysics Model */ /* (APCEMM) */ /* ...
// Copyright (c) 2012 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 "build/build_config.h" #include "content/browser/download/save_file_manager.h" #include "base/bind.h" #include "base/file_util.h" #include ...
#include "ccsdtq.hpp" using namespace aquarius::op; using namespace aquarius::input; using namespace aquarius::tensor; using namespace aquarius::task; using namespace aquarius::time; namespace aquarius { namespace cc { template <typename U> CCSDTQ<U>::CCSDTQ(const string& name, Config& config) : Iterative<U>(name, c...
// --------------------------------------------------------- // Author: <NAME>, Princeton University, 2016 // --------------------------------------------------------- #include <vector> #include <opencv2/opencv.hpp> // Compute surface points from TSDF voxel grid and save points to point cloud file void SaveVoxelGrid2...
// 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 restriction, including without limitation the rights // to use, copy, modify, merge, pub...
#include "QuestManager.h" #include "Log.h" #include "App.h" #include "Module.h" #include "External/PugiXml/src/pugixml.hpp" #include "Player.h" #include "List.h" #include "Input.h" #include "Render.h" #include "Font.h" #include "Textures.h" #include "SDL/include/SDL_scancode.h" #include "EntityManager.h" #include "Enti...
/* Copyright (c) 2017 <NAME> */ #include "kspwlo.hpp" typedef priority_queue<pair<int,Edge>> PathEdges; struct PathComparator { inline bool operator() (const Path &p1, const Path &p2) { return (p1.length < p2.length); } } pComp2; int compute_priority(RoadNetwork *rN, Edge &e, vector<int> &bounds...
/* * CacheGraph.cpp * * A container for the cache aware representation of a graph. * * Created on: Oct 28, 2018 * Author: ori */ #include "../includes/CacheGraph.h" void CacheGraph::Clear() { m_NumberOfNodes = 0; m_NumberOfEdges = 0; delete m_Graph; m_Graph = NULL; delete m_Offsets;...
/* * Copyright (c) 2009-2011, NVIDIA Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice,...
// Copyright (c) 2012 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 code glues the RLZ library DLL with Chrome. It allows Chrome to work // with or without the DLL being present. If the DLL is not present the...
/*========================================================================= Program: Visualization Toolkit Module: MantaBenchmark.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHO...
/* * Implementation file for the fine grained collision detector. * * Part of the Cyclone physics system. * * Copyright (c) Icosagon 2003. All Rights Reserved. * * This software is distributed under licence. Use of this software * implies agreement with all terms and conditions of the accompanying * software l...
// Datei : DX8Graphics.cpp // -------------------------------------------------------------------------------------- // // Direct Graphics Klasse // zum initialisieren von DirectX8 // beinhaltet zudem verschiedene Grafik-Funktionen zum Speichern von Screenshots usw // // (c) 2002 <NAME> // // --------------...
/* * Copyright (C) 2008-2010 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software ...
#include "stdhdr.h" #include "digi.h" #include "object.h" #include "airframe.h" #include "aircrft.h" #include "campwp.h" #include "MsgInc\WingmanMsg.h" #include "wingorder.h" #include "simdrive.h" #include "ui\include\tac_class.h" #include "ui\include\te_defs.h" /* S.G. */ #include "unit.h" /* S.G. */ #include "campbas...
#include <iostream> #include <g2o/core/g2o_core_api.h> #include <g2o/core/base_vertex.h> #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <Eigen/Core> #include <g2o/core/base_vertex.h>...
/* Copyright 2012 K2Informatics GmbH, <NAME>, Switzerland * * 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 ...
//===- DxilRemoveUnstructuredLoopExits.cpp - Make unrolled loops structured ---===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------------------------...
/* * Barcode * Copyright <NAME> and <NAME> * * Distributed under the terms of the MIT License. * The full license is in the file LICENSE, distributed with this software. */ #include <fftw3.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_integration.h> #include <fstream> //NOLINT ...
#include <Arduino.h> #include <string.h> #include "dalsik.h" #include "dalsik_eeprom.h" #include "keymap.h" #include "array_utils.h" #include "dalsik_led.h" KeyMap::KeyMap() { this->layer_index = 0; this->toggled_layer_index = 0; this->keyboard_side = EEPROM::get_keyboard_side(); this->clear(); } void...
/* -*- tab-iWidth: 4; -*- */ /* vi: set sw=2 ts=4 expandtab: */ /* * Copyright 2018-2020 <NAME>. * SPDX-License-Identifier: Apache-2.0 */ /** * @file DrawTexture.cpp * @brief Tests texture loading by using glDrawTexture to draw the texture. * * @author <NAME> */ #if defined(_WIN32) #if _MSC_VER < 190...
static const char* interrupt_str[5] = { "VBLANK", "LCDC", "TIMER", "SERIAL_TRANSFER", "P1" }; void device_toggle_mute() { device.muted = !device.muted; } void device_set_volume_level(u8 level) { SDL_assert(level <= MAX_VOLUME_LEVEL); if (level <= MAX_VOLUME_LEVEL) { device.volume_level = level; device.vol...
// __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...
/*! \page Load Load * \code{.sh} # load -i filename [-t # of CPU threads] [-l filename] [-p &alpha;] [-r # of random samples * \endcode -i filename: Enter the path to the file containing gene family data. The data file format must be tab-delimited with UNIX line endings. Family description may contain spaces (but not...
/* * \class PATTauDiscriminationByMVAIsolationRun2 * * MVA based discriminator against jet -> tau fakes * * Adopted from RecoTauTag/RecoTau/plugins/PFRecoTauDiscriminationByMVAIsolationRun2.cc * to enable computation of MVA isolation on MiniAOD * * \author <NAME>, <NAME> */ // todo 1: remove leadingTrackC...
/* Copyright (c) 2020-2021 Advanced Micro Devices, Inc. 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 to use, co...
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2001, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here...
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2020 Metrological * * 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 ...
// // SkyNet Project // Copyright (C) 2018 by Contributors <https://github.com/Tyill/skynet> // // This code is licensed under the MIT License. // // 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 So...
// Copyright (c) <NAME> // Licensed under the MIT License #include "Orbiter.h" #include "Vesselbase.h" #include "Psys.h" extern PlanetarySystem *g_psys; extern TimeData td; extern char DBG_MSG[256]; // ======================================================================= void SurfParam::Set (const StateVectors &...
#include <vector> #include <iostream> #include <fstream> #include <algorithm> #include <numeric> #include <cstdlib> #include <limits> #include "distconv_config.hpp" #include "distconv_benchmark_common.hpp" #include "benchmark_common.hpp" #include "distconv/tensor/tensor.hpp" #include "distconv/tensor/tensor_mpi.hpp" ...
// Copyright (c) Facebook, Inc. and its affiliates. // // 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 applicabl...
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/numpy.h> #include <vector> #include "CRawImage.h" #include "CWhyconWrapper.h" namespace py = pybind11; typedef unsigned char uint8_t; class CWhyconMarker { public: whycon::SSegment segment_in_image; whycon::STrackedObjec...
/* * This implementation of a lane detector is based on the Python code * in the following tutorial: * https://www.analyticsvidhya.com/blog/2020/05/tutorial-real-time-lane-detection-opencv/ * * It also pulls some file-processing code from the HOG GPU sample. */ #include <iostream> #include <fstream> #include ...
/* * Copyright (c) 2015 - 2022, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of condition...
// THIS IS DECOMPILED PROPRIETARY CODE - USE AT YOUR OWN RISK. // // The original code belongs to Daisuke "Pixel" Amaya. // // Modifications and custom code are under the MIT licence. // See LICENCE.txt for details. #include "GenericLoad.h" #include <stdio.h> #include <stdlib.h> #include <string> #include "WindowsWr...
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #pragma once #include <vector> #include "absl/types/span.h" #include "boost/multiprecision/cpp_int.hpp" #include "iassert.hpp" using Bits_t = uint32_t; // bits type (future use) constexpr int Bits_bits = 17; const...
// // SixenseManager.cpp // interface/src/devices // // Created by <NAME> on 11/15/13. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include <vector> #include <PerfStat.h>...
#include "../include/parser.h" void Parser::print_msg( const Parser::ParserResult & result, std::string str ) { std::string error_indicator( str.size()+1, ' '); // Have we got a parsing error? error_indicator[result.at_col] = '^'; switch ( result.type ) { case Parser::ParserResult::UNEXPECT...
/* * Copyright (c) 2022, stelar7 <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/ByteBuffer.h> #include <LibCrypto/Curves/SECP256r1.h> #include <LibCrypto/Curves/X25519.h> #include <LibCrypto/Curves/X448.h> #include <LibTest/TestCase.h> TEST_CASE(test_x25519) { // https://datatracker.ietf....
/* * Copyright (C) 2017 Glimp IP 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, * modify, merge, pub...
/* Copyright (c) 2008-2014 <>< <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 of source code must retain the above copyright n...
#include "ofApp.h" ofApp::ofApp(ofxXmlSettings& settings) { this->settings = settings; camWidth = settings.getValue("f1uxu5:camWidth", 640); camHeight = settings.getValue("f1uxu5:camHeight", 480); } //-------------------------------------------------------------- void ofApp::setup() { ofSetWindowTitle("f1uxu5")...
// 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 structural SVM solver from the dlib C++ Library. Therefore, this example teaches you the central ideas needed to setup a structural SVM model for your machine learn...
/*! * ***************************************************************************** * \file depthMapCreationHSBS_main.cpp * \author moennen * \brief * \date 2018-02-19 * *****************************************************************************/ #include "utils/imgFileLst.h" #include "utils/cv_utils...
/////////////////////////////////////////////////////////////////////////////// // // CerebusClient.cpp - Implementation of the CerebusClient class // // The main user-level functions are SetupConnection, ReadPacket and // TearDownConnection. ReadPacket always returns the next packet from // the Cerebus system. If a pa...
#include <algorithm> #include <tuple> #include "ArenaTypes.h" #include "components/debug/Debug.h" #include "components/utilities/Bytes.h" void ArenaTypes::Light::init(const uint8_t *data) { this->x = Bytes::getLE16(data); this->y = Bytes::getLE16(data + 2); this->radius = Bytes::getLE16(data + 4); } void ArenaTy...
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 <NAME> http://continuousphysics.com/Bullet/ 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 ...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during init...
/** @file cons_grp_cmd.cpp @date 2019/06/03 @author FINL Chain Team @version @brief */ #include "global.h" void cons_cmd_join_ind (int32_t peer_sockfd, struct sockaddr_in *p_peer_sock_addr, uint64_t peer_p2p_addr, P2P_NODE_T *p_node) { P2P_CNTX_T *p_p2p_cntx = p2p_get_cntx(); ...
/* * OpenCLResource.cpp * * Copyright 2017 <NAME> <<EMAIL>> * */ #include "OpenCLResource.hpp" // #define __CL_ENABLE_EXCEPTIONS // #if defined(__APPLE__) || defined(__MACOSX) // #include "OpenCL/cl.hpp" // #else // #include <CL/cl.hpp> // #endif //if compiling from matlab MEX, redefine printf to mexP...
#include "simple_box.h" #include <cglm/cglm.h> #include <errno.h> #include <float.h> #include <stdio.h> #include <sys/mman.h> #include <unistd.h> #include "z_window.h" const char *vertex_shader = "#version 410\n" "uniform mat4 mvp;\n" "layout(location = 0) in vec4 position;\n" "layout(location = 1) i...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Genera...
/* * Copyright (c) 2016 Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, ...
// // File: PID.cpp // // Code generated for Simulink model 'PID'. // // Model version : 1.63 // Simulink Coder version : 9.0 (R2018b) 24-May-2018 // C/C++ source code generated on : Mon Aug 26 14:11:53 2019 // // Target selection: ert.tlc // Embedded hardware selection: ARM Compatible->ARM Cor...
/* * 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 ...
/** * @file weather_code_2.cpp * */ #include "weather_code_2.h" #include "forecast_time.h" #include "level.h" #include "logger.h" #include "metutil.h" using namespace std; using namespace himan::plugin; weather_code_2::weather_code_2() { itsLogger = logger("weather_code_2"); } void weather_code_2::Process(std::...
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #define _SCL_SECURE_NO_WARNINGS #include "IntermediateAssets.h" #include "IArtifact.h" #include "IFileSystem.h" #include "DepVal.h" #include ...
#include "dctcp.h" #include "msg_proto.hpp" #include "logger.h" #include "profile.h" //typedef std::shared_ptr<msg_buffer_t> msg_buffer_ptr_t; //client struct dctcp_connecting_t { int reconnect; int max_reconnect; sockaddr_in connect_addr; dctcp_connecting_t() { bzero(this, sizeof(*this)); } }; struct d...
#include "stdafx.h" #pragma hdrstop #include "ImageThumbnail.h" #include "ImageManager.h" #include "xrImage_Resampler.h" //---------------------------------------------------- /* bool DrawThumbnail(HDC hdc, U32Vec& data, int offs_x, int offs_y, int dest_w, int dest_h, int src_w, int src_h) { BITMAPINFO...
/* * The MIT License * * Copyright (c) 1997-2020 The University of Utah * * 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 * right...
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofBackground(34); ofSetFrameRate(60); // ofSetVerticalSync(true); //-------------------------------------------------------------- // Currenlty not working with this version of OF, to be ...
#include <iostream> #include <string> #include <windows.h> #include <xinput.h> #include <winuser.h> #define SHORT_RANGE 32768 #define TRIGGER_RANGE 255 /*----- Values can be changed based on preferences -----*/ double analog_stick_deadzone = 0.15f; double mouse_move_sensitivity = 15.0f; double mouse_scroll_sensitivit...
// Copyright (c) 2018 Ant Financial, Inc. All Rights Reserved // Created by zhenggu.xwt on 18/4/23. // #include "common/io_buffer.h" #include <string> #include <gtest/gtest.h> #include <fstream> #include <fcntl.h> #include <thread> #include <random> #include <google/protobuf/message.h> #include <common/common_defines....
#include "raylib-cpp.hpp" #include "raymath.h" #include <string> #define RLIGHTS_IMPLEMENTATION #include "rlights.h" #define dDOUBLE #include <ode/ode.h> #include "raylibODE.h" #include "Util.h" #define PERLIN_SIZE 20.0f #define PERLIN_DISPLAY_SIZE 100.0f #define PERLIN_SCALE 0.8f // these are used by the collisio...
/** * Line follower testing to check if ev3rt is adequate. * * Author: <NAME> */ #include "ev3api.h" #include "libcpp-test.h" #include "app.h" #include <stdio.h> #include <stdlib.h> #define ClearTimer(...) #define ClearTimerMS(...) SYSTIM TimerMS(int unused) { SYSTIM tim; get_tim(&tim); return tim; } ...
/* * Copyright 2020~2021 SYSON, <NAME>. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * ClientBinaryS3ORAMO.cpp * * Created on: Mar 15, 2017 * Author: ceyhunozkaptan, thanghoang */ #include "ClientBinaryS3ORAMO.hpp" #include "Utils.hpp" #include "S3ORAM.hpp" ClientBinaryS3ORAMO::ClientBinaryS3ORAMO() : ClientS3ORAM() { } ClientBinaryS3ORAMO::~ClientBinaryS3ORAMO() { } /** * Func...
/* * (C) 2006-2020 see Authors.txt * * This file is part of MPC-BE. * * MPC-BE is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. ...
/* * File: catstore.cpp * Copyright (C) 2009 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #include "common/sm_vmm_data.h" #include "tr/cat/catstore.h" #include "tr/vmm/vmm.h" #include "tr/cat/catalog.h" #include "tr/tr_globals.h" #define SBA_SIZE ((int) CS_CELL_BITMAP_SIZE)...
/****************************************************************************** ** Copyright (C) 2007 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 1.0 ** ** Author: <NAME> - <NAME> ** ** Date: 12/10/07 ** ** File: ...
// 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 top ...
#include "StdAfx.h" #include "ToolBox.h" /* * * < ERROR EXPLANATION LIST > * * */ /* ERROR_TB001 - Out of Array Size. ( When doing StringToChars( ) and target array's space is not enough. ) ERROR_TB002 - Out of Array Size. ( When doing WstringToWchar( ) and target array's space is not enough. ) ERROR_TB003 - Di...
#include <iostream> #include <vector> #include <cassert> #include <cstring> #include <limits> #include <mpi.h> //#include <Eigen/Eigenvalues> enum KernelType {CubicSpline = 0, WendlandC2 = 1, WendlandC4 = 2}; #include "particle_simulator.hpp" #include "hdr_time.hpp" #include "hdr_run.hpp" #ifdef USE_INTRINSICS #inclu...
// undistort.cpp // Copyright <NAME> 2017 #include <cmath> #include <iostream> #include <array> #include <boost/program_options.hpp> #include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> #include <opencv2/opencv.hpp> namespace po = boost::program_options; namespace fs = boost::filesystem; void rotate...
/* * RunTrianglesComplex.cpp * This creates many more triangles than the simple test. It has a pool of * n vertices and creates edges within that pool. * * Created on: April 16, 2018 * Author: elgood */ //#define DEBUG #define TIMING #define DETAIL_TIMING #define METRICS #define DROP_QUERIES //#define ...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "SchwarzChristoffelRampCS.H" #include "RampMappedIBC.H" #include "Ra...
// // i2c.c // HWSensors // // Created by Kozlek on 31.07.12. // // /* NVClock 0.8 - Linux overclocker for NVIDIA cards * * site: http://nvclock.sourceforge.net * * Copyright(C) 2001-2006 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General P...
// // cvx_pose_estimation.cpp // LoopClosure // // Created by jimmy on 2016-03-31. // Copyright © 2016 jimmy. All rights reserved. // #include "cvx_pose_estimation.hpp" #include <iostream> #include <Eigen/Geometry> #include "cvx_calib3d.hpp" using std::cout; using std::endl; using cv::Mat; struct HypotheseLoss ...
/****************************************************************************\ Copyright (c) 2015, <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: 1. Redistributions of source code must retain th...
#include <assert.h> #include <atomic> #include <poll.h> #include <signal.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <thread> #include <unistd.h> #include <vector> #include <arpa/inet.h> #include <libssh/libssh.h> #include <libssh/server.h> #include <netinet/in.h> #include...
// // CMD5Checksum.cpp // jelly3.5 // // // #include "MD5/CMD5Checksum.h" #include "MD5/MD5ChecksumDefines.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif /***************************************************************************************** ****************...
#include <fstream> #include <chrono> #include <thread> #include "argparse/argparse.hpp" #include "config.h" #include "gmark.h" #include "configparser.h" #include "workload.h" #include "workload2.h" #include "report.h" #include "monStaGen/incrementalDeterministicGraphGenerator.h" #include "monStaGen/processingEdgeType...
/* rgbd-tracker 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 by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version...
/* ** SelfPortrait API ** See Copyright Notice in reflection.h */ #include "llvm/Support/Host.h" #include "clang/Driver/Compilation.h" #include "clang/Driver/Driver.h" #include "clang/Driver/Tool.h" #include "clang/Frontend/CompilerInvocation.h" #include "clang/Basic/DiagnosticOptions.h" #include "clang/Frontend/Front...
#include "fs2gt.h" //#include "../../../../public/lib/etana/mrf2yh2mrf.h" //---------------------------------------------------------------- void FS_GT::Start(const char *pFsTag, const char *pGtTag1, const char *pGtTag2, const char *pGtTag3) { assert(pFsTag != NULL && pGtTag1 != NULL); Ini...
/*! * Copyright (c) 2016 by Contributors * <NAME> <EMAIL> * The code implements C++ version charRNN for mxnet\example\rnn\char-rnn.ipynb with MXNet.cpp API. * The generated params file is compatiable with http://data.dmlc.ml/mxnet/data/char_lstm.zip. * train() and predict() has been tested (compiler: VS2015). */ ...
#pragma once #include <queue> #include "util.hpp" #include "Terminal.hpp" #include "Colors.hpp" #include "Dice.hpp" #include "EventSystem.hpp" typedef int Position; class Player; class Region; class Board; class Knight; class Game; class GameCommand; class GamePhysics; /// each game player has an identity aro...
#include <stdio.h> #include "pico/stdlib.h" #include "hardware/gpio.h" #include "hardware/adc.h" #include "hardware/i2c.h" #include "pico/binary_info.h" #include "pico_display.hpp" #include "MLX90640_API.h" #include <sstream> #include <iomanip> #include <cmath> #include <cfloat> using namespace pimoroni; #define CA...
#include <iostream> #include <cassert> #include <vector> #include <random> #include <string> #include <memory> #include <limits.h> using namespace std; enum COLOR { RED, BLACK }; class Node { public: COLOR color; int val; shared_ptr<Node> left; shared_ptr<Node> right; shared_ptr<Node> ...
/* * CompareModels.cpp * * Compare two models in terms of points and cameras distances, after * performing an alignment between the two camera sets (with a * similarity transform) * * Author: <NAME> * Copyright (c) 2011 Cornell University * */ #include <math.h> #include <stdlib.h> #include <stdio.h> #includ...
/* * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
// SimpleGraphic Engine // (c) <NAME>, 2014 // // Module: Render Texture // #include <mutex> #include <vector> #include <atomic> #include "r_local.h" // =================== // Predefined textures // =================== static const byte t_whiteImage[64] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,...
#include "AliLumiTools.h" #include "AliLumiRef.h" #include "AliCDBManager.h" #include "AliCDBPath.h" #include "AliCDBEntry.h" #include "AliTriggerConfiguration.h" #include "AliTriggerClass.h" #include "AliTriggerBCMask.h" #include "AliTriggerRunScalers.h" #include "AliTriggerScalersRecord.h" #include "AliTriggerScalers...
/*========================================================================= Program: Visualization Toolkit Module: TestGPURayCastVolumeUpdate.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distr...
#include "SparseCMPC.h" #include "Utilities/orientation_tools.h" #include <Utilities/Timer.h> #include "JCQP/QpProblem.h" // X0 != x[0] // X0 uses u[0] and dt[0] to get to x[0] // so same number of steps in u, dt, x // 0 - roll // 1 - pitch // 2 - yaw // 3 - x_pos // 4 - y_pos // 5 - z_pos // 6 - roll_rate // 7 - pi...
#include <iostream> #include <sstream> #include <string> #include <vector> #include <stack> #include <cmath> #include <fstream> using namespace std; enum Associativity { LEFT, RIGHT, NONE }; const int MAX_ARGS = 2; typedef double (*EvalFunc)(double*); struct Operator { string value; int numArgs;...