text
stringlengths
5.71k
33.7k
/* * Copyright (c) 2015, 2018, 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 as * published by the Free Software Foundation; version 2 of the * License. * * This program is distri...
/** * \file decoupledibpm.cpp * \brief Implementation of the class \c DecoupledIBPMSolver. * \copyright Copyright (c) 2016-2018, Barba group. All rights reserved. * \license BSD 3-Clause License. * \see decoupledibpm * \ingroup decoupledibpm */ // PETSc # include <petscviewerhdf5.h> // Decoupled solver # inclu...
#include <set> #include <opencv2/legacy/legacy.hpp> #include "AAM_PAW.h" using namespace std; //#define BINLINEAR 1 #define free2dvector(vec) \ { \ for(int i = 0; i < vec.size(); i++) vec[i].clear(); \ vec.clear(); \ } AAM_PAW::AAM_PAW(void) { __nTriangles =...
#include <iostream> #include <vector> #include "tigr.h" #include "vec2.h" #include "missiles.h" #include "random.h" namespace { const int screen_width {800}; const int screen_height {600}; const int window_flags = TIGR_FIXED; const char *window_title = "Homing missiles!!11"; Tigr *window {nullpt...
// // Yet Another POD-Bot, based on PODBot by <NAME> ("CountFloyd"). // Copyright (c) YaPB Development Team. // // This software is licensed under the BSD-style license. // Additional exceptions apply. For full license details, see LICENSE.txt or visit: // https://yapb.jeefo.net/license // #include <core.h> bool ...
#include "hls_design_meta.h" const Port_Property HLS_Design_Meta::port_props[]={ Port_Property("ap_clk", 1, hls_in, -1, "", "", 1), Port_Property("ap_rst_n", 1, hls_in, -1, "", "", 1), Port_Property("lrclk", 1, hls_in, 0, "ap_none", "in_data", 1), Port_Property("m_axi_physMemPtr_V_AWVALID", 1, hls_out, 1, "m_axi", ...
// openBin.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include "pch.h" //why is this here #include <iostream> #include <fstream> #include <string> #include <vector> #include <iomanip> #include <cstdlib> #include <sstream> //#include <direct.h> #include "stdafx.h" #include...
/* **============================================================================== ** ** Copyright (c) 2003, 2004, 2005, 2006, <NAME>, <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 Sof...
#include <pass.h> #include "llvm/IR/Intrinsics.h" #include "llvm/IR/CFG.h" #include "llvm/Analysis/ScalarEvolution.h" #include "llvm/Analysis/ScalarEvolutionExpressions.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "SVF-FE/GEPTypeBridgeIterator.h" // include bridge_gep_iterator #include "llvm/IR/IRBuil...
// Copyright (c) 2006, 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...
/**************************************************************************** * Authors: * <NAME> * <NAME> ****************************************************************************/ #include "RecoCTPPS/ProtonReconstruction/interface/ProtonReconstructionAlgorithm.h" #include "FWCore/MessageLogger/interface/...
/*############################################################### ## MODULE: cvx_clustering.cpp ## VERSION: 1.0 ## SINCE 2014-06-14 ## AUTHOR: ## <NAME> (xl5224) - <EMAIL> ## DESCRIPTION: ## ################################################################# ## Edited by MacVim ## Class Info auto-generated by S...
/** @file * common functions in AccFFT. */ /* * Copyright (c) 2014-2015, <NAME>, <NAME> * All rights reserved. * This file is part of AccFFT library. * * AccFFT is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Softwa...
/* * Copyright (c) 2018 <NAME> * * Distributed under the MIT License. See LICENSE.md at * https://github.com/LiquidPlayer/LiquidCore for terms and conditions. */ #include "V82JSC.h" #include "JSCPrivate.h" #include "ObjectTemplate.h" #include "FunctionTemplate.h" #include "Object.h" using namespace V82JSC; using...
/**************************************************************************** * * Copyright (c) 2018 PX4 Development Team. 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. Redistri...
//===--- FuzzyStringMatcher.cpp -------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/// /// \class L1TGlobalPrescalesVetosFractESProducer /// /// Description: Produces L1T Trigger Menu Condition Format /// /// Implementation: /// Dummy producer for L1T uGT Trigger Menu /// // system include files #include <memory> #include <iostream> #include <fstream> #include <unistd.h> #include <cstdio> #includ...
/* * Copyright (C) 2011-2017 Intel Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this li...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | | | Cop...
// modified by <NAME> //--------------------------------------------------------------------------- // // lammps example // // 4-node workflow // // print (1 proc) // / // lammps (4 procs) // \ // print2 (1 proc) - print (1 proc) // // entire workflow takes 10 procs (1 dataflow pro...
/** * author: <EMAIL> minicom -b 115200 -o -D /dev/ttyACM0 https://github.com/njazz/MIDIMessageParser/blob/master/src/MIDIParser.h */ #include <stdio.h> #include <math.h> #include <sys/stat.h> #include <fcntl.h> #include <iostream> #include <string> #include "string.h" #include <stdlib.h> #include "hardware/cloc...
/** * Copyright (c) 2015, <NAME>, Quintelligence d.o.o. and contributors * All rights reserved. * * This source code is licensed under the FreeBSD license found in the * LICENSE file in the root directory of this source tree. */ ///////////////////////////////////////////////// // Stemmer TStr TStemmer::GetStem...
//===------ SILSSAUpdater.h - Unstructured SSA Update Tool ------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
// Copyright 2018 The MediaPipe Authors. // // 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...
#include <catboost/cuda/cuda_lib/cuda_buffer.h> #include <catboost/cuda/cuda_lib/cuda_manager.h> #include <catboost/cuda/cuda_lib/mapping.h> #include <catboost/cuda/cuda_util/reduce.h> #include <catboost/cuda/targets/dcg.h> #include <catboost/libs/logging/logging.h> #include <catboost/libs/metrics/metric.h> #include <c...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the ...
// 2014-2019, ETH Zurich, Integrated Systems Laboratory // Authors: <NAME> #include "ll_BStest.h" #include "ll_fn.h" #include "ll_io.h" #include "ll_cell.h" #include "aux_md5.h" // bandstructure tests void ll__::meshBStest(const ll_hbonds& W, const fMat& EXP, const rv& r, const vb_cb& E, const ll_BStest_input& inp...
/**************************************************************************** * * Copyright 2020 PX4 Development Team. 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 o...
// -*- indent-tabs-mode: nil -*- #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <glibmm.h> #include <arc/ArcConfig.h> #include <arc/IString.h> #include <arc/credential/Credential.h> #include <arc/loader/FinderLoader.h> #include <arc/loader/Plugin.h> #include "utils.h" #include <unistd.h> #include <termio...
// (C) Copyright 2016-2021 Xilinx, Inc. // All Rights Reserved. // // 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 yo...
#include <iostream> #include <stdio.h> /* printf, scanf, puts, NULL */ #include <stdlib.h> /* srand, rand */ #include <time.h> /* time */ using namespace std; const int simulationCOUNT = 100; //How many times the simulator will run the program //print the menu for the user to pick what they want to do ...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2021, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (<NAME>, et al.) listed in // the CONTRIBUTORS file. <<EMAIL>> // // LL...
//***************************************************************************** // Copyright 2017-2019 Intel Corporation // // 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://w...
#include <UnitTest/stdafx.h> #include <UnitTest/UnitTest.h> #include <core/utility/cli.h> enum OPTIONFLAGS { // Declared in flagsEnum //OPT_NOOPT = 0x0000, //OPT_INITMFC = 0x0001, //OPT_NEEDNUM = 0x0002, // Any arguments must be decimal numbers. No strings. OPT_10 = 0x0010, OPT_20 = 0x0020, }; // Our set of op...
// Copyright (c) 2011 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 <string> #include "sandbox/win/src/filesystem_policy.h" #include "base/logging.h" #include "base/win/scoped_handle.h" #include "base/win/wi...
/////////////////////////////////////////////////////////////////////////////// // Copyright <NAME> 2015. // Copyright <NAME> 2015. // Copyright <NAME> 2015. // 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) ...
/************************************************************************ * "jlp_andor_cam1.cpp" * JLP_AndorCam1 class * * JLP * Version 17/09/2015 *************************************************************************/ #include <stdio.h> #include <string.h> #include <time.h> #include "jlp_andor_cam1.h" // ANDO...
/** This is a stripped down version of the collision playground example to illustrate the behavior of the collision detection system and a few geometry dependent odities. I have removed the ground plane and collision cliques for the purposes of this example. try the following: 1)all spheres: collisions are detected f...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014-2021 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 * * ...
/* Author(s): <NAME> (msc37) Project: sweepc (population balance solver) Sourceforge: http://sourceforge.net/projects/mopssuite Copyright (C) 2008 <NAME>. File purpose: Implementation of the Coagulation class declared in the swp_coagulation.h header file. Licence: This file i...
/*================================================================================== Copyright (c) 2008, binaryzebra 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...
#include "DeBruijnGraph.hpp" #include "string_util.hpp" #include <string> #include <sstream> #include <queue> #include <algorithm> #include "irke_common.hpp" #include "stacktrace.hpp" // class vars unsigned int DeBruijnKmer::id_counter = 0; const char DeBruijnKmer::_G_mask = 8; const char DeBruijnKmer::_A_mask = 4; c...
/* * \class TMatacq * * \author: <NAME> - CEA/Saclay */ #include <CalibCalorimetry/EcalLaserAnalyzer/interface/TMatacq.h> #include <iostream> #include <cmath> #include "TVectorD.h" #include <CalibCalorimetry/EcalLaserAnalyzer/interface/TMarkov.h> using namespace std; //ClassImp(TMatacq) void TMatacq::init() ...
/* * File: MemoryCell.cpp * Author: heshan * * Created on April 8, 2018, 2:11 PM */ #include "LSTMNet.h" LSTMNet::LSTMNet(int memCells, int inputVecSize) { this->memCells = memCells; this->inputVectDim = inputVecSize; noOfIns = 0; } LSTMNet::LSTMNet(const LSTMNet& orig) { } LSTMNet::~LSTMN...
#include "camera.h" #include "world/objects/npc.h" #include "world/objects/interactive.h" #include "world/world.h" #include "game/playercontrol.h" #include "game/definitions/cameradefinitions.h" #include "game/serialize.h" #include "utils/gthfont.h" #include "utils/dbgpainter.h" #include "gothic.h" using namespace Te...
/* Copyright 2020 - 2021 MONAI Consortium 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 writing, sof...
#include <cstdlib> #include <algorithm> #include <limits> #include <stdint.h> #include <iostream> #include <random> #include <numeric> #include <getopt.h> #include <sstream> #include <type_traits> #include <iomanip> #include <functional> #include <set> #include <map> #include "tblis.h" #include "util/time.hpp" #includ...
#include "Rtree.h" Node::Node(int d, int maxCap){ MBR = std::vector< int >(2*d,INT_MIN); childMBR = std::vector< std::vector< int > >(maxCap,std::vector< int >(2*d,INT_MIN)); childptr = std::vector< int >(maxCap,-1); size = 0; } Btree::Btree(int dim, int maxChildren, FileHandler& fh){ d = dim; maxCap ...
/** * Implementation of the object which helps map ion densities to * ion names and charges. This is needed since the ion densities * are stored a single, monolithic density in the EquationSystem. * Since the UnknownQuantity doesn't contain any information about * the ion charge, we must keep that information in t...
/*++ Copyright (c) 2018 Microsoft Corporation, <NAME> Module Name: theory_recfun.cpp Abstract: Theory responsible for unrolling recursive functions Author: <NAME> December 2017 Revision History: --*/ #include "util/stats.h" #include "ast/ast_util.h" #include "ast/for_each_expr.h" #include "smt/theo...
/* * checkboard.cpp * * Created on: 8 Jun 2015 * Author: jadarve */ #include "checkboard.h" #include "geometry.h" #include "util.h" #include <vector> #include <iostream> using namespace std; using namespace Eigen; Eigen::Vector2f findInterpolationCoodinates(const Eigen::Vector3f eta, const float* etas, c...
// This file is part of OpenMVG, an Open Multiple View Geometry C++ library. // Copyright (c) 2012, 2013, 2015 <NAME>. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0...
#include "ofxQtVideoSaver.h" ofxQtVideoSaver::ofxQtVideoSaver (){ sResRefNum = 0; movie = nil; track = NULL; media = NULL; pMovieGWorld = NULL; pixMapHandle = NULL; pCompressedData = NULL; pSavedPort = NULL; hSavedDevice = NULL; hCompressedData = NULL; lMaxCompressionSize = 0L; hImageDescription = NULL; c...
#include "dnn.h" using namespace std; using ilong = initializer_list<long>; using batch = pair<vector<vector<double>>,vector<vector<double>>>; //pair of input batch & expected batch dnn::dnn(long Num_Inputs,ilong Hidden_Units,long Num_Classes, const Scope &upperscope, ClientSession* uppersess, double learning_r...
//===- MappedBlockStream.cpp - Reads stream data from an MSF file ---------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * Copyright (c) 2009 Jice * 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 a...
#include <stdio.h> #include <math.h> #include <future> #include <GL/glut.h> #include <GL/freeglut.h> #include "WorldView.h" #include "WindowManager.h" #include "ControllerView.h" #include "AnalViewAge.h" #include "Values.h" #include "FileAccessor.h" WorldView::WorldView(WorldContext* pContext, int windowX,...
/* * contrib/btree_gist/btree_utils_var.c */ #include "postgres.h" #include "knl/knl_variable.h" #include "btree_gist.h" #include <math.h> #include <limits.h> #include <float.h> #include "btree_utils_var.h" #include "utils/pg_locale.h" #include "utils/builtins.h" #include "utils/rel.h" #include "utils/rel_gs.h" /...
/* * Hello world example of a TLS client: fetch an HTTPS page * * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may...
#include "Omega_h_file.hpp" #include "Omega_h_build.hpp" #include "Omega_h_class.hpp" #include "Omega_h_element.hpp" #include "Omega_h_map.hpp" #include "Omega_h_vector.hpp" #include "Omega_h_array_ops.hpp" #include "MeshSim.h" #include "SimModel.h" #include "SimUtil.h" #include <fstream> namespace { int classId(p...
/* * This is the source code of SpecNet project * It is licensed under MIT License. * * Copyright (c) <NAME> * feel free to contact me: <EMAIL> */ #include "linuxservice.h" #include "linuxsystem.h" #include "depend/file/base/fileadapter.h" #include <iostream> #include "spec/speccontext.h" #include <sys/socket.h>...
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
#define LONG_PRESS_MS 1000 // How much ms you should hold button to switch to "long press" mode (tune blinds position) #define MAX_STEPPERS_COUNT 4 // This limited by available pins usually /* Usually your home automation can extract needed data from single JSON with info about all steppers. These separate upda...
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "emu.h" #include "includes/arabia...
/* * Copyright 2004-2006 Intel Corporation * * 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...
// gmmbin/gmm-init-biphone.cc // Copyright 2017 <NAME> // See ../../COPYING for clarification regarding multiple authors // // 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://...
#include "gtest/gtest.h" #include "short_vector.hpp" #include <list> using namespace std; using namespace MArray; TEST(short_vector, constructor) { short_vector<int, 4> v1; EXPECT_EQ(0u, v1.size()); EXPECT_EQ(4u, v1.capacity()); short_vector<int, 4> v2(2); EXPECT_EQ(2u, v2.size()); EXPECT_EQ...
/********************************************************************** Audacity: A Digital Audio Editor PerTrackEffect.cpp <NAME> <NAME> <NAME> <NAME> split from Effect.cpp *******************************************************************//** \class PerTrackEffect \brief Base class for many of the ...
#include <iostream> #include <chrono> #include <map> #include <opencv2/opencv.hpp> #include "NvInfer.h" #include "cuda_runtime_api.h" #include "logging.h" #define CHECK(status) \ do\ {\ auto ret = (status);\ if (ret != 0)\ {\ std::cerr << "Cuda failure: " << re...
/* Dwarf Therapist Copyright (c) 2009 <NAME> (chmod) 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...
/* Nombre: <NAME> ID: 801183252 Class/Seccion: CCOM 3033 SEC 001 Nombre de archivo: main_mattei_9.cpp Descripción: This program calculates the salary for employees based on a simple database format, and places results in another file. Features: 1. Automatic sorting by name 2. Searching for employees (ultra-fast, recur...
/******************************************************************************* * Copyright (c) 2014, 2016 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this * distribution and is available at http://ec...
#include "setupWindow.hpp" setupWindow::setupWindow(AgentDatabase** adb, fileEncryption** afe, bool* newGame) { //Store the database pointer. db = adb; //Store the file read/write object pointer. fe = afe; newGameFlag = newGame; //Set the default size. set_default_size(500, 600); //Le...
/******************************************************************************** * Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
/* * Player - One Hell of a Robot Server * Copyright (C) 2000 * <NAME>, <NAME>, <NAME>, & <NAME> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "MarineIBC.H" #include "ParmParse.H" #include "BoxIterator.H" #include "Ex...
#include "rad_hydro.h" #include "ChiMesh/MeshContinuum/chi_meshcontinuum.h" #include "ChiMath/chi_math.h" typedef chi_math::VectorN<5> UVector; typedef UVector FVector; #include <iostream> #include <algorithm> #include <iomanip> void chi_radhydro::TestFunction() { std::cout << "Hello from test function\n"; } //#...
#include "CondFormats/L1TObjects/interface/L1GctJetFinderParams.h" #include <iostream> #include <iomanip> #include <cmath> #include "FWCore/Utilities/interface/Exception.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "DataFormats/L1GlobalCaloTrigger/interface/L1GctStaticParameters.h" using st...
#include <iostream> #include <vector> #include <memory> #include <chrono> #include <string> #include <random> #include <map> #include <unordered_map> #include <set> #include <cmath> #include <cassert> #include <algorithm> #include "mythical/coarsegrainsystem.hpp" #include "mythical/version.hpp" #include "mythical/walk...
#include "input/input.h" #include "input/keys.h" #include <assert.h> #include <Windows.h> #include <Windowsx.h> struct InputImpl : public Shared { int m_mouse_buttons; int m_mouse_x; int m_mouse_y; int m_width; int m_height; bool m_key_down[ Keys::count ]; bool m_caps_on; bool m_mouse_relative = false; flo...
/* This software is released under the BSD License. | | Copyright (c) 2015, <NAME> [<EMAIL>] | 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...
#include "stdafx.h" #include "FolderJukebox.h" #include "FolderMgr.h" #include "FolderCommands.h" #include "ClientRes.h" #include "GameClientShell.h" #include "GameSettings.h" #include "VersionMgr.h" #include <string> #include "JukeboxButeMgr.h" namespace { int kGap = 0; int kWidth = 0; LTRect rcSongListRect; int...
/* Copyright (C) 1999-2005 by <NAME> and <NAME> for the Wisconsin Multifacet Project. Contact: <EMAIL> http://www.cs.wisc.edu/gems/ -------------------------------------------------------------------- This file is part of the Opal Timing-First Microarchitectural Simulator, a component of the...
#include <starpu.h> #include <starpu_mpi.h> #include <vector> #include <memory> #include <random> #include <iostream> #ifdef USE_MKL #include <mkl_cblas.h> #include <mkl_lapacke.h> #else #include <cblas.h> #include <lapacke.h> #endif #include <Eigen/Core> #include <Eigen/Cholesky> #include <mpi.h> using namespace std;...
// // 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...
//===-- CXLoadedDiagnostic.cpp - Handling of persisent diags ----*- 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 <vector> #include <algorithm> #include <iterator> #include "ros/ros.h" #include "image_transport/image_transport.h" #include "cv_bridge/cv_bridge.h" #include "sensor_msgs/image_encodings.h" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/vide...
/* * Copyright 2021 The Modelbox Project 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 requi...
/** * \file PnlBrlyPrsDetail.cpp * job handler for job PnlBrlyPrsDetail (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 11 Jan 2021 */ // IP header --- ABOVE #ifdef BRLYCMBD #include <Brlycmbd.h> #else #include <Brlyd.h> #endif #include "P...
#include "dog.h" void GradOriImages(DARY *im, DARY *ori); void ReduceSize(DARY *image,DARY*& newimage); float FindOri(DARY * grad, DARY * ori, int row, int col); /* Convolve image with the a 1-D Gaussian kernel vector along image rows. The Gaussian has a sigma of sqrt(2), which results in the following kernel: ...
/* * File: AIC.cpp * Author: <NAME>, TU Delft, DCSC * * Created on April 14th, 2019 * * Class to perform active inference control of the 7DOF Franka Emika Panda robot. * Definition of the methods contained in AIC.h * */ #include "AIC.h" // Constructor which takes as argument the publishers and initialise...
/* * LaneDetector.cpp * * Created on: Jan 26, 2019 * Author: Bao */ #include "LaneDetector.h" #include "PolynomialRegressional.h" #include "utils.h" using namespace cv; #define CV_CALIB_FIX_K4 2048; #define CV_CALIB_FIX_K5 4096; void LaneDetector::cameraCalib(const vector<string>& chessboard_imgs, int nx...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during i...
#include "translateController.h" void TranslateController::InitLanguageVariable(char* lang) { char filename[50] = { "" }; strcpy(filename, "..\\bin\\lang\\"); strcat(filename, lang); strcat(filename, ".xml"); ifstream file(filename, ios::in); if (file.is_open()) TranslateController::readXmlLangDoc(...
#include <DocEdit/DocEdit.h> int PosOf(const String& str, const String& sub) { if(sub.GetLength() > str.GetLength()) return -1; const char *s = str; const char *e = s + str.GetLength() - sub.GetLength(); while(s <= e) { if(memcmp(s, sub, sub.GetLength()) == 0) return s - ~str; s++; } return -1; } void D...
// Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #include "Generic/common/leak_detection.h" #include "Arabic/common/ar_WordConstants.h" #include "Arabic/common/ar_ArabicSymbol.h" Symbol ArabicWordConstants::I_1 = ArabicSymbol(L">nA"); Symbol ArabicWordConstants::I_2 = ArabicSymbol(L"AnA")...
#include <iostream> #include "CityList.h" #include "StreetList.h" #include "MatchQueue.h" #include "RoundList.h" #include "RouteList.h" #include "BridgeList.h" #include <ctime> #include <fstream> using namespace std; int readClue() { char line[256]; ifstream is("Pista.txt"); int number = 0; if(is) ...
#include <bits/stdc++.h> #ifdef LOCAL #include "code/formatting.hpp" #else #define debug(...) (void)0 #endif using namespace std; inline namespace lib { struct disjoint_set_rollback { int N, S; vector<int> next; vector<pair<int, int>> history; explicit disjoint_set_rollback(int N = 0) : N(N), S(N), ...
/* * BsmReceiver.cpp * * Created on: May 10, 2016 * Author: ivp */ #include "MessageReceiverPlugin.h" #include <Clock.h> #include <FrequencyThrottle.h> #include <mutex> #include <stdexcept> #include <thread> #include <tmx/apimessages/TmxEventLog.hpp> #include <tmx/j2735_messages/J2735MessageFactory.hpp> #i...
/* * Copyright (c) 2015, 2016, 2017, 2018, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list o...