text
stringlengths
3.08k
22k
// Copyright 2018-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) #include <boost/core/lightweight_test.hpp> #include <boost/histogram/detail/large_int.hpp> #include <cstdint> #include <iosfwd> #i...
#include "NDEF.h" NDEF::NDEF(){} FOUND_MESSAGE NDEF::decode_message(uint8_t * msg) { int offset = 2; FOUND_MESSAGE m; m.error = false; bool mb = (*(msg + offset) & 0x80) == 0x80; /* Message Begin */ bool me = (*(msg + offset) & 0x40) == 0x40; /* Message End */ bool cf = (*(msg +...
// // Tests the iLQR Taylor expansions of the dynamics and the cost function. // #include <ilqr/ilqr_taylor_expansions.hh> #include <utils/math_utils.hh> #include <utils/debug_utils.hh> #include <Eigen/Dense> void test_nonlinear_dynamics_linearization(const int state_dim, const int control_dim) { std::srand(1); ...
/* ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding ** Copyright (C) 2003 <NAME>, Ahead Software AG, http://www.nero.com ** ** 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 Founda...
/***************************************************************************** * Wave Simulation in OpenGL * (C) 2002 <NAME> * http://home.in.tum.de/~thomsen * Modified for GLFW by <NAME> - <EMAIL> * Modified for variable frame rate by <NAME> * 2003-Jan-31: Minor cleanups and speedups / MG * 2010-10-24: Formatti...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
#include "gp_global.h" #include <pthread.h> #include "gp_cg.h" #include "gp_setting.h" using namespace gp; void *jacobiCGThread(void *params); void vectorXEqualYPlusATimesD(vector<double> &x, vector<double> &y, double a, vector<double> &d, int n){ for(int i=0; i<n; i++){ x[i]=y[i]+d[i]*a; ...
// GLFT_Font (http://polimath.com/blog/code/glft_font/) // by <NAME> (<EMAIL>) // Based on work by <NAME> (http://marijn.haverbeke.nl) // // Version 0.2.2 - Released 28 February 2011 - Fixed linux compilation. // Version 0.2.1 - Released 2 March 2008 - Updated contact information. // Version 0.2.0 - Released 18 July ...
#include <gtest/gtest.h> #include <state_estimation_ros/ros_conversions.h> #include <Eigen/Core> #include <Eigen/Geometry> #include <algorithm> #include <numeric> using namespace state_estimation; // Test fixture which contains an assortment of data vectors to feed through the conversion // functions class StateEstim...
//===- WireDFT.cpp - Create DFT module ports --------------------*- 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 // //===---------------------------...
// // MIT License // Copyright (c) 2019 <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, ...
/************************************************************************************************** ************************************************************************************************** BSD 3-Clause License (https://www.tldrlegal.com/l/bsd3) Copyright (c) 2014 <NAME> <http://www.solism.c...
/** * @CopyRight: * FISCO-BCOS 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. * * FISCO-BCOS is distributed in the hope that it...
/* * Copyright (c) 2007 * Shrew Soft 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 ...
//STL #include <iostream> #include <string> #include <cstdlib> //MRPT #include <mrpt/poses/CPose3D.h> #include <mrpt/utils/utils_defs.h> #include <mrpt/utils/CConfigFile.h> //Eigen #include <Eigen/Dense> //Boost #include <boost/filesystem.hpp> #include "Calibration.hpp" #include "RawlogHelper.hpp" #include "Observ...
/* https://gitlab.com/jousis/ads1232-library */ #include "ADS1232.h" #ifdef SERIAL #define SERIAL_PRINT(x) Serial.print(x) #define SERIAL_PRINTLN(x) Serial.println(x) #ifdef DEBUG #define DEBUG_PRINT(x) Serial.print(x) #define DEBUG_PRINTLN(x) Serial.println(x) #else #define DEBUG_PRINT(x) ...
#pragma once #include <gdkmm/pixbuf.h> #include <gdkmm/general.h> #include <cairomm/context.h> #include <gtkmm/drawingarea.h> #include <glibmm.h> #include <gtkmm/entry.h> #include <gtkmm/grid.h> #include <gtkmm/label.h> #include <gtkmm/eventcontrollermotion.h> #include <gtkmm/gesture.h> #include <gtkmm/gestureclick.h> ...
#include "StochSimulator.hpp" #include "common.h" #include "simparams.h" void doBinomialPartioning (CellState* cell,StochSimulator* stochSimulator, Doub q) { // mRNA A Int count = 0 ; for (Int m=0;m<cell->get_A_mRNA_Level();m++) { if ( stochSimulator->ran.doub () < q ) count ++ ; } cel...
#include <Wire.h> #if defined( ESP8266 ) #include <pgmspace.h> #else #include <avr/pgmspace.h> #endif #include <OLED12864.h> boolean OLED12864::plotter(int16_t xMin, int16_t xMax, int16_t yMin, int16_t yMax, int16_t xAxis, int16_t yAxis, boolean frame) { if (!_enableBuffer) return false; if ((xMi...
/* File: LongestCommonSubsequence.cpp * * This file contains an algorithm for finding the longest common subsequence * of two vectors containing the same type of objects. A subsequence of a * vector of objects of the same type is a new vector containing some of the * objects in the original vector, all in the same...
/* * Copyright (c) 2015 Immo Software * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list * of conditions and the following dis...
#include "DrainageNetworkTree.hpp" /* * Authors: <NAME>, <NAME> */ // ------------- DrainageNetworkNode -------------- DrainageNetworkNode::DrainageNetworkNode(const DrainageNetworkTree& parentTree, DrainageNetworkNode* parent, const Mesh& basinMesh, double parametricLength, Mesh::HalfedgeHandle heh) : parent...
#include "../reader/MultiFovReader.h" #include "output/CloudWriter.h" #include "output/CloudWriterGT.h" #include "output/DebugImageDrawer.h" #include "output/DepthPyramidDrawer.h" #include "output/InterpolationDrawer.h" #include "output/TrackingDebugImageDrawer.h" #include "output/TrajectoryWriter.h" #include "output/T...
/* MIT License Copyright (C) 2006 The Mono.Xna Team 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 "loader.h" #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #include <iostream> #include <direct.h> #include <glm/gtc/matrix_transform.hpp> #include <rapidjson/document.h> #include <rapidjson/istreamwrapper.h> #include <fstream> #include <assimp/postprocess.h> #include "../parser/types.h" #include ".....
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* Constant-Q library Copyright (c) 2013-2014 <NAME>, University of London Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")...
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild #include "expr_calc_array_ops.h" #include <algorithm> expr_calc_array_ops_t::expr_calc_array_ops_t(kaitai::kstream* p__io, kaitai::kstruct* p__parent, expr_calc_array_ops_t* p__root) : kaitai::kstruct(p__io) { m__p...
#include "shapearea.h" #include <QPaintEvent> #include <QPainter> #include <math.h> ///define PI using C++ math library #define M_PI 3.14159265358979323846 ///using css to set up the backgrounf of the shaoe area /// this is set to blue ShapeArea::ShapeArea(QWidget *parent) : QWidget(parent), background_color(0,0,...
#include "game.h" #include "utils.h" #include "input.h" #include "image.h" #include "camera.h" #include "character.h" #include "ui.h" #include "menustate.h" #include "playstate.h" #include "endstate.h" #include <cmath> #include <algorithm> #include <vector> #include <regex> Game* Game::instance = NULL; double findMo...
#include "ros/ros.h" // ROS Service #include <force_controller/force_controller_service.h> // ROS Msg Type #include <geometry_msgs/Vector3.h> #include <sensor_msgs/JointState.h> // STD Libs #include <cstdlib> #include <stdlib.h> #include <string> //--------------------------------------------------------------------...
/******************************************************************************* * Copyright (c) 2012-2014, The Microsystems Design Labratory (MDL) * Department of Computer Science and Engineering, The Pennsylvania State University * All rights reserved. * * This source code is part of NVMain - A cycle accurate timing...
// // Created by erik on 9/22/16. // #include <irrlicht/IVideoDriver.h> #include <irrlicht/IGUIEnvironment.h> #include <irrlicht/IGUIStaticText.h> #include <sstream> #include <iomanip> #include "UnitCommand.h" #include "game/State.h" #include <irrlicht/ICameraSceneNode.h> #include <iostream> #include "UI/convert.h" #i...
//========= Copyright Valve Corporation, All rights reserved. ============// // traceperf.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "gametrace.h" #include "fmtstr.h" #include "appframework/appframework.h" #include "filesystem.h" #include "filesystem_init.h" #include "t...
// g++ -O2 -std=c++11 -lopencv_imgproc -lopencv_highgui -lopencv_photo -lopencv_core -o deskew deskew.cpp #include <iostream> #include <vector> #include <stdlib.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/photo/photo.hpp> using namespace cv; using std::vector; ...
//////////////////////////////////////////////////////////////////////////////// // main (.cpp) // Developed By: <NAME> // Start Date: 04 July 2012 // Version Publish Date: 04 March 2013 // Version Number: 1.0 // Notes: // Development Info: // Requires SuperLu, OpenCV // Development ToDo: // // Credit: <NA...
/** @file FirstBossScene.cpp @brief Methods that manages the first boss scene. @copyright LGPL. MIT License. */ #include "Customs/FirstBossScene.hpp" FirstBossScene::FirstBossScene() {} /** @brief that function is for when tha state is activated. Then is created the map, player, boss, light, rain...
#include "parameters.h" #include "debug.h" #include "RMShader.h" #include <glm/glm.hpp> #include <vector> #include <iostream> #include <glm/gtx/string_cast.hpp> using namespace std; using namespace glm; #include "scene.h" #include "ray.hpp" #include "sdfUtils.hpp" #include "distancefield.h" #include "boundingbox.hp...
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved #include "SpatialTestRepNotify.h" #include "SpatialGDK/Public/EngineClasses/SpatialNetDriver.h" #include "SpatialTestRepNotifyActor.h" #include "SpatialTestRepNotifySubobject.h" #include "Net/UnrealNetwork.h" /** * This test tests RepNotifies and shadow d...
#pragma once #include <string> #include <vector> #include <numeric> #include <algorithm> #include <optional> #include "acmacs-base/log.hh" #include "acmacs-base/rjson-v2.hh" #include "acmacs-base/layout.hh" #include "acmacs-chart-2/titers.hh" #include "acmacs-chart-2/chart.hh" // ------------------------------------...
#include <algorithm> #include "DefaultAllocatorPolicy.h" #include "core/MemoryAllocationContext.h" #include "core/MemoryUtils.h" #include "core/TrackerSet.h" #include "core/WorkerTrackerInterface.h" DefaultAllocatorPolicy::DefaultAllocatorPolicy(const TrackerSet& trackerSet) : highestPriorityRequest(NULL) { // Us...
// // poker setting.cpp // poker Edition // // Created by 马元 on 2017/4/11. // Copyright © 2017年 MaYuan. All rights reserved. // #include <iostream> #include <time.h> using namespace std; int pokerid[11]; class Poker { private: int num[54]; public: void set_ns(); Poker(); int transform(int a[],int s...
/* Copyright (C) 2009 <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) version 3. This library is...
// RoundRobin.cpp: define el punto de entrada de la aplicación de consola. #include "stdafx.h" #include <iostream> #include <string> // C++ string class #include <cstring> // C-string #include <time.h> struct Nodo { int cantidad; Nodo * siguiente = NULL; }; typedef struct Nodo Nodo; Nodo * cabe...
#include <cstdio> #include <iostream> #include <stdexcept> #include <string> #include <GL/gl3w.h> #include <SDL.h> #include <gsl/gsl> #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #pragma GCC diagnostic ignored "-Wold-style-cast" #include "imgui.h" #include "imgui_impl_opengl3.h" #include ...
/************************************************************************* * Copyright (C) [2021] by Cambricon, Inc. 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 a...
#include <unistd.h> #include <stdlib.h> #include <fstream> #include <iterator> #include <algorithm> #include <cstdint> #include <iostream> #include <map> #include <string> #include <cctype> #include <chrono> #include <thread> #include <random> #include <memory> #include <cmath> #include "object_store/FullBladeObjectSt...
/* * MidiTrain -- MIDI sequencer and visualizer based on a train-inspired musical notation * * Author: <NAME> <<EMAIL>> * This work is released under the MIT license */ #include "composition.h" #include <QJsonDocument> #include <QJsonObject> #include <QJsonValue> #include <QJsonArray> #include <cstdio> QMidiEven...
// Intel IOMMU support // // [IOMMU] refers to Intel Virtualization Technology for Directed I/O // Architecture Specification Rev 1.3 #include "iommu.hh" #include "types.h" #include "kernel.hh" #include "apic.hh" #include "cpu.hh" #include "irq.hh" #include "kstream.hh" #include "vector.hh" #include <iterator> stat...
// Copyright 2021 The Fuchsia 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 "diskio.h" #include <lib/efi/testing/fake_disk_io_protocol.h> #include <lib/efi/testing/stub_boot_services.h> #include <zircon/hw/gpt.h> #includ...
/* * Copyright 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
#include <iostream> #include <map> #include <regex> #include <vector> using namespace std; using ll = long long; class Tile { public: enum State { ORIGINAL = 0, ROTATED_90 = 1, ROTATED_180 = 2, ROTATED_270 = 3, FLIPPED_270 = 4, FLIPPED_ORIGINAL = 5, FLIPPED_90 = 6, FLIPPED_180 = 7 ...
/************************************************************************/ /* */ /* Copyright 2014-2015 by <NAME> and <NAME> */ /* */ /* This file is part of the VIGR...
#include <SDL.h> #include <SDL_image.h> #include <SDL_mixer.h> #include <SDL_ttf.h> #include <iostream> #include <fstream> #include <sstream> #include <cstdlib> #include <ctime> SDL_Window* window; SDL_Renderer* renderer; SDL_Event Event; SDL_Texture *background, *character, *cuadro, *gameover, *start, *saved, *won; S...
#include "sema/SymbolTable.hpp" #include <algorithm> #include <cassert> #include <cstdio> // =========================================== // > Attribute // =========================================== const Constant *Attribute::constant() const { if (m_type != Tag::kConstantValue) { assert(false && "Try to ...
/* * SimulatorUDPCommon.cc : part of the Mace toolkit for building distributed systems * * Copyright (c) 2011, <NAME>, <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: * * * ...
/*! * ============================================================================ * * @addtogroup Horus * @{ * * @file Horus.cpp * @version 1.0 * @date 1/7/2016 * * @note People tracking class * * Copyright(c) 20015-2016 Texas Instruments Corporation, All Rights Reserved.q * TI makes NO WARRANTY a...
#include "song.hpp" #include <cstdlib> #include <glad/glad.h> #include <GLFW/glfw3.h> #include "imgui.h" #include "implot.h" #include "imgui_impl_glfw.h" #include "imgui_impl_opengl3.h" #include <ImGuiFileBrowser.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #inc...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
#include "integration_tests.h" /***************************************************** * * Test suite for checking the data collection * functionality * ******************************************************/ // Tests bool proper_start_tests(); // Supporting functions ABM setup_simulations(double, std::strin...
#include "ppl/cv/x86/resize.h" #include "ppl/cv/x86/test.h" #include <opencv2/imgproc.hpp> #include <memory> #include <gtest/gtest.h> #include "ppl/cv/debug.h" #include "ppl/common/retcode.h" template<typename T, int32_t nc> void ResizeLinearTest(int32_t inHeight, int32_t inWidth, int32_t outHeigh...
// Copyright (c) 2014, Sandia Corporation. // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retains certain rights in this software. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following condit...
/* * SYS_FrameRateCap.cpp * VectorStorm * * Created by <NAME> on 18/03/07. * Copyright 2007 <NAME>. All rights reserved. * */ #include "VS_TimerSystem.h" #include "CORE_Game.h" #include "Core.h" #include "VS_DisplayList.h" #include "VS_RenderBuffer.h" #include "VS_RenderQueue.h" #include "VS_Renderer.h" #i...
#include "Terrain.h" void Terrain::Read(BinaryReader& cpuFile, const string& name) { Name = name; //Read header Signature = cpuFile.ReadUint32(); Version = cpuFile.ReadUint32(); Index = cpuFile.ReadUint32(); NumStitchPieceNames = cpuFile.ReadUint32(); //Validate header if (Signature != 1514296659) //ASCII st...
#include "ROPChain.hpp" #include "Database.hpp" #include "CommonUtils.hpp" #include "Exception.hpp" #include "Gadget.hpp" #include "IO.hpp" #include <algorithm> #include <iomanip> ROPChain::ROPChain():_len(0), _nb_gadgets(0), _nb_instr(0), _nb_instr_ir(0){} // Accessors int ROPChain::len(){return _len;} int ROPChain:...
// Copyright (c) 2011 The Native Client Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Note: this file implements a simple replay engine for srpcs. // For simplicity this replay engine contains // some global data ...
// license: GPL v3 // note: a part of the code in this file reuses somebody else's which is licensed under GPL v3. #include "synth_espeak.h" #include "logger.h" #include <nlohmann/json.hpp> #include <espeak-ng/espeak_ng.h> #include <espeak-ng/speak_lib.h> #include <espeak-ng/encoding.h> #include <cassert> #include <...
#include "npc320.h" #include <array> #include "player.h" #include "stage.h" #include "render.h" #include "game.h" #include "sound.h" #include "mathUtils.h" void npcAct322(npc *NPC) // Deleet (enemy) { constexpr std::array<RECT, 2> rcNormal = {{{272, 216, 296, 240}, {296, 216, 320, 240}}}; constexpr RECT rcExp...
#include "SF2Bank.h" #include "SF2Reader.h" #include "SF2SoundSet.h" #include <algorithm> #include <vector> void SF2Bank::dumpGen( FILE* f, const Rec_gen& g) const { switch( g.oper ) { case Generator::startAddrsOffset: fprintf(f,"startAddrsOffset=%d",g.amount.int16); break; ...
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // Scan all images (.exe and .dll) in a directory sub-tree and remove any // extraneous PDB directory information from the debug section. Also, image // checksums are updated. // #include <windows.h> #include ...
#include "global.h" #include "camera.h" #include "timer.h" #include "scene.h" #include "plane.h" #include "sphere.h" #include "triangle.h" #include "light.h" #include "grouplist.h" #include "grouptree.h" #include "shadowshader.h" #include "textureshader.h" #include "texturesphereshader.h" #include "reflectionshader.h"...
#pragma once #include <iostream> #include <vector> #include <array> #include <mutex> #include "../../engine/types/BaseTypes.hpp" #include "../../engine/rendering/Sprite.hpp" #include "../collision/collision_detection.hpp" #include "CollisionUniform.hpp" struct QtreeNodeQuerry { uint32_t nodeId; Vec2 pos; Vec2 s...
/* Main Program */ /* Author: <NAME> */ /* Date: Jan, 2018 */ //#include "retarget.cpp" /* TODO: [REMOVED] Create a preset songs class TODO: [REMOVED] Add a preset option to the settings menu, simply hovering a preset will play it, and leaving the menu will stop playing it TODO: [DONE] Add synth keys to playback 5 ...
#include <cassert> #include <iterator> #include <string> #include <iostream> #include <sstream> #include <algorithm> #include <iomanip> void doInsert() { std::string s = "xmplr"; // insert(size_type index, size_type count, char ch) s.insert(0, 1, 'E'); assert("Exmplr" == s); // insert(size_type ...
#include <iostream> #include <fstream> #include <algorithm> #include <vector> using namespace std; class Node{ public: long long key; Node* left; Node* right; int height_no; int length; long long left_sum; long long right_sum; long long sum; Node(long long x) { this->key = x; this-...
#include "vmwidget.h" #include "stringrecord.h" #include "texteditwithcompleter.h" #include "vmtablewidget.h" #include "vmtableitem.h" #include "global.h" #include "mainwindow.h" #include <QVBoxLayout> #include <QApplication> #include <QMenu> #include <QDesktopWidget> void vmwidget_swap ( vmWidget& widget1, vmWidget&...
/****************************** TRICK HEADER ****************************************************** @copyright Copyright 2019 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. LIBRARY DEPENDENCY: ( (software/excepti...
#include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include <map> #include "helper_functions.h" #include "particle_filter.h" using std::string; using std::vector; using std::normal_distribution; using std::min_element...
//------------------------------------------------------------------------------ // nsubdivshapenode_main.cc // (C) 2003 RadonLabs GmbH //------------------------------------------------------------------------------ #include "scene/nsubdivshapenode.h" nNebulaClass(nSubdivShapeNode, "nshapenode"); //-------...
/* psynths_flanger.cpp. This file is part of the SunVox engine. Copyright (C) 2002 - 2008 <NAME> <<EMAIL>> */ #include "psynth.h" #include "core/debug.h" //Unique names for objects in your synth: #define SYNTH_DATA psynth_flanger_data #define SYNTH_HANDLER psynth_flanger //And unique parameters: #define S...
#include <iostream> #include <stdexcept> #include <cmath> #include <limits> const long long int MAX(std::numeric_limits<long long int>::max()); const long long int MIN(std::numeric_limits<long long int>::min()); class Razlomak { long long int brojnik; long long int nazivnik; static int Nzd(long...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** ** This notice applies to any and all portions of this...
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL-B license under * French law and abiding by the rules of distribution of free soft...
// // AY-3-8910.cpp // Clock Signal // // Created by <NAME> on 14/10/2016. // Copyright 2016 <NAME>. All rights reserved. // #include "AY38910.hpp" #include <cmath> using namespace GI::AY38910; AY38910::AY38910(Concurrency::DeferringAsyncTaskQueue &task_queue) : task_queue_(task_queue) { // set up envelope loo...
#include <functional> #include <vector> #include <iostream> #include <algorithm> #include <numeric> #include <iterator> #include <boost/bind.hpp> int sub( int a , int b ) { return a-b ; } int sub2( int a , int b ) { int t = a-b ; std::cout << t << std::endl ; return t ;} int add3( int a , int b , int c ) { return a + ...
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ /* * Copyright (c) 1996 The 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 m...
/* compile: g++-5 -std=c++11 -O2 -o multi-thread-regex.bin \ multi-thread-regex.cpp \ -lpthread -lboost_regex -lre2 -lboost_date_time */ /* * ref: https://www.tutorialspoint.com/cplusplus/cpp_multithreading.htm */ /* * 1. For std::regex, using -O2 can achive 10X faster performance than using -O0 *...
//--- Write file modelDescription.xml needed to export an EnergyPlus simulation as an FMU. //--- Copyright notice. // // Please see the header file. //--- Includes. // #include <cstdio> #include <ctype.h> #include <string> using std::string; #include <ostream> using std::endl; #include "fmu-export-write-model-de...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <math.h> #include <time.h> #include <cstdlib> #include <string> #include <nvector/nvector_serial.h> // serial N_Vector types, fcts., and macros #include <cvode/cvode.h> // prototypes for CVODE fcts. and consts. #if defined SUNDIALS2 #inclu...
/** * @file FR_coef.cpp - coef gen for fix radix * This program is intended to be run on a 32bit machine to generate coef. Not for embedded use * * @copy Copyright (C) <2001-2012> <<NAME>> * @author <NAME> <deftio [at] deftio [dot] com> * * This software is provided 'as-is', without any express or implied ...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include "helper_functions.h" using std::string; using ...
//Copyright (c) 2015 <NAME> // //Permission is hereby granted, free of charge, to any person obtaining a copy //of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //to use, copy, modify, merge, publish, distribute,...
#include <ros/ros.h> #include <tf/tf.h> #include <tf/transform_broadcaster.h> #include <tf/transform_listener.h> #include <sensor_msgs/LaserScan.h> #include <sensor_msgs/Imu.h> #include <sensor_msgs/PointCloud2.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl_conversions/pcl_conversions.h> ...
// // Created by mcochrane on 18/04/17. // #if defined(TESTING) #else #include <delay.h> #include <DS3232SN/DS3232SN.h> #endif #include <min/min_transmit_cmds.h> #include "TdlRuleRunner.h" #include "TdlRules.h" #include "TdlChannels.h" #include "TdlEvents.h" static TdlRuleRunner* rule_runner = NULL; void TdlRuleR...
/** * Copyright (c) 2020 Neka-Nat * 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, dis...
#pragma once #include <cstring> #include <limits> #include <cmath> class LinkedVector { private: using alloc = std::allocator<std::size_t>; using alloc_traits = std::allocator_traits<alloc>; const std::size_t no_block = std::numeric_limits<std::size_t>::max(); alloc allocator; std::size_t* ve...
// StringFile.cpp: implementation of the CStringFile class. // ////////////////////////////////////////////////////////////////////// #include "pch.h" #include "./CompByte.h" #include "./StringFile.h" #ifdef _DEBUG #define new DEBUG_NEW #endif CStringFile::CStringFile ( UINT nBufSize ) : m_dwMasterIndex(0), m_fFile...
/* * Software License Agreement (BSD License) * * Copyright (c) 2016-2020, Natalnet Laboratory for Perceptual Robotics * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted provided * that the following conditions are met: * * 1. Redistrib...
/* * 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 distributed in the hope that it will be use...
/** * 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. */ /* * This pass eliminates gotos by moving trivial const-instructions * before a conditional branch. * * For example: * * ...