text
stringlengths
7
961k
/* * 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...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php...
//============================================================== // Copyright © 2019 Intel Corporation // // SPDX-License-Identifier: MIT // ============================================================= #ifndef DEVICESELECTOR_HPP #define DEVICESELECTOR_HPP #include <string> #include <cstring> #include <iostrea...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The Picacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <wallet/load.h> #include <fs.h> #include <interfaces/chain.h> #include...
////////////////////////////////////////// // // OpenCL host program template for multiple // FPGA boards. // // Created by dongwang@2016.01.10 // ///////////////////////////////////////// #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <iostream> #include <fstream> #include <CL...
// 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/extensions/shell_window.h" #include "base/utf_string_conversions.h" #include "chrome/browser/extensions/extension_process...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm 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/li...
#pragma once //SDL2 Includes #include <SDL.h> #include <SDL_image.h> #include <SDL_audio.h>
#include "gl_env.h" #ifndef DLL_MODE #include "irl.h" #include "gridworld.h" #include "zqtyt.h" #include "easy_model.h" #define DEBUGGL #define LEARNINGx void k_func() { EasyModelAI::save("test.txt", "pre.txt"); } int main(int argc, char **argv) { irl_init(); #ifdef DEBUGGL Viewer::init(&argc, argv); ...
// Copyright 2018 The AITS DNNC Authors.All Rights Reserved. // // Licensed to the Apache Software Foundation(ASF) under one // or more contributor license agreements.See the NOTICE file // distributed with this work for additional information // regarding copyright ownership.The ASF licenses this file // to you under ...
// Copyright (c) 2016 The ACB coin bt developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bench.h" #include "key.h" #if defined(HAVE_CONSENSUS_LIB) #include "script/bitcoinconsensus.h" #endif #include "script/sc...
#include <torch/torch.h> #include <torch/script.h> #include <torch/autograd.h> #include <torch/utils.h> #include <iostream> #include <unistd.h> #include <iomanip> #include "../utils.h" using torch::indexing::Slice; using torch::indexing::None; int main() { std::cout << "Current path is " << get_current_dir_name() <...
#include "models/site.h" #include <QCryptographicHash> #include <QJsonArray> #include <QJsonDocument> #include <QJsonObject> #include <QNetworkCookie> #include <QNetworkDiskCache> #include <QSettings> #include <QStringList> #include <utility> #include "auth/http-auth.h" #include "auth/http-basic-auth.h" #include "auth/...
// expected-no-diagnostics #ifndef HEADER #define HEADER ///==========================================================================/// // RUN: %clang_cc1 -DCK1 -verify -fopenmp -fopenmp-targets=powerpc64le-ibm-linux-gnu -x c++ -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s --check-prefix CK1 ...
// ChildView.cpp : implementation of the CChildView class // #include "pch.h" #include "framework.h" #include "MetaFileDC.h" #include "ChildView.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CChildView CChildView::CChildView() { CMetaFileDC dc; dc.CreateEnhanced(NULL, NULL, NULL, NULL); dc.Rectangle(0, 0, 10...
#include "AfterEffectHelper.h" #include "EditorPageDataSource.h" #include <QDebug> #include <QDesktopServices> #include <QDir> #include <QFileDialog> #include <QProcess> #include <QTextCodec> #include <QTimer> #include <QUrl> #include <QVersionNumber> #include "BuildConfig.h" #include "base/http/BaseRsp.h" #include ...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
//////////////////////////////////////////////////////////////////////////////// // // Package: RoadNarrows Robotics Application Tool Kit // // Link: https://github.com/roadnarrows-robotics/rnr-sdk // // Library: librnr_appkit // // File: LogBook.cxx // /*! \file * * \brief * * \author Robin Knight ...
/// Test.cpp : This file contains the 'cmain' function. Program execution begins and ends there. /// This file is an example how 'cmain.hpp' and 'lib_fm::command_line' can be used to safely and elegantly /// accept and store command line arguments inside the program. #include <iostream> #include <utility> #include "cma...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <array> #include <assert.h> #include <compare> #include <concepts> #include <cstddef> #include <cstdlib> #include <deque> #include <forward_list> #include <initializer_list> #include <iostream> #include <iterato...
// Copyright 2020 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 <lib/gtest/test_loop_fixture.h> #include <string.h> #include <gtest/gtest.h> #include "src/connectivity/weave/adaptation/weave_config_manager.h"...
/* * BSD 3-Clause License * * Copyright (c) [2020], [Huawei Technologies Co., Ltd.] * 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 th...
#include <bits/stdc++.h> using namespace std; #define READ(f) freopen(f, "r", stdin) #define WRITE(f) freopen(f, "w", stdout) #define MP(x, y) make_pair(x, y) #define PB(x) push_back(x) #define FOR(i,L,R) for (int i = (int)(L); i <= (int)(R); i++) #define ROF...
/*! * \copy * Copyright (c) 2009-2013, Cisco Systems * 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 abo...
/* Copyright 1995, 1996 by Abacus Research and * Development, Inc. All rights reserved. */ #include <base/common.h> #include <time/syncint.h> #include <base/cpu.h> #include <PowerCore.h> using namespace Executor; void Executor::syncint_check_interrupt() { if(INTERRUPT_PENDING()) { syn68k_addr_t p...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Xml.Linq.XNode #include "Sys...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
// Nonius - C++ benchmarking tool // // Written in 2014- by the nonius contributors <nonius@rmf.io> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without any warran...
#include "GraphicsDeviceManager.h" #include <exception> #include "Game.h" #include "GameServiceContainer.h" #include "GameWindow.h" #include "GraphicsDeviceInformation.h" #include "Graphics/GraphicsAdapter.h" #include "Graphics/DepthFormat.h" #include "Graphics/GraphicsDevice.h" #include "Graphics/GraphicsProfile.h"...
#include <iostream> #include <queue> using namespace std; #define MAX 25 const int dy[4] = {1, 0, 0, -1}; const int dx[4] = {0, 1, -1, 0}; int visit[MAX], picked[MAX]; string map[5]; int ans; int get_size() { int ret = 0; queue<int> que; fill(visit, visit+MAX, 0); for (int i=0; i<MAX; ++i) { if (picked[i]) { ...
/* __ __ __ |__|__| | __ | | | ||__| ___ ___ __ | | | | | | | || | | | Ubiquitous Internet @ IIT-CNR | | | || | | | C++ edge computing libraries and tools |_______|__||__|__|__| https://github.com/ccicconetti/serverlessonedge Licensed under t...
/* * Copyright (C) 2018, 2019 Computer Graphics Group, University of Siegen * Written by Martin Lambers <martin.lambers@uni-siegen.de> * * 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 ...
/* Copyright 2020 The TensorFlow 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 a...
/* Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. 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 co...
#include <bits/stdc++.h> //Ray Tracing #include <vector> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #include <vector> #include <math.h> #include <iostream> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #include "bitmap_image.hpp" using namespace std; #define AMBIENT 0 #define DIFFU...
/** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== #include "test.hpp" #include <eve/detail/meta.hpp> #include <eve/constant/sqrtvalmax.hpp> #include <ev...
#include <iostream> #include <stdlib.h> #include <dirent.h> #include <string> #include <fstream> #include <cstring> #include "acl/acl.h" #include <sys/stat.h> #include "process.h" #include "utils.h" using namespace std; namespace { uint32_t kModelWidth = 256; uint32_t kModelHeight = 256; const char* kModelPath = "../...
#include "scene.h" #include "GL/GLU.h" #include "cube.h" #include "figure.h" #include "input.h" #include "vertex.h" #include <QColor> #include <QDebug> #include <QMatrix4x4> #include <QOpenGLShaderProgram> #include <QPoint> #include <QQuaternion> #include <QScreen> #include <QString> #include <QSurfaceFormat> #include ...
// Move // Contains all details about a Piece's move in the game. // DO NOT MODIFY THIS FILE // Never try to directly create an instance of this class, or modify its member variables. // Instead, you should only be reading its variables and calling its functions. #include "move.hpp" #include "../../joueur/src/base_ai...
///////////////////////////////////////////////////////////////////////////\file /// /// Copyright 2018 SINTEF AS /// /// This Source Code Form is subject to the terms of the Mozilla /// Public License, v. 2.0. If a copy of the MPL was not distributed /// with this file, You can obtain one at https://mozilla.or...
/* //@HEADER // ************************************************************************ // // KokkosKernels 0.9: Linear Algebra and Graph Kernels // Copyright 2017 Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retain...
// // Graph.cpp // zombies // // Created by Sunil on 4/17/17. // Copyright © 2017 Sunil. All rights reserved. // #include "Graph.h" #include <set> #include <queue> #include <sstream> #include <tuple> #include <algorithm> using namespace std; template <class T> Graph<T>::Graph() { } template <class T> Grap...
//===-- llvm/CodeGen/GlobalISel/LegalizerHelper.cpp -----------------------===// // // 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 // //===---------------------------...
// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- // -- BEGIN LICENSE BLOCK ---------------------------------------------- // Copyright (c) 2016, FZI Forschungszentrum Informatik // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, ...
//===- DeclGroup.cpp - Classes for representing groups of Decls -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright 2013, ARM Limited // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions a...
// Created by Tanuj Jain #include<bits/stdc++.h> #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define pb push_back #define mp make_pair typedef long long ll; typedef pair<int,int> pii; template<class T> using oset=tree<T, null_type, less<T>...
/* * * fgui - an extensive oop gui framework * * */ #pragma once // includes #include <string_view> // framework includes #include "element.hh" namespace fgui { /* * NOTE 1: If you don't want to use winapi keycodes, you will need to...
#include <iostream> #include <fstream> #include <iomanip> int main() { std::cout << "digraph Probabilities {\n"; while (std::cin) { unsigned a, b; float prob; std::cin >> a >> b >> prob; std::cout << a << " -> " << b; } std::cout << "}\n"; }
#include "StdAfx.h" #include "CmdComponentUnitTests.h" CPPUNIT_TEST_SUITE_REGISTRATION(DVLib::UnitTests::CmdComponentUnitTests); using namespace DVLib::UnitTests; void CmdComponentUnitTests::testExecInstall() { CmdComponent component; component.command = L"cmd.exe /C exit /b 0"; component.uninstall_command = L"cm...
#pragma once #include <string> namespace krakoa::os::library { template <typename Import> struct ImportWrapper { public: using Import_t = Import; constexpr ImportWrapper( std::string_view name, void* ip ) : id( name ) , imp( static_cast<Import*>( ip ) ) { } USE_RESULT constexpr std::string_view Ge...
#include "aabb.h" #include "mesh.h" #include <float.h> namespace mingfx { AABB::AABB() { min_[0] = min_[1] = min_[2] = std::numeric_limits<float>::max(); max_[0] = max_[1] = max_[2] = -std::numeric_limits<float>::max(); } AABB::AABB(const Point3 &a) { min_ = a; max_ = a; } AABB::...
/* * * 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"); y...
#ifndef __SDS__HPP__ #define __SDS__HPP__ /** * * [*, *, *, *, _, _,_] * | | * V V * front rear * */ template <typename T, unsigned int MAX_SIZE> class SQueue { public: // bit Five SQueue() { init(); } SQueue(const SQueue &) = delete; SQueue & operator=(const S...
#if !defined(_MSVC_LANG) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wredundant-decls" #endif #include <benchmark/benchmark.h> #include <Geometry/Intersection/IntersectionLine.hpp> #include <Geometry/Line.hpp> using namespace Geometry; using namespace LinAl; static void BM_Intersection_Line3dLine3d...
#pragma once #define Nsum 1<<8 namespace loops { double sumLoop(const func& f) { double sum = 0.0; for (int ii = 0; ii <= Nsum; ii++) { sum += f(ii); } return sum; } double doRecursion(const func& f, const int& x) { if (x != 0) {...
// Created on: 2000-08-15 // Created by: Andrey BETENEV // Copyright (c) 2000-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 a...
#include <ParticlePluginPCH.h> #include <ParticlePlugin/Behavior/ParticleBehavior.h> #include <ParticlePlugin/Emitter/ParticleEmitter.h> #include <ParticlePlugin/Finalizer/ParticleFinalizer_Age.h> #include <ParticlePlugin/Finalizer/ParticleFinalizer_Volume.h> #include <ParticlePlugin/Initializer/ParticleInitializer.h>...
#include <string> #include <Windows.h> #include <tchar.h> #include <Shlobj.h> #include <Shlwapi.h> #include <map> namespace Misc { const char * postExitCmd = ""; void PlatformStartup() { } void PlatformShutdown() { } std::map<std::string,std::string> keymaps; void InitKeymaps() { HKEY hk = ...
#include "dragon/operators/math/clip_op.h" #include "dragon/utils/op_kernels.h" namespace dragon { template <class Context> template <typename T> pair<float, float> ClipOp<Context>::ComputeBoundsWithType() { auto meta = TypeMeta::Make<T>(); if (meta.template Match<int8_t>()) { return std::make_pair(std::max(l...
#ifndef FENSTERCHEN_TURNTABLE_HPP #define FENSTERCHEN_TURNTABLE_HPP // ----------------------------------------------------------------------------- // Copyright : (C) 2014 Andreas-C. Bernstein // License : MIT (see the file LICENSE) // Maintainer : Andreas-C. Bernstein <andreas.bernstein@uni-weimar.de> // Stabili...
// 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 "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h" #include <X11/extensions/shape.h> #include <X11/extensions/XInput2.h> #include...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html #ifndef __OPENCV_PERF_PRECOMP_HPP__ #define __OPENCV_PERF_PRECOMP_HPP__ #include "opencv2/ts.hpp" #include "opencv2/imgcodecs....
/* Copyright 2015 The MathWorks, Inc. */ #ifndef MATLAB_DATA_ENUMERATION_HPP #define MATLAB_DATA_ENUMERATION_HPP namespace matlab { namespace data { class Enumeration {}; } } #endif
/* * Copyright (c) 2016, The OpenThread 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: * 1. Redistributions of source code must retain the above copyright * notice, this ...
#include <iostream> #include "Chapter11_exercise4.h" int main() { using std::cout; using std::endl; Time aida(3, 35); Time tosca(2, 48); Time temp; cout << "Aida and Tosca:\n"; cout << aida << "; " << tosca << endl; temp = aida + tosca; cout << "Aida + Tosca: " << temp << endl; ...
#include<iostream> using namespace std; class stu{ private: int age, y1, y2, y3, y4; char name[20]; char num[20]; char k; public: void init(); void print(); void average_v(); }; void stu::init() { cin.get(name, 20, ','); cin >> k >> age >>k; cin.get(num, 20, ','); cin >> k >> y1 >> k >> y2 >> k >> ...
#include <bits/stdc++.h> using namespace std; int main() { int t; cin>>t; while(t--) { long long int n; cin>>n; long long int a; set<int> s; for(int i=0;i<n;i++) { cin>>a; s.insert(a); } int len=s.size(); se...
/* * Copyright 2015 Georgia Institute of Technology * * 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 applicab...
#include <iostream> #include<bits/stdc++.h> using namespace std; int a[100010],b[100000]; #define X first #define Y second int main() { int n,res=-1; cin>>n; for(int i=0;i<n;i++) { cin>>a[i]>>b[i]; } for(int i=0;i<n;i++) { for(int j=0;j<n;j++) {int x=0,y=0; for(int k=0;k<n;k++) { int f=(a[j]-a[i...
/// @ref core /// @file glm/geometric.hpp #pragma once #include "detail/func_geometric.hpp"
#include <EEPROM.h> #include "wled.h" /* * DEPRECATED, do not use for new settings * Only used to restore config from pre-0.11 installations using the deEEP() methods * * Methods to handle saving and loading to non-volatile memory * EEPROM Map: https://github.com/Aircoookie/WLED/wiki/EEPROM-Map */ //eeprom Ver...
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// @project Library ▸ Core /// @file Library/Core/Types/Unique.hpp /// @author Lucas Brémond <lucas@loftorbital.com> /// @license ...
// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // #include "db/memtable_lis...
#ifndef MAPWINDOW_H #define MAPWINDOW_H #include <QMapboxGL> #include <QOpenGLWidget> #include <QPropertyAnimation> #include <QtGlobal> #include <memory> class QKeyEvent; class QMouseEvent; class QWheelEvent; class MapWindow : public QOpenGLWidget { Q_OBJECT public: MapWindow(const QMapboxGLSettings &); ...
/* * This class manage user's authorization via GitHub token or GitHub credentials * If user's account exist - it loading configuration file to application settings * If it is registration - creates one and loading. * * In comments capital A B C D E F G H - labels in UML diagram */ #include "storeconf.h" #include ...
/********** 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 3 of the License, or (at your option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This librar...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #ifndef ROCKSDB_LITE #include "utilities/transactions/tra...
#include "EventFilter/CSCRawToDigi/plugins/CSCDCCUnpacker.h" //Framework stuff #include "DataFormats/Common/interface/Handle.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/E...
#include "N20_SR_Elliptic_F8.h" namespace OFEC { namespace CEC2013 { N20_SR_Elliptic_F8::N20_SR_Elliptic_F8(const ParamMap &v) : N20_SR_Elliptic_F8((v.at("problem name")), (v.at("number of variables")), 1) \ { } N20_SR_Elliptic_F8::N20_SR_Elliptic_F8(const std::string &name, size_t size_var, size_t siz...
//================================================================================================= /*! // \file src/mathtest/operations/dvecdvecmin/VDaV2a.cpp // \brief Source file for the VDaV2a dense vector/dense vector minimum math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // T...
/*! \file main.cxx * \brief Main program */ #include "TreeFrog.h" using namespace std; using namespace Math; using namespace NBody; int main(int argc,char **argv) { #ifdef USEMPI //start MPI MPI_Init(&argc,&argv); //find out how big the SPMD world is MPI_Comm_size(MPI_COMM_WORLD,&NProcs); //an...
/** * @file parametric_relu_impl.hpp * @author Prasanna Patil * * Definition of PReLU layer first introduced in the, * Kaiming He, Xiangyu Zhang, Shaoqing, Ren Jian Sun, * "Delving Deep into Rectifiers: * Surpassing Human-Level Performance on ImageNet Classification", 2014 * * mlpack is free software; you may ...
#include "rs-graphics-core/root-finding.hpp" #include "rs-unit-test.hpp" #include <cmath> #include <iostream> using namespace RS::Graphics::Core; namespace { struct F { double k; double operator()(double x) const { return std::cos(k * x) - std::pow(k * x, 3.0); }; }; struct DF { ...
#include <gtest/gtest.h> #include <aikido/common/StepSequence.hpp> #include <aikido/common/memory.hpp> using aikido::common::StepSequence; TEST(StepSequence, Constructor) { EXPECT_THROW(StepSequence(0.2, true, true, 1.0, 0.0), std::runtime_error); EXPECT_THROW(StepSequence(-0.2, true, true, 0.0, 1.0), std::runti...
/* Copyright 2018 Tymoteusz Blazejczyk * * 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 agre...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/organizations/model/ListCreateAccountStatusResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> ...
#include "envoy/common/platform.h" #include "envoy/config/core/v3/base.pb.h" #include "source/common/network/addr_family_aware_socket_option_impl.h" #include "source/common/network/io_socket_handle_impl.h" #include "source/common/network/socket_interface.h" #include "source/common/network/utility.h" #include "test/co...
//===- SCCP.cpp - Sparse Conditional Constant Propagation -----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* <bruce/kafka_proto/v0/produce_response.test.cc> ---------------------------------------------------------------------------- Copyright 2013-2014 if(we) 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 co...
#include "../python3lib.h" #include "pyapifunction.h" #include "Meta/keyvalue/valuetype.h" #include "pyobjectutil.h" #include "../python3env.h" namespace Engine { namespace Scripting { namespace Python3 { static PyObject * PyApiFunction_call(PyApiFunction *self, PyObject *args, PyObject *kwarg...
// SPDX-License-Identifier: Apache-2.0 #pragma once #include <cmath> #include <cstdint> #include <random> #include "../type_convert.hpp" #include "../GB_Matrix_allocate.h" static const char *_cudaGetErrorEnum(cudaError_t error) { return cudaGetErrorName(error); } template <typename T> void check(T result, char c...
#include <CGAL/Hyperbolic_Delaunay_triangulation_2.h> #include <CGAL/Hyperbolic_Delaunay_triangulation_traits_2.h> typedef CGAL::Hyperbolic_Delaunay_triangulation_traits_2<> Traits; typedef CGAL::Hyperbolic_Delaunay_triangulation_2<Traits> HDTriangulation; typedef HDTriangulation::Point ...
/* Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
#include "LightShader.h" LightShader::LightShader(ID3D11Device* device, HWND hwnd) : BaseShader(device, hwnd) { initShader(L"light_vs.cso", L"light_ps.cso"); } LightShader::~LightShader() { // Release the sampler state. if (sampleState) { sampleState->Release(); sampleState = 0; } // Release the matrix co...
#include "../headers/SpriteComponent.h" #include "kiln/engine/Classes/Entity/headers/Entity.h" #include "kiln/engine/Core/headers/Texture.h" #include "lib/kilnlog/include/KilnLog.h" #include <SDL.h> SpriteComponent::SpriteComponent() {} SpriteComponent::SpriteComponent(Entity* owner, Texture* texture) : Component(own...
#include <iostream> #include <stdio.h> #include <fstream> #include <ctime> using namespace std; int main() { time_t ttime = time(0); tm* gmt_time = localtime(&ttime); //time_t ttime = time(0); /*//tm* gmt_time = localtime(&ttime); cout << gmt_time->tm_mday << "/" << 1 + gmt_time->tm_mon << "...
/* WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY. This file was generated from Int16_.idl using "rtiddsgen". The rtiddsgen tool is part of the RTI Connext distribution. For more information, type 'rtiddsgen -help' at a command shell or consult the RTI Connext manual. */ #include <string.h> #ifndef ndds_cpp_h #...
// (C) Copyright John Maddock 2006. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_MATH_TOOLS_TEST_HPP #define BOOST_MATH_TOOLS_TEST_HPP #ifdef _MSC_VER #pragm...
// // AddRouteRequest.cpp // transportnyi-spravochnik // // Created by Mykyta Cheshulko on 02.07.2020. // Copyright © 2020 Mykyta Cheshulko. All rights reserved. // #include "AddRouteRequest.hpp" #include "EmptyResponse.hpp" #include "GuideException.hpp" #include "Stop.hpp" #include "LinearRoute.hpp" #include "Ci...