text
stringlengths
8.71k
38.4k
// (C) 2018 ETH Zurich, ITP, <NAME> and <NAME> template <class V, class M> inline void kernel_core(V& psi, std::size_t I, std::size_t d0, std::size_t d1, std::size_t d2, std::size_t d3, std::size_t d4, std::size_t d5, M const& m) { std::complex<double> v[4]; v[0] = psi[I]; v[1] = psi[I + d0]; v[2] = psi[I + d1]; ...
#include "DriverReader.h" HANDLE DriverReader::hDeviceDrv = NULL; char DriverReader::targetProc[]; char DriverReader::previousTargetProc[]; uintptr_t DriverReader::DTBTargetProcess = 0; uintptr_t DriverReader::virtualSizeTargetProcess = 0; uintptr_t DriverReader::pBaseAddressTargetProcess = 0; uintptr_t DriverReader:...
//======================================================================== // // CairoFontEngine.cc // // Copyright 2003 Glyph & Cog, LLC // Copyright 2004 Red Hat, Inc // //======================================================================== //======================================================================...
//---------------------------------Spheral++------------------------------------ // Compute the volume per point based on the Voronoi tessellation. //------------------------------------------------------------------------------ #include "computeVoronoiVolume.hh" #include "Field/Field.hh" #include "Field/FieldList.hh" ...
#include <stdio.h> #include <iostream> #include <fstream> #include <SDL.h> #undef main #include <string> #include "glad.h" #include "path_common.h" #include "path_platform.h" #include "path_heaps.h" #include "path_navigator.h" #include "path_math.h" #include "path_render.h" #include "path_car.h" #include "path_car_ai.h...
#include "frametree.h" #include <algorithm> #include <regex> #include "client.h" #include "completion.h" #include "framedata.h" #include "frameparser.h" #include "ipc-protocol.h" #include "layout.h" #include "monitor.h" #include "stack.h" #include "tag.h" #include "tagmanager.h" #include "utils.h" using std::endl; u...
#include "WorldRenderer.h" #include "WorldRendererDebugger.h" #include "RenderStep.h" #include "scene/SceneRenderer.h" #include "input/InputManager.h" #include "input/BlockInteractions.h" #include "input/PlayerPosPersistence.h" #include "gui/GameUI.h" #include "gui/MenuBarHandler.h" #include "gui/MainWindow.h" #includ...
#include "Mainwindow.h" #include <QtWidgets> #include "Item.h" #include <QVector> #include <QList> #include <QScreen> #include <QHash> #include <cstdio> #include <QProcess> #include <QPair> #include "ItemWindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)/*, m_Workspace(new QPlainTextEdit(this)...
#include "terrainlab/SplatRenderer.h" #include <heightfield/HeightField.h> #include <unirender/ShaderProgram.h> #include <unirender/Texture.h> #include <unirender/ComponentDataType.h> #include <unirender/VertexInputAttribute.h> #include <shadertrans/ShaderTrans.h> #include <renderpipeline/UniformNames.h> #include <pai...
#include "blockMem.h" /* * Assignment Description: Simulate memory management on a small computer. * The memory restricted to 16MB of memory for the entire computer and * the first 3 MB of the memory addresses are reserved for the OS. The * memory is maintained in two STL linked lists which are pointers to * blo...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <Camera.h> #include <Model.h> #include <iostream> #include <vector> void RenderQuad(); void RenderCube(); // settings const unsigned int SCR_WIDTH = 1920; const unsign...
#include "utils.h" #include <cmath> #include <iostream> #include "constants.h" #include "error.h" // TODO: put all this in a namespace or no? bool IsOrthonormal(const Matrix3d& R) { auto m = R.transpose() * R; return m.isIdentity(kAllowNumericalError); } Matrix3d CrossMat(const Vector3d& a) { Matrix3d m; /...
//===----------------------------------------------------------------------===// // // 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 "duckdb.hpp" #ifndef DUCKDB_AMALGAMATION #include "duckdb/planner/logical_operator.hpp" #include "duckdb/catalog/catalog_entry/table_catalog_entry.hpp" #include "duckdb/planner/operator/logical_aggregate.hpp" #include "duckdb/planner/operator/logical_get.hpp" #include "duckdb/function/table/table_scan.hpp" #in...
// Copyright 2015 the V8 project 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 "src/codegen.h" #include "src/compiler/all-nodes.h" #include "src/compiler/common-operator.h" #include "src/compiler/diamond.h" #include "src/c...
#include <dirent.h> #include <glob.h> #include <sys/stat.h> #include <cstdio> #include <cstdlib> #include <iostream> #include <optional> #include <sstream> #include <string> #include <thread> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/strings/numbers.h" #include "parse_utils.h" #includ...
#include <string.h> #include <stdlib.h> #include <pthread.h> #include <signal.h> #include <errno.h> #include <unistd.h> #include <string.h> //#include "gpionum.h" /////gpio #include <stdio.h> #include <iostream> #include <syslog.h> //added by hyo #include <fcntl.h> //added by hyo #include "vthread.h" #include "socke...
#include "stdio.h" #include "memory.h" #include "time.h" #include "stdlib.h" #define PLAIN_FILE_OPEN_ERROR -1 #define KEY_FILE_OPEN_ERROR -2 #define CIPHER_FILE_OPEN_ERROR -3 #define OK 1 typedef char ElemType; //初始置换表IP int IP_Table[64] = { 57, 49, 41, 33, 25, 17, 9, 1, 59, 51, 43, 35, 27, 19, 11, 3...
/** * @brief * [A* search algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm) * @details * A* is an informed search algorithm, or a best-first search, meaning that it * is formulated in terms of weighted graphs: starting from a specific starting * node of a graph (initial state), it aims to find a path ...
//============================================================================= // // AKAZE.cpp // Authors: <NAME> (1), <NAME> (2) // Institutions: Toshiba Research Europe Ltd (1) // TrueVision Solutions (2) // Date: 07/10/2014 // Email: <EMAIL> // // AKAZE Features Copyright 2014, <NAME>, <NAME> // All R...
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** 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 Licen...
#include "display_device.h" #include "stm32f3xx_hal.h" #include "spi.h" #include "gpio.h" #include "logger.h" #include "assert.h" #include <string.h> #include <diag/Trace.h> const RGBColor RGBColor::BLACK(0, 0, 0); const RGBColor RGBColor::RED(255, 0, 0); const RGBColor RGBColor::GREEN(0, 255, 0); const RGBColor RGBCo...
/* * BP-Email.cc * * Created on: Aug 17, 2010 * Author: <NAME> * */ #include "../../../include/BP-Main.h" // Global session object static vmime::ref <vmime::net::session> g_session = vmime::create <vmime::net::session>(); #if VMIME_HAVE_SASL_SUPPORT // SASL authentication handler class interactiveAut...
/***************************************************************/ /* */ /* AISDE - ALGORYTMY GRAFOWE */ /* POSZUKIWANIE NAJ<NAME>CIEŻKI W GRAFIE SKIEROWANYM */ /* ...
////////////////////////////////////////////////// // Blabber [TalkView.cpp] ////////////////////////////////////////////////// #include <cstdio> #include <ctime> #include <malloc.h> #include <stdlib.h> #include <Box.h> #include <be_apps/NetPositive/NetPositive.h> #include <FindDirectory.h> #include <GridView.h> #inc...
/*** Include ***/ /* for general */ #include <cstdint> #include <cstdlib> #include <cmath> #include <cstring> #include <string> #include <vector> #include <array> #include <algorithm> #include <chrono> #include <fstream> #include <memory> /* for OpenCV */ #include <opencv2/opencv.hpp> #include <opencv2...
/* * Copyright (c) 2006-2009 <NAME> http://www.box2d.org * Copyright (c) 2013 Google, Inc. * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this...
/*************************************************************************************************************************************** **************************************************************************************************************************************** This is the game class. *Only* in-game events...
/** * ofxMPMFluid.cpp * The MIT License (MIT) * Copyright (c) 2010 respective contributors * * 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 l...
#include "vtkConeSource.h" #include "vtkCylinderSource.h" #include "vtkLookupTable.h" #include "vtkMantaActor.h" #include "vtkMantaCamera.h" #include "vtkMantaPolyDataMapper.h" #include "vtkMantaProperty.h" #include "vtkMantaRenderer.h" #include "vtkPolyDataNormals.h" #include "vtkRenderWindow.h" #include "vtkRenderWin...
#include <iostream> #include <chrono> //#include <glad/glad.h> #include <Shader.h> #include <Camera.h> #include <Model.h> #include <GLFW/glfw3.h> //#include <glm/glm.hpp> //#include <glm/gtc/matrix_transform.hpp> //#include <glm/gtc/type_ptr.hpp> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" ...
// 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 ...
/* Copyright (c) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD (revised) license as described in the file LICENSE. */ #include "search_dep_parser.h" #include "multiclass.h" #include "memory.h" #include "example.h" #include "gd.h" #i...
#include "global.h" #include "RageLog.h" #include "RageSoundReader_MP3.h" #include "RageTimer.h" #include "RageUtil.h" #include "RageSoundReader_Preload.h" #include "RageSoundReader_Resample_Good.h" #include "test_misc.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> void ReadDat...
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
// --------------------------------------------------------------------- // // Copyright (c) 2020 - 2022 by the IBAMR developers // All rights reserved. // // This file is part of IBAMR. // // IBAMR is free software and is distributed under the 3-clause BSD // license. The full text of the license can be found in the f...
/** * ==================================================================== * Author: <NAME>, 2019 (<EMAIL>) * ==================================================================== */ #include <algorithm> #include <chrono> #include <iomanip> #include <iostream> #include <fstream> #include <memory> #include <numeric>...
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // this include is necessary to get MPI included before anything else to support intel MPI #include "hoomd/ExecutionConfiguration.h" #include <iostream> #inclu...
#include "dxt.h" // configuration options for DXT encoder. set them in the project/makefile or just define // them at the top. // STB_DXT_USE_ROUNDING_BIAS // use a rounding bias during color interpolation. this is closer to what "ideal" // interpolation would do but doesn't match the S3TC/DX10 spec. old vers...
// BLETest.cpp : Defines the entry point for the console application. // #include <string> #include <iostream> #include <fstream> #include <chrono> #include <ctime> #include <iomanip> #include "date.h" #include "ble_util.h" #include "fido_apduresponses.h" #include "U2FTests.h" #include "BLETransportTests.h" #inclu...
/******************************************************************************** * Name: <NAME> * Date: 11/30/07 * Program: 5 * See readme for details on input and output */ #include <iostream> #include <iomanip> #include <time.h> #include <fstream> #include <vector> #include <string> #include <stdexcept> using n...
// 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 appl...
/********************************************************************** will add copyright bs later $Id: main.cpp 89 2016-01-12 00:20:40Z reddawg $ **********************************************************************/ #include "ogPixCon.h" #include "objgfx40.h" #include "ogFont.h" #include "ogSprite.h" #include "og...
/* jsplayingfield.cpp * @author <NAME> * Version : $Id$ */ #include "playingfield.h" #include <cmath> #include <constants.h> #include <cassert> #include <algorithm> using namespace std; /* * _lengthInsideBounds * _penaltyLength * -x x * |------------------------| * | | ...
/****************************************************************************** ** Copyright (C) 2000 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 1.0 ** ** Author: <NAME> ** ** Date: 03/02/00 ** ** File: cur_filt...
//============================================================================================= // Szamitogepes grafika hazi feladat keret. Ervenyes 2012-tol. // A //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // sorokon beluli reszben celszeru garazdalkodni, mert a tobbit ugyis toroljuk. // A beadott progra...
#include "../search/search.h" #include "../core/fancymath.h" #include "../search/searchnode.h" #include "../search/patternbonustable.h" //------------------------ #include "../core/using.h" //------------------------ uint32_t Search::chooseIndexWithTemperature(Rand& rand, const double* relativeProbs, int numRelative...
#include "Client.h" #include "Common.h" #include "ScreenArea.h" #include "ScreenGrabber.h" #include "Util.h" #include "Level.h" #include "Memory.h" #include "MemorySensor.h" #include <iostream> #include <algorithm> #include <thread> namespace { const std::size_t MaxChatLength = 200; } // ns ScreenClient::ScreenCl...
#include "JunctionMap.h" #include <string> #include <fstream> #include <sstream> #include <assert.h> using std::ofstream; using std::ifstream; using std::istringstream; using std::string; ContigGraph* JunctionMap::buildContigGraph(){ ContigGraph* contigGraph = new ContigGraph(); fprintf(stderr, "\nBuilding con...
// Copyright 2020 The Dawn 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 agreed t...
// Scintilla source code edit control /** @file LexNsis.cxx ** Lexer for NSIS **/ // Copyright 2003 - 2005 by <NAME> <angelo [at] spaceblue [dot] com> // Last Updated: 03/13/2005 // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <stri...
/* * Copyright 2019 OmniSci, 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 or agreed t...
/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as publi...
// // #define _USE_MATH_DEFINES #include <math.h> #include <stdio.h> #include <string.h> #include "SDL.h" #include "SDL_opengl.h" #include "imgui.h" #include "BucketMeshTool.h" #include "Sample.h" #include "Recast.h" #include "RecastDebugDraw.h" #include "DetourNavMesh.h" #include "DetourNavMeshBuilde...
/********************************************************************** Audacity: A Digital Audio Editor Mix.cpp <NAME> <NAME> <NAME> *******************************************************************//** \class Mixer \brief Functions for doing the mixdown of the tracks. *//****************************...
/* Copyright (c) 2003, 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 distributed i...
/** * Copyright (C) 2012 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful...
//----------------------------------------------------------------------------- //@file // PluginLister.cpp // //@author // <NAME> aka 'martignasse' // //@brief // Implementation of the PluginLister class. // //HISTORIC // 2013/05/15 // first release for Hollyhock CPP SDK 6.00.226 // //IMPORTANT // This file is...
/* d-convert.cc -- Data type conversion routines. Copyright (C) 2006-2020 Free Software Foundation, Inc. GCC 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, or (at your option) any later vers...
/* * Wire Connections * * ============================ * PWM Driver * ---------------------------- * Device Port Arduino Port * ---------------------------- * SCL A5 * SDA A4 * * ============================ * OLED Display * ---------------------------- * Device Port ...
// *************************************************************************** // BamMultiReader_p.cpp (c) 2010 <NAME>, <NAME> // Marth Lab, Department of Biology, Boston College // All rights reserved. // --------------------------------------------------------------------------- // Last modified: 5 April 2011 (DB) //...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "xfa/fgas/graphics/cfgas_gegraphics.h" #include <cmath> #include <me...
//======================================================================================== // Athena++ astrophysical MHD code // Copyright(C) 2014 <NAME> <<EMAIL>> and other code contributors // Licensed under the 3-clause BSD License, see LICENSE file for details //=====================================================...
#include <stdarg.h> #include <stdio.h> #include <math.h> #include "libtcod.hpp" #include "gui/gui.hpp" #include "operation.hpp" TCODHeightMap *hm=NULL, *hmold=NULL; TCODNoise *noise= NULL; TCODRandom *rnd=NULL, *backupRnd=NULL; TCODConsole *guicon=NULL; bool greyscale=false; bool slope=false; bool normal=...
/* * This file is part of the Simutrans-Extended project under the Artistic License. * (see LICENSE.txt) */ #include "../simdebug.h" #include "../simcity.h" #include "../simmenu.h" #include "../simworld.h" #include "../simcolor.h" #include "../dataobj/translator.h" #include "../obj/leitung2.h" #include "../dataobj/...
/* * This file started out as a driver by <NAME>. See header file for * my change list. * ---<NAME> */ /* BME280.cpp This code records data from the BME280 sensor and provides an API. This file is part of the Arduino BME280 library. Copyright (C) 2016 <NA...
#include "pico_core.h" #include <assert.h> #include <string.h> #include <algorithm> #include <array> #include "config.h" #include "log.h" #include "pico_audio.h" #include "pico_cart.h" #include "pico_gfx.h" #include "pico_memory.h" #include "pico_script.h" #include "utils.h" static pico_api::colour_t* backbuffer = ...
//============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk 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 Foundation; ei...
#include <iostream> #include <stdio.h> #include <net/messages.h> #include <net/SocketWrapper.h> #include <openssl/rand.h> #include <openssl/pem.h> #include <thread> #include <mutex> #include <vector> #include <poll.h> #include <sstream> #include <dirent.h> #include <termios.h> #include <utils.h> #define PASSWORD_LEN 4...
/**************************************************************************** * 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...
// qspline.cpp // v-Orientationernion spline interpolation // Ref. "v-Orientationernion Orientationernions for the Smooth Interpolation of Orientations" // <NAME>, IEEE Trans. on Vis. and C.G., 10(2), 2004. // Dec 2005 // <EMAIL> #include "qspline.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #includ...
// // IWLFw.cpp // AppleIntelWifiAdapter // // Created by 钟先耀 on 2020/2/8. // Copyright © 2020 IntelWifi for MacOS authors. All rights reserved. // #include "IWLMvmDriver.hpp" #include "IWLMvmSmartFifo.hpp" #include <sys/param.h> static bool iwl_wait_phy_db_entry(struct iwl_notif_wait_data *notif_wait, ...
#include "camera.h" void picam::process(){ vector<vector<Point> > contours; Rect boundRect; Mat kernel = Mat::ones(3, 3, CV_8UC1); int prevType = 1, prevValue = 0, showFrame = 0, showFrame2 = 3, trackType; int stateSize = 6; int measSize = 4; int contrSize = 0; //unsigned int end = 0, begin = 0; doub...
#include"requation.h" #include<cmath> #include"simplifymesh.h" #include<sstream> #define INF 99999999; #include"zjucad/matrix/include/io.h" using namespace std; using namespace zjucad::matrix; // bool operator>(const ident &a, const ident &b){ // return a. value > b. value; // } bool operator <(const ident &a,cons...
//===- LinalgInterfaces.cpp - Linalg interfaces implementation ------------===// // // 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 <iostream> #include <cmath> #include <cstdlib> #include <fstream> #include <vector> #include <algorithm> #include <string.h> #include <bits/stdc++.h> #include <sys/stat.h> #include <sys/types.h> #include <dirent.h> #include <unordered_map> #include <unistd.h> #include <sys/resource.h> #include <sys/...
#include "RemoteProcessClient.h" #include <algorithm> #include <cstdlib> using namespace model; using namespace std; const bool LITTLE_ENDIAN_BYTE_ORDER = true; const int INTEGER_SIZE_BYTES = sizeof(int); const int LONG_SIZE_BYTES = sizeof(long long); RemoteProcessClient::RemoteProcessClient(string host...
#include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> #include <covis/covis.h> using namespace covis; using namespace cv; #include <cassert> using namespace std; #include <pcl/common/time.h> #include <pcl/io/ply_io.h> #include <pcl/visualization/pcl_visualizer.h> using namespace pcl; using namespace ...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ /* 原代码来自NewReno.cpp 目前没有对要存储的数据进行处理,直接保存了 可以简单扩展到其他传统方法 但,我不知道怎么测试。。。大概没问题。。。起码没语法问题。。。 然后更新了c调用tf的内容, 需要模型保存的地址 */ #inc...
#include <cmath> #include <iostream> #include "PixelBridgeFeatures.h" #include "Configuration.h" #include "DctTiler.h" #define PI 3.14159265 #define PI_8 0.392699081 // For each scale, determines the optimal amount of planes to zero out. //#define OPTIMAL_ZEROING // This will turn on the simple truncation used ...
// // VS3DImplicit.cpp // MultiTracker // // Created by <NAME> on 15/1/27. // // #include "VS3D.h" namespace { Mat3d skewSymmetric(const Vec3d & v) { Mat3d ss = Mat3d::Zero(); ss(0, 1) = -v(2); ss(1, 0) = v(2); ss(0, 2) = v(1); ss(2, 0) = -v(1); ss(1, 2) = ...
/** * @file preprocess.cpp * @author <NAME> * @date 2019-03-16 */ #include "preprocess.hpp" //#include <filesystem> // for std::copy, C++17 introduces std::copy_file // Project files #include "analysis.hpp" #include "BBHelper.hpp" #ifdef USE_CBC #include "CbcHelper.hpp" #endif #ifdef USE_GUROBI #include "GurobiHe...
/**************************************************************************** * Copyright (C) 2015 Intel Corporation. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Soft...
//LIC// ==================================================================== //LIC// This file forms part of oomph-lib, the object-oriented, //LIC// multi-physics finite-element library, available //LIC// at http://www.oomph-lib.org. //LIC// //LIC// Copyright (C) 2006-2021 <NAME> and <NAME> //LIC// //LIC// This lib...
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofSetVerticalSync(true); ofBackground(20); // GL_REPEAT for texture wrap only works with NON-ARB textures // ofDisableArbTex(); texture.load("of.png"); texture.getTexture().setTextureWrap( G...
/*************************************************************************** * Copyright 1998-2020 by authors (see AUTHORS.txt) * * * * This file is part of LuxCoreRender. * * ...
/**************************************************************************** * * Copyright (c) 2012 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...
/* * This code is based on RadioLib by <NAME> * https://github.com/jgromes/RadioLib */ #include "cc1101.h" #include "cc1101consts.h" static const uint8_t SPIreadCommand = CC1101_CMD_READ; static const uint8_t SPIwriteCommand = CC1101_CMD_WRITE; [[noreturn]] static void fail(const char *msg) { Serial.print("FA...
// Generated from /POI/java/org/apache/poi/hssf/record/EscherAggregate.java #pragma once #include <fwd-POI.hpp> #include <java/lang/fwd-POI.hpp> #include <java/util/fwd-POI.hpp> #include <org/apache/poi/ddf/fwd-POI.hpp> #include <org/apache/poi/hssf/record/fwd-POI.hpp> #include <org/apache/poi/util/fwd-POI.hpp> #incl...
/********************************************************************** * MX Date/Time application. ********************************************************************** * Copyright (C) 2019 by AK-47 * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in com...
#include "i8086sim.h" KInstructionID K8086VM::InsID[] = { {"MOV: Register/Memory to/from Register", {0x88, 0x00}, {0xFC, 0x00}, 2}, //100010dw|mod reg r/m {"MOV: Immediate to Register/Memory", {0xC6, 0x00}, {0xFE, 0x38}, 3}, //1100011w|mod 000 r/m|data|data if w=1 {"MOV: Immediate to Register", {0x...
/******************************************************************************* * Copyright 2016-2020 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.apa...
/******************************************************************************* Bare Conductive MPR121 library ------------------------------ MPR121.cpp - MPR121 class implementation file Based on code by <NAME> and plenty of inspiration from the Freescale Semiconductor datasheets and application notes. ...
#include "DetectorConstruction.hh" #include "DetectorMessenger.hh" #include "Global.hh" #include "G4Material.hh" #include "G4Tubs.hh" #include "G4Box.hh" #include "G4Sphere.hh" #include "G4LogicalVolume.hh" #include "G4PVPlacement.hh" #include "G4GeometryManager.hh" #include "G4PhysicalVolumeStore.hh" #include "G4L...
/* Copyright (C) 2010 Ion Torrent Systems, Inc. All Rights Reserved */ #include <cassert> #include <cmath> #include <iostream> #include <iostream> #include <iomanip> #include <limits> #include "PhaseSolve.h" #include "IonErr.h" #define PHASE_DEBUG 0 PhaseSolve::PhaseSolve() { signal.resize(0); predictedSignal.re...
/* ============================================================================================ This class points to outside MATLAB data which contains info about the finite element data. It will also create a DoF numbering for that element. NOTE: portions of this code are automatically generated! ...
//======================================================================== // Projet C/C++ // //------------------------------------------------------------------------ // Copyright (c) 2013-2014 <NAME> (<NAME>, <NAME>) // IRISA - UBS / IUT Informatique Vannes //========================================================...
#include <fcntl.h> #include <stdio.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <termios.h> #include <unistd.h> #include <netinet/in.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/types.h> #include "mavlink.h" #include "util.h" #if (defined __MACH__ &&...
#include<iostream> #include<iomanip> // setw #include<vector> // at, begin, end #include<string> // to_string #include<algorithm> // shuffle, all_off, replace, sort, unique, count, max_element, equal #include<random> // random_device, mt19937_64 #include<cmath> // abs #include<numeric> // adjacent_difference #include<...
/*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>....