text stringlengths 7 961k |
|---|
#include "ula_tb.h"
void driver::drive(){
// Tempo para inicializacao
wait(1, SC_NS);
// Se SIZE = 16
#if SIZE == 16
//// ADD
cout << "//// Testes ADD:" << endl;
opcode = ADD;
// A = 4, B = 4, Z esperado = 8
A = "0x0004"; B = "0x0004";
wait(1, SC_NS);
// A = 4, B = - 4, Z esperado = 0, zero esperado = 1
... |
#pragma once
#include <iostream>
#include <complex>
using namespace std;
namespace solver{
class RealVariable{
private:
double number;
public:
RealVariable(double number = 0): number(number){}
//^//--------------------------------------------------------------------
... |
#include "stdafx.h"
#include "P23.MetaTrader4.Manager.ClrWrapper.h"
void P23::MetaTrader4::Manager::ClrWrapper::LogsOut(int code, System::String^ source, System::String^ msg)
{
if (System::String::IsNullOrEmpty(source))
throw gcnew ArgumentNullException("source");
if (System::String::IsNullOrEmpty(msg))
throw ... |
/***************************************************************************
* Copyright 1998-2018 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... |
// Copyright 2013 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/gfx/animation/tween.h"
#include <math.h>
#if defined(OS_WIN)
#include <float.h>
#endif
#include "testing/gtest/include/gtest/gtest.h"
#inc... |
// 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 "components/cast_channel/keep_alive_delegate.h"
#include <stdint.h>
#include <memory>
#include "base/json/json_writer.h"
#include "base/macros... |
//////////////////////////////////////////////////////////////////////////////
// NOTICE:
//
// ADLib, Prop and their related set of tools and documentation are in the
// public domain. The author(s) of this software reserve no copyrights on
// the source code and any code generated using the tools. You are encourag... |
/*
Copyright (c) 2002-2009 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... |
// Copyright (C) 2020-2021 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#include <lexy/dsl/base.hpp>
// Just to test that the header compiles. |
#pragma once
#include <cstdbool>
#include <cstdint>
#include "commonstate.hpp"
#include "param.hpp"
#include "board.hpp"
namespace ros_flight {
class Mux {
public:
enum class control_type_t
{
RATE, // Channel is is in rate mode (mrad/s)
ANGLE, // Channel command is in angle mode (mrad)
... |
/*
-----------------------------------------------------------------------------------------------
Copyright (C) 2013 Henry van Merode. 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 ... |
/* Copyright 2019 Istio 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 applicab... |
#include "App.h"
#include "Window.h"
#include "Input.h"
#include "Render.h"
#include "Textures.h"
#include "Audio.h"
#include "Scene.h"
#include "Physics.h"
#include "Player.h"
#include "UI.h"
#include "Defs.h"
#include "Log.h"
#include <iostream>
#include <sstream>
// Constructor
App::App(int argc, char* args[]) : ... |
/*
* Copyright 2021 The CFU-Playground 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 l... |
/******************************************************************************
* Copyright (c) 2018(-2021) STMicroelectronics.
* All rights reserved.
*
* This file is part of the TouchGFX 4.17.0 distribution.
*
* This software is licensed under terms that can be found in the LICENSE file in
* the root directory of thi... |
/* 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... |
/*
* @brief 数学/写像12相/分割数 $n = m$ 版
*/
#define PROBLEM "https://judge.yosupo.jp/problem/partition_function"
#include <iostream>
#include <vector>
#include "../../../math/modint.hpp"
#include "../../../math/convolution/number_theoretic_transform.hpp"
#include "../../../math/formal_power_series/formal_power_series.hpp"... |
#include "StdAfx.h"
#include "CustomRoboCompress.h"
CCustomRoboCompress::CCustomRoboCompress(void)
{
}
CCustomRoboCompress::~CCustomRoboCompress(void)
{
}
/*standard 32bit byteswapcustomroboping*/
unsigned long byteswapcustomrobo(unsigned long w)
{return (w >> 24) | ((w >> 8) & 0x0000ff00) | ((w << 8) & 0x00ff0000) ... |
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
using namespace std;
vector<string> split(string const& s, char delim=' ')
{
vector<string> elems;
stringstream ss(s);
string item;
while (getline(ss, item, delim)) {
elems.push_back(item);
}
return elems;
}
//Here's another solution.... |
/*
* Copyright (c) 2015-present, 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.
*
*/
#inc... |
// Copyright (c) 2011-2016 The Alphapay Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "key.h"
#include "keystore.h"
#include "policy/policy.h"
#include "script/script.h"
#include "script/script_error.h... |
#include<iostream>
#include<thread>
#include<chrono>
#include<mutex>
using namespace std;
mutex m;
int* generateArray(int N) {
int* values = new int[N];
for (int i = 0; i < N; i++) {
values[i] = i % 100;
}
return values;
}
int getMinim(int* values, int iStart, int iFinal) {
int minim = values[iStart];
for ... |
/* 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... |
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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. ... |
/**************************************************************
*
* 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 y... |
/*
* Copyright (C) 2018 ifm syntron gmbh
*
* 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 agree... |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <utility>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#define MAX 10010
#define MOD 1000000007
using namespace std;
typedef long long LL;
typedef unsigned lo... |
//===- test_cxx_gen.cc ----------------------------------------------------===//
//
// Copyright (C) 2019-2020 Alibaba Group Holding Limited.
//
// 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 ... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef LIBP2P_INCLUDE_LIBP2P_NETWORK_IMPL_DNSADDR_RESOLVER_IMPL_HPP
#define LIBP2P_INCLUDE_LIBP2P_NETWORK_IMPL_DNSADDR_RESOLVER_IMPL_HPP
#include <libp2p/network/dnsaddr_resolver.hpp>
#include <memory>
#include <str... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2016-2017 The PIVX developers
// Copyright (c) 2016-2017 The RSTR developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licens... |
#include <iostream>
#include <stdio.h>
#include<list>
using namespace std;
class Hall{
private:
string name;
int contactNumber;
double costPerDay;
string ownerName;
public:
Hall(){ }
Hall(string name, int contactNumber, double costPerDay, string ownerName){
... |
// Copyright (c) 2007-2015 Hartmut Kaiser
//
// 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)
/// \file new.hpp
#if !defined(HPX_RUNTIME_COMPONENTS_NEW_OCT_10_2012_1256PM)
#define HPX_RUNTIME_COMPONENTS_NEW_OCT_... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
class Solution {
public:
vector<string> restoreIpAddresses(string s) {
vector<string> temp;
vector<string> ans;
dfs(s, temp, ans);
return ans;
}
void dfs(string s, vector<string> &temp, vector... |
#ifndef UTIL_LUA_STRING_EXT_HPP
#define UTIL_LUA_STRING_EXT_HPP
struct lua_State;
namespace util
{
void extendString(lua_State* plua_state);
}
#endif // UTIL_LUA_STRING_EXT_HPP |
#include <bits/stdc++.h>
using namespace std;
void solve() {
int n; cin >> n;
vector<int> a(n);
for (auto& x: a) cin >> x;
bool alleq = true;
int adjeq = -1;
for (int i = 0; i < n; i++) {
alleq &= (a[i]==a[0]);
if (a[i]==a[(i+1)%n]) adjeq = i;
}
int res = 3;
if (al... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "vpu/frontend/frontend.hpp"
#include "vpu/utils/profiling.hpp"
#include "vpu/compile_env.hpp"
#include "vpu/model/data_contents/ie_blob_content.hpp"
#include <legacy/net_pass.h>
#include <atomic>
#include <memory>
#includ... |
#ifdef COMPILATION// -*-indent-tabs-mode:t;c-basic-offset:4;tab-width:4;-*-
$CXXX $CXXFLAGS $0 -o $0.$X -lboost_unit_test_framework&&$0.$X&&rm $0.$X;exit
#endif
// © Alfredo A. Correa 2019-2020
#ifndef MULTI_ADAPTORS_BLAS_NUMERIC_HPP
#define MULTI_ADAPTORS_BLAS_NUMERIC_HPP
#include "../../memory/pointer_traits.hpp"
#... |
// Copyright (C) 2014-2015 Hartmut Kaiser
//
// 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)
#if !defined(HPX_UNORDERED_MAP_NOV_11_2014_0857PM)
#define HPX_UNORDERED_MAP_NOV_... |
#include<cstdio>
#include<cstring>
#include<cmath>
int val[500],xval[500];
char str[500];
void prepare() {
for(int i = 0,j = 0;i < strlen(str);i++,j++) {
if(str[i] == '.') {
j--;
continue;
}
xval[j] = str[i] - '0';
}
}
bool compare() {
for(int i = 0;i < 500;) {
if(val[i] == xval[i]) {
i++;
}else i... |
#include <winapi/gui/windowing-support/Window_owner_handle.hpp> |
#ifndef OCCA_LANG_PARSER_HEADER
#define OCCA_LANG_PARSER_HEADER
#include <map>
#include <vector>
#include <occa/tools/properties.hpp>
#include <occa/lang/kernelMetadata.hpp>
#include <occa/lang/keyword.hpp>
#include <occa/lang/loaders.hpp>
#include <occa/lang/preprocessor.hpp>
#include <occa/lang/processingStages.hpp... |
#include <iostream>
#include <thread>
#include "main.hpp"
int main() {
std::vector<std::vector<int> > a = readImage();
std::vector<std::vector<int> > b = a;
std::vector<std::vector<int> > c = a;
std::vector<std::vector<int> > d = a;
std::vector<std::vector<int> > e = a;
std::vector<std::vector<int> > f = ... |
#include "exception.hpp"
#include "basic_types.hpp"
#include <sstream>
namespace bias {
RuntimeError::RuntimeError( const unsigned int error_id, const std::string &what_arg)
: std::runtime_error(what_arg)
{
error_id_ = error_id;
}
unsigned int RuntimeError::id()
{
return e... |
#pragma once
#include "ParserAction.hpp"
namespace axis { namespace services { namespace language { namespace actions {
class NopAction : public ParserAction
{
public:
virtual void Run( const axis::services::language::parsing::ParseResult& result ) const;
virtual ParserAction& Clone( void ) const;
};
} } } } ... |
#include "delay.h"
#include <chrono>
#include <thread>
void dpsoDelay(int milliseconds)
{
std::this_thread::sleep_for(
std::chrono::milliseconds(milliseconds));
} |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/*
* Copyright 2020 Stephane Cuillerdier (aka Aiekick)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... |
/*
* Hamiltonian.cpp
*
* Created on: Oct 9, 2016
* Author: zxi
*/
#include "GraphTSP.h"
#include <iostream>
#include <fstream>
#include <assert.h>
#include <random> // std::default_random_engine
#include <map>
#include <sstream>
#include <cstdlib>
//#include <opencv2/imgproc.hpp>
using namespace std... |
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<ctime>
#include<cstdlib>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<vector>
#define ri register int
#define ll long long
using namespace std;
int T;
ll n,Min;
inline int getint()
{
int num=0,bj=1;
char c... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace game {
enum class GodModeType : uint32_t
{
Invulnerable = 0,
Immortal = 1,
Mortal = 3,
};
} // namespace game
} // namespace RED4ext |
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pubkey.h"
#include "eccryptoverify.h"
#ifdef USE_SECP256K1
#include <secp256k1.h>
#else
#include "ecwrapper.h"
#endif
... |
/*
* Copyright 2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later ver... |
class Solution {
public:
int longestPalindrome(string s) {
unordered_map<char, int> m;
bool saw_single_char = false;
int total = 0;
for(char ch: s) m[ch]++;
for(auto &x: m) {
if(x.second % 2 == 0) total += x.second;
else {
... |
#include "cross_validation.h"
#include "train_model.h"
#include "preprocess.h"
#include <catboost/libs/algo/train.h>
#include <catboost/libs/algo/helpers.h>
#include <catboost/libs/metrics/metric.h>
#include <catboost/libs/loggers/logger.h>
#include <catboost/libs/helpers/data_split.h>
#include <catboost/libs/helpers/... |
#include <iostream>
#include <stdlib.h>
using namespace std;
extern void productosOptica(int opcion);
extern void imprimirFactura();
void menu(){
system("color F2");
cout << endl;
cout << "\t\t\t\t===============================" << endl;
cout << "\t\t\t\t\tOPTICA OMEGA VISION" << endl;
cout << "\t\t\t... |
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include "netbase.h"
#include "optionsmodel.h"
#include <QDir>
#include <QIntValidator>
#include <QLocale>
#include <QMessageBox>
#include <QRegExp>
#include <QRegExpValidator>
OptionsDialog::OptionsDi... |
/**
* Copyright (C) 2016-2019 Xilinx, Inc
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*Exercise 3 - Repeatition
Convert the C program given below which calculates the Factorial of a number that you input from the keyboard to a C++ program.
Please Note that the input command in C++ is std::cin. This is a representation of the Keyboard.*/
#include <iostream>
int main()
{
int no;
long fac;
... |
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkMembershipFunctionBaseTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCo... |
#include <fstream>
#include <iostream>
#include <string.h>
using namespace std;
const int maxn = 1000005;
const int mod = 1000000007;
int a[maxn], n, t, impar[maxn], par[maxn];
int main() {
ifstream fin("azerah.in");
ofstream fout("azerah.out");
fin >> t;
while(t -- ) {
fin >> n;
for(int i = 1 ; i <= n ; +... |
/**
* The date June l0, 1960 is special because when we write it in the following format, the month times the day equals
* the year.
*
* 6/10/60
*
* Write a program that asks the user to enter a month (in numeric form), a day, and a two-digit year. The program should then determine whether the month times the day... |
/*
* Copyright(c) 2019 Intel Corporation
* SPDX - License - Identifier: BSD - 2 - Clause - Patent
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
// workaround to eliminate the compiling warning on linux
// The macro will conflict with definition in gtest.h
#ifdef __USE_GNU
#undef __USE_GNU // defined... |
// 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/notifications/notification_display_queue.h"
#include <algorithm>
#include <utility>
#include "chrome/browser/notifications/noti... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include <gtest/gtest.h>
#include "example.h"
TEST(example, subtract) {
double res;
res = subtract_numbers(1.0, 2.0);
ASSERT_NEAR(res, -1.0, 1.0e-11);
} |
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2021
//
// 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)
//
#include "td/telegram/DialogId.h"
#include "td/telegram/Messa... |
#include <omp.h>
#include <benchmark/benchmark.h>
#include <iostream>
#include <vector>
// L1: 32KB
// L2: 256KB
// L3: 12MB
constexpr size_t n = 1<<27; // 512MB
std::vector<float> a(n);
static uint32_t randomize(uint32_t i) {
i = (i ^ 61) ^ (i >> 16);
i *= 9;
i ^= i << 4;
i *= 0x27d4eb2d;
i ^= i >> 15;
r... |
/*---------------------------------------------------------------------------*\
Copyright (C) 2015 Applied CCM
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
under the ter... |
#include "graph/Edge.h"
#include "graph/Vertex.h"
#include "gtest/gtest.h"
TEST(Vertex, initialize) {
cuhksz::Vertex v[10];
v[0] = cuhksz::Vertex(3);
}
TEST(Vertex, getter) {
cuhksz::Vertex v(3);
EXPECT_EQ(v.getVal(), 3);
}
TEST(Vertex, setter) {
cuhksz::Vertex v(3);
v.setVal(5);
EXPECT_EQ(v.getVal(),... |
#include "RunGen.h"
using namespace Halide::RunGen;
using Halide::Tools::BenchmarkConfig;
namespace {
struct RegisteredFilter {
struct RegisteredFilter *next;
int (*filter_argv_call)(void **);
const struct halide_filter_metadata_t *filter_metadata;
};
RegisteredFilter *registered_filters = nullptr;
ext... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
// atcoder/abc180/E/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << ... |
/* Sirikata
* FCache.cpp
*
* Copyright (c) 2010, Behram Mistree
* 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 copyrigh... |
#include <string> // string
#include "Ammo.h" // Ammo, TESEquipEventHandler
#include "Helmet.h" // Helmet, BSAnimationGraphEventHandler
#include "PlayerUtil.h" // AnimationGraphEventHandler
#include "Settings.h" // Settings
#include "Shield.h" // Shield, BSAnimationGraphEventHandler
#include "version.h" // VER... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*============================================================
**
** Header: AppDomain.cpp
**
**
** Purpose: Implements AppDomain (loader domain) architecture
**
**
===============... |
/*
* Copyright 2016 by Philip N. Garner
*
* See the file COPYING for the licence associated with this software.
*
* Author(s):
* Phil Garner, October 2016
*/
#include <QApplication>
#include <QMainWindow>
#include <qwt_plot.h>
#include <qwt_plot_grid.h>
#include <qwt_plot_curve.h>
#include "lube/qwt.h"
nam... |
/////////////////////////////////////////////////////////////////////////////
// Program: wxWidgets Widgets Sample
// Name: hyperlnk.cpp
// Purpose: Part of the widgets sample showing wxHyperlinkCtrl
// Author: Dimitri Schoolwerth, Vadim Zeitlin
// Created: 27 Sep 2003
// Copyright: (c) 2003 w... |
// generated from rosidl_generator_cpp/resource/idl.hpp.em
// generated code does not contain a copyright notice
#ifndef RCL_INTERFACES__MSG__SET_PARAMETERS_RESULT_HPP_
#define RCL_INTERFACES__MSG__SET_PARAMETERS_RESULT_HPP_
#include "rcl_interfaces/msg/set_parameters_result__struct.hpp"
#include "rcl_interfaces/msg/... |
//
// main.cpp
// Exercise 2
//
// Created by Zhehao Li on 2020/2/28.
// Copyright © 2020 Zhehao Li. All rights reserved.
//
// Test Point class -- Pass argumeent by reference to Distance()
#include "Point.hpp"
#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char * argv[]) {
... |
//
// Created by Mpho Mbotho on 2020-10-07.
//
#include "suil/base/datetime.hpp"
namespace suil {
Datetime::Datetime(time_t t)
: m_t(t)
{
gmtime_r(&m_t, &m_tm);
}
Datetime::Datetime()
: Datetime(time(nullptr))
{}
Datetime::Datetime(const char *fmt, const char... |
#include "FEAdaptor.h"
#include "FEDataStructures.h"
#include <iostream>
#include <vtkCPDataDescription.h>
#include <vtkCPInputDataDescription.h>
#include <vtkCPProcessor.h>
#include <vtkCPPythonScriptPipeline.h>
#include <vtkCPPythonScriptV2Pipeline.h>
#include <vtkCellData.h>
#include <vtkCellType.h>
#include <vtkDo... |
# ifndef GL_WINDOW_HANDLER
# define GL_WINDOW_HANDLER 1
# include <string.h>
# include <GL/glew.h>
# include <GLFW/glfw3.h>
# include <glm/glm.hpp>
using namespace glm ;
# include "logging_handler.cpp"
GLFWwindow * mainWindow ;
short int windowWidth ;
short int windowHeight ;
class windowHandler {
... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2011. 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)
//
// See http://www.boost.org/libs/contain... |
// Copyright (c) 2008, Google 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 list of conditi... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 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 <wallet/wallet.h>
#include <base58.h>
#include <checkpoints.h>
#include... |
#include <iostream>
int route[10][10]
void dfs(int **);
void dfs(int **Map, int need, int x, int y) {
for (int i = 0; i < 4; i++) {
switch (i)
case 0:
dfs(Map, need, x + 1, y);
break;
case 1:
dfs(Map, need, x -1, y);
break;
case 2... |
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// 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 htt... |
//
// audioexport.cpp
// MDStudio
//
// Created by Daniel Cliche on 2015-08-29.
// Copyright (c) 2015-2020 Daniel Cliche. All rights reserved.
//
#include "audioexport.h"
#include "platform.h"
extern "C" {
#include <libaiff/libaiff.h>
}
using namespace MDStudio;
// ---------------------------------------------... |
/*
* Copyright 2017 MapD Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
#include <iostream>
using namespace std; // Using Directives
//using std::cout; //only making the particular function available
int main()
{
int slices;
cout<<"How many slices:";
cin>>slices; // cin instance of istream. Takes input from console
cout<<"You have "<<slices<<" slices"<<endl;
return 0;
} |
/**
* @file circletest.h
* @author Petr Vana
* @brief Test of the optimal solution for the Generalized Dubins Interval Problem (GDIP)
*/
#include "gtest/gtest.h"
#include "opendubins/dubins.h"
using namespace opendubins;
using namespace std;
namespace gdiptest {
const int COUNT = 2000;
int typeCount[200] =... |
/**
* @file sigmoid_internal.cpp
* @author Daniel Nichols
* @version 0.1
* @date 2019-02-23
*
* @copyright Copyright (c) 2019
*/
#include "compute/sigmoid/sigmoid_internal.h"
namespace magmadnn {
namespace internal {
template <typename T>
void sigmoid_full(Tensor<T> *x, Tensor<T> *out, bool fast) {
if (x->... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DinoDeathHarvestingComponent_Small_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-----------------------------------------------... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <shared_test_classes/single_layer/proposal.hpp>
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "shared_test_classes/single_layer/psroi_pooling.hpp"
#include "shared_test_classes/single_layer/roi_pooling.h... |
/**
* @file unit_test_fnd_static_string.cpp
*
* @brief bksge::static_string のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/static_string/static_string.hpp>
#include <bksge/fnd/string_view/string_view.hpp>
#include <bksge/fnd/compare/is_eq.hpp>
#include <bksge/fnd/compare/is_gt.hpp>
#include <bksge/fnd/compare... |
/* -------------------------------------------------------------------------
*
* nodeBitmapHeapscan.cpp
* Routines to support bitmapped scans of relations
*
* NOTE: it is critical that this plan type only be used with MVCC-compliant
* snapshots (ie, regular snapshots, not SnapshotNow or one of the other
* spec... |
#include <functional>
#include <iostream>
#include <string>
#include <tuple>
#include <vector>
#include "nlohmann/json.hpp"
#include <fstream>
#include <sstream>
#include "absl/flags/parse.h"
#include "absl/flags/flag.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_vi... |
// cmcstl2 - A concept-enabled C++ standard library
//
// Copyright Casey Carter 2016
//
// Use, modification and distribution is 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)
//
// Project home: https://github.c... |
// Copyright (c) 2006, Google 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 list of conditi... |
// Copyright (C) 2005-2010 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.