text
stringlengths
5.71k
33.7k
#include "psdaq/cphw/HsRepeater.hh" #include <unistd.h> #include <stdio.h> #include <string.h> #include <limits.h> #include <new> using namespace Pds::Cphw; // From DS125BR401 datasheet table 2: static const uint8_t eq[] = { 0x00, 0x01, 0x02, 0x03, 0x07, 0x15, 0x0B, 0x0F, 0x55, 0x1f, 0x...
/* Properties for R410A. by <NAME> Pseudo-pure fluid thermo props from "Pseudo-pure fluid Equations of State for the Refrigerant Blends R410A, R404A, R507C and R407C" by <NAME>, Int. J. Thermophys. v. 24, n4, 2003 In order to call the exposed functions, rho_, h_, s_, cp_,...... there are three different ways the...
// STL #include <sstream> #include <string> #include <map> #include <vector> // GLM #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/glm.hpp> // Framework #include <Application.h> #include <DebugHelper.h> #include <MeshOpenGL.h> #include <ShaderProgram.h> n...
/* -------------------------------------------------------------------------- * * OpenSim: FunctionBasedBushingForce.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simulation. * ...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "IRInstruction.h" #include "DexCallSite.h" #include "DexClass.h" #include "DexInstruction.h" #include "DexMethodHandle.h"...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #include <cmath> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include "shader.h" #include "camera.h" #include "stb_image.h" unsigned int colorIndex= 1; bool drawLines = false; bool drawSquare = true...
/* * Copyright (c) 2015, <NAME> * Copyright (c) 2015, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistribution...
//===---- InstPatternComparator.cpp - Code pattern instruction matcher ----===// // // SimpLL - Program simplifier for analysis of semantic difference // // // This file is published under Apache 2.0 license. See LICENSE for details. // Author: <NAME>, <EMAIL> //===-------------------------------------------...
#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" #include "car.h" #include "constants.h" using namespace std; // for convenience usin...
//===-- BreakpadRecords.cpp ----------------------------------- -*- 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 // //===---------------------------...
/* https://github.com/peterix/dfhack Copyright (c) 2009-2012 <NAME> (<EMAIL>) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purp...
/* Project Name :Student Database Academic Performance System Developed By :<NAME> School :Delhi Public School, R.K.Puram Last Updated :10-December-2015 */ #include<fstream.h> #include<conio.h> #include<stdio.h> #include<ctype.h> #include<string.h> #include<iomanip.h> #include<math.h> ...
/********** Copyright (c) 2018, Xilinx, Inc. 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, this list of conditions and the fol...
#include <easylogging.h> #include "core/aperture.h" #include <cmath> static image get_spectrum_image(); aperture::aperture(fft_engine& fft) : m_fft(fft), m_flare_shader("aperture.vert", "aperture.frag"), m_ghost_shader("ghost.vert", "ghost.frag"), m_spectrum(get_spectrum_image(), GL_FLOAT) { } // Five...
// Copyright (c) 2005, Google Inc. // 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 conditi...
/******************************************************************************* * Copyright (c) 2021, <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 sourc...
// // 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 <stdio.h> #include <SDL.h> #include <FAudio.h> #include <iostream> #include <iomanip> #include <sstream> #include <array> std::array<uint8_t, 2> fill_char_buffer(const uint16_t x) { std::array<uint8_t, 2> buf; buf[0] = static_cast<uint8_t> (x >> 8); buf[1] = static_cast<uint8_t> (x >> 0); return buf; ...
/* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with cer...
#include "./tokenizer.h" #include <algorithm> #include <list> #include "../constants.h" #include "../utils/utils.h" using namespace dicebot; using namespace diceparser; struct keyword_container { char name[3]; token_index kw; } static constexpr keyword_arr[]{{"d", token_index::keyword_d}, ...
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <limits> #include <cmath> #include <algorithm> #include <unordered_set> void sortrows(std::vector<std::pair<std::vector<float>, int>>& matrix, int col) { std::stable_sort(matrix.begin(), ...
/// /// POSIX implementation of backup upload methods /// // // $Id: upload_posix.cc,v 1.28 2013/10/06 11:48:08 vg Exp $ // #include "objparser/objparser.hh" #if defined(__linux__) bool Upload::touchPathWD(int wd) { // Treat event - we want to locate the directory that was change inotify2wnode_t::iterator di = m_...
#include "simlib/sim/conver.hh" #include "simlib/concat.hh" #include "simlib/concat_tostr.hh" #include "simlib/concurrent/job_processor.hh" #include "simlib/config_file.hh" #include "simlib/debug.hh" #include "simlib/directory.hh" #include "simlib/file_info.hh" #include "simlib/file_path.hh" #include "simlib/inplace_bu...
// Copyright 2019-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "TimeSeriesWindow.h" #include "sg/scene/transfer_function/TransferFunction.h" #include "sg/scene/lights/LightsManager.h" // imgui #include "imgui.h" // rkcommon #include "rkcommon/tasking/parallel_for.h" // json #include "sg/JSOND...
/** * GeoDa TM, Copyright (C) 2011-2015 by <NAME> - all rights reserved * * This file is part of GeoDa. * * GeoDa 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 * ...
/////////////////////////////////////////////////////////////////////////// // // MOOS - Mission Oriented Operating Suite // // A suit of Applications and Libraries for Mobile Robotics Research // Copyright (C) 2001-2005 Massachusetts Institute of Technology and // Oxford University. // // This soft...
/* <NAME>. SeRViCe Lab, Feb. 18, 2017*/ #include "ros/ros.h" #include <ros/spinner.h> #include "std_msgs/String.h" #include <ros/console.h> #include <tf/transform_broadcaster.h> #include <thread> #include <string> #include <fstream> #include <mutex> #include <chrono> #include <vicon_bridge/Markers.h> #include <geom...
#include "FrozenWasteland.hpp" #include "ui/knobs.hpp" #include "ui/ports.hpp" //#include <dsp/digital.hpp> #include <sstream> #include <iomanip> #define N 624 #define M 397 #define MATRIX_A 0x9908b0dfUL /* constant vector a */ #define UPPER_MASK 0x80000000UL /* most significant w-r bits */ #define LOWER_MASK 0x7ff...
#include <../../nrnconf.h> #include "nrnmpi.h" #include "bbsconf.h" #include <stdio.h> #include <stdlib.h> #include <InterViews/resource.h> #include "oc2iv.h" #include "bbs.h" #include "bbslocal.h" #if defined(NRNMPI) #include "bbsdirect.h" #include "bbsrcli.h" #endif #if defined(HAVE_TMS) && !NRNMPI #include <time.h>...
/* * CEnemyLSphere.cpp : らいとにんぐすふぃあ * */ #include "CEnemyLSphere.h" #include "RndCtrl.h" static const int ELS_WAIT_COUNT = 60; static const int ELS_NORMAL_COUNT = 160; static const int ELS_DELETE_COUNT = 20; static const int LSPHERE_DAMAGE = 56789; // 約5% static const int LSPHERE_HITSIZE ...
#include <mmImageXML.h> #include <mmImageWIC.h> #include <algorithm> #include <vector> #include <windows.h> #include <interfaces/mmInterfaceInitializers.h> #include <mmStringUtilities.h> #include <images/mmImagesStructure.h> mmFormats::mmFormatI::Extensions mmFormats::mmImageXML::GetSupportedExensions(v...
/************************************************************************* * Arduino Library for Sparkfun OBD-II UART Adapter * Licensed under the MIT License * <NAME> <<EMAIL>> *************************************************************************/ #include "SparkfunOBD2UART.h" //#define DEBUG Serial uint16_t he...
#include "Bot.h" #include "Common.h" #include "ScreenArea.h" #include "Keyboard.h" #include "WindowFinder.h" #include "ScreenGrabber.h" #include "State.h" #include "Util.h" #include "Memory.h" #include "Client.h" #include "Tokenizer.h" #include "FileStream.h" #include "Random.h" #include "Selector.h" #include "StateMa...
/*************************************************************************** * Copyright (C) 2006 by <NAME> * * <EMAIL> * * * * Permission is hereby gra...
// // Created by zhong on 2021/4/26. // #include "shapes.hh" #include "glad/glad.h" #include "vertex_array.hh" using namespace DRL; void DRL::renderCube() { static unsigned int cubeVAO = 0; static unsigned int cubeVBO = 0; // initialize (if necessary) if (cubeVAO == 0) { float vertices[] = { // bac...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2017 Intel Corporation. All Rights Reserved. #include <librealsense2/rs.hpp> // Include RealSense Cross Platform API #include <librealsense2/rsutil.h> #include "example.hpp" // Include short list of convenience functions for rendering...
#include "phase3_c.hpp" #include <atomic> #include <mutex> #include <string> #include <thread> #include <vector> #include "buffers.hpp" #include "encoding.hpp" #include "entry_sizes.hpp" #include "phase1.hpp" #include "phase2_c.hpp" #include "util.hpp" using namespace std; const uint64_t line_point_bits = K*2; con...
/* Copyright 2009 University of Helsinki 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...
// 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 "extensions/browser/api/web_request/web_request_permissions.h" #include "base/strings/string_piece.h" #include "base/strings/string_util.h" ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <vector> #include <math.h> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <SDL2/SDL_image.h> //#include <SDL2/SDL_ttf.h> //#include "Texture.h" #include "Draw.h" #include "Draw2D.h" #include "Draw3D.h" #include "fastmath.h" #include "V...
#include "hd-key.hpp" #include "wally.hpp" #include "wally-utils.hpp" #include <bc-ur/bc-ur.hpp> #include <iostream> using namespace std; using namespace ur; using namespace ur::CborLite; HDKey::HDKey( bool is_master, const KeyType& key_type, const ByteVector& key_data, optional<ByteVector> chain_code...
#include "llvm/Pass.h" #include "llvm/IR/Function.h" #include "llvm/Support/raw_ostream.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/InstrTypes.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/IR/IRBuilder.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/Support/C...
/* * 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 applic...
/* sender.cpp Copyright (c) 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 of source code must retain the above copyright notice, this...
#include "pch.h" #include "Noise.h" //----- private function declarations ----- namespace VoidAndClusterFunctions { std::array<int, 256> computeHistogramm(const std::vector<uint8_t>& array); std::vector<bool> binarizeArray(const std::vector<uint8_t>& array, const float positivePercentage); glm::ivec2 inde...
#include "puzzle_ocr.h" #include <vector> #include <algorithm> #include <queue> #include <thread> #include <mutex> #include "point.h" #include "quadrilateral.h" #include "geom.h" void PuzzleOCR::Load(const char *file) { image_ = cv::imread(file, cv::IMREAD_GRAYSCALE); cv::adaptiveThreshold(image_, i...
/* * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * ri...
/* * * Copyright (c) 2003 Endace Technology Ltd, Hamilton, New Zealand. * All rights reserved. * * This software and documentation has been developed by Endace Technology Ltd. * along with the DAG PCI network capture cards. For further information please * visit http://www.endace.com/. * * Redistribution and use in sou...
// Copyright (c) by respective owners including Yahoo!, Microsoft, and // individual contributors. All rights reserved. Released under a BSD (revised) // license as described in the file LICENSE. #include <cmath> #include <string> #include <cfloat> #include "correctedMath.h" #include "gd.h" #include "shared_data.h" #in...
/* ************************************************************************ * File: act.comm.c Part of CircleMUD * * Usage: Player-level communication commands * * * * All rights re...
// Continuation of <NAME>'s code to control the stim board provided by CWRU // Last Edit: 08.04.17 // <NAME> #include <stdio.h> // standard input / output functions #include <string.h> // string function definitions #include <cstring> #include <unistd.h> // UNIX standard function definitions #include <fcnt...
#include <stdio.h> #include <string> #include <fstream> #include <opencv2/opencv.hpp> #include <ros/ros.h> #include <sensor_msgs/Image.h> #include <sensor_msgs/CameraInfo.h> #include <sensor_msgs/distortion_models.h> #include <image_transport/image_transport.h> #include <camera_info_manager/camera_info_manager.h> #incl...
/** * GeoDa TM, Copyright (C) 2011-2015 by <NAME> - all rights reserved * * This file is part of GeoDa. * * GeoDa 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 * (...
/* * Copyright (c) 2020-2021 Arm Limited. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * ri...
#include <LWCore/LWByteBuffer.h> #include <LWPlatform/LWFileStream.h> #include <LWVideo/LWVideoBuffer.h> #include "Mesh.h" #include "Renderer.h" #include "Material.h" #include "Animation.h" #include <LWEGLTFParser.h> #include <LWESGeometry3D.h> #include <cassert> #include "Logger.h" #include "Camera.h" //Primitive //...
#include "platforms/linux/gl_window.h" #include <thread> #include <chrono> #include <compare> #include <stdexcept> #include <GL/gl.h> #include <GL/glx.h> #include <X11/X.h> #include <X11/Xlib.h> #include <X11/Xatom.h> #include <X11/Xutil.h> #include <X11/XKBlib.h> #include <X11/Xcursor/Xcursor.h> #ifdef Bool # u...
// // Created by zhanglei on 2020/11/10. // #include <libgen.h> #include "NodeManager.h" #include "event/EventLoop.h" #include "app/PHPError.h" /** * 构造函数 * 初始化命令行管理工具 * 初始化配置文件管理工具 * 初始化事件循环 * 初始化信号管理器 */ Node::NodeManager::NodeManager() { command = std::make_shared<OS::UnixCommand>(); iniConfig = std...
// license:BSD-3-Clause // copyright-holders:<NAME>, Robbbert //*************************************************************************** #include "emu.h" #include "includes/trs80.h" #define IRQ_M1_RTC 0x80 /* RTC on Model I */ #define IRQ_M1_FDC 0x40 /* FDC on Model I */ TIMER_CALLBACK_MEMBER(tr...
/* * Copyright (c) 2019 <NAME> * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/numpy.h> #include <vector> #include <map> #include <deque> #include "../py_f...
// Author: <NAME> <<EMAIL>> // Date: October 6, 2010 //#include <stdlib.h> #include <cstdlib> #include <cmath> #include <iostream> #include <fstream> #include <ctime> #include <string> #include <algorithm> #include "ccCommon.hpp" #include "ccData.hpp" #include "ccKdt.hpp" #define SWAP(a,b,t) (t)=(a); (a)=(b); (b)=(...
/* * This file is part of PowerDNS or dnsdist. * Copyright -- PowerDNS.COM B.V. and its contributors * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * In addition, for t...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2010 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 * * h...
/* Copyright 2012 - 2018, 2021 <NAME>. 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, copy...
#include "player.h" #include "helpers.h" #include <cstring> Player::Player(){ } Player::Player(FILE *romR, FILE* romW, unsigned int &off, bool byRef){ // New Player playerOffset = off; romRead = romR; romWrite = romW; off += PLAYER_SIZE; nameSize = 24; SetName("<NAME>"); SetAttribute(PLAYER_NUMBER, 32); ...
#include <cassert> #include <ap_int.h> #include <vector> #include <ap_fixed.h> #define OPTIMIZE_DSP typedef ap_uint<32> anchor_idx_dt; typedef ap_uint<7> tag_dt; typedef ap_uint<16> loc_dt; typedef ap_int<17> loc_dist_dt; typedef ap_int<17> score_dt; typedef ap_int<32> parent_dt; typedef ap_uint<16> width_dt; const i...
#include "main.h" #include "stdafx.h" void deleteImageHandle(std::vector<int>& vHandle) { for (size_t i = 0; i < vHandle.size(); i++) { DeleteGraph(vHandle[i]); } } int kingyomain(int font, int bgm, int effect, int calling_check) { /* ゲームの基本データ */ int windowFlag = 0; // 現在のウィンドウを管理するフラグ int FrameP...
#include <Engine/MeshEdit/ARAP.h> #include <Engine/MeshEdit/CParameterize.h> #include <Engine/Primitive/TriMesh.h> #include <assert.h> #include <Eigen/Sparse> #include <Engine/MeshEdit/Paramaterize.h> using namespace Ubpa; using namespace std; using namespace Eigen; Ubpa::ARAP::ARAP(Ptr<TriMesh> triMesh) : heMesh(...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * 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 ...
#if defined(WIN32) || defined(WINCE) # include <windows.h> #endif #include <vector> #include "TalkingHeadConcatenate.h" #include "FapMandarin.h" #include "FapCantonese.h" #include "FapEnglish.h" #include "Canvas.h" namespace CSTHead { class VectorInt : public std::vector<int> {}; class VectorHandle : public...
/* Copyright 2017-2020 Siemens AG 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, publish, distribute, sub...
/* Copyright (C) 2016 Krowten11 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 3 of the License, or (at your option) any later version. This program is distributed in the hop...
/* Copyright (c) 2012, <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 notice, this list of conditions and the following ...
#include <cstdio> #include <unistd.h> #include <signal.h> #include <iterator> #include <memory> #include <string> #include <sstream> #include <unordered_set> #include <utility> #include <boost/filesystem.hpp> #include <boost/program_options.hpp> #include "glog/logging.h" #include "common.h" #include "protocol.h" #i...
/************************************************************** * * 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 y...
#include "DiffusionCoefficients.h" DiffusionCoefficient::DiffusionCoefficient() { randomSeed = -69; boxSize = 256; spacing = 0.05 * crpropa::pc; brms = 1.0 * crpropa::muG; b0 = 0.0 * crpropa::muG; nParticles = 1; chargeNumber = 1; atomicNumber = 1; energy = 1e15 * crpropa::eV; trajectoryLengthMax = 10 * crpr...
/* * \author: <NAME> */ #include <../../../apps/bnets/csv_reader.h> #include <../../../apps/bnets/fgraph_utils.h> #include <cmath> #include <ctime> #include <iostream> #include <fstream> // If a test runs ok it returns 0, it returns anything else otherwise // Test functions start with test // Auxiliary test func...
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
// // Created by daniel on 06/07/2021. // #include <cfloat> #include "Random.h" #include "StlStream.h" #include "PotentialEnergyPivot.h" #include "SimplexMCMC.h" #include "agents/PredPreyAgent.h" PotentialEnergyPivot::PotentialEnergyPivot(SimplexMCMC &simplex) : ProposalPivot(simplex,0,0), //kappaCol(std::max(std::l...
#ifdef _MSC_VER #include <Windows.h> #endif #include <GL/glew.h> #ifdef _MSC_VER #include <gl/gl.h> #endif #include "oxide_imgui_draw.hh" // OpenGL Data static char g_GlslVersion[32] = ""; static GLuint g_FontTexture = 0; static int g_ShaderHandle = 0, g_VertHandle = 0, g_FragHandle = 0; ...
/***************************************************************************/ /* */ /* File: Game.cpp */ /* Date: 06-02-07 */ /* ...
#include "gucci.h" ICM20948 icm(Wire2, (uint8_t)0x68); int dist[6]; volatile bool line_hit; /* distance sensors */ VL53L0X tof_left; VL53L0X tof_left_45; VL53L0X tof_left_center; VL53L0X tof_right_center; VL53L0X tof_right_45; VL53L0X tof_right; /* acceleration timing variables */ int curr_time; int prev_time_acce...
// Copyright (c) 2017 <NAME> // Copyright (c) 2019-2020 Blockstream // Unlike the rest of Bitcoin Core, this file is // distributed under the Affero General Public License (AGPL v3) #include <rpc/protocol.h> #include <rpc/server.h> #include <rpc/util.h> #include <hash.h> #include <netbase.h> #include <udpapi.h> #incl...
#include"system.h" #include"const.h" #include"misc.h" Nbody_System::Nbody_System(){ cerr<<"Nbosy_System constructor"<<endl; prt_loc = new Particle[NPRT_LOC_MAX]; BH_glb = new Particle[NBH_GLB_MAX]; prt_dead_glb = new Particle[NPRT_LOC_MAX / 1000]; Tsys = Tend = pos_max = mass_min = 0....
/* * CoreAnalyzer class implementation * Author: <NAME> * * Source Outline: * - Local consts and funcs * - Constructor * - Public funcs * - Private funcs */ #include "CoreAnalyzer.hpp" #include "RossGlobals.h" #include "SinkRecord.hpp" #include "Sink.hpp" #include "Mesh.h" #include "Dat...
#include <asctec_control.h> AscTec_Controller::AscTec_Controller(string qframe, string wframe, struct K_DATA * kvals) { q_frame = qframe; w_frame = wframe; battery = BATTERY_FULL; setParams(kvals); initAsctec(); } AscTec_Controller::~AscTec_Controller() {} struct PUB_DATA * AscTec_Controller::runAsctec(struct...
// This program performs multiclass classification based on the // one-vs-all scheme. In each binary classification problem, the // classifer is a kernel ridge regression. The kernel ridge // regresssion is approximated by using the Random Binning feature // method. This program is suitable for the case of a large numb...
#include<Particles.h> int Particles::FindUnusedParticle() { for (int i = LastUsedParticle; i < MaxParticles; i++) { if (ParticlesContainer[i].life < 0) { LastUsedParticle = i; return i; } } for (int i = 0; i < LastUsedParticle; i++) { if (ParticlesContainer[i].life < 0) { LastUsedParticle = i; ...
#include "Quad.h" #include <igl/boundary_loop.h> #include <igl/is_border_vertex.h> #include <igl/vertex_triangle_adjacency.h> #include <set> using namespace std; void quad_topology(const Eigen::MatrixXd& V, const Eigen::MatrixXi& Fsqr, QuadTopology& quadTop) { Eigen::MatrixXi F = Fsqr_to_F(Fs...
// Copyright (c) 2007-2009 Google Inc. // Copyright (c) 2006-2007 Jaiku Ltd. // Copyright (c) 2002-2006 <NAME> and <NAME> // // This software is licensed at your choice under either 1 or 2 below. // // 1. MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software ...
/************************************************************************ * Copyright 2013 <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...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * -----------...
/* * Copyright (c) 2001-2005 The Regents of The University of Michigan * 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 * not...
#include "recfilter.h" #include "recfilter_internals.h" #include "modifiers.h" #include "iir_coeff.h" using namespace Halide; using namespace Halide::Internal; using std::string; using std::cerr; using std::endl; using std::vector; using std::map; // ------------------------------------------------------------------...
/* * The MIT License (MIT) * * Copyright (c) 2016 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to ...
/* dimeserver.cpp Example streaming DIME server. Supports three methods: putData stores multiple data sets on the server and returns named keys to each data set. The keys are unique and provide access to the data. Once data is stored, it cannot be removed. getData retrieves data sets given a set of named keys...
#include "TrackingViewer.hpp" // ------------------------------------------------- // 2D LEFT VIEW // ------------------------------------------------- template<typename T> inline cv::Point2f cvt(T pt, sl::float2 scale) { return cv::Point2f(pt.x * scale.x, pt.y * scale.y); } void render_2D(cv::Mat &lef...
// BandedWG.C -- hacked version (by BGG) for RTcmix from Perry/Gary's STK // original head/comment: /***************************************************/ /*! \class BandedWG \brief Banded waveguide modeling class. This class uses banded waveguide techniques to model a variety of sounds, including bowed ...
// // "$Id$" // // Forms-compatible chart widget for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2010 by <NAME> and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this // file is missing or damag...
/************* TabVct C++ Program Source Code File (.CPP) **************/ /* PROGRAM NAME: TABVCT */ /* ------------- */ /* Version 3.9 */ /* ...
/* * Software License Agreement (BSD License) * * Copyright (c) 2008, <NAME>, Inc. * 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...