text
stringlengths
8.71k
38.4k
#include "HBSplineFEM.h" #include "ComputerTime.h" #include "MpapTime.h" #include "myDataIntegrateCutFEM.h" #include "ContactElementPointToPoint2D.h" #include "QuadratureUtil.h" #include "headersEigen.h" #include <omp.h> extern ComputerTime computerTime; extern MpapTime mpapTime; void HBSplineFEM::setInit...
/* Tracking eBugs' locations and ID based on deBruijn Sequences Originally written by <NAME> Modified by <NAME> on 05/02/2014 Modified by <NAME> on 22/03/2018 Modified by <NAME> on 03/03/2018 to adapt to ROS environment. Modified by <NAME> on 11/04/2018 to adap...
/* @copyright <NAME> 2000-2013 @author <NAME> This file is part of EcoLab Open source licensed under the MIT license. See LICENSE for details. */ #include <graph.h> #include <netcomplexity.h> #include <ref.h> #include "ecolab_epilogue.h" #include <vector> #include <utility> using namespace std; #include <arr...
#include "GridLayouter.h" GridLayouter::GridLayouter() { } void GridLayouter::gridLayouterForClusteredGraph(SubGraph & gCurrentClusteredGraph, SubGraph & gRootClusteredGraph) { BoostGraphWrapper boostGraphWrapper; //Construct a non-clustered graph newG for giv...
/**************************************************************************** * Copyright (c) 2015 - 2016, CEA * 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 mus...
#include "global.h" #include "BitmapText.h" #include "IniFile.h" #include "FontManager.h" #include "RageLog.h" #include "RageException.h" #include "RageTimer.h" #include "RageDisplay.h" #include "ThemeManager.h" #include "GameConstantsAndTypes.h" #include "Font.h" #include "ActorUtil.h" // for HandleParams /* XXX: * ...
//########################################################################## //# # //# CLOUDCOMPARE PLUGIN: qCMAT # //# # //# This pr...
/** * @file vcomponent.cpp * @author fnguyen (12/10/01) * @brief Implemenation of C++ Wrapper for icalcomponent.c * * (C) COPYRIGHT 2001, Critical Path This program is free software; you can redistribute it and/or modify it under the terms of either: The LGPL as published by the Free Software Founda...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright 2010- The GROMACS Authors * and the project initiators <NAME>, <NAME> and <NAME>. * Consult the AUTHORS/COPYING files and https://www.gromacs.org for details. * * GROMACS is free software; you can redistribute it and/or * modify i...
#include "OBBbox.h" #define ROTATE(a,i,j,k,l) g=a(i,j); h=a(k, l); a(i, j)=(float)(g-s*(h+g*tau)); a(k, l)=(float)(h+s*(g-h*tau)); namespace render_system { //Matrix transpose static osg::Matrix transpose(const osg::Matrix& b) { osg::Matrix mat; //mat.inverse(b); //mat.invert(b); for (int i = 0; i < 4; ++...
/* Copyright © 2016, The Pennsylvania State University All rights reserved. Copyright © 2016 Forschungszentrum Jülich GmbH All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted under the GNU General Public License v3 and provided that the following conditi...
/** * @file xml-parser.cpp * @author <NAME> (<EMAIL>) * @brief The parser to xml files * @version 0.1 * @date 2019-05-01 * * @copyright Copyright (c) 2019 * */ #include "xml-parser.h" /* +=====================================+ | Readers like tools | +===================================...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <time.h> #include <sys/mman.h> // mux selection for port 0 #define HW_PINCTRL_MUXSEL0_SET 0x80018104 #define HW_PINCTRL_MUXSEL1_SET 0x80018114 // mux selection for port 1 #define HW_PINCTRL_M...
#include "xcb_keyboard.hpp" #include <cctype> #include <map> #include <xkbcommon/xkbcommon-x11.h> #include <X11/Xutil.h> #define explicit dont_use_cxx_explicit #include <xcb/xkb.h> #undef explicit #define DG_XCB_REPLY_CONNECTION_ARG(connection, ...) connection struct DGXcbStdDeleter { void operator()(void *p...
/* * Copyright (c) 2005 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright * notice, ...
/* Copyright (c) 2017 <NAME>, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
#include <stdio.h> #include <string.h> /*memset() strcat() _strdup()*/ #include <windows.h> #if 0 #include <dvdnav/dvd_reader.h> #include <dvdnav/ifo_types.h> #include <dvdnav/ifo_read.h> #include <dvdnav/nav_read.h> #else #include "dvd_reader.h" #include "ifo_types.h" #include "ifo_read.h" #include "nav_read.h" #endif...
/* Copyright 2021 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 writing, software distr...
// // // <NAME>, 2011 #include "Mu2eG4/inc/constructExtMonFNAL.hh" #include <iostream> #include "G4Color.hh" #include "G4RotationMatrix.hh" #include "G4LogicalVolume.hh" #include "G4SDManager.hh" #include "G4ExtrudedSolid.hh" #include "G4Helper/inc/AntiLeakRegistry.hh" #include "GeometryService/inc/GeomHandle.hh" #...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*- #include "tecs.h" #include <ecl/ecl.h> #include <systemlib/err.h> #include <geo/geo.h> using math::constrain; using math::max; using math::min; /** * @file tecs.cpp * * @author <NAME> * * Written by <NAME> 2013 to provide: * - Combin...
#include "test.h" #include <mash.h> #include <assert.h> void test::TestEquality() { Matrix i1, i2; Matrix::Identity(i1); Matrix::Identity(i2); assert(Matrix::Equals(i1, i2)); logger::i("%s Passed ✓\n", __FUNCTION__); } // // Determinant formula: // http://www.cg.info.hiroshima-cu.ac.jp/~miyaz...
#include <library/cpp/grid_creator/binarization.h> #include <library/unittest/registar.h> #include <library/unittest/gtest.h> #include <util/generic/hash_set.h> #include <util/generic/serialized_enum.h> #include <util/generic/vector.h> #include <util/generic/algorithm.h> #include <util/generic/utility.h> #include <ut...
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2009-2012, <NAME>, Inc. * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permi...
/**************************************************************************** * Copyright: National ICT Australia, 2007 - 2010 * * Developed at the ATP lab, Networked Systems research theme * * Author(s): <NAME>, <NAME> * * This file is distributed un...
// Copyright (c) 2010 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 "chrome/browser/autofill/autofill_manager.h" #include <limits> #include <set> #include "app/l10n_util.h" #include "base/basictypes.h" #incl...
#include "core/hepch.h" #include "ResourceNavMesh.h" struct RasterizationContext { RasterizationContext() : solid(0), triareas(0), lset(0), chf(0), ntiles(0) { memset(tiles, 0, sizeof(TileCacheData) * Hachiko::ResourceNavMesh::MAX_LAYERS); } ~RasterizationContext() { rcFreeHeight...
/* * Copyright (c) 2016, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC) * 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...
#include "stdafx.h" #include "HeroBuildsWindow.h" #include <GWCA\GameContainers\Array.h> #include <GWCA\GameContainers\GamePos.h> #include <GWCA\GameEntities\Hero.h> #include <GWCA\GameEntities\Agent.h> #include <GWCA\Context\GameContext.h> #include <GWCA\Context\WorldContext.h> #include <GWCA\Managers\MapMgr.h> #...
#include "core/global.h" #include "core/config_parser.h" #include "core/timer.h" #include "core/test.h" #include "dataio/sgf.h" #include "search/asyncbot.h" #include "program/setup.h" #include "program/playutils.h" #include "program/play.h" #include "main.h" #define TCLAP_NAMESTARTSTRING "-" //Use single dashes for al...
/* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of condi...
/* * Copyright (c) 2000 Nortel Networks * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
// 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 may...
// Copyright (c) 2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "arith_uint256.h" #include "tinyformat.h" #include "chainparams.h" #include "util.h" #in...
/* * main.cpp * Copyright (C) 2017 <NAME> <<EMAIL>> * * Distributed under terms of the MIT license. */ #include "main.h" #if MBED_CONF_APP_MEMTRACE #include "mbed_stats.h" #include "mbed_mem_trace.h" #endif // Global variables and objects Watchdog wdog; volatile uint32_t ABK_timer1ms = 0U; // variable inc...
#include "Offsets.hpp" size_t csgo::cs_gamerules_data = 0x0; size_t csgo::m_ArmorValue = 0x0; size_t csgo::m_Collision = 0x0; size_t csgo::m_CollisionGroup = 0x0; size_t csgo::m_Local = 0x0; size_t csgo::m_MoveType = 0x0; size_t csgo::m_OriginalOwnerXuidHigh = 0x0; size_t csgo::m_OriginalOwnerXuidLow = 0x0; size_t csg...
// dear imgui: Renderer for Kiwano (DirectX10) #include <kiwano-imgui/imgui_impl/imgui_impl_dx10.h> // DirectX #include <d3d10_1.h> #include <d3d10.h> #include <d3dcompiler.h> #include <stdio.h> #ifdef _MSC_VER #pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile...
//Inspired by https://github.com/Wallacoloo/Raspberry-Pi-DMA-Example/blob/master/dma-gpio.c //and http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter //and https://github.com/hzeller/rpi-gpio-dma-demo/blob/master/gpio-dma-test.c // 0 1 //0 0 X //1 X X //Option 1: // 0 1 //0 0...
/* ################################################################################## */ /* ### ### */ /* ### Gadgetmp2 ### */ /* ### ...
#include <stdio.h> #include <stdlib.h> //#include <time.h> #include <iostream> #include <iomanip> #include "LinkList.h" #include "Stack.h" #include "Queue.h" //#include <SDL/SDL.h> #include "SDL/SDL.h" //#include "SDL-1.2.15/include/SDL/SDL.h" //#include "GraphicsSDL.h" //see http://dslweb.nwnexus.com/~ast/dload/g...
#include <iostream> /* std::cout */ #include <limits> /* std::numeric_limits */ #include <cassert> /* assert(-) */ #include <vector> #include <sstream> /* std::ostringstream */ #include <stdexcept> /* std::runtime_error */ #include "image_tif_common.h" #include "image_tif_read_handle_info.h" #include "image_tif_read_ha...
/****************************************************************************//* * Copyright (C) 2021 <NAME> * * Creative Commons Legal Code * * CC0 1.0 Universal * * CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE * LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN *...
#include <assert.h> #include <stdarg.h> // va_list, etc. #include <stdio.h> // vprintf #include "gc_heap.h" #include "greatest.h" #include "my_runtime.h" #include "mylib2.h" // gBuf using gc_heap::Alloc; using gc_heap::Dict; using gc_heap::gHeap; using gc_heap::kEmptyString; GLOBAL_STR(kString1, "food"); GLOBAL_...
#include "headers.h" #include <QHelpContentItem> #include <QHelpContentModel> #include <QHelpContentWidget> #include <QHelpIndexModel> #include <QHelpIndexWidget> #include "mainwindow.h" #include "ui_mainwindow.h" #include "dialoga.h" #include "ui_dialoga.h" #include "helpbrowser.h" QString appDirPath; std::functi...
#include "SimulationCore_pcp.h" #include "Step_S2D_ME_s_RigidBody_Fric.h" namespace { typedef Model_S2D_ME_s_RigidBody_Fric::Particle Particle_rb; typedef Model_S2D_ME_s_RigidBody_Fric::Element Element_rb; typedef Model_S2D_ME_s_RigidBody_Fric::Node Node_rb; }; Step_S2D_ME_s_RigidBody_Fric::Step_S2D_ME_s_RigidBod...
// // Created by anton on 17.07.2020. // #define _GLIBCXX_PARALLEL #include "error_correction/diploidy_analysis.hpp" #include "error_correction/mult_correction.hpp" #include "error_correction/parameter_estimator.hpp" #include "dbg/visualization.hpp" #include "dbg/graph_algorithms.hpp" #include "dbg/dbg_construction.hpp...
#include "common.h" #include "main.h" #include "Sprite.h" #include "Sprite2d.h" #include "General.h" #include "Coronas.h" #include "Camera.h" #include "TxdStore.h" #include "Weather.h" #include "Clock.h" #include "Timer.h" #include "Timecycle.h" #include "Renderer.h" #include "Clouds.h" #define SMALLSTRIPHEIGHT 4.0f ...
/** @file A brief file description @section license License 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 und...
/* * ******** merced: calculate the transfer matrix ********* * $Revision: 1 $ * $Date: 2006-02-01 19:06:56 -0800 (Wed, 01 Feb 2006) $ * $Author: hedstrom $ * $Id: MadlandNix.cpp 1 2006-02-02 03:06:56Z hedstrom $ * ******** merced: calculate the transfer matrix ********* * * # <<BEGIN-copyright>> * # <<END-cop...
int//jzH N8, Z,U2 ,// YRuO,rW , fl3kz4E8, xHg,H5UM ,NO , Jx9 , y4d, G8 , /*5P*/ cj, /**/hWv ,Xvm ,RK ,aOTd , uV ,//c fhz , O3pthS ,x , dq , qUX/*fnaMp*/ ,qd , bbHq,MU70M , RoRql ,oL,/**///OS TR , n0z ,I, pd , vptT, OqKjJ/**/,YOA, zBT4H,w3Tj , a5/*V*/ /*e1XZ*/ , e2dos6 ,Ok , Cp ,POP, GJt, Lnz1 , //...
#include <iostream> #include "solver.h" #include "Eigen/Geometry" #include "data_selection.h" #include "glog/logging.h" #include "utils.h" CSolver::CSolver() {} void CSolver::Calib(std::vector<data_selection::SyncData> &calib_data, int outliers_iterations, CalibResult &res) { // std::cout << std::endl << "there a...
/* * Copyright (c) 2020 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2025-10-11 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
#include "l2_hashtable.hpp" #include "l1_hashtable.hpp" #include "stdio.h" #include <iostream> L2Hashtable::L2Hashtable() { } L2Hashtable::L2Hashtable(uint32_t threshold){ this->l2threshold = threshold; } L2Hashtable::L2Hashtable(uint64_t num_tables, uint64_t locations, uint64_t overflow){ } L2Hashtable::L2Has...
#include "stdafx.h" #include "dx103DFluidRenderer.h" #include "dx103DFluidBlenders.h" #include "Layers/xrRender/BufferUtils.h" #include "dx103DFluidData.h" #include <DirectXMath.h> #include <DirectXPackedVector.h> using namespace DirectX; struct VsInput { Fvector pos; }; namespace { // For render call shared_st...
// Copyright (C) 2008 <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 prog...
/* Copyright (c) 2014-2019, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following d...
#include <Rcpp.h> using namespace Rcpp; #include "implicit_filtration.h" // Repeatedly appends whatever is in 'data' (count-1) times // From: https://stackoverflow.com/questions/31389846/initializing-stdvector-with-a-repeating-pattern template<typename Container> void repeat_pattern(Container& data, std::size_t coun...
/* * Copyright (c) 2016 Shanghai Jiao Tong University. * 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....
/* FILE: yy_transformstagemel.cc -*-Mode: c++-*- * * OOMMF magnetoelastic coupling extension module. * YY_TransformStageMEL class. * Adds time/stage-dependence on YY_StageMEL by transforming elastic input * specified for each stage and calculating MEL field/energy. * * Release ver. 1.0.1 (2015-0...
/* Copyright (c) 2010 <NAME> (<EMAIL>) Copyright (C) 2009 <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 3 of the License, or (at your option)...
#include "Bagel_Vcode.h" #include "Bagel_Utils.h" const BKE_Char* op_name[]= { W("BC_INVALID"), //release编译时用来标记将要被移除的字节码 //arithmetic W("BC_ADD"), //[A]=[B]+[C] W("BC_SUB"), //[A]=[B]-[C] W("BC_MUL"), //[A]=[B]*[C] W("BC_DIV"), //[A]=[B]/[C] W("BC_INTDIV"), //[A]=[B]/[C] W("BC_MOD"), ...
#include "EDColor.h" #include "ED.h" using namespace cv; using namespace std; EDColor::EDColor(Mat srcImage, int gradThresh, int anchor_thresh , double sigma, bool validateSegments) { inputImage = srcImage.clone(); // check parameters for sanity if (sigma < 1) sigma = 1; if (gradThresh < 1) gradThresh =...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAME>....
//===- ELFAsmParser.cpp - ELF Assembly Parser -----------------------------===// // // 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 // //===---------------------------...
#include <cassert> #include <cstring> #include <ctype.h> #include <fstream> #include <iostream> #include <iostream> #include <sstream> #include <stdio.h> #include <unistd.h> #include "../etymoncpp/include/postgres.h" #include "../etymoncpp/include/util.h" #include "extract.h" #include "paging.h" #include "timer.h" #in...
// Copyright (C) 2017-2018 Baidu, 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 condit...
/* * Copyright (c) 2015-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the f...
// Copyright (c) 2021 Intel Corporation. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, pub...
/* -*- Mode: C++; tab-width: 2; c-basic-offset: 2 -*- */ /* pdftk, the PDF Tool Kit Copyright (c) 2003, 2004 <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...
/** Software License Agreement (BSD) \file bebop_itl_test.cpp \authors <NAME> <<EMAIL>> \copyright Copyright (c) 2015, Autonomy Lab (Simon Fraser University), All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditio...
/* ** $Id: lgc.c,v 2.38.1.1 2007/12/27 13:02:25 roberto Exp $ ** Garbage Collector ** See Copyright Notice in lua.h */ #include <string.h> #define lgc_c #define LUA_CORE #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "lgc.h" #include "lmem.h" #include "lobject.h" #include "lstate....
#include <executor/application.h> #include <iostream> #include <memory> #include <vector> #include <random> #include <limits> #include <functional> #include <numeric> #include <map> #include <fstream> #include <thread> #include <boost/tokenizer.hpp> #include <boost/numeric/ublas/matrix.hpp> #include <b...
#include "Tactical/DisplayCover.h" #include "GameSettings.h" #include "SGP/Debug.h" #include "Strategic/GameClock.h" #include "Strategic/StrategicMap.h" #include "Tactical/AnimationControl.h" #include "Tactical/Interface.h" #include "Tactical/Items.h" #include "Tactical/LOS.h" #include "Tactical/OppList.h" #include "T...
#include "gbConfig.h" #include "fake86.h" #include "osd.h" #include "dataFlash/gbcom.h" #include "gbGlobals.h" #include "PS2Kbd.h" #include "gb_sdl_font8x8.h" #include "render.h" #include "dataFlash/gbsnarare.h" #include "dataFlash/gbdsk.h" #include "cpu.h" #include "ports.h" //#define BLACK 0 //#def...
#include "lua_imgui_enum.hpp" #include "lua_imgui_type.hpp" #include "imgui.h" #include <vector> #include <string_view> struct enum_name_value_pair { std::string_view name; int value; }; struct enum_name_data_pair { std::string_view name; std::vector<enum_name_value_pair> data; }; u...
/*! @file */ /* Copyright (C) 2008, kobake Copyright (C) 2018-2021, Sakura Editor Organization This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use th...
// Filename: IMPInitializer.cpp // Created on 16 Oct 2012 by <NAME> // // Copyright (c) 2002-2013, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source c...
#include "keyboard.h" #include <array> #include <cstdint> #include <cstring> #include <utility> #define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE #include <class/hid/hid.h> #include <esp_err.h> #include <esp_log.h> #include <esp_task_wdt.h> #include <i2clib/address.h> #include <i2clib/master.h> #include <i2clib/operation.h> #i...
#include "CPU.h" ////////////////////////////////////////// BIT /*! Method that checks a specific bit from a register. If the bit checked is set, then the zero flag is raised and cleared otherwise. The half carry flag is raised and the add sub flag cleared. */ void CPU::bit(const byte reg, const short position) { ...
#include "ESP8266RGBMatrix.h" #define DBG_PORT Serial #ifdef DEBUG_RGBMatrix #define DEBUGLOG(...) DBG_PORT.printf(__VA_ARGS__) #else #define DEBUGLOG(...) #endif ///// Pour l'appel du CallBackTimer: utiliser std::bind(&WiFiManager::handleRoot, this) ///// TODO Vérifier le _begin à chaque utilisation des ...
#include "VolumeSlicer3D/VolumeSlicer3DRenderer.h" #include "VoxVizCore/VolumeDataSet.h" #include "VoxVizCore/BoundingVolumes.h" #include "VoxVizCore/Plane.h" #include "VoxVizCore/Ray.h" #include "VoxVizOpenGL/GLExtensions.h" #include "VoxVizOpenGL/GLShaderProgramManager.h" #include "VoxVizOpenGL/GLUtils.h" #include ...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2021 Tor<NAME> Permission is hereby granted, free of charge, to any person obtaining a co...
#include <../../nrnconf.h> /* /local/src/master/nrn/src/nrnoc/eion.cpp,v 1.10 1998/02/26 16:42:50 hines Exp */ #include <stdlib.h> #include "section.h" #include "neuron.h" #include "membfunc.h" #include "parse.hpp" #include "membdef.h" #include "nrniv_mf.h" #include "nrnunits_modern.h" #undef hoc_retpushx extern...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2017-2019 The SXL Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "miner.h" #include <algorithm> #include <boost/circular_buffer.hpp> #include "init.h"...
#include "SoftBodyMesh2D.h" #include <cassert> #include <cinder/Log.h> #include <cinder/TriMesh.h> #include <cinder/app/AppBase.h> #include "Utils.h" using namespace Eigen; void ar::SoftBodyMesh2D::setMesh(const Vector2List & positions, const Vector3iList & indices) { referencePositions_ = positions; triInd...
#include "stdafx.h" using namespace std; void input_initial(string& input_type, const string& input_path, int& n_nodes, vector<double>& length, vector<int>& n_xs, vector<vector<double>>& dx_array, int& max_xs, int& dx) { ifstream length_file(input_path + "Input length.txt"); ////Reset n_xs //for (int i = 0; ...
// // Academic License - for use in teaching, academic research, and meeting // course requirements at degree granting institutions only. Not for // government, commercial, or other organizational use. // // File: obstacleStopper.cpp // // Code generated for Simulink model 'obstacleStopper'. // // Model version ...
/* * Copyright (C) 2015 by <NAME> (<EMAIL>) * * Released under the MIT license, see LICENSE.txt */ #include <iostream> #include <fstream> #include <getopt.h> #include <chrono> #include <ctime> #include "src/vg.hpp" using namespace vg; using namespace std; // time as string string timestring() { std::chrono...
#include <common.h> #include <string.h> #include <isr.h> #include <vm.h> #include <task.h> #define addr_in_kernel_space(vaddr) ((u32)(vaddr) > KERNEL_VIRTUAL_BASE) page_directory_t* _kernel_page_directory = NULL; extern char _data[]; // There is one page table per process, plus one that's used when // a CPU is not ...
/*Copyright 2013 Google 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 at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
#include <fcntl.h> #include <poll.h> #include <signal.h> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <deque> #include <memory> #include "base/base.h" #include "base/timer.h" DEFINE_string(master, "", "Command for a master."); DEFINE_string(worker, "", "Command for a wo...
/* =========================================================================== Doom 3 BFG Edition GPL Source Code Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code"). Doom 3 BFG Edition Source Code is free...
//------------------------------------------------- // // Class: L1MuGMTTree // // Description: Build GMT tree // // // // <NAME> HEPHY Vienna // //-------------------------------------------------- //----------------------- // This Class's Header -- //-------------...
/* * Copyright 2018 Digital Media Professionals 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 * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applica...
// Copyright (c) 2010 <NAME> // Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "rpc/rpcclient.h" #include "rpc/rpcprotocol.h" ...
////////////////////////////////////////////////////////////////////////////////////////// // // Arduino Library for the AFE4490 breakout board/shield from ProtoCentral Electronics // // Author: <NAME> // Copyright (c) 2020 ProtoCentral // // // This software is licensed under the MIT License(http:/...
// // tcpdatagram.cpp // // Reliable datagram service based on TCP. RPCs are implemented // on top of this service. // /* Original code: Copyright (c) 2014 Microsoft Corporation Modified code: Copyright (c) 2015-2016 VMware, Inc All rights reserved. Written by <NAME> MIT License Permission is hereby gr...
#include "mesh.h" void init_mesh(std::string name, Mesh_my &mesh) { printf("Initiating mesh...\n"); igl::readOBJ(name, mesh.vtx, mesh.rect); mesh.num_rect = mesh.rect.rows(); mesh.num_vtx = mesh.vtx.rows(); printf("%d %d %d %d\n", mesh.num_rect, mesh.num_vtx, mesh.vtx.cols(), mesh.rect.cols()); for (in...
// // Copyright (c) 2017 The Khronos Group 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
#include "CellCDecon.h" float *logTable ; const float bin_min = 0.0; const float bin_max = 1.0; const float bin_diff = bin_max - bin_min; const int bin_num = 200; void fillLog(float *logTable, int size) { for (int i=0;i<size;i++) { logTable[i]=0.5*log(2*PI*(i+1)/(size/100.0)); } } inline float logLikelihoodP...