text
stringlengths
7
961k
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/common/enums/physical_operator_type.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/constants.hpp" namespace ...
#include "ReligionParser.h" #include "CommonRegexes.h" #include "ParserHelpers.h" EU4::ReligionParser::ReligionParser(std::istream& theStream) { registerKeys(); parseStream(theStream); clearRegisteredKeywords(); } void EU4::ReligionParser::registerKeys() { registerKeyword("defender_of_faith", commonItems::ignoreI...
//=========== (C) Copyright 1999 Valve, L.L.C. All rights reserved. =========== // // The copyright to the contents herein is the property of Valve, L.L.C. // The contents may be used and/or copied only with the written permission of // Valve, L.L.C., or in accordance with the terms and conditions stipulated in // the ...
#include "aiutils.h" #include "../utils/mathutils.h" #include <glm/gtc/constants.hpp> #include <cmath> namespace TankGame { void WalkPath(float dt, const Path& path, float& progress, Transform& transform, float movementSpeed, float turnRate, bool modulate) { float newPathProgress = progress + movem...
//-------------------------------------------------------------------------------------------------- // Copyright (c) YugaByte, 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 // // ht...
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1996 - 1999 // // File: msglen.cpp // // Contents: Cryptographic Message Length APIs // // APIs: CryptMsgCalculateEncodedLength // // History: 12-Dec-96 ...
/***************************************************************************** Copyright (c) 2015, 2021, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. ...
class Solution { public: vector<vector<int>> XXX(vector<vector<int>>& intervals) { sort(intervals.begin(), intervals.end(), [] (const vector<int> &a, const vector<int> &b) -> bool { if (a[0] == b[0]) return a[1] > b[1]; return a[0] < b[0]; }); int n = interval...
/** * 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, * ...
#include <catboost/cuda/ut_helpers/test_utils.h> #include <catboost/cuda/gpu_data/compressed_index_builder.h> #include <catboost/cuda/ctrs/ut/calc_ctr_cpu.h> #include <catboost/cuda/data/permutation.h> #include <catboost/cuda/gpu_data/feature_parallel_dataset_builder.h> #include <catboost/cuda/gpu_data/oblivious_tree_...
/********************************************************************* Quinn Schwab 16/08/2010 SFML Tiled Map Loader The zlib license has been used to make this software fully compatible with SFML. See http://www.sfml-dev.org/license.php This software is provided 'as-is', without any express or implied war...
/////////////////////////////////////////////////////////////////////////// // // MOOS - Mission Oriented Operating Suite // // A suit of Applications and Libraries for Mobile Robotics Research // Copyright (C) 2001-2005 Massachusetts Institute of Technology and // Oxford University. // // This soft...
/************************************************************************** * * Copyright 2011 Jose Fonseca * 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 Software wit...
/** * Copyright (c) 2009 Carnegie Mellon 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...
#include "src/callingconvention.hpp" #include "src/comdef.hpp" #include "src/classfactory.hpp" #include "src/conversions.hpp" #include "src/functions.hpp" #include "src/memory.hpp" #include "src/variant.hpp" // Exceptions. #include "src/no_such_interface.hpp" #include "src/runtime_error.hpp"
/* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
#ifndef ast_operators_hpp #define ast_operators_hpp #include <string> #include <iostream> #include <list> #include "ast_expression.hpp" class BinaryOperator : public Expression { private: Expression* left; Expression* right; string op; public: BinaryOperator(Expression* _left, string& _op, Expression* _r...
#include "DSP/meteordemodulator.h" #include "DSP/wavreader.h" #include "correlation.h" #include "packetparser.h" #include "reedsolomon.h" #include "viterbi.h" #include "deinterleaver.h" #include "pixelgeolocationcalculator.h" #include <iostream> #include <fstream> #include <ctime> #include <opencv2/imgcodecs.hpp> #inc...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "upsample.h" #include "upsample_impl.h" #include "core/providers/cpu/tensor/utils.h" using namespace onnxruntime::common; namespace onnxruntime { namespace cuda { #define REGISTER_KERNEL_TYPED(T) ...
# /* ************************************************************************** # * * # * (C) Copyright Paul Mensonides 2002. # * Distributed under the Boost Software License, Version 1.0. (See # * accompanying file LICENSE_1_0.txt...
/* * Copyright 2004-2016 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 * *...
class Solution { public: int threeSumClosest(vector<int>& nums, int target) { std::sort(nums.begin(), nums.end()); //vector<vector<int>> ret; int len = nums.size(); if(len == 0) return 0; else if(len == 1) return nums[0]; else if(len == 2) return nu...
// WL_AGENT.C /* ============================================================================= LOCAL CONSTANTS ============================================================================= */ #define MAXMOUSETURN 10 #define MOVESCALE 150l #define B...
// Cycle sort in C++ programming //This sorting algorithm is best suited for situations where memory write or swap operations are costly. //Time Complexity : O(n2) #include <iostream> using namespace std; // Function sort the array using Cycle sort void cycleSort(int arr[], int n) { // count number of memory writes ...
/* This file is part of: NoahFrame https://github.com/ketoo/NoahGameFrame Copyright 2009 - 2021 NoahFrame(NoahGameFrame) File creator: lvsheng.huang NoahFrame is open-source software and you can redistribute it and/or modify it under the terms of the License; ...
// 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 "base/time/time.h" #include <limits> #include <ostream> #include "base/float_util.h" #include "base/lazy_instance.h" #include "base/logging...
#include "ecs_window.h" #include "halley/tools/ecs/ecs_data.h" #include "halley/tools/project/project.h" using namespace Halley; ECSWindow::ECSWindow(UIFactory& factory, Project& project) : UIWidget("ecs_window", Vector2f(), UISizer()) , factory(factory) , project(project) { factory.loadUI(*this, "halley/ecs"); ...
/** * 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. */ #include "ApiLevelChecker.h" #include "Walkers.h" namespace api { // These initial values are bogus until `init()` is called. We...
#include "UIObjectFactory.h" #include "UIPackage.h" #include "utils/ToolSet.h" #include "GComponent.h" #include "GImage.h" #include "GMovieClip.h" #include "GTextField.h" #include "GRichTextField.h" #include "GTextInput.h" #include "GLoader.h" #include "GGraph.h" #include "GList.h" #include "GLabel.h" #include "GButton...
// Copyright 2020 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/ash/web_applications/diagnostics_system_web_app_info.h" #include <memory> #include "ash/constants/ash_features.h" #include "bas...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2021, PickNik Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
/*=Plus=header=begin====================================================== Program: Plus Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved. See License.txt for details. =========================================================Plus=header=end*/ #include "vtkNrrdReader.h" #include "vtkIGSIONrrdSeque...
#pragma ident "$Id$" /** * @file BrcClockCorrection.hpp * GNSS Broadcast clock correction data encapsulated in engineering terms * BrcClockCorrection is designed to address all the navigation message * formats that are based on a second-order clock model. */ #ifndef GPSTK_BRCLOCKCORRECTION_HPP #define GPSTK_BRCL...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitt...
// Copyright (c) 2012-2015 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 "addrman.h" #include "test/test_mpower.h" #include <string> #include <boost/test/unit_test.hpp> #include "hash.h" #i...
// Copyright 2017 The Abseil 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2017-2019 The Zelantus Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "cleanse.h" #in...
// // Created by Islam, Abdullah Al Raqibul on 10/15/19. // #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <sys/stat.h> #include <time.h> #include <libpmemobj.h> #include "../../lib/ex_common.h" #include "ht_common.h" namespace ycsbc { class HtPmemConcurrentLock : public StoredsBase { pu...
/*** * Copyright (C) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. * * File:FoundationObjectImpl.cpp ****/ #include "FoundationObjectImpl.h" #include "JniCoreUtils.h" using namespace foundation; JNIEXPORT jint JNICALL Java_com...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018-2019 The TWINS developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mi...
/* * Copyright 2021 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm/gm.h" #include "include/core/SkCanvas.h" #include "include/core/SkMatrix.h" #include "include/core/SkRect.h" // Outsetting of very thin, nearly line, quads for AA...
// spectrum.cpp // Revision 11-aug-2005 #include "spectrum.h" #include <sstream> #include <algorithm> namespace pasmo { using std::fill; using std::copy; spectrum::Plus3Head::Plus3Head () { static const byte ident []= { 'P', 'L', 'U', 'S', '3', 'D', 'O', 'S', // Identifier. 0x1A, // CP/M EOF. 1, // I...
#ifndef CMDSTAN_ARGUMENTS_VARIATIONAL_EVAL_ELBO_HPP #define CMDSTAN_ARGUMENTS_VARIATIONAL_EVAL_ELBO_HPP #include <cmdstan/arguments/singleton_argument.hpp> #include <boost/lexical_cast.hpp> #include <string> namespace cmdstan { class arg_variational_eval_elbo: public int_argument { public: arg_variational_ev...
/* Copyright 2021 R. Thomas * Copyright 2021 Quarkslab * * 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 appli...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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 noti...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#include <memory> #include <string> #include "common/runtime/runtime_impl.h" #include "common/stats/stats_impl.h" #include "test/mocks/event/mocks.h" #include "test/mocks/filesystem/mocks.h" #include "test/mocks/runtime/mocks.h" #include "test/mocks/thread_local/mocks.h" #include "test/test_common/environment.h" #in...
#include <string> #include <vector> #include <iostream> #include <unistd.h> #include <gmpxx.h> #include <gtest/gtest.h> #include "math_tools.h" #include "node.h" namespace { class NodeTest: public ::testing::Test { protected: NodeTest() { } virtual ~NodeTest() { } virtual void SetUp() { ...
/* * port_traits.hpp * * Created on: Sep 30, 2015 * Author: ckielwein */ #ifndef SRC_PORTS_PORT_TRAITS_HPP_ #define SRC_PORTS_PORT_TRAITS_HPP_ #include <flexcore/core/traits.hpp> // A collection of port specific meta functions and traits. namespace fc { namespace detail { template<class event_t> struct ...
#include <bits/stdc++.h> using namespace std; const int maxn = 1010; int n, k; vector<int> g[maxn]; int r[maxn], c[maxn][maxn]; bool col[maxn]; string names[maxn]; void solve() { for (int u = 0; u < n; u++) { for (int j = 0; j < g[u].size(); j++) { int v = g[u][j]; if (names[u] == names[v]) ...
/* * Copyright (c) 2012 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
// Copyright (c) 2011-2020 The Bitcoin Core and Devcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/data/key_io_invalid.json.h> #include <test/data/key_io_valid.json.h> #include <key.h> #inclu...
** ** Copyright 2006, The Android Open Source Project ** ** 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...
/* * Automatically Generated from Mathematica. * Fri 5 Nov 2021 09:01:52 GMT-04:00 */ #ifndef U_LEFTTOEHEIGHT_CASSIE_HH #define U_LEFTTOEHEIGHT_CASSIE_HH namespace frost { namespace gen { void u_leftToeHeight_cassie(double *p_output1, const double *var1); } } #endif // U_LEFTTOEHEIGHT_CASSIE_HH
/** \file IonChannel.cpp \brief Implements the ion channel class. **/ #include "stdafx.h" #include "IonChannel.h" #include "SynapseType.h" #include "Connexion.h" #include "CaActivation.h" #include "Neuron.h" #include "ElectricalSynapse.h" #include "NonSpikingChemicalSynapse.h" #include "SpikingChemicalSynapse.h" #inc...
#ifdef HAVE_TRACKING #include "TrackerMILParams.h" Nan::Persistent<v8::FunctionTemplate> TrackerMILParams::constructor; NAN_MODULE_INIT(TrackerMILParams::Init) { v8::Local<v8::FunctionTemplate> ctor = Nan::New<v8::FunctionTemplate>(TrackerMILParams::New); v8::Local<v8::ObjectTemplate> instanceTemplate = ctor->Inst...
#include <iostream> #include <memory> #include <sdm/exception.hpp> #include <sdm/config.hpp> #include <sdm/parser/parser.hpp> using namespace sdm; int main(int argc, char **argv) { std::string ndpomdp_filename = (argc > 1) ? argv[1] : config::PROBLEM_PATH + "dpomdp/tiger.dpomdp"; // Instanciate a standard M...
/** * @file * @brief Collection of startup related functions and objects **/ #include "AppHdr.h" #include "startup.h" #include "abyss.h" #include "arena.h" #include "branch.h" #include "command.h" #include "coordit.h" #include "ctest.h" #include "database.h" #include "dbg-maps.h" #include "dbg-objstat.h" #include ...
#include "integer_literal_node.h" Integer_literal_node::Integer_literal_node(token* token) { auto u16string = token->get_source_text(); const std::string u8string(std::begin(u16string), std::end(u16string)); size_t size; value = std::stoi(u8string, &size, 10); }
#pragma once #include "export.h" namespace hocon { /** * A set of options related to resolving substitutions. Substitutions use the * <code>${foo.bar}</code> syntax and are documented in the <a * href="https://github.com/typesafehub/config/blob/master/HOCON.md">HOCON</a> * spec. * <p> ...
/* * 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 ...
/** * Archivo Prueba de la practica. * Para compilar, utilizar la opción para c++11. * g++ -o prueba prueba.cpp -Wall -std=c++0x * Alberto Armijo Ruiz. * 2º GII A. */ #include "avl.h" #include <iostream> #include <functional> using namespace std; int main(){ AVL<int > el_avl; cout << "Prueba empty" << endl; ...
/* * Copyright (C) 2016 Open Source Robotics Foundation * * 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...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_TekRifleImpactEmitter_structs.hpp" namespace sdk { //--------------------------------------------------------------------------- //Classes //---------------------------------------------------...
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: ListNode* removeEleme...
/*ckwg +29 * Copyright 2016-2018 by Kitware, 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 li...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "commands/ResetEncoders.h" #include "RobotContainer.h" ResetEncoders::ResetEncoders() { // Use addRequiremen...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <_IMAGE_BASE_RELOCATION.hpp> START_ATF_NAMESPACE typedef _IMAGE_BASE_RELOCATION *PIMAGE_BASE_RELOCATION; END_ATF_NAMESPACE
// // Final Kalman fit // // Original author D. Brown and G. Tassielli // // framework #include "art/Framework/Principal/Event.h" #include "fhiclcpp/ParameterSet.h" #include "art/Framework/Principal/Handle.h" #include "art/Framework/Core/EDProducer.h" #include "art/Framework/Core/ModuleMacros.h" #include "art_root_io/...
#include "MyStringUtil.h" #include "MyDefines.h" #include <cstdarg> #include <cstring> char * MyStringUtil::CopyString(const char * string) { char *out = new char[strlen(string) + 1](); strcpy(out, string); return out; }
// Copyright 2016 The Charon Platform 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 <lua/lua.hpp> #include <charon/base> using charon::ByteArray; using charon::ByteArrayList; using charon::regex; static int lua_charon...
// 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 "chrome/browser/ui/webui/downloads/downloads_ui.h" #include <memory> #include <utility> #include "base/bind.h" #include "base/memory/ref_co...
// Copyright © 2017-2020 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #include <TrustWalletCore/TWAnyAddress.h> #include <TrustWa...
#include <yarp/YARPConfig.h> #include <yarp/YARPConfigRobot.h> #include <ace/config.h> #include <ace/OS.h> #include <yarp/YARPRobotHardware.h> #include <yarp/YARPSemaphore.h> #include <yarp/YARPTime.h> #include <yarp/YARPConfigFile.h> #include <list> #include <yarp/YARPMatrix.h> #include <iostream> #include <yarp/YARPR...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
//$Id: Sensor.cpp 211 2010-06-07 11:38:00 $ //------------------------------------------------------------------------------ // Sensor //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool. // // Copyright (c) 2002 - 2017 Uni...
#include <catch2/catch.hpp> #include <cstddef> #include <string> #include <tuple> using namespace Catch; using namespace std; // 动态规划 class Solution { public: int minPathSum(vector<vector<int>>& grid) { if (grid.size() == 0 || grid[0].size() == 0) { return 0; } siz...
// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include <string> #include <utility> #include <vector> #include "atom/browser/api/atom_api_browser_window.h" #include "atom/browser/native_window.h" #include "atom/browser/ui/certific...
// Copyright 2021 The Fuchsia 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 <fidl/formatter.h> #include <fidl/utils.h> #include <zxtest/zxtest.h> #include "test_library.h" namespace { std::string Format(const std::string...
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #include <vector> #include <fstream> #include <map> #include <unordered_map> using namespace std; class Dictionary { public: void read(const std::string &filename); void store(const std::string &filename); private: ...
// Copyright 2016 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/chromeos/arc/policy/arc_policy_bridge.h" #include <utility> #include "base/bind.h" #include "base/callback_helpers.h" #include ...
/* * Copyright (C) 2017 Apple Inc. All rights reserved. * Copyright (C) 2017 Igalia S.L. * * 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 * ...
// Copyright (c) 2011-2017 The Cryptonote developers // Copyright (c) 2018 The Circle Foundation & Conceal Devs // Copyright (c) 2018-2019 Conceal Network & Conceal Devs // // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #in...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#include <iostream> #include <iomanip> #include "nr.h" using namespace std; // Driver for routine rtnewt DP fx(const DP x) { return NR::bessj0(x); } void funcd(const DP x, DP &fn, DP &df) { fn=NR::bessj0(x); df= -NR::bessj1(x); } int main(void) { const int N=100,NBMAX=20; co...
/// @file InfoListWnd.cpp /// @brief Window listing aircraft, messages, and status information /// @author Birger Hoppe /// @copyright (c) 2018-2020 Birger Hoppe /// @copyright Permission is hereby granted, free of charge, to any person obtaining a /// copy of this software and associated d...
#include "Arduino.h" #include "Motor.h" #include "Agent.h" //public Agent::Agent(HardwareSerial *serial) { _serial = serial; _base = new Motor(8, 75, 0, 180, 0); _shaft1 = new Motor(7, 80, 0, 180, 50); _shaft2 = new Motor(5, 90, 0, 180, 15); _shaft3 = new Motor(4, 30, 0, 180, 0); _shaft4 = ne...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
/* Copyright (c) 2012-2017 Ben Croston ben@croston.org. Copyright (c) 2019, NVIDIA CORPORATION. Copyright (c) 2019 Jueon Park(pjueon) bluegbg@gmail.com. Copyright (c) 2021 Adam Rasburn blackforestcheesecake@protonmail.ch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
/*========================================================================= Program: Visualization Toolkit Module: vtkGarbageCollector.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This softw...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "attributesaver.h" #include "load_utils.h" #include "readerbase.h" #include "reference_attribute.h" #include "reference_attribute_saver.h" #include <vespa/document/base/documentid.h> #include <vespa/docume...
/****************************************************************************************/ /* PROPSHEET.CPP */ /* */ /* Author: Jim Mischel */ /* Descript...
/* _ _ * | | (_) * | | __ _ _ _ _ * | | / _` || | | || | * | || (_| || |_| || | * |_| \__, | \__,_||_| * __/ | * |___/ * * Copyright (c) 2015-20 frank256 * * License (BSD): * * Redistribution and use in source and binary forms, with or without modification, * ar...
#include "chainerx/routines/connection.h" #include <algorithm> #include <cstdint> #include <functional> #include <utility> #include <vector> #include <nonstd/optional.hpp> #include "chainerx/array.h" #include "chainerx/backprop_mode.h" #include "chainerx/backward_builder.h" #include "chainerx/backward_context.h" #in...
#pragma once #include "es/protoground.hpp" namespace es { /** * Objectのクエリ結果を保持して、dynamic_cast相当の挙動を行わせる * 本質的に型安全ではないため、template引数には注意をすること。 * * ポインタを直接指定した場合はダミーのDeleterを利用することで削除を行わなくする。 */ template<typename T, uint64_t InterfaceId> class query_ptr { public: static T *from(const Object *base) { ...
/* * Copyright (c) 2008-2010 * Nakata, Maho * All rights reserved. * * $Id: Rtgsna.cpp,v 1.4 2010/08/07 04:48:33 nakatamaho Exp $ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributi...
// Copyright (C) 2004 Peder Holt // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_TYPE_TRAITS_MSVC_REMOVE_CONST_HOLT_2004_0828 #define BOOST_TYPE_TRAITS_MSVC_REMOVE_CONST_HOLT_2004_0828 #include <Awl/boost/type_traits/...
/* Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * * Copyright 2016 INRIA. * * 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 * *...
#include "tepch.h" #include "Transcendent-Engine/core/Window.h" #include "Platfrom/OpenGL/OpenGLWindow.h" namespace TE { Scope<Window> Window::Create(const WindowProps& props) { #ifdef TE_PLATFORM_WINDOWS return CreateScope<OpenGLWindow>(props); #else TE_CORE_ASSERT(false, "Unknown platform!"); return ...
#include "EGLGlobal.h" #include <algorithm> #include "EGLDisplayBase.h" #include "EGLDisplayX11.h" NS_OPEN_GLSP_EGL() // TODO: add other platforms support EGLGlobal::EGLGlobal(): mCurrentDisplay(NULL), mNativePlatform(EGL_PLATFORM_X11_KHR) { } bool EGLGlobal::validateDisplay(EGLDisplayBase *dpy) { EGLDisplayList...