text
stringlengths
5.71k
33.7k
#include <string> #include <iostream> #include <fstream> #include <math.h> #include <random> #include <ros/ros.h> #include <trajectory_generator/coeff_msgs.h> #include <trajectory_generator/alpha_msgs.h> #include <ros/console.h> #include <sensor_msgs/Joy.h> #include <algorithm> #include <Eigen/Eigen> #include <vector> ...
#include <iostream> #include <cmath> using namespace std; void UTL_GEOM_CROSS( // *************************************************************** double *vector1, // ptr to x,y,z components of first vector double *vector2, // ptr to x,y,z components of second vector double *product) // ptr to x,y,z compon...
// // astar.cpp // indigo-bondorder // // Created by <NAME> on 30/10/17. // Copyright © 2017 <NAME>. All rights reserved. // #include <algorithm> #include <chrono> #include <iostream> #include <map> #include <memory> #include <set> #include <vector> #include "algorithm/formalbonds/astar.hpp" #include "utils/opti...
/** * Bachelor thesis: Algorithms for automatic image cropping * VUT FIT 2018 * Author: <NAME> (<EMAIL>) * Supervisor: Doc. Ing. <NAME>, Ph. D. * File: CompositionModel.cpp * Github repository: https://github.com/VitaAmbroz/AutoCropApp */ /** * This is implementation of methods that were necessary for...
#include "SplitImage4.h" #include <stdio.h> #if __WXMSW__ #include <windows.h> #endif Extend extendCopy(const Extend& e) { return Extend(e.up, e.down, e.left, e.right); } /* static void print_rect(const wxRect& r) { fprintf(stderr, "(%d, %d, %d, %d)\n", r.x, r.y, r.width, r.height); } */ long getObjectRef(w...
#include <iostream> #include <string> #include <fstream> #include <regex> #include <map> #include <cmath> #include <sstream> #include "GridWorld.h" #include "MDP.h" std::string getLines(std::string fileName) { std::ifstream file(fileName); std::string str; std::string file_contents; while (std::getline...
/** * @file audio/capture/testcard.cpp * @author <NAME> <<EMAIL>> */ /* * Copyright (c) 2014-2021 CESNET, z. s. p. o. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, is permitted provided that the following conditions * are met: * * 1. Redis...
#include "ukf.h" #include "Eigen/Dense" #include <math.h> 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 initializ...
#include "BoosterSimOptions.hpp" #include <string> #include <iostream> #include <cstdlib> #include <sstream> BoosterSimOptions::BoosterSimOptions() : BoosterOptions(), report_scenario_timing(false), no_reduce(false), disable_scenario_aggregation(false), output_PYOMO(false), output_PYSP(false), ...
/* * Copyright 2016 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #define FUSE_USE_VERSION 26 #include <base/command_line.h> #include <base/files/file_path.h> #include <base/logging.h> #include <base/notreache...
/* * qt-faststart.c, v0.2 * by <NAME> (<EMAIL>) * This file is placed in the public domain. Use the program however you * see fit. * * This utility rearranges a Quicktime file such that the moov atom * is in front of the data, thus facilitating network streaming. * * To compile this program, start from the bas...
/* * Copyright (c) 2016, 2017 <NAME> * This file is part of Onyx, and is released under the terms of the MIT License * check LICENSE at the root directory for more information */ /************************************************************************** * * * File: tty.c * * Description: Contains the text termina...
// // Copyright (c) 2014-2020 Wind River Systems, Inc. // // SPDX-License-Identifier: Apache-2.0 // #include <assert.h> #include <iostream> #include <json-c/json.h> #include <map> #include <netdb.h> #include <sstream> #include <stdlib.h> #include <string> #include <unistd.h> #include <vector> #include <arpa/inet.h> #...
// // Notice Regarding Standards. AMD does not provide a license or sublicense to // any Intellectual Property Rights relating to any standards, including but not // limited to any audio and/or video codec technologies such as MPEG-2, MPEG-4; // AVC/H.264; HEVC/H.265; AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; a...
// This is the simple version of laplacian.cpp that builds // the smallest reasonable AST. This simpler AST make it // easier to work with in the context of understanding // the use of the DSL and the interpretation of it's semantics // to implement the code generation for the DSL. // This is the second simple te...
#include <iostream> #include <ros/ros.h> #include <std_msgs/Bool.h> #include <Eigen/Dense> #include <geometry_msgs/PoseStamped.h> #include <geometry_msgs/TwistStamped.h> #include <nav_msgs/Odometry.h> #include <mavros_msgs/CommandBool.h> #include <mavros_msgs/SetMode.h> #include <mavros_msgs/State.h> using namespace E...
// // Created by jtian on 4/24/20. // #include "argparse.hh" #include <cassert> #include <cstdlib> #include <iostream> #include <regex> #include <string> #include "format.hh" using std::cerr; using std::cout; using std::endl; using std::string; // TODO update with default values // TODO check version const char* ve...
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include "AnnEngine.hpp" #include "AnnLogger.hpp" #include "AnnException.hpp" //Include the built-in renderer that doesn't do VR #include "AnnOgreNoVRRenderer...
// -----------------------------------------------------------------------------------bl- // BSD 3-Clause License // // Copyright (c) 2020-2022, The PECOS Development Team, University of Texas at Austin // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are...
// Avisynth v2.5. Copyright 2002 <NAME>-Gould et al. // http://www.avisynth.org // 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 l...
#include "BrowserImpl.h" #include <fstream> #include <sstream> #include <wrapper/cef_helpers.h> #include <wrapper/cef_stream_resource_handler.h> namespace { int sfKeycodeToWindowsKeycode(sf::Keyboard::Key sfKeycode) { int vkey = 0; switch (sfKeycode) { default: vkey = 0; break...
// Copyright (c) 2020 Graphcore Ltd. All rights reserved. #include "poplibs_support/TestDevice.hpp" #include <boost/multi_array.hpp> #include <boost/optional.hpp> #include <boost/optional/optional_io.hpp> #include <boost/program_options.hpp> #include <poplar/Engine.hpp> #include <poplar/Graph.hpp> #include "poputil/...
#include <m_pd.h> #include "Accelerate/Accelerate.h" #include <string.h> #include "tuning.h" class comb { public: comb(); ~comb(); void setbuffer(float *buf, int size); inline float process(float inp); void setBlockSize(int); inline void processAndSumBlock(float*, float*); void mute()...
#include "lightManager.h" #include "ImGui\imgui.h" #include "ImGui\examples\opengl3_example\imgui_impl_glfw_gl3.h" // Instantiate static variables SunLight lightManager::sun; pointLight lightManager::lights[MAX_N_LIGHTS]; GLint lightManager::pointLightNum = 0; GLuint lightManager::VBO, lightManager::lightVAO; lightMa...
/*************************************************************************** * utils.cc -- Miscellaneous utils that didn't fit into any of the other * * source files. * * * **********...
#include <uWS/uWS.h> #include <fstream> #include <iostream> #include <string> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "helpers.h" #include "json.hpp" #include "spline.h" // for convenience using nlohmann::json; using std::string; using std::vector; //declaring the lane...
// created by <NAME> #include "stdafx.h" #include "RealTimeDataAnalysis/DataAnalysisControl.h" #include "Control.h" #include "PrimaryWindows/QtAndorWindow.h" #include "ConfigurationSystems/ConfigSystem.h" #include "RealTimeDataAnalysis/QtPlotDesignerDlg.h" #include "RealTimeDataAnalysis/realTimePlotterInput.h" #includ...
// // Created by Maikel on 8/12/2019. // #include <libgba-sprite-engine/sprites/affine_sprite.h> #include <libgba-sprite-engine/sprites/sprite_builder.h> #include <libgba-sprite-engine/gba/tonc_memmap.h> #include <libgba-sprite-engine/background/text_stream.h> #include <libgba-sprite-engine/gba/tonc_memdef.h> #include ...
/* Copyright (c) 2019-2020, Stanford University * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO...
// // TwitterOAuth.hpp // twitter-oauth-commandline // // Created by leico on 2016/12/22. // Copyright © 2016年 leico. All rights reserved. // #ifndef __TwitterOAuth_hpp___ #define __TwitterOAuth_hpp___ #include <iostream> #include <string> #include <sstream> #include <map> #include <ctime> #include <cstdlib> #inc...
/* * <NAME> * Advanved C++ * OCCC Fall 2017 * Due: 10/15/17 * Details: Simple Sorts Homework * Reference Material https://solarianprogrammer.com/2012/10/14/cpp-11-timing-code-performance/ * Reference Material: http://www.geeksforgeeks.org/quick-qSort/ * Reference Material: http://homepage.divms.uiowa.e...
// Lizard // Copyright <NAME> 2018 // http://lizardnes.com #include <cstdio> #include <cstring> #include <cstdlib> #include <cerrno> #include "SDL.h" #include "lizard_game.h" #include "lizard_config.h" #include "lizard_platform.h" #include "enums.h" // // Game configuration // Config config; enum ConfigEnum { CONF...
/************************************************************************ * "jlp_andor_cam1_set.cpp" * JLP_AndorCam1 class * * JLP * Version 17/09/2015 *************************************************************************/ #include <stdio.h> #include <string.h> #include <time.h> #include "jlp_andor_cam1.h" // ...
// Copyright 2014 The Souper Authors. 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 required by ap...
// include ROS Libraries #include <ros/ros.h> #include <geometry_msgs/Point.h> #include <geometry_msgs/TransformStamped.h> #include <sensor_msgs/LaserScan.h> // OpenCV Libraries #include <opencv2/opencv.hpp> #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" /...
// based on https://ncona.com/2019/04/building-a-simple-server-with-cpp/ // based on https://gitlab.com/palisade/palisade-development/-/blob/master/src/pke/examples/simple-real-numbers.cpp #define PROFILE #include <sys/socket.h> // For socket functions #include <netinet/in.h> // For sockaddr_in #include <cstdlib> // F...
//Released under the MIT License - https://opensource.org/licenses/MIT // //Copyright (c) 2019 AIT Austrian Institute of Technology GmbH // //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 wit...
// $Header $ /** @file @author Z.Fewtrell */ // LOCAL #include "CalSignalTool.h" #include "IXtalSignalTool.h" #include "../CalCalib/IPrecalcCalibTool.h" #include "CalXtalResponse/ICalCalibSvc.h" // GLAST #include "Event/TopLevel/EventModel.h" #include "Event/MonteCarlo/McIntegratingHit.h" #include "GlastSvc/Glast...
// Copyright (c) 2020 gyselroth GmbH // Licensed under the MIT License - https://opensource.org/licenses/MIT #include <docxbox/docx/archive/docx_archive.h> docx_archive::docx_archive(int argc, const std::vector<std::string>& argv, bool is_batch_mode = false) { a...
#include <string> #include <iostream> #include <vector> #include <mutex> #include <future> #include <libgen.h> #include <stdlib.h> #include <limits.h> #ifdef _WIN32 #include <WinSock2.h> #endif #include "nbind/nbind.h" #include "libmtp.h" #ifndef min #define min(a, b) (((a) < (b)) ? (a) : (b)) #endif class databuff...
/* * Copyright (C) 2009 Advanced Micro Devices, Inc. All Rights Reserved. */ /* * Copyright 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the ...
#include "IM_Obj.h" #include "MR_Obj.h" #include "IM_VisTool.h" #include "MR_VisTree.h" #include "MR_ListObj.h" #include "NR.h" #include <fstream> //---------------------------------------------------------- // Init_ps //---------------------------------------------------------- void Init_ps(ofstream& Fic,int ox,i...
//===- IVUsers.cpp - Induction Variable Users -------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <iostream> #include <cmath> #include <fstream> #include <windows.h> #include <thread> #include <vector> #include <thread> #include <iterator> #include <mutex> #include <assert.h> #include "Grid.h" #include "Trid.h" #include "Coeff.h" #include "convergence.h" #include "ThomasXL.h" #include "helper.h" using nam...
/* Properties of Carbon Dioxide (R744) by <NAME> Themo properties from "A New Equation of State for Carbon Dioxide Covering the Fluid Region from the Triple Point Temperature to 1100 K at Pressures up to 800 MPa", <NAME> and <NAME>, J. Phys. Chem. Ref. Data, v. 25, 1996 */ #if defined(_MSC_VER) #define _CRTDBG_MA...
/* ** Copyright (C) 1998-2010 <NAME> <<EMAIL>> ** ** 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...
/** * @file MFCC.cpp * @author <NAME> <<EMAIL>> * @version 1.0 * * @section LICENSE * * MIR.EDU * * A vamp plug-in library for teaching MIR. * Copyright (C) 2013-2014 <NAME>. * * MIR.EDU is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as pub...
/* WIGGLE - wavetable oscillator with frequency modulation and filter This instrument is a kind of combination of WAVETABLE and FMINST. The time-varying capabilities in the first version of WIGGLE are now possible with WAVETABLE and FMINST, so WIGGLE may no longer be worth the bother, especially since a lo...
/* This is transducer.cpp Coxeter version 3.0 Copyright (C) 2002 <NAME> See file main.cpp for full copyright notice */ #include <coxeter/transducer.h> #include <coxeter/bits.h> #include <coxeter/error.h> namespace transducer { using namespace error; using namespace transducer; }; /******** local defini...
// -------------------------------------------------------------------------------------------------------------------------------- // License: BSD-3-Clause // -------------------------------------------------------------------------------------------------------------------------------- // // Copyright 2019 <NAME...
#include "FbxWrangler.h" #include "FbxUtilities.h" bool SaveDocument(FbxManager* pManager, FbxDocument* pDocument, const char* pFilename, int pFileFormat = -1, bool pEmbedMedia = false) { int lMajor, lMinor, lRevision; bool lStatus = true; // Create an exporter. FbxExporter* lExporter = FbxExporter::Create(pManag...
#include "GLScene.h" using namespace std; GLScene::GLScene() { m_numModels = 0; init(); } GLScene::GLScene( GLuint numModels ) { m_numModels = numModels; init(); } GLvoid GLScene::init() { COLOR_CHANGE = 0.05f; m_windowWidth = WINDOW_WIDTH; m_windowHeight = WINDOW_HEIGHT; m_windowID = -1; m_c...
/* Copyright <NAME>, 2007. * All rights reserved worldwide. * * This software is provided "as is" without express or implied * warranties. You may freely copy and compile this source into * applications you distribute provided that the copyright text * below is included in the resulting source code, for ex...
/* state space dim */ #define sDIM 3 #define iDIM 2 #include <array> #include <deque> #include <iostream> #include <iomanip> #include <string> #include "cuddObj.hh" Cudd mgr; // To be able to simulate the NCS controller #include "SENSE.hh" // To be able to simulate the system by solving the ODE #...
/** @defgroup MleParts Magic Lantern Parts */ /** * @file Nudger.cxx * @ingroup MlParts * * @author <NAME> * * This file implements a class that allows objects to be "nudged" a little * bit in any screen space direction. */ // COPYRIGHT_BEGIN // // The MIT License (MIT) // // Copyright (c) 2017-2020 Wizzer Wo...
/* --------------------------------------------------------------- */ /* FFTPeaks ------------------------------------------------------ */ /* --------------------------------------------------------------- */ static int FFTPeaks( vector<double> &topnr, vector<Point> &topnp, int w1, int h...
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
/* Copyright 2017 The TensorFlow Authors. 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 required by applicable law or a...
// pbrt is Copyright(c) 1998-2020 <NAME>, <NAME>, and <NAME>. // The pbrt source code is licensed under the Apache License, Version 2.0. // SPDX: Apache-2.0 #include <gtest/gtest.h> #include <pbrt/pbrt.h> #include <pbrt/interaction.h> #include <pbrt/shapes.h> #include <pbrt/util/lowdiscrepancy.h> #include <pbrt/util...
#include <ctype.h> #include "TheaterDef.h" #include "stdhdr.h" #include "datafile.h" #include "simfile.h" #include "codelib/resources/reslib/src/resmgr.h" #include "FalcSnd/voicemapper.h" #include "entity.h" #include "f4find.h" #include "tactics.h" #include "AIInput.h" #include "Fsound.h" #include "dispcfg.h" #include ...
/** This library is under the 3-Clause BSD License Copyright (c) 2017, <NAME> 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 co...
// ---------------------------------------------------------------------------- // - Fast Global Registration - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) Intel Corporation 2016 // <NAME> <<...
// This is core/vnl/algo/vnl_levenberg_marquardt.cxx //: // \file // \author <NAME>, Oxford RRG // \date 31 Aug 96 // //----------------------------------------------------------------------------- #include <iostream> #include <cassert> #include "vnl_levenberg_marquardt.h" #include "vnl/vnl_fastops.h" #include "vnl/vn...
#include "DQM/SiStripCommissioningDbClients/interface/DaqScopeModeHistosUsingDb.h" #include "CondFormats/SiStripObjects/interface/DaqScopeModeAnalysis.h" #include "DataFormats/SiStripCommon/interface/SiStripConstants.h" #include "DataFormats/SiStripCommon/interface/SiStripFecKey.h" #include "DataFormats/SiStripCommon/i...
#include <glog/logging.h> #include <stdio.h> #include <stdlib.h> #include <unordered_map> #include <unordered_set> #include "server/messages.h" #include "server/master.h" #include "tools/cycle_timer.h" #define COMPARE_PRIMES_PARTS (4) // compare_primes task can be seperated into // ...
#include <chrono> #include "../header/original.h" #include "../header/gen_ukr_bfxycwh_f16layout_1_512_34_34_256_3_3.h" //#include "../header/gen_ukr_bfxycwh_1_64_224_224_3_3_3.h" #include "../header/transpose.h" void ukrimpl(float *A, float *B, float *oB, float *C, long long *oAstride, int b, int f, int x...
// Copyright 2019 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "gpio.h" #include "grainfather2.h" #include "brew_session.h" #include <utility> #include <deque> #include <mutex> #include <list> #include <functional> using...
/** * We need to include typemaps first to avoid problems with Intel * MPI's C++ bindings (which may collide with stdio.h's SEEK_SET, * SEEK_CUR etc.). */ #include <libgeodecomp/communication/typemaps.h> #include <libgeodecomp/io/bovwriter.h> #include <libgeodecomp/io/simpleinitializer.h> #include <libgeodecomp/io/...
/** * Copyright (c) 2020 libnuls developers (see AUTHORS) * * This file is part of libnuls. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
#include "lib_battery_dispatch_automatic_fom.h" #include "lib_battery_powerflow.h" #include "lib_utility_rate.h" #include <numeric> dispatch_automatic_front_of_meter_t::dispatch_automatic_front_of_meter_t( battery_t * Battery, double dt_hour, double SOC_min, double SOC_max, int current_choice, double Ic_max, d...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
#include <lithium.hh> #include <lithium.hh> #include <lithium.hh> #include "symbols.hh" using namespace li; template< typename T, typename Pred > typename std::vector<T>::iterator insert_sorted( std::vector<T> & vec, const T& item, Pred&& pred ) { return vec.emplace ( std::upper_bound( vec...
// Copyright 2010-2018 Google LLC // 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 to in...
/* * libjingle * Copyright 2011, Google Inc. * Copyright 2011, RTFM, Inc. * * 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, * thi...
// CDemoRecord.cpp: implementation of the CDemoRecord class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "igame_level.h" #include "x_ray.h" #include "gamefont.h" #include "fDemoRecord.h" #include "xr_ioconsole.h" #include "xr_input.h" #include "xr_object.h" #...
// // follower.cpp // 6thViewImporter // // Created by Dado on 15/10/2015. // // #include "follower.hpp" #include <core/util.h> #include <core/math/quaternion.h> #include <poly/vdata_assembler.h> #include <poly/poly_services.hpp> struct FollowerPoly { FollowerPoly( const std::vector<Vector3f>& rp1, const std::...
/* Copyright: Copyright (C) 2003-2018 SIL International. Authors: mcdurdin */ #include "kmx_processor.h" using namespace km::kbp; using namespace kmx; #if defined(_WIN32) || defined(_WIN64) #include <share.h> #endif KMX_BOOL KMX_Processor::Load(km_kbp_path_name KeyboardName) { if(!LoadKeyboard(...
/* * CS 106B, <NAME> * I had this need to program. And then while getting ready for lecture 4 I realized * there was no published AI solver for Bananagrams: * https://en.wikipedia.org/wiki/Bananagrams * So here you have it. The (as far as I know) first computer bananagram agent. * * When reading this I suggest: ...
/* Copyright 2017 <NAME>, <NAME>, and <NAME> This file is part of GPUQT. GPUQT 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 lat...
#include "flow.hpp" #include "utilities/mpiError.hpp" #include "utilities/petscError.hpp" #include "utilities/petscOptions.hpp" ablate::flow::Flow::Flow(std::string name, std::shared_ptr<mesh::Mesh> mesh, std::shared_ptr<parameters::Parameters> parameters, std::shared_ptr<parameters::Parameters> options, ...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> #include <fstream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // set is_initialized to false is_initialized_ = f...
/* * 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 ...
// This file is part of: // gnss-sim: A GNSS Signal Simulator // // Copyright (c) 2020 <NAME> // SPDX-License-Identifier: MIT // // Derived from https://github.com/osqzss/gps-sdr-sim (MIT Licence): // Copyright (c) 2015-2020 <NAME> #include "gps_subframe.h" #include <cmath> namespace { static constexpr double POW2_...
/* rendersky.cpp: skybox and sky environment rendering * * Libprimis supports standard static cubemap skyboxes as well as cloud layers, * which are both static (though capable of translation/rotation) * * as well as a parameterized sky generation system, referred to the code as the * atmo" functionality * * as ...
/* * MIT License * * Copyright (c) 2020 <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, m...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2019 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
#include "../mutation_annotated_tree.hpp" #include "transpose_vcf.hpp" #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <iterator> #include <mutex> #include <string> #include <tbb/blocked_range.h> #include <tbb/concurrent_vector.h> #include <tb...
/*********** ToyBox.cpp <NAME> , 2018 October Objects and Critters to render Template Version: 2018-06-07 ***********/ #include "ToyBox.h" // === Classes and Structs ================================================================================================================= // == class PegBlock == PegBlock...
#include <camera_info_manager/camera_info_manager.h> #include <sensor_msgs/CameraInfo.h> #include <visualization_msgs/Marker.h> #include <whycon/PointArray.h> #include "triangulator.h" whycon::Triangulator::Triangulator(ros::NodeHandle& n) { points_left_sub.subscribe(n, "/whycon_left/points", 10); points_right_sub...
/* * This source file is part of the osgOcean library * * Copyright (C) 2009 <NAME> * Copyright (C) 2009 The University of Hull, UK * * This program 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 * Foundat...
#include <algorithm> #include <array> #include <cassert> #include <iostream> #include <map> #include <set> #include <string> #include <cstdio> #include <vector> template <class T> class optional { public: optional() : t(), b(false) {} optional(T const &t) : t(t), b(true) {} optional(optional const...
// // Copyright (c) 2015-2016 <NAME> (<EMAIL> dot <EMAIL> at g<EMAIL> dot <EMAIL>) // // 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 <nudb/test/test_store.hpp> #include <nudb/util.hpp> #include <beast/...
#include <lalr/ParserStateMachine.hpp> #include <lalr/ParserState.hpp> #include <lalr/ParserTransition.hpp> #include <lalr/ParserSymbol.hpp> #include <lalr/ParserAction.hpp> #include <lalr/LexerStateMachine.hpp> #include <lalr/LexerState.hpp> #include <lalr/LexerTransition.hpp> #include <lalr/LexerAction.hpp> using n...
//===--- LoopRotate.cpp - Loop structure simplify -------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/*This file is part of the FEBio Studio source code and is licensed under the MIT license listed below. See Copyright-FEBio-Studio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any per...
#include "mrc.h" #include "File.h" #include "Maths.h" #include "numerical_recipes.h" #include <algorithm> using namespace std; void FreeMRC( vector<uint16*> &vras ) { int nras = vras.size(); for( int i = 0; i < nras; ++i ) { if( vras[i] ) free( vras[i] ); } } static void F...
#include <gtest/gtest.h> #include "../Math/math.hh" #include "helpers.hh" #include "../geometry/LineSegment/LineSegment2/linesegment2.hh" #include <Eigen/Core> using namespace Eigen; using namespace bold; TEST (MathTests, intersectRayWithPlane) { // Intersect ray pointing straight downwards EXPECT_EQ ( Maybe<Ve...
#include <stdio.h> #include "iostream" #include <math.h> #include "GL/glut.h" //#include <GL/glu.h> //#pragma comment(lib, "glut.lib") //#pragma comment(lib, "glut32.lib") using namespace std; //******************************************************************************/ //**** You may change the initial values o...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <arpa/inet.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <netinet/udp.h> #include <netinet/ip_icmp.h> #include "cmn/agent_cmn.h" #include "cmn/agent_stats.h" #include "oper/interface_common.h" #include "oper/nexthop.h" #i...
/***************************************************************************** * Project: Eskapade - A python-based package for data analysis * * Module : ABCDUtils * * Created: 2017/06/03 * * D...