text stringlengths 5 1.04M |
|---|
//
// FILE: dht.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.20
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
// URL: http://arduino.cc/playground/Main/DHTLib
//
// HISTORY:
// 0.1.20 Reduce footprint (34 bytes) by using int8_t as error codes.
// (thanks to chaveiro)
// 0.1.19 masking ... |
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int m,n,s;
cin>>m>>n;
if(m>=1&&n>=1&&m<=16&&n<=16)
{
s=abs((m*n)/2);
}
cout<<s;
}
|
// 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 "platform/v8_inspector/V8StringUtil.h"
#include "platform/inspector_protocol/String16.h"
#include "platform/v8_inspector/V8DebuggerImpl.h"
#incl... |
// -*- mode: C++ -*-
//
// Copyright (c) 2007, 2008, 2009, 2010, 2011, 2015, 2017 The University of Utah
// All rights reserved.
//
// This file is part of `csmith', a random generator of C programs.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that th... |
//
// UserActivityLoggerScriptingInterface.h
// libraries/networking/src
//
// Created by Ryan Huffman on 6/06/16.
// Copyright 2016 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
//
#include "Us... |
// Copyright (c) 2018-2019, NuoDB, Inc.
// All rights reserved.
//
// Redistribution and use permitted under the terms of the 3-clause BSD license.
#include "NuoJsResultSet.h"
#include "NuoJsErrMsg.h"
#include "NuoJsValue.h"
#include "NuoJsTypes.h"
#include "NuoJsNan.h"
#include "NuoJsNanDate.h"
#include "NuoDB.h"
na... |
/*
* 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... |
#include "CPUBackend.hpp"
#include "Etaler/Core/Views.hpp"
#include "Etaler/Core/Random.hpp"
#include "Etaler/Core/TypeList.hpp"
#include <numeric>
#include <cmath>
#include <tbb/parallel_for.h>
#include <tbb/blocked_range.h>
#include <tbb/parallel_sort.h>
#include <tbb/parallel_reduce.h>
using namespace et;
//Hel... |
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Shader module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_SHADER_AST_ENUMS_HPP
#define NAZARA_SHADER_AST_ENUMS_HPP
#include <Nazara/Prerequisi... |
#ifndef STAN_MATH_PRIM_SCAL_PROB_BERNOULLI_LOG_HPP
#define STAN_MATH_PRIM_SCAL_PROB_BERNOULLI_LOG_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/scal/prob/bernoulli_lpmf.hpp>
namespace stan {
namespace math {
/** \ingroup prob_dists
* @deprecated use <code>bernoulli_lpmf</code>
*/
template <bool p... |
/*
* Copyright (c) 2019 SK Telecom Co., Ltd. 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 requir... |
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softwa... |
#include "testing/testing.hpp"
#include "coding/coder_util.hpp"
#include "base/logging.hpp"
//namespace
//{
// size_t FixedDstSizeInfiniteMemoryEncode(char const *, size_t, char *, size_t /*dstSize*/)
// {
// // LOG(LINFO, ("DstSize", dstSize));
// return -1U;
// }
//}
/* Commented because takes too much ti... |
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int month, day;
cout << "Enter month: ";
cin >> month;
cout << "Enter day: ";
cin >> day;
if (month == 1)
cout << "January" << endl;
system("pause");
return 0;
}
|
#include "tensorflow_serving/gateway/handles.h"
namespace tensorflow {
namespace serving{
string Handles::DebugString() const
{
string ret = "{{update_handles: ";
for (auto handle :update_handles_){
ret = strings::StrCat(ret, handle.first,
handle.second->DebugString(), "... |
#pragma once
#include "Vector3.h"
#include <cmath>
#include <algorithm>
constexpr inline Vector3::Vector3(double x, double y, double z) :
X(x), Y(y), Z(z)
{
}
inline Vector3 Vector3::operator-() const
{
return Vector3(-X, -Y, -Z);
}
inline double Vector3::operator[](int index) const
{
switch (index)
{
case 0... |
// 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/importer/external_process_importer_bridge.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/string_number_c... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "FindSessionsCallbackProxyAdvanced.h"
//////////////////////////////////////////////////////////////////////////
// UFindSessionsCallbackProxyAdvanced
UFindSessionsCallbackProxyAdvanced::UFindSessionsCallbackProxyAdvanced(const FObjectIni... |
// Copyright (c) 2011-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.
//
// Copyright (c) ... |
// 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 "chrome/browser/sessions/restore_on_startup_policy_handler.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#incl... |
// dear imgui, v1.84
// (tables and columns code)
/*
Index of this file:
// [SECTION] Commentary
// [SECTION] Header mess
// [SECTION] Tables: Main code
// [SECTION] Tables: Simple accessors
// [SECTION] Tables: Row changes
// [SECTION] Tables: Columns changes
// [SECTION] Tables: Columns width management
// [SECTIO... |
#include <Arduino.h>
#include <DSPI.h>
#include "SpiFlashRK.h"
DSPI0 _flash_spi;
void SpiFlash::initcs(){
pinMode(cs_pin, OUTPUT);
}
void SpiFlash::csResetFast(){
digitalWrite(cs_pin, LOW);
}
void SpiFlash::csSetFast(){
digitalWrite(cs_pin, HIGH);
}
void SpiFlash::pinResetFast(uint8_t cs_pin){
digitalWrite(cs_pi... |
#ifndef VG_STATISTICS_HPP_INCLUDED
#define VG_STATISTICS_HPP_INCLUDED
/**
* \file statistics.hpp
*
* Defines a range of statistical functions
*
*/
#include <cmath>
#include <algorithm>
#include "utility.hpp"
namespace vg {
using namespace std;
double median(std::vector<int> &v);
// Online mean-variance comp... |
#ifndef DRK_AUDIO_DETAIL_BUFFER_HPP
#define DRK_AUDIO_DETAIL_BUFFER_HPP
#include "Core/Base.hpp"
#include "Audio/detail/AlObject.hpp"
#include "Audio/detail/Util.hpp"
namespace DrkCraft
{
class AlBuffer : public AlObject
{
public:
AlBuffer(AudioSourceFormat format, const void* data, uint size, uin... |
// 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... |
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2021 The ogfuncoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/ogfuncoin-config.h>
#endif
#... |
//===- LLVMDialect.cpp - MLIR SPIR-V dialect ------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------------... |
//===--- ParseGeneric.cpp - Swift Language Parser for Generics ------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
#include "metis_cpu.h"
#ifdef WITH_METIS
#include <metis.h>
#endif
#ifdef WITH_MTMETIS
#include <mtmetis.h>
#endif
#include "utils.h"
torch::Tensor partition_cpu(torch::Tensor rowptr, torch::Tensor col,
torch::optional<torch::Tensor> optional_value,
int64_t nu... |
#include "Directories.h"
#include "Font_Control.h"
#include "MapScreen.h"
#include "Map_Screen_Helicopter.h"
#include "LaptopSave.h"
#include "MessageBoxScreen.h"
#include "Vehicles.h"
#include "Finances.h"
#include "Quests.h"
#include "Game_Clock.h"
#include "Queen_Command.h"
#include "Strategic_Pathing.h"
#include "R... |
/*
Copyright (c) 2015 Advanced Micro Devices, Inc. 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 without restriction, including without limitation the rights
to use, copy,... |
// (C) Copyright Gert-Jan de Vos and Jan Wilmans 2013.
// 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)
// Repository at: https://github.com/djeedjay/DebugViewPP/
#include "stdafx.h"
#include <vector>
#include ... |
//+---------------------------------------------------------------------------
//
// Copyright (C) 1996-1997, Microsoft Corporation.
//
// File: varutil.hxx
//
// Contents: Utilities for variable replacement
//
// History: 96/Jan/3 DwightKr Created
//
//-----------------------------------... |
#include "AccelerationStructure.hpp"
#include "DeviceProcedures.hpp"
#include "RayTracingProperties.hpp"
#include "Utilities/Exception.hpp"
#include "Vulkan/Buffer.hpp"
#include "Vulkan/Device.hpp"
#undef MemoryBarrier
namespace Vulkan::RayTracing {
namespace
{
uint64_t RoundUp(uint64_t size, uint64_t granularity)
... |
#include "event_handler.hpp"
#include "event_handler/event_thread.hpp"
#include "event_handler/events.hpp"
#include <cstdint>
#include <cstdlib>
#include <iostream>
std::mutex EventHandler::m_QueueMutex;
std::vector<Event*> EventHandler::m_Queue;
EventThread** EventHandler::m_Threads;
size_t EventHandler::m_ThreadCo... |
// Copyright 2019 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 <fuchsia/io/c/fidl.h>
#include <lib/zxio/inception.h>
#include <lib/zxio/null.h>
#include <lib/zxio/ops.h>
#include <string.h>
#include <sys/stat.... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_EngramEntry_Saddle_Rhino_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//------------------------------------------------... |
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#include "storage/vectorized/meta_reader.h"
#include <vector>
#include "column/datum_convert.h"
#include "common/status.h"
#include "storage/rowset/beta_rowset.h"
#include "storage/rowset/column_iterator.h"
#include "s... |
#include "src/glib_src.h"
#if _USER_DRIVER == _WINDOWS_DRIVER
#ifdef UNICODE
LPCWSTR WIN_cname = L"GLIB_WNDCLASS";
#else
char * WIN_cname = "GLIB_WNDCLASS";
#endif
HINSTANCE WIN_hinstance;
bool WIN_wmpaint = false;
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hprev, LPSTR str, int cmd)
{
WIN_hinstance = hInst;
W... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#include "aodv-weep-id-cache.h"
#include <algorithm>
namespace ns3 {
namespace weep {
bool
IdCache::IsDuplicate (Ipv4Address addr, uint32_t id)
{
Purge ();
for (std::vector<UniqueId>::const_iterator i = m_idCache.begin ();
i != m_idCache.end... |
#include "nodehandle.h"
NodeHandle::NodeHandle()
{
Readyaml();
AngleLUT();
save_sub = nh.subscribe("interface/bin_save", 1000, &NodeHandle::SaveButton_setting, this);
//blackframe_pub = nh.advertise<sensor_msgs::Image>("camera/black", 1);
blackdis_pub = nh.advertise<std_msgs::Int32MultiArray>("Bla... |
#ifndef DEQUE_POSTINGS_H
#define DEQUE_POSTINGS_H
#include <deque>
#include <iostream>
#include "index/PostingsInterface.hpp"
namespace tsdb {
namespace index {
class DequePostings : public PostingsInterface {
private:
std::deque<uint64_t> list;
mutable int i;
public:
DequePostings() : i(-1) {}
DequePost... |
#ifndef INPUT_SATURATION_H
#define INPUT_SATURATION_H
namespace cgmres {
// Stores parameters representing the saturation on the control input.
// Member variables of InputSaturation:
// index_: the index of the element of the control input that is constrained.
// min_: the minimum value of the constrained element ... |
//
// Copyright (C) 2017 Alex Smith
//
// 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 and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIM... |
#include <CL/cl.hpp>
#include <fstream>
#include <iostream>
#include <algorithm>
// =================================================================
// ---------------------- Secondary Functions ----------------------
// =================================================================
cl::Device getDefaultDevice();... |
/*
* TI Voxel Lib component.
*
* Copyright (c) 2014 Texas Instruments Inc.
*/
#ifdef WINDOWS
#define _USE_MATH_DEFINES
#include <math.h>
#endif
#include "DepthCamera.h"
#include "Logger.h"
#include "PointCloudFrameGenerator.h"
#if defined(ARM_OPT) || defined (x86_OPT)
int32_t nFrameWidth = 0, nFrameHeight = 0;
... |
///////////////////////////////////////////////
/// @file 006_reverse-linked-list.cpp
/// @author Jake Turelli (jake.turelli@gmail.com)
/// @brief https://leetcode.com/problems/reverse-linked-list/
/// @version 0.1
/// @date 2022-01-08
///
/// @copyright Copyright (c) 2022
///
//////////////////////////////////////////... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributio... |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrFlushToGpuDrawTarget.h"
#include "GrContext.h"
#include "GrFontCache.h"
#include "GrGpu.h"
#include "GrBufferAllocPool.h"
GrFlushToGpuDrawTarget::GrFlushToGpuDraw... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2019 The Bitcoin Token developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses... |
// Copyright 2018 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/android/tab_model/tab_model_observer.h"
#include "chrome/browser/android/tab_android.h"
TabModelObserver::TabModelObserver()... |
// Copyright 2020 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 agreed to i... |
#include "camera_mipi.h"
#include <unistd.h>
#include <assert.h>
#include <string.h>
#include <signal.h>
#include <pthread.h>
#include "common/util.h"
#include "common/timing.h"
#include "common/clutil.h"
#include "common/swaglog.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundefined-inline"
... |
/*
Copyright (c) 2010-2020, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of co... |
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "validator/GroupByValidator.h"
#include "planner/plan/Query.h"
#include "util/AnonColGenerator.h"
#include "uti... |
/*
* 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... |
//===-- GlobalStatus.cpp - Compute status info for globals -----------------==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* 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 2018-2020 Drexel University
// Author: Geoffrey Mainland <mainland@drexel.edu>
// See:
// https://pybind11.readthedocs.io/en/stable/advanced/cast/custom.html
// https://github.com/pybind/pybind11/issues/1145
// https://github.com/pybind/pybind11/issues/1389
// https://github.com/pybind/pybind11/is... |
/*5. Average of Values
To get the average of a series of values, you add the values up and then divide the sum
by the number of values. Write a program that stores the following values in five different variables:
28, 32, 37, 24, and 33. The program should first calculate the sum
of these five variables and store the r... |
#include <sharpen/ProcessInfo.hpp>
#ifdef SHARPEN_IS_WIN
#include <Windows.h>
#else
#include <unistd.h>
#endif
#include <sharpen/Optional.hpp>
sharpen::Uint32 sharpen::GetProcessId() noexcept
{
static sharpen::Optional<sharpen::Uint32> id;
if(!id.Exist())
{
#ifdef SHARPEN_IS_WIN
id.Construct(::Ge... |
// Copyright 2016 EssaBlockChain 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 "KeyUtils.h"
#include "crypto/StrKey.h"
namespace essa
{
size_t
KeyUtils::ge... |
#ifndef PORTABLE_BINARY_ARCHIVE_HPP
#define PORTABLE_BINARY_ARCHIVE_HPP
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// 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)
... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatsub/MHaMHa.cpp
// \brief Source file for the MHaMHa dense matrix/dense matrix subtraction math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// This fil... |
/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
http://www.boost.org/
Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
Software License, Version 1.0. (See accompanying file
LICENSE_1_0.txt o... |
#include <windows.h>
#include "PatternFinder.hpp"
#include "NamesStore.hpp"
#include "EngineClasses.hpp"
class FNameEntry
{
public:
__int32 Index;
char pad_0x0004[0x4];
FNameEntry* HashNext;
union
{
char AnsiName[1024];
wchar_t WideName[1024];
};
const char* GetName() const
{
return AnsiName;
}
};
t... |
//
// FILE NAME: CIDMacroEng_FlowCtrlItem.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/08/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestGPURayCastTransfer2DYScalars.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
// dear imgui, v1.84 WIP
// (main code and documentation)
// Help:
// - Read FAQ at http://dearimgui.org/faq
// - Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
/... |
// Copyright 2019 Nikita Fediuchin
//
// 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 t... |
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Copyright (c) 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.
#define BOOST_TEST_MODULE Macrocoin Test Suite
#include "main.h"
#include "ran... |
/*
* Copyright 2014 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
-- MAGMA (version 2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@author Adrien REMY
@generated from src/zgetrs_nopiv_gpu.cpp, normal z -> s, Sat Mar 27 20:30:34 2021
*/
#include "magma_internal.h"
/********... |
/*********************************************************************
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, Daichi Yoshikawa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
#ifdef COMPILATION// -*-indent-tabs-mode:t;c-basic-offset:4;tab-width:4-*-
$CXX $0 -o $0x -lcudart -lboost_unit_test_framework -lboost_timer&&$0x&&rm $0x;exit
#endif
// © Alfredo A. Correa 2019-2020
#ifndef MULTI_ADAPTORS_CUDA_HPP
#define MULTI_ADAPTORS_CUDA_HPP
#include "../memory/adaptors/cuda/allocator.hpp"
#inclu... |
// (C) Copyright Edward Diener 2011,2012,2013
// 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).
#if !defined(BOOST_TTI_DETAIL_STATIC_MEM_FUN_HPP)
#define BOOST_TTI_DETAIL_STAT... |
// Copyright 2019 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-cdc-acm.h"
#include <assert.h>
#include <fuchsia/hardware/serial/c/fidl.h>
#include <zircon/hw/usb.h>
#include <zircon/hw/usb/cdc.h>
#inclu... |
#include <hook_manager.hpp>
#include "qfx_runtime.hpp"
#include "render/qfx_renderer.hpp"
#define IS_3D_PROJECTION_MATRIX(x) (x[2*4+3] < 0)
#define MATRIXMODE RENDERER->GetLastMatrixMode()
#define RENDERER QfxRenderer::GetInstance()
using namespace reshade;
using namespace QuakeFX;
HOOK_EXPORT void WINAPI qfx_glMat... |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Copyright (c) 2017 The BTBZ developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "data/script_invalid.json.h"
#include "data/script_valid.json.h"
#include... |
#include "Internal.hpp"
using namespace AppCUI::OS;
using SpecialFolderList = std::vector<std::pair<std::string, std::filesystem::path>>;
void AddSpecialFolder(REFKNOWNFOLDERID specialFolerID, const char * name, SpecialFolderList& specialFolderList)
{
LPWSTR resultPath = nullptr;
HRESULT hr;
hr = SHGetKn... |
#pragma once
#include "API/Types.hpp"
#include "Common.hpp"
#include "Services/Hooks/Hooks.hpp"
#include "ViewPtr.hpp"
namespace Events {
class PVPEvents
{
public:
PVPEvents(NWNXLib::ViewPtr<NWNXLib::Services::HooksProxy> hooker);
private:
static int32_t HandlePlayerToServerPVPListOperationsHook(CNWSMessage... |
// Copyright 2019 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/content_settings/browser/content_settings_manager_impl.h"
#include "base/memory/ptr_util.h"
#include "components/content_settings/br... |
// ------------------------------------------------------------------------ //
// Copyright 2021 SPTK Working Group //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
#include "generics/aliveentity.hpp"
void AliveEntity::increaseHealth(float modifier){
this->health += modifier;
}
void AliveEntity::increaseSpeed(float modifier){
this->speed += modifier;
}
void AliveEntity::decreaseHealth(float modifier){
this->onCombo = true;
this->entityComboDelimeter.resetLastUpdate();
this... |
/** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 L... |
#include "log_manager.h"
#include <sstream>
namespace pbr::shared::apis::logging {
bool log_manager::add_endpoint(const std::shared_ptr<endpoint>& endpoint) noexcept {
if (!endpoint) {
return false;
}
std::scoped_lock<std::mutex> lock(this->_mutex);
this->_endpoints.p... |
#include<cstdio>
#include <cstring>
#define BASE 1000
#define WIDTH 255
#define DBGOUT(a) ({\
printf("DEBUG:line[%d]:out: "#a"=",__LINE__);\
out(a);\
putchar('\n');\
})
typedef struct{
int buf[WIDTH],top=0;
}BGint;
BGint a[WIDTH][WIDTH];
BGint dp[WIDTH][WIDTH];
int m,n;
void read(void);
void solve(int);
v... |
// Copyright 2016 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 <fcntl.h>
#include <fuchsia/media/playback/cpp/fidl.h>
#include <fuchsia/sys/cpp/fidl.h>
#include <fuchsia/ui/views/cpp/fidl.h>
#include <lib/sys/... |
#pragma once
#ifndef OPENGM_EXTERNAL_QPBO_HXX
#define OPENGM_EXTERNAL_QPBO_HXX
#include "opengm/graphicalmodel/graphicalmodel.hxx"
#include "opengm/inference/inference.hxx"
#include "opengm/inference/visitors/visitors.hxx"
//#include "opengm/inference/alphabetaswap.hxx"
//#include "opengm/inference/alphaexpansion.hxx"... |
// Copyright 2019 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 <memory>
#include <vector>
#include "ash/constants/ash_features.h"
#include "ash/public/cpp/shelf_model.h"
#include "ash/public/cpp/window_prope... |
//===-- BPFISelLowering.cpp - BPF DAG Lowering Implementation ------------===//
//
// 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) Glow Contributors. See CONTRIBUTORS file.
*
* 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 b... |
// Copyright 2014 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#if ENABLE(WEB_AUDIO)
#include "V8AudioNode.h"
#include... |
#include"Vector3.h"
Vector3::Vector3(){}
Vector3::Vector3(double x_,double y_,double z_){
x=x_;
y=y_;
z=z_;
}
Vector3 Vector3::operator*(double cons){
Vector3 ans;
ans.x=cons*x;
ans.y=cons*y;
ans.z=cons*z;
return ans;
} |
// Copyright (c) 2019-2021 The BIGKEYCOIN Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <node/psbt.h>
#include <psbt.h>
#include <... |
//
// Created by mati on 08.05.2020.
//
#include <unistd.h>
#include "Dron.h"
Dron::Dron(std::shared_ptr<drawNS::Draw3DAPI> ptrApi, const SWektor<double, ROZMIAR> &sr) : Prostopadloscian(ptrApi, sr)/*, Sruba(ptrApi, sr)*/{
Sruba TmpLewa(ptrApi, Prostopadloscian::Wierzcholki[0]);
Lewa = TmpLewa;
Sruba Tm... |
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "Logger.h"
Logger::Logger(void)
{
m_count = 0;
memset(m_dirname, 0, sizeof(m_dirname));
memset(m_logname, 0, sizeof(m_logname));
}
Logger::~Logger(void)
{
if(m_fp != NULL)
{
fclose(m_fp);
m_fp = NULL;
}... |
#include <iostream>
#include <map>
#include <string>
#include <ctype.h>
#include <locale>
#include <windows.h>
using namespace std;
string fromDos (string dosString)
{
char buf[1000000] ;
OemToCharA(dosString.c_str(), buf) ; // windows.h
return buf ;
}
int main()
{
setlocale (LC_ALL, "bulgarian") ;
std::string... |
/* IZ3D_FILE: $Id: PostprocessedOutput.cpp 1540 2008-12-25 14:41:36Z kostik $
*
* Project : iZ3D Stereo Driver
* Copyright (C) iZ3D Inc. 2002 - 2010
*
* $Author: kostik $
* $Revision: 1540 $
* $Date: 2008-12-25 17:41:36 +0300 (Чт, 25 дек 2008) $
* $LastChangedBy: kostik $
* $URL: svn://svn.neurok.ru/dev/driver/trunk/S... |
#include<bits/stdc++.h>
using namespace std;
void solve(string word) {
int n = word.length();
if (n > 10) {
char begin = word.at(0);
char end = word.at(n-1);
cout << begin << n-2 << end << endl;
} else {
cout << word << endl;
}
}
int main() {
int t;
cin >> t;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.