text stringlengths 7 961k |
|---|
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2008 Yee Man Chan
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or... |
#include <bits/stdc++.h>
using namespace std;
pair<int,int> query(vector<int> a) {
cout << "? " << a.size() << '\n';
for (int x: a) {
cout << x+1 << ' ';
}
cout << endl;
int x,d;
cin >> x >> d;
--x;
return {x,d};
}
// caterpillar, extend len with ceil(L/2, 4/L, 8/L,...)
void s... |
/*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* 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 requir... |
// Copyright (C) 2003 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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, or (at your option)... |
#include <boost/spirit/include/classic_core.hpp> |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
* Copyright (C) 2004, 2008 Apple Inc. All rights reserved.
*
* This library is free software... |
// 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 "usb-hub.h"
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/loop.h>
#include <lib/async/cpp/executor.h>
#include <lib/async/cpp/tas... |
/*
* Copyright 2018-2019 Autoware Foundation. 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 requi... |
// Copyright (c) 2014-2019 The Genix Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "governance-classes.h"
#include "core_io.h"
#include "init.h"
#include "utilstrencodings.h"
#include "validation.h... |
//===- AffineStructuresTest.cpp - Tests for AffineStructures ----*- C++ -*-===//
//
// 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) 2013, Ford Motor Company
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this
// list of condit... |
/******************************************************************************
* *
* Copyright (C) 2018 Fondazione Istituto Italiano di Tecnologia (IIT) *
* All Rights Reserved. *
... |
namespace foo {
namespace bar {
namespace baz {
int qux = 42;
}
}
}
namespace fbz = foo::bar::baz;
void func() {
int a = foo::bar::baz::qux;
int b = fbz::qux;
}
/*
OUTPUT:
{
"includes": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 10818727483146447186,
... |
//////////////////////////////////////////////////////////////////////
//
// Crytek Source code
// Copyright (c) Crytek 2001-2004
//
// File: XEntityPlayer.cpp
// Description: Entity player class.
//
// History:
// - August 16, 2001: Created by Alberto Demichelis
// - 2001 - 2004: Modified by Kirill Bulatsev and ... |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "main.h"
#include "addrman.h"
#include "masternode-bud... |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.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 anyone to use this ... |
#include "addfriend.h"
#include "createnew.h"
#include<QFile>
#include<QDebug>
AddFriend::AddFriend(QString name1,QString phoneNumber1,QString email1,QString fifth1,QString year1,QString month1,QString day1,QString head1):CreateNew()
{
name=name1;
phoneNumber=phoneNumber1;
email=email1;
fifth=fifth1;
... |
/*******************************************************************************
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#ifndef QPL_PROJECT_CONFIGURATOR_CANNED_LARGE_LL_TABLE_HPP
#define QPL_PROJECT_CON... |
/* Source - https://leetcode.com/problems/max-chunks-to-make-sorted-ii/
Author - Shivam Arora
*/
#include <bits/stdc++.h>
using namespace std;
int maxChunksToSorted(vector<int>& arr) {
int n = arr.size();
int leftMax[n];
leftMax[0] = arr[0];
for (int i = 1; i < n; i++)
leftMax[i] =... |
//
// Copyright (c) 2018 The WebGLNativePorts 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.
//
// BufferGL.cpp: Implements the index or vertex buffer wrappers and resource bindings of OpenGL.
#include "BufferGL.h"
#include ... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DmgType_Projectile_Water_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------... |
/*******************************************************************************
*
* FileName : min_heap.cpp
* Comment : test code for minimal heap
* Version : 1.0
* Author : haibindev.cnblogs.com
* Date : 2007-9-25 10:07
*
*******************************************************************************/
#inclu... |
/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the fil... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "behavior_test_plugin_infer_request.hpp"
#include "mkldnn_test_data.hpp"
INSTANTIATE_TEST_CASE_P(smoke_BehaviorTest, BehaviorPluginTestInferRequest, ValuesIn(requestsSupportedValues), getTestCaseName); |
/* Copyright 2019 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... |
#include <chrono>
#include "tridiag_tests.hpp"
#include "ekat/util/ekat_test_utils.hpp"
#include "ekat_test_config.h"
namespace ekat {
namespace test {
namespace perf {
void expect_another_arg (int i, int argc) {
if (i == argc-1)
throw std::runtime_error("Expected another cmd-line arg.");
}
std::string Solv... |
//
// CountingPtr.hpp
// designpattern
//
// Created by 贾皓翔 on 2018/11/17.
// Copyright © 2018 贾皓翔. All rights reserved.
//
#ifndef CountingPtr_hpp
#define CountingPtr_hpp
#include <stdio.h>
#include <iostream>
class CounterPolicy{
size_t *count_;
public:
CounterPolicy();
~CounterPolicy(){}
void i... |
// Copyright (C) 2020-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include <details/ie_exception.hpp>
#include "arm_converter/arm_converter.hpp"
#include <ngraph/runtime/reference/scatter_elements_update.hpp>
namespace ArmPlugin {
template <typename DataType, typename IndicesType>
void wrap_scatter... |
// Copyright 2019 Open Source Robotics Foundation, 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 appli... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org
Copyright (c) 2008 Renato Araujo Oliveira Filho <renatox@gmail.com>
Copyright (c) 2000-2014 Torus Knot Softwar... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "overviewpage.h"
#inclu... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkXMLPMultiBlockDataWriter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... |
#include "Tricycle.h"
// ^ x
// |
// |
// y<----O
//
// | width |
// - [0]
// | | |
// length | |
// | | |
// - [1]---O---[2]
#define m_speedF speedIndex( 0 )
void
wheel_odom::Tricycle::calcOdom( )
{
double dx = 0, dy = 0... |
#include <ATen/core/interned_strings.h>
#include <c10/util/Exception.h>
#include <c10/util/irange.h>
#include <torch/csrc/jit/ir/alias_analysis.h>
#include <torch/csrc/jit/ir/constants.h>
#include <torch/csrc/jit/ir/ir.h>
#include <torch/csrc/jit/ir/ir_views.h>
#include <torch/csrc/jit/jit_log.h>
#include <torch/csrc/j... |
// Copyright (c) 2019 Thomas Heller
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under 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 HPX_ASSERT_EVALUATE_ASSERT_HPP
#define HPX_ASSERT_EVALUATE_ASSERT_HPP
#include... |
#include "timelinewidget.h"
TimelineWidget::TimelineWidget(QWidget *parent) : QScrollArea(parent)
{
setAcceptDrops(true);
setAttribute(Qt::WA_TransparentForMouseEvents, false);
setContextMenuPolicy(Qt::CustomContextMenu);
setFocusPolicy(Qt::StrongFocus);
connect(this,SIGNAL(customContextMenuRequest... |
#include "graphics/ShaderProgram.hpp"
#include "FluidApplication.hpp"
int main(int argc, char* argv[])
{
FluidApplication app;
app.exec();
} |
// Copyright 2018 The Amber 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... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2015, Sebastian Schlenkrich
*/
/*! \file templateprocess.hpp
\brief define interface for general multi-dimensional stochastic process
*/
#ifndef quantlib_templatestochasticprocess_hpp
#define quant... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bytcoyn Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/walletdb.h>
#include <base58.h>
#include <consensus/tx_verify.h... |
/*
-------------------------------------------------------------------------------
Copyright (c) Charles Carley.
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 gran... |
#include "standard_lib.hpp"
#include "library/console.hpp"
#include "AttachA_CXX.hpp"
#include <cmath>
#include <math.h>
ValueItem math_abs_impl(ValueItem& val) {
if(val.meta.vtype == VType::async_res)
getAsyncResult(val.val, val.meta);
switch (val.meta.vtype) {
case VType::i8:
return ValueItem((void*)(std::abs... |
//
// FBXSerializer_Mesh.cpp
// interface/src/fbx
//
// Created by Sam Gateau on 8/27/2015.
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifdef _WIN32
#pragma warning( push... |
// Copyright 2015 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "historywork/BatchDownloadWork.h"
#include "catchup/CatchupManager.h"
#include "histor... |
/*
watch.cpp - for Arduino core for the ESP32.
( Use LCD ILI9341 and SD )
Beta version 1.0.4
The MIT License (MIT)
Copyright (c) 2018 Mgo-tec. All rights reserved.
Blog URL ---> https://www.mgo-tec.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associate... |
/*
The MIT License (MIT)
Copyright (c) 2015 Tayfun Kayhan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge,... |
/**
* @file Covariances.cpp
* @brief Providing access to entries of the covariance.
* @author Michael Kaess
* @version $Id: Covariances.cpp 7858 2013-01-14 03:50:24Z kaess $
*
* Copyright (C) 2009-2013 Massachusetts Institute of Technology.
* Michael Kaess, Hordur Johannsson, David Rosen,
* Nicholas Carlevaris-... |
// coding: utf-8
/* Copyright (c) 2012, Niklas Hauser
* Copyright (c) 2017, Raphael Lehmann
* All Rights Reserved.
*
* The file is part of the xpcc library and is released under the 3-clause BSD
* license. See the file `LICENSE` for the full license governing this code.
*/
// -------------------------------------... |
// This file was created automatically, do not modify the contents of this file.
#include "UnrealDotNetRuntime.h"
#include "DotnetTypeName.h"
#include "Generate/Manage/ManageBillboardComponent.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
// Source file C:\Program Files\Epic Games\UE_4.22\Engine\Source\Runtime\Engine\Class... |
//===- ARCInstKind.cpp - ObjC ARC Optimization ----------------------------===//
//
// 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
//
//===---------------------------... |
// -*- C++ -*-
// Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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 ve... |
/*
* SDLDemo - SDL2 Demo project for the Ubuntu SDK.
*
* Written in 2017 by David Kozub <zub@linux.fjfi.cvut.cz>
*
* 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 wi... |
class LowerTrisolve{
public:
local_matrix_type A;
const_int_1d_type diag;
const_double_1d_type r;
double_1d_type z_new;
double_1d_type z_old;
int localNumberOfRows;
int rpt = rows_per_team;
LowerTrisolve(const local_matrix_type& A_,const const_int_1d_type& diag_, const const_double_... |
/* Copyright (c) 2016 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... |
/*****************************************************************************
*
* NXP Confidential Proprietary
*
* Copyright (c) 2015-2017 NXP
* All Rights Reserved
*
*****************************************************************************
*
* THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
* IMPLIE... |
/***
MIT License
Copyright (c) 2018 NUMERARE
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "consensus/yac/transport/impl/network_impl.hpp"
#include <grpc++/grpc++.h>
#include <memory>
#include <fmt/core.h>
#include "consensus/yac/storage/yac_common.hpp"
#include "consensus/yac/transport/yac_pb_con... |
// Copyright 2015 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/bind.h"
#include "base/callback.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
... |
// MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
#include "IndexedHalfEdgeMesh.hpp"
namespace Zero
{
#define DefineHalfEdgeArrayType(arrayType) \
ZilchDefineType(arrayType, builder, type) ... |
#include <propeller.h>
#include "test060.h"
int32_t test060::Func(int32_t A, int32_t B)
{
int32_t Ok = 0;
if (A < B) {
Ok = -1;
} else {
// if more digits, add current digit and prepare next
if (A == 0) {
Ok = -1;
} else {
// if no more digits, add "0"
Ok = 0;
}
}
return... |
#include <ESOData/Filesystem/Archive.h>
#include <ESOData/Filesystem/DataFileHeader.h>
#include <ESOData/Filesystem/FileSignature.h>
#include <ESOData/IO/IOUtilities.h>
#include <ESOData/Serialization/InputSerializationStream.h>
#include <ESOData/Serialization/DeflatedSegment.h>
#include <ESOData/Cryptography/CNGAlg... |
/*
* ISC License
*
* Copyright (C) 2000-2018 by
* Xander Burgerhout
* Simon de Graaf
* N.P. van der Meijs
* Delft University of Technology
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice a... |
// Source file for the scene information program
////////////////////////////////////////////////////////////////////////
// Include files
////////////////////////////////////////////////////////////////////////
namespace gaps {}
using namespace gaps;
#include "R3Graphics/R3Graphics.h"
/////////////////////////... |
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatsub/M4x4bMCb.cpp
// \brief Source file for the M4x4bMCb dense matrix/sparse matrix subtraction math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// Thi... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
#include "testApp.h"
using namespace ofxCv;
using namespace cv;
void testApp::setb(string name, bool value) {
panel.setValueB(name, value);
}
void testApp::seti(string name, int value) {
panel.setValueI(name, value);
}
void testApp::setf(string name, float value) {
panel.setValueF(name, value);
}
bool testApp::g... |
int main() {
// stub for now
}
#if 0
String f = "ChromaticPitches.xml";
String s;
s >> "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>";
s >> "<!DOCTYPE mica PUBLIC";
s >> " \"-//MICA//MICA DTD//EN\"";
s >> " \"https://raw.githubusercontent.com/" <<
"burnson/belle/master/definitions/mica.dtd\">";
... |
#include<bits/stdc++.h>
using namespace std;
void build(int n,char*pre,char*in,char*post){
cout<<"a"<<endl;
if(n<=0)return ;
int x = strchr(in,pre[0])-in;
post[n-1] = pre[0];
build(x,pre+1,in,post);
build(n-x-1,pre+x+1,in+x+1,post+x);
}
int main(){
char preorder[20],inorder[20],postorder[20... |
#include <cage-core/assetContext.h>
#include <cage-core/serialization.h>
#include <cage-core/memoryBuffer.h>
#include <cage-core/typeIndex.h>
#include <cage-engine/assetStructs.h>
#include <cage-engine/renderObject.h>
namespace cage
{
namespace
{
void processLoad(AssetContext *context)
{
Holder<RenderObject>... |
#include <sstream>
#include <set>
#include <vector>
#include <stout/abort.hpp>
#include <stout/check.hpp>
#include <stout/duration.hpp>
#include <stout/foreach.hpp>
#include <stout/json.hpp>
#include <stout/jsonify.hpp>
#include <stout/os.hpp>
#include <stout/os/exists.hpp>
#include <stout/os/write.hpp>
#include <stou... |
// Copyright (C) 2006 Tiago de Paula Peixoto <tiago@forked.de>
//
// Boost Software License - Version 1.0 - August 17th, 2003
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") ... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_MilkGlider_AnimBlueprintBS_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------------------... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2018 The krypttocoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licen... |
#include <airsim_ros_wrapper.h>
#include <boost/make_shared.hpp>
// #include <pluginlib/class_list_macros.h>
// PLUGINLIB_EXPORT_CLASS(AirsimROSWrapper, nodelet::Nodelet)
#include "common/AirSimSettings.hpp"
#include <tf2_sensor_msgs/tf2_sensor_msgs.h>
constexpr char AirsimROSWrapper::CAM_YML_NAME[];
constexpr char Ai... |
// -*- c-basic-offset: 4 -*-
#ifndef CLICK_NOTIFIERQUEUE_HH
#define CLICK_NOTIFIERQUEUE_HH
#include <click/element.hh>
#include <click/notifier.hh>
#include "simplequeue.hh"
CLICK_DECLS
/*
=c
NotifierQueue
NotifierQueue(CAPACITY)
=s storage
stores packets in a FIFO queue
=d
Stores incoming packets in a first-in-f... |
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "../TestUtils.hpp"
#include <Optimizer.hpp>
#include <Half.hpp>
#include <doctest/doctest.h>
using namespace armnn;
TEST_SUITE("Optimizer")
{
using namespace armnn::optimizations;
TEST_CASE("ConvertConstantsFloatToHal... |
#pragma once
#include "PrimalRegressor.hpp"
#include "ufjfmltk/core/DistanceMetric.hpp"
#include <cassert>
namespace mltk{
namespace regressor {
/**
* \brief Wrapper for the implementation of the K-Nearest Neighbors regression algorithm.
*/
template<typename ... |
// Original Author: Broen van Besien
// Created: Mon, 23 Mar 2015 14:56:15 GMT
#include "Alignment/MillePedeAlignmentAlgorithm/plugins/MillePedeFileExtractor.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include <zlib.h>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "Cond... |
#include <iostream>
#include "Matrix.h"
#include "Timer.h"
/**
* Serial: 3521.650 us
* 2: 1880.130 us
* 4: 1050.950 us
* 6: 842.778 us
* 8: 851.907 us
* 10: 737.070 us
* 12: 668.312 us
*/
int main()
{
cppmath::Matrix<double> m1(250, 250, -1.0);
cppmath::Matrix<double> m... |
#include <Functions/IFunctionImpl.h>
#include <Functions/FunctionFactory.h>
#include <Functions/FunctionHelpers.h>
#include <Columns/ColumnString.h>
#include <Columns/ColumnsNumber.h>
#include <Columns/ColumnsCommon.h>
#include <DataTypes/DataTypesNumber.h>
#include <IO/WriteHelpers.h>
namespace DB
{
namespace ErrorC... |
#include "Globals.h"
#include "ModuleSceneLoader.h"
#include "Application.h"
#include "ModuleInput.h"
#include "ModuleFileSystem.h"
#include "ModuleRenderer3D.h"
#include "Libraries/Assimp/include/cimport.h"
#include "Libraries/Assimp/include/scene.h"
#include "Libraries/Assimp/include/postprocess.h"
#include "ModuleSc... |
#include <string>
#include "mtx/responses/profile.hpp"
using json = nlohmann::json;
namespace mtx {
namespace responses {
void
from_json(const json &obj, Profile &profile)
{
if (obj.count("avatar_url") != 0 && !obj.at("avatar_url").is_null())
profile.avatar_url = obj.at("avatar_url").get<std... |
/*
* Author : OFShare
* E-mail : OFShare@outlook.com
* Created Time : 2020-03-10 16:53:33 PM
* File Name : P3717.cc
*/
#include <bits/stdc++.h>
#define ll long long
void debug() {
#ifdef Acui
freopen("data.in", "r", stdin);
freopen("data.out", "w", stdout);
#endif
}
const int N = 1e2 + 5;... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2021 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 "script/standard.h"
#include "pubkey.h"
#include "script/script.h"
#inc... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "alert.h"
#include "checkpoints.h"
#include "db.h"
#include "txdb.h"
#inc... |
#include <string>
#include <iostream>
#include "lexemes.h"
#include "lexemestream.h"
#include "lexer.h"
class LexerUninitializedException : std::exception{ //Thrown if the lexer is used without initialization
const char* what () const throw() {
return "The Lexer has not been initialized.";
}
};
void ... |
/*
* Copyright 2014 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 applica... |
/*
Copyright (c) 2005-2021, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
#include "ring.h"
#include "main.h"
#include <iostream>
Ring::Ring(float x, float y,color_t color) {
this->position = glm::vec3(x, y, 0);
this->rotation = 0;
active_ring = 0;
speed_x = 0.04;
//num_triangles: Specify the roundness of the ring shape
num_triangles = 50;
num_circles = 13;
... |
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 r... |
/**
* \file dnn/test/arm_common/reduce.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS... |
// This code is part of the Super Play Library (http://www.superplay.info),
// and may only be used under the terms contained in the LICENSE file,
// included with the Super Play Library.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NO... |
#include "RedisBlockInputStream.h"
#include <string>
#include <vector>
#include <Poco/Redis/Array.h>
#include <Poco/Redis/Client.h>
#include <Poco/Redis/Command.h>
#include <Poco/Redis/Type.h>
#include <Columns/ColumnNullable.h>
#include <Columns/ColumnString.h>
#include <Columns/ColumnsNumber.h>
#include <IO/ReadHe... |
/*
* Copyright (c) 2015-2016 The Khronos Group Inc.
* Copyright (c) 2015-2016 Valve Corporation
* Copyright (c) 2015-2016 LunarG, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and/or associated documentation files (the "Materials"), to
* deal in the Mate... |
/*
*
* Copyright 2015-2016 gRPC 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 ... |
/*
* 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 "watchman/query/Query.h"
#include "watchman/query/eval.h"
#include "watchman/query/parse.h"
#include "watchman/saved_state... |
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Heiko Strathmann, Soeren Sonnenburg, Weijie Lin
*/
#include <shogun/evaluation/SplittingStrategy.h>
#include <shogun/labels/Labels.h>
using namespace shogun;
CSplittingStrategy::CSplittingStrategy()
{
init();
}
CSplit... |
/*
* Copyright (c) 2013 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 2020, Jesus Tordesillas Torres, Aerospace Controls Laboratory
* Massachusetts Institute of Technology
* All Rights Reserved
* Authors: Jesus Tordesillas, et al.
* See LICENSE file for the license information
* ------------... |
#include <iostream>
#include <string>
using namespace std;
istream &question(istream &ins)
{
cout << "거울아 거울아 누가 제일 예쁘니?" << endl;
return ins;
}
int main()
{
string answer;
cin >> question >> answer;
cout << "세젤예는 " << answer << endl;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.