text
stringlengths
3.08k
12.5k
/* ImportanceJacobianField.cpp <NAME> 10/29/2010 */ #include <math.h> #include "ImportanceJacobianField.hpp" #include "SampledDistanceField.hpp" #include "SequentialCounter.hpp" #include "Utility.hpp" #include "Exception.hpp" #include "SobelFilter.hpp" ImportanceJacobianField::ImportanceJacobianField(const D...
// Concord // // Copyright (c) 2018 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the "License"). // You may not use this product except in compliance with the Apache 2.0 License. // // This product may include a number of subcomponents with separate copyright // ...
#include <iostream> #include <limits.h> #include <opencv2/opencv.hpp> #include <string> #define PI 3.14159265 using namespace cv; Mat initial_frame, hsv_frame, gray_frame, canny_frame, out_frame; VideoCapture cap; int thresh_l_R = 0, thresh_l_G = 0, thresh_h_R = 255; int thresh_l_B = 0, thresh_h_B = 255, thresh_h_G...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
#include "VoiceCodec_SILK.h" #include <cstdlib> #include <cstring> VoiceCodec_SILK::VoiceCodec_SILK(size_t quality) { int size; SKP_Silk_SDK_Get_Encoder_Size(&size); m_encState = malloc(size); SKP_Silk_SDK_InitEncoder(m_encState, &m_encControl); m_sampleRate = (quality == 10 ? 16000 : 8000); m_minSampl...
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it under...
#include <fstream> #include <string> #include <algorithm> #include "dbg.h" #include "Cell3D.h" #include "Form.h" #include "OldCorr.h" #include "OldCorrIO.h" double outputsize = 1.e3; //#define XAssert(s) Assert(s) #define XAssert(s) #ifdef MEMDEBUG AllocList* allocList; #endif int recursen=-1; #include "Process2.h...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
/********************************************************** Fast PWM Test Library Written by Anonymous https://gist.github.com/anonymous/f5dc94881438846cf684#file-fastpwmtest-ino Modified by <NAME> aka NailMan ********************************************************** This Library used for ATMega32U...
#include <bits/stdc++.h> using namespace std; struct Graph { struct Edge { int u, v; int cost; Edge(int _u, int _v, int _cost) : u(_u), v(_v), cost(_cost) {} }; int n, m; vector<vector<int>> g; vector<Edge> e; Graph():n(0), m(0) {} Graph(int _n) : n(_n), m(0) { ...
#include<iostream> #include<list> #include<deque> #include<vector> using namespace std; template<class I> void print (const I & start, const I & end) { I it; for(it = start; it != end; ++it) { cout<< *it << " "; } cout<<endl; } bool deleteEven(int value) //for remove_if { if (valu...
#include "utils.h" #include "config.h" #include "memory.h" #include <cstring> #include <fstream> #include <iostream> Memory::Memory() { initialize(); } Memory::~Memory() { } void Memory::initialize() { // NOTE: It seems the real hardware has random data in memory at startup but let's clear it anyway //std::memset...
#include "status_led.h" #include "user_config.h" #include "debugger.h" #include "mode_switch.h" #include "identifiers.h" #include "smart_meter_connector.h" #include "api_connector.h" #include "configuration_server.h" // seconds passed after last meter data was read to go back to idle state LED: 20 seconds #define LED...
// Copyright (C) 2008-2018 <NAME> // Distributed under the Boost Software License, Version 1.0 (see accompanying // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt). // See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html #include <boost/contract.hpp> #include <vector> #...
/* * Sobol Quasi-random Number Generator example * * Based on CUDA code submitted by <NAME>, Oxford University, United Kingdom * http://people.maths.ox.ac.uk/~gilesm/ * * and C code developed by <NAME>, University of Waikato, New Zealand * and <NAME>, University of New South Wales, Australia * http://web.maths....
/* Copyright (c) 2016, <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 code must retain the above copyright notice, this list of conditions and the followin...
#pragma once #include <cstdint> #include "fwddec.hpp" #include "extensible.hpp" #include "vector.hpp" #include "gta\natives.hpp" #pragma pack(push, 1) namespace rage { # pragma warning(push) # pragma warning(disable : 4201) // nonstandard extension used: nameless struct/union union netAddress { std::uint32_t m_raw...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; const int di[] = { -1, 0, 1, 0 }; const int dj[] = { 0, -1, 0, 1 }; const int INF = 1000; int dist[7*50][7*50]; int m, n, sz; inlin...
/* Book: Game and Graphics Programming for iOS and Android with OpenGL(R) ES 2.0 Author: <NAME> ISBN-10: 1119975913 ISBN-13: 978-1119975915 Publisher: <NAME> & Sons Copyright (C) 2011 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held...
// Copyright (c) 2020 The Orbit 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 <absl/strings/str_format.h> #include <gtest/gtest.h> #include <filesystem> #include "ElfUtils/LinuxMap.h" #include "OrbitBase/ExecutablePath.h...
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2009 <NAME> http://bulletphysics.org 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 a...
/** @file @author <NAME> */ #include "httpconnectionhandler.h" #include "httpresponse.h" using namespace finch; HttpConnectionHandler::HttpConnectionHandler(const QSettings *settings, HttpRequestHandler *requestHandler, const QSslConfiguration* sslConfiguration) : QObject() { Q_ASSERT(settings!=nullptr);...
#include <isl/set.h> #include <isl/union_map.h> #include <isl/union_set.h> #include <isl/ast_build.h> #include <isl/schedule.h> #include <isl/schedule_node.h> #include <tiramisu/debug.h> #include <tiramisu/core.h> #include <string.h> #include <Halide.h> #include "wrapper_test_91.h" using namespace tiramisu; /** *...
auto EpsonRTC::rtcReset() -> void { state = State::Mode; offset = 0; resync = 0; pause = 0; test = 0; } auto EpsonRTC::rtcRead(uint4 addr) -> uint4 { switch(addr) { default: case 0: return secondlo; case 1: return secondhi | batteryfailure << 3; case 2: return minutelo; case 3: return minutehi...
#include "Level.h" bool Level::Init() { if (!LoadAssets()) return false; if (!GenerateBlocks()) return false; return true; } bool Level::LoadAssets() { if (!(background = Utils::LoadAsset("Models\\sfondo.obj"))) return false; skyList = Utils::GenerateList(background, background->mRootNode->mChildren[0])...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTileImageFilter.h" #include "SkBitmap.h" #include "SkCanvas.h" #include "SkDevice.h" #include "SkOffsetImageFilter.h" #include "SkReadBuffer.h" #include "SkWriteBu...
// Copyright (c) 2012 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 "remoting/host/desktop_resizer.h" #include <map> #include <windows.h> #include "base/logging.h" namespace { // TODO(jamiewalch): Use the c...
// Inject.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <tlhelp32.h> #include <memory> #include <functional> const UINT WM_PREUNLOAD = WM_APP + 999; // 提升进程特权,否则在XP中无法打开进程 BOOL EnablePrivilege(BOOL enable) { // 得到令牌句柄 HANDLE hToken = NULL; if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILE...
/* * Copyright 2010 <NAME>, <EMAIL> * All rights reserved. Distributed under the terms of the MIT License. */ #include <errno.h> #include <fcntl.h> #include <unistd.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> static uint8_t *sCopyBuffer = NULL; static si...
/* ** MouseHand.cpp ** mouse hand functions. ** ** Jack, 2002/07/16. */ #include "mainfun.h" #include "NetGE_MainFunc.h" #include "crange.h" #include "clientmain.h" #include "errormsg.h" #include "ui.h" #include "mousehand.h" #include "qqmain.h" #include "Client_Item.h" #include "UIStore.h" /*******...
#include "ComplexPlane.h" #include "glad/glad.h" #include "CommonUtil.h" #include "GraphicalUtil.h" #include <glm.hpp> #include <vector> static float quadVertices[] = { -1.0f, 1.0f, -1.0f, -1.0f, 1.0f, -1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f, 1.0f }; static float quad...
#include "../include/SQLiteImplementation.h" #include <iostream> #include <iomanip> #include <sstream> SQLiteImplementation::~SQLiteImplementation(){ disconnect(); } void SQLiteImplementation::connect(std::string uri){ m_ErrorCode = sqlite3_open_v2(uri.c_str(), &m_DataBase, SQLITE_OPEN_READWRITE | SQLITE_OPEN...
/* RTcmix - Copyright (C) 2005 The RTcmix Development Team See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for the license to this software and for a DISCLAIMER OF ALL WARRANTIES. */ #include <XDisplay.h> #include <X11/cursorfont.h> #include <stdio.h> #include <string.h> #include <limits.h> #include ...
// // $Id$ // // // Original author: <NAME> <<EMAIL>> // // Copyright 2009 Center for Applied Molecular Medicine // University of Southern California, Los Angeles, CA // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may ob...
// // xml_reader.cpp - xml reader implementation // // lecui user interface library, part of the liblec library // Copyright (c) 2019 <NAME> (alecmus at live dot com) // // Released under the MIT license. For full details see the // file LICENSE.txt // #include "xml_parser.h" #include <boost/property_tree/ptree.hpp> #...
/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
/* Copyright 2019 Inspur Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/************************************************************************** * * ::::::::: :::::::::: ::::::::::: ::::::::: * :+: :+: :+: :+: :+: :+: * +:+ +:+ +:+ +:+ +:+ +:+ * +#++:++#: :#::+::# +#+ +#+ +:+ * +#+ ...
/** * @file HumanDetector.cpp * @author Driver: <NAME>, Navigator: <NAME> * @brief Library for HumanDetector class * @version 0.1 * @date 2021-10-14 * * @copyright Copyright (c) 2021 * */ /* Monocular Human Position Estimator Copyright © 2021 Permission is hereby granted, free of charge, to any person obt...
#include <iostream> #include <vector> #include <map> #include "node.h" template<typename T> bool contains(std::vector<T> v, T x) { return std::find(v.begin(), v.end(), x) != v.end(); } namespace dijkstra { node* findMinOnQueue(std::vector<std::pair<node*, double>> queue); int findOnQueue(std::vector<std::pair<nod...
#include <iostream> #include <vector> #include <algorithm> #include <string> #include <unordered_set> #include <tuple> #include <functional> #include <bitset> #include <complex> #include <list> #include <map> using namespace std; using std::ostream; constexpr int _debug_ = 0; struct Customer { ...
/* * Copyright (c) 2006, 2011, Oracle and/or its affiliates. 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 * no...
/*************************************************************************** # Copyright (c) 2020, 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...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <cstddef> #include <memory> #include <optional> #include <string> #include "DataStructures/Tensor/Tensor.hpp" #include "Domain/CoordinateMaps/TimeDependent/ShapeMapTransitionFunctions/ShapeMapTransitionFunction.hpp" #include ...
// [WriteFile Name=DistanceMeasurementAnalysis, Category=Analysis] // [Legal] // Copyright 2018 Esri. // 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/LICEN...
#include "messagehandler.h" #include <QXmlStreamReader> #include <QJsonObject> #include <QJsonDocument> #include <QJsonArray> #include <algorithm> // This function will extract description information of dial response // param dial_rest_url: QUrl of dial rest address // param device_description: QByteArray of receive...
/** * @file containers.cpp * * @copyright SPDX-FileCopyrightText: 2022 Battelle Memorial Institute * @copyright SPDX-FileCopyrightText: 2022 University of Washington * * SPDX-License-Identifier: BSD-3-Clause * * @authors * <NAME> * */ static constexpr const char USAGE[] = R"(containers.exe: containers...
#include "NCSansModelPicker.hh" #include "NCSansHelper.hh" //Include various utilities from NCrystal's internal header files: #include "NCrystal/internal/NCString.hh" #include <vector> bool NCP::SansModelPicker::isApplicable( const NC::Info& info ) { //Accept if input is NCMAT data with @CUSTOM_<pluginname> sectio...
#ifndef __MEM_NODE_HPP__ #include "mem_node.hpp" #endif // __MEM_NODE_HPP__ #ifndef __MEM_CLST_HPP__ #include "mem_clst.hpp" #endif // __MEM_CLST_HPP__ #ifndef __MEM_BMAP_HPP__ #include "mem_bmap.hpp" #endif // __MEM_BMAP_HPP__ #include <limits.h> #include <stddef.h> #include <stdio.h> extern si...
#include <omp.h> #include <fmt/core.h> #include <tsl/robin_set.h> #include <algorithm> #include <limits> #include "hnswlib.h" #include "hnsw/utils.h" #include "stopwatch.h" static void compute_stats(const char* graph_file, const char* top_list_file) { fmt::print("Compute graph stats of {}\n", graph_file); a...
/* * Copyright (c) 2008 <NAME> and <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 code must retain the above copyright * notice, this list of conditions ...
#include <iostream> #include <algorithm> #include <vector> #include <string> #include "MultiplicityPlotMacros.h" #include "DPGAnalysis/SiStripTools/interface/CommonAnalyzer.h" #include "TFile.h" #include "TH1D.h" #include "TProfile.h" #include "TDirectory.h" #include "TCanvas.h" #include "TStyle.h" #include "TLegend.h"...
/* * Grid.cpp * =======================================================*/ #include "MPI.hpp" #include "Grid.hpp" #include "common.hpp" #include "Operator.hpp" #include "op_define.hpp" #include "utils/utils.hpp" #define PSU3D(x) oa::funcs::make_psudo3d(x) void Grid::init_grid(char type, const ArrayPtr& dx, ...
/* * control.c * * Created on: 25 Mar 2018 * Author: koponenl */ #include <stdint.h> #include "rpi.h" //#include "control.h" #include "peripherals.h" #include "fsl_flexcomm.h" #define WEAK __attribute__ ((weak)) #define RING_SIZE 32 static volatile uint8_t fifo_rx_ring[RING_SIZE]; static volatile int fifo...
/** * Saliency Detection Node * * This node performs localization based on * Visual Attention Algorithm from an HSV image. * It yields a saliency map, * and localization info of each detected entities. * */ #include <ros/ros.h> #include <image_transport/image_transport.h> #include <visor/saliency_det_nod...
#include <iostream> #include <cmath> #include <ctime> #include <cstdlib> #include <cstring> using namespace std; void lapse(double duration) { time_t start, end; start = clock(); end = clock(); while (1) { if ((end - start) / CLOCKS_PER_SEC >= duration) break; end = clock(); } } inline d...
// PortWizardaw.cpp : implementation file // #include "stdafx.h" #include "PortWizard.h" #include "PortWizardaw.h" #include <atlbase.h> #ifdef _PSEUDO_DEBUG #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif // This is called immediately after the custom AppWizard is loaded. Initialize // the state of th...
//===--- ASTContextTests.cpp ------------------------------------*- C++ -*-===// // Part of the Sora project, licensed under the MIT license. // See LICENSE.txt in the project root for license information. // // Copyright (c) 2019 <NAME> //===----------------------------------------------------------------------===// ...
#pragma once #include <sys/syscall.h> #include <numa.h> #include <numaif.h> #include <sys/mman.h> #include <thread> #include <iostream> #include <sstream> #include <fstream> #include <vector> #include <set> #include <memory> #include <algorithm> #include <omp.h> #include "log.hpp" #include "type.hpp" #include "com...
#include "player.hpp" #include <glm/gtx/fast_trigonometry.hpp> #include <glm/gtx/rotate_vector.hpp> #include <random> #include "../../input.hpp" extern Input globalInput; void Player::leftKeyDown() { color = glm::vec4{0.0f, 0.5f, 1.0f, 1.0f}; printf("[leftKeyDown] changeDirection, %f\n", A[0]); i...
#include "jaro_winkler_time.h" #define SCALING_FACTOR 0.1 class myComparator { public: bool operator() (const std::tuple<float, std::tuple<int, std::string, std::string, std::string, std::string>>& tuple1, const std::tuple<float, std::tuple<int, std::string, std::string, std::string, std::string...
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2020, STEREOLABS. // // All rights reserved. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIE...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
/* * Copyright (C) 2016, 2017 Computer Graphics Group, University of Siegen * Written by <NAME> <<EMAIL>> * * 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, includin...
// Copyright 2011 The Kyua Authors. // 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 conditio...
/* VTX Input Plugin for Audacious * * Copyright (C) 2002-2004 <NAME> * Copyright (C) 2010 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the ...
#include "CController.h" #define BIT_MULTIPLIER pow(2,GENE_LENGTH) //----------------------------- Render ---------------------------------- // // renders the tiddlywink on a DC //----------------------------------------------------------------------- void STiddlywink::Render(HDC &surface) { Ell...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * 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 ...
#include<fstream> #include <cassert> #include "evalFunc.h" // ofstream outFile2("output_eva1.txt"); vector<ll> weight; // map<pii,int> scoreTable = { {{3,0},10},{{3,1},9},{{3,2},8},{{2,0},7},{{2,1},6},{{1,0},6},{{2,2},5},{{1,1},5},{{0,0},5},{{0,1},4},{{1,2},4},{{0,2},3},{{2,3},2},{{1,3},1},{{0,3},0}}; vector<pii> dire...
#include "MainWindow.h" #include <Application.h> #include <Message.h> #include <StringView.h> #include <Layout.h> #include <Button.h> #include <String.h> #include "../apisrc/PluginManager.h" #include "../pluginsrc/HaikuProtocol.h" #include "../pluginsrc/LimerickProtocol.h" #include <LayoutBuilder.h> #include <Layout...
/*============================================================================== Copyright 2018 by <NAME> For more information visit www.rabiensoftware.com ==============================================================================*/ using namespace jpeglibNamespace; using namespace pnglibNamespace; //========...
/** * Example for flow reading and visualization. The command line tool converts all * .flo files in the given directory to .txt files (stored using cv::FileStorage) * and creates visualizations as .png images. * * Usage: * $ ./cli/cli --help * Allowed options: * --help produce help message *...
/* * (C) Copyright 1996-2016 ECMWF & INPE. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status a...
/********** This library 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; either version 2.1 of the License, or (at your option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This libr...
#include "Panel.h" #include <glm/gtx/transform.hpp> #define POSITION_LOC 0 #define TEXCOORD_LOC 1 Panel::Panel() { } Panel::~Panel() { } bool Panel::init() { const char vShaderStr[] = "#version 300 es \n" "uniform mat4 u_mvpMatrix; \n" ...
#include <wlib/utility> #include <gtest/gtest.h> #include <wlib/strings/String.h> using namespace wlp; TEST(dynamic_string_tests, constructor_tests) { dynamic_string string1; dynamic_string string2("HELLo WORld!"); dynamic_string string3(string1); ASSERT_EQ(string2, "HELLo WORld!"); ASS...
/* Mednafen - Multi-system Emulator * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distrib...
#undef _OPENMP // pmlib C++ test program based on stream.c by <NAME> #define FLT_MAX 1.0e+16 #ifdef _OPENMP #include <omp.h> #endif #include <PerfMonitor.h> using namespace pm_lib; extern PerfMonitor PM; # define N 20000000 // # define N 10000000 // # define NTIMES 1000 // # define NTIMES 100 # define NTIMES 100 # de...
// MIT License // // Copyright (c) 2016-2018 degski // // 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...
//@file // JuceLogWindow.cpp // //@author // <NAME> aka 'martignasse' // //@brief // A simple log window system for Juce. // //HISTORIC // 2015/10/6 // // //IMPORTANT // This file is part of the Usine Hollyhock CPP SDK // // Please, report bugs and patch to Usine forum : // <EMAIL> // // All dependencies are...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
/** * @file * * Base operator methods and initialization of static variables. * * Based on code from <NAME> (TU-Dortmund) * * @authors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>> */ #include <iostream> #include <iomanip> #include <chrono> #include <cassert> #include <unistd.h> #include "DBData.h" #include "Operators...
// -*- mode: C++; c-file-style: "stroustrup"; c-basic-offset: 4; indent-tabs-mode: nil; -*- /* libutap - Uppaal Timed Automata Parser. Copyright (C) 2002-2015 Uppsala University and Aalborg University. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesse...
/* * Copyright 2020, WindTerm. * * 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 ...
#include <cstdio> #include <cstdlib> #include <ctime> #include <mpi.h> #include <iostream> #include <cmath> #include "BlockSchemaAlgorithm.h" double BlockSchemaAlgorithm::execute(int argc, char* argv[]) { double* pMatrix, * pVector, * pProcVector, * pResult, * pProcMatrix; int rank, proc_num, RowNum, ColumnNum; dou...
/* Copyright (c) 2019 <NAME> Copyright (c) 2016, 2017 Genome Research Ltd. Author: <NAME> <<EMAIL>> 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 with...
/* ========================================================================= Copyright (c) 2012-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien. ----------------- ViennaF...
/* * See header file for a description of this class. * * \author <NAME> - INFN Torino */ #include "RecoLocalMuon/DTRecHit/plugins/DTLinearDriftAlgo.h" #include "CalibMuon/DTDigiSync/interface/DTTTrigBaseSync.h" #include "DataFormats/MuonDetId/interface/DTWireId.h" #include "Geometry/DTGeometry/interface/DTLayer...
// testLUSolverHeatEquation.cpp // // 2005-9-20 DD kick off // 2005-9-26 DD new stuff fo IBVP // 2005-10-9 DD code for exact solution of heat equation // 2005-12-1 DD Heat equation null test exact solution from // Smith 1978 page 15 // 2006-1-12 DD Former code modified in order to compare with // a Crank-Nicolson solut...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; vector<string> G; int m, n; int len; int dp[50][50][26]; inline void update(int &x, int y) { x = min(x+y, 1000000000); } int g...
// The Expat License // // Copyright (c) 2017, <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modif...
//-------------------------------------------------------------------------- // // Environment: // This software is part of the EvtGen package. If you use all or part // of it, please give an appropriate acknowledgement. // // Copyright Information: See EvtGen/COPYRIGHT // // Module: EvtKStopizmumu.cc // // D...
#include "netlist/gate_library/gate_library_manager.h" #include "netlist/netlist.h" #include "netlist/netlist_factory.h" #include "test_def.h" #include "gtest/gtest.h" #include <boost/filesystem.hpp> #include <core/log.h> #include <core/utils.h> #include <fstream> #include <iostream> #include <netlist/gate.h> #include ...
//DrawQ.cpp //used to keep track of all Drawables, and their sorting order. simplifies/automates drawing & layering of entities. #include <vector> namespace DrawLayers{ const int NUM_LAYERS = 5; enum Layer { background, backstage, stage, foreground, HUD }; } class DrawQ{ private: struct entry { ...
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (c) Microsoft Corporation. All rights reserved. #includ...
// Carpenter Software // File: main.cpp (Tesing version) // Date: 20211010 // Test: FS-i6X (TX) & FS-iA6B (RX) Transceivers. // Purpose: Review and Product Affirmation Report. // Note: Inexpensive... // // MIT LICENSE // // See LabNotes for further information #include <Arduino.h> #include "FSi6X.h" #incl...
#include <sys/stat.h> #include <ros/ros.h> #include "sensor_msgs/Joy.h" #include "std_msgs/Header.h" #include "std_msgs/Float64.h" const int kJoyAxesSize = 20; const int kJoyButtonSize = 17; // skip p to rosmsg[p] == target void SkipTo(int &p, char *rosmsg, char target){ while(rosmsg[p] != target)p++; } std_m...
// -*- C++ -*- // KimParameterProvider.cpp: Get parameters from a string (for OpenKIM). // // Copyright (C) 2012-2013 <NAME> and the Department of Physics, // Technical University of Denmark. Email: <EMAIL> // // This file is part of Asap version 3. // Asap is released under the GNU Lesser Public License (LGPL) versi...
#include "Multigrid.H" #include "CH_Timer.H" void LDWrite(LevelData<double>& a_phi); using namespace std; Multigrid::Multigrid() { }; Multigrid::Multigrid( const BoxLayout& a_bl, double a_dx, int a_level ) { this->define(a_bl,a_dx,a_...
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...