text stringlengths 5.71k 33.7k |
|---|
// This file is part of OpenMVG, an Open Multiple View Geometry C++ library.
// Copyright (c) 2016 <NAME>, <NAME>
// 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 http://mozilla.org/MPL/2.0/.
#... |
#include <vsgXchange/ShaderCompiler.h>
#include <glslang/Public/ShaderLang.h>
#include <SPIRV/GlslangToSpv.h>
#include "../glsl/ResourceLimits.h"
#include <algorithm>
#include <iomanip>
#include <iostream>
using namespace vsgXchange;
#if 1
#define DEBUG_OUTPUT std::cout
#else
#define DEBUG_OUTPUT if (false) std::c... |
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Electronic Arts Inc. All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#include "TestThread.h"
#include <EATest/EATest.h>
#include <EAStdC/EAStopwatch.h>
#include <eathrea... |
// Copyright (c) 2020, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions a... |
/*
* Copyright (c) 2016, SRCH2
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
/*
* FFBWheel.cpp
*
* Created on: 31.01.2020
* Author: Yannick
*/
#include "FFBWheel.h"
#include "FFBWheel_usb_init.h"
#include "voltagesense.h"
// Unique identifier for listing
ClassIdentifier FFBWheel::info = {
.name = "FFB Wheel" ,
.id=1
};
const ClassIdentifier FFBWheel::getInfo(){
return info... |
#include "myinfo.h"
#include <string.h>
#include <error_type.h>
#include <nvs_memory.h>
#include <esp_log.h>
#include <cryptoauthlib.h>
#include "app.h"
using libesp::ErrorType;
using libesp::NVS;
const char *MyInfo::LOGTAG = "MyInfo";
// MyInfo
//===========================================================
MyInfo::M... |
/*
BLAKE2 reference source code package - reference C implementations
Copyright 2012, <NAME> <<EMAIL>>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
- CC0 1.0 Universal : http://creativ... |
/* -------------------------------------------------------------------------
*
* proclang.cpp
* PostgreSQL PROCEDURAL LANGUAGE support code.
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regent... |
/*
* Copyright (c) 2015, Nagoya University
* 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 ... |
/*
* Copyright 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.
* 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... |
//
// GlobTest.cpp
//
// $Id: //poco/1.4/Foundation/testsuite/src/GlobTest.cpp#1 $
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompa... |
/*
* This file is part of the OpenKinect Project. http://www.openkinect.org
*
* Copyright (c) 2014 <NAME>, 2015 individual OpenKinect contributors.
* See the CONTRIB file for details.
*
* This code is licensed to you under the terms of the Apache License, version
* 2.0, or, at your option, the terms of the GNU G... |
// =============================================================================
// MIT License
//
// Copyright (c) 2017-2018 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software wit... |
#include "ZEditor.hpp"
#include "ZVMHelpers.hpp"
#include "ColorType.hpp"
#include "ZBuilder.hpp"
ColorType getTermColorType(Term t)
{
switch(t.tt)
{
case tInt:return ctInt;
case tDouble:return ctDouble;
case tString:return ctString;
case tRawString:return ctString;
case tNil:return ctKeyword;
... |
/*
* Sony MD Remote state handler
* <NAME> 2022 <<EMAIL>>
*
* Processes packets from the MD player into structured data.
* Has the ability to take updates from the device as well as send data to a remote
*
* The only requirement is you call md_loop() as fast as you can,
* Use the getters and setters, then _... |
// =================================================================================================
// Copyright Adobe
// Copyright 2006 Adobe
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it. ... |
#include "config/VRDataIndex.h"
#include "config/VRDataQueue.h"
#include <main/VRConfig.h>
int TestQueueArray();
int TestQueueUnpack();
int TestQueueMultipleTimeStamps();
int TestQueueIterator();
int TestAddQueue();
int TestAddQueueSerialized();
int queuetest(int argc, char* argv[]) {
int defaultchoice = 1;
int... |
#include "stdafx.h"
#include "nfxdetect.h"
#include "registry.h"
#include <string>
#include <vector>
using namespace std;
void nfxDetect(int* nfxVersions) {
int i=0;
int error=0;
std::wstring data;
for(i=0; i<8; i++) {
nfxVersions[i]=-1;
}
int* v_nfx10=nfxVersions+0;
int* v_nfx10mce=nfxVersions+1;
int* v_... |
/* main.cpp - Copyright 2019 Utrecht University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
#include "hw/cpu/cpu.h"
#include "util.h"
#include <cassert>
#define NOP(opcode) case opcode: break
#define OP(opcode, expr) case opcode: expr; break
// defines a standard group of 8 opcodes that read from register arguments
#define OP_REG_ARG_READ_GROUP(startOpcode, funcName) \
OP(startOpcode ,... |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "mkldnn_matrix_nms_node.h"
#include <algorithm>
#include <chrono>
#include <cmath>
#include <string>
#include <vector>
#include "ie_parallel.hpp"
#include "ngraph/opsets/opset8.hpp"
#include "ngraph_ops/nms_static_shape_ie.hpp... |
#include "LWEGeometry3D.h"
#include <algorithm>
#include <iostream>
bool LWEGeometry3D::RayRayIntersect(const LWVector3f &aRayStart, const LWVector3f &aRayEnd, const LWVector3f &bRayStart, const LWVector3f &bRayEnd, LWVector3f *IntersectPoint) {
return false;
}
bool LWEGeometry3D::RayAABBIntersect(const LWVe... |
#define OLC_PGE_APPLICATION
#include "chessGUI.h"
class ChessBot : public olc::PixelGameEngine
{
public:
ChessBot()
{
sAppName = "MAKiTChess";
}
olc::Sprite* sprBoard = nullptr;
olc::Decal* decBoard = nullptr;
olc::Sprite* sprPS = nullptr;
olc::Decal* decPS = nullptr;
olc::Sprite* sprQ = null... |
void InitProjectiles()
{
projectile[0][0] = PROJECTILE();
projectile[0][0].img = load_image( "img/shot1_1.png" );
projectile[0][0].type = 0;
projectile[0][0].minDmg = 8;
projectile[0][0].maxDmg = 11;
projectile[0][0].owner = &player[0];
projectile[0][0].enemy = &player[1];
projectile[0][... |
/***************************************************
This is a library for the Si4713 FM Radio Transmitter with RDS
Designed specifically to work with the Si4713 breakout in the
adafruit shop
----> https://www.adafruit.com/products/1958
These transmitters use I2C to communicate, plus reset pin.
3 pins a... |
#include <clang/AST/AST.h>
#include <clang/AST/ASTConsumer.h>
#include <clang/AST/ASTContext.h>
#include <clang/AST/RecursiveASTVisitor.h>
#include <clang/AST/Mangle.h>
#include <clang/Frontend/ASTConsumers.h>
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Frontend/FrontendActions.h>
#include <clang/Tooli... |
/* Copyright (c) 2017-2020 <NAME>
*
* 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, publish,
... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAME>.... |
/******************************************************************************
*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... |
// This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include <dirent.h>
#include <fcntl.h>
#include <getopt.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <regex>
#include <string>
#include <utilit... |
/*
* Copyright (C) 2018 iCub Facility - Istituto Italiano di Tecnologia
* Author: <NAME>
* email: <EMAIL>
* Permission is granted to copy, distribute, and/or modify this program
* under the terms of the GNU General Public License, version 2 or any
* later version published by the Free Software Foundation.
*
* ... |
/*
Copyright 2018 <<NAME>>
3-Clause BSD License
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2022 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
/*
Copyright (c) 2005-2017 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
// PerfCounterDataSources.cpp: implementation of the CPerfCounterDataSources class.
//
// created by Unwinder
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "PerfCounterDataSources.h"
#include "MAHMSharedMemory.h"
#include "MultiString.h"
////////////////////... |
/******************************************************************************
** Copyright (c) 2017-2018, Intel Corporation **
** All rights reserved. **
** **
... |
/**
* @file
* @copyright defined in eos/LICENSE
*/
#pragma once
#include <appbase/application.hpp>
#include <eosio/chain/asset.hpp>
#include <eosio/chain/authority.hpp>
#include <eosio/chain/account_object.hpp>
#include <eosio/chain/block.hpp>
#include <eosio/chain/controller.hpp>
#include <eosio/chain/contract_t... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fwl/cfwl_widget.h"
#include <algorithm>
#include <utility>
#inc... |
/*
* 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 "MonotonicFixpointIterator.h"
#include <functional>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <string>
#... |
#include "clb1.h"
void BleGroup::BackupBleGroup(BleGroupBackup& backup) const {
backup.type = type;
backup.ble_ptrs = bles;
backup.ble_cnts.resize(bles.size());
for (unsigned i = 0; i < bles.size(); ++i) backup.ble_cnts[i] = *bles[i];
}
void BleGroup::RecoverBleGroup(const BleGroupBackup& backup) {
... |
/*
* Copyright (c) 2009-2011, <NAME> <antirez at gmail dot com>
* Copyright (c) 2010-2011, <NAME> <pcnoordhuis at gmail dot com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * ... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
#include "mainwindow.h"
#include <cstdlib>
#include <ctime>
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
const int multiplierForAxis = 2;
char* convertStringToCharPointer(std::string str);
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
win_width = 380;
win... |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
#include <gtest/gtest.h>
#include <cstring>
#include <string>
#include <stdint.h>
#include <list>
#include <string>
#include <tins/dhcp.h>
#include <tins/utils.h>
#include <tins/ethernetII.h>
#include <tins/hw_address.h>
#include <tins/ip_address.h>
using namespace std;
using namespace Tins;
class DHCPTest : public t... |
#include "include/vcf_parser.h"
#include <Rcpp.h>
#include <boost/algorithm/string/predicate.hpp>
#include <fstream>
#include "include/vcf_binary.h"
#include "include/third-party/zstr/zstr.hpp"
#include "include/third-party/zstr/strict_fstream.hpp"
#include "include/vcf_stats.h"
#include "include/vcf_predicting_handle... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1999-2017, WWIV Software Services */
/* ... |
/*
https://github.com/peterix/dfhack
Copyright (c) 2011 <NAME> <<EMAIL>>
A thread-safe logging console with a line editor for windows.
Based on linenoise win32 port,
copyright 2010, <NAME> <jon_p_griffiths at yahoo dot com>.
All rights reserved.
Based on linenoise, copyright 2010, <NAME> <antirez at gmail dot com>.
T... |
#include "gamepch.h"
#include "Brain.h"
#include "Faction.h"
#include "Spaceship.h"
#include "Order.h"
#include "Constellation.h"
#include "Random.h"
#include "Building.h"
#include "Derelict.h"
#include "Tech.h"
void SubAI::sleep(uint32_t ticks) {
m_sleepTime = ticks;
}
bool SubAI::sleepCheck() {
if (m_sleepTime ==... |
//
// AirplaneConstrained.cpp
// hog2 glut
//
// Created by <NAME> on 6/8/16.
// Copyright (c) 2016 University of Denver. All rights reserved.
//
// Modified by <NAME> 2017
//
#include "AirplaneConstrained.h"
#include <glut.h>
#include <iostream>
#include <algorithm>
/////////////////////////////// PUBLIC /////... |
/*
* ESPS was originally developed by Entropic Inc., which was later acquired by
* Microsoft in 1999. Eventually, the source code was released under the BSD
* license by KTH.
* Original info and license below:
* This material contains unpublished, proprietary software of
* Entropic Research Laboratory, Inc. An... |
/**
* Bachelor thesis: Algorithms for automatic image cropping
* VUT FIT 2018
* Author: <NAME> (<EMAIL>)
* Supervisor: Doc. Ing. <NAME>, Ph. D.
* File: SalMapItti.cpp
* Github repository: https://github.com/VitaAmbroz/AutoCropApp
*/
/*
* This implementation of saliency map (Itti, L.; Koch, C.; Niebur... |
#include <iostream>
#include "GeneratorInterface/PhotosInterface/interface/PhotosInterface.h"
#include "FWCore/PluginManager/interface/ModuleDef.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "GeneratorInterface/PhotosInterface/interface/PhotosFactory.h"
#include "FWCore/ServiceRegistry/interface/Serv... |
// automatically converted
#include "GostekGraphics.hpp"
#include "GameRendering.hpp"
#include "Gfx.hpp"
#include "common/gfx.hpp"
#include "common/misc/PortUtils.hpp"
#include "common/misc/PortUtilsSoldat.hpp"
#include "shared/Cvar.hpp"
#include "shared/Game.hpp"
#include "shared/mechanics/Sprites.hpp"
#include "shar... |
// Copyright (c) 2009 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 defines the methods useful for uninstalling Chrome.
#include "chrome/installer/setup/uninstall.h"
#include "base/file_util.h"
#includ... |
/* ---------------------------------------------------------------------------------------
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
*
* dfs_query_check.cpp
*
* IDENTIFICATION
* src/gausskernel/storage/access/dfs/dfs_q... |
/*
* NOTICE
*
* This work was produced at the Lawrence Livermore National Laboratory (LLNL)
* under contract no. DE-AC-52-07NA27344 (Contract 44) between the U.S.
* Department of Energy (DOE) and Lawrence Livermore National Security, LLC
* (LLNS) for the operation of LLNL. The rights of the Federal Government are... |
#include "RenderOptionsHook.h"
#include "IDs.h"
#include "myres.h"
#include "nsi.hpp"
#include <algorithm>
#include <iostream>
#include <Windows.h>
#include "maxon/utilities/undef_win_macros.h"
#include <string.h>
#include <tuple>
#include <assert.h>
#include "DL_TypeConversions.h"
#define ID_SDK_EXAM... |
// CompoGen.cpp
/* Implements the various terrain composition generators:
- cCompoGenSameBlock
- cCompoGenDebugBiomes
- cCompoGenClassic
*/
#include "Globals.h"
#include "CompoGen.h"
#include "../BlockID.h"
#include "../Item.h"
#include "../LinearUpscale.h"
#include "../IniFile.h"
///////////////////////////... |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A clock library for the ESP8266. Able to get accurate time from
worldtimeapi.org down to the second. Will calculate for leap years to year
2100. Able to get timezone automatically based on IP Address location.
To use, ... |
/*
A minimal implementation of the FFT short rate model described in
my paper (https://ssrn.com/abstract=2984393). This model has as advantages
of a high degree of configurability and good numerical precision. We can
replicate a number of well known (and not so well known) short rate
models with it and can create arbit... |
/* Copyright (c) 2016, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and... |
#include "systems_base.h"
#include "bullet_types_converter.h"
#include "overlap_check.h"
#include "utilities.h"
#include <BulletCollision/BroadphaseCollision/btBroadphaseProxy.h>
#include <BulletCollision/CollisionDispatch/btCollisionObject.h>
#include <BulletCollision/CollisionDispatch/btGhostObject.h>
#include <Bull... |
// Omega is free software, distributed under the ISC license
#include "glob.h"
#include <sys/types.h>
#include <unistd.h>
#include <ctype.h>
//----------------------------------------------------------------------
static void initstats(void);
static void save_omegarc(void);
static bool load_omegarc (const char* file... |
#include <cstdio>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include "mbed.h"
#include "pxt.h"
using namespace pxt;
#include "OneWire.h"
OneWire::OneWire(PinName data_pin, PinName power_pin, bool power_polarity) : _datapin(data_pin),
... |
// Original single-file SDL version of DrumPads.
// This file should compile into a single standalone app.
#include <stdio.h>
#include "SDL/include/SDL.h"
#undef main
#include "SDL/SDL_mixer.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#ifndef WIN32
#include <unistd.h>
#include <syslog.h>
#include <string.h>... |
/*
Author : <NAME>
Email : <EMAIL>
Article : @inproceedings{konukoglu2007recursive,
title={A recursive anisotropic fast marching approach to reaction diffusion equation: Application to tumor growth modeling},
author={<NAME> and <NAME> and Clatz, <NAME> and <NAME> and <NAME>},
booktitle=... |
//
//
//
//
#include "pch.h"
#include <D2d1helper.h>
#include "..\Common\DirectXHelper.h" // for DX::ThrowIfFailed();
#include "gv_D2D1.h"
using namespace VHG;
using Microsoft::WRL::Co... |
/*
* neonGX - Main.cpp
*
* Copyright (c) 2016, cynecx
*
* This file is part of neonGX and is distributed under a modified
* BSD 3-Clause License. See LICENSE.txt for details.
*
*/
/*
* ~ NeoN Pong ~
* Implementierung
*
*/
#include <neonGX/Core/neonGX.hpp>
#include <neonGX/Core/Math/Primitives.hpp>
#includ... |
// MarkedList.cpp
// Copyright (c) 2009, <NAME>
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include "MarkedList.h"
#include "../interface/HeeksObj.h"
#include "../interface/MarkedObject.h"
#include "../interface/PropertyInt.h"
#include "DigitizeMod... |
/******************************************************************************\
| OpenGL 4 Example Code. |
| Accompanies written series "Anton's OpenGL 4 Tutorials" |
| Email: anton at antongerdelan dot net ... |
#include "solverManager.h"
#include "../Instance Generators/boardGenerator.h"
#include "../Utilities/utils.h"
#include "Ant Colony System/ACSHeuristic.h"
#include <numeric>
#include <iomanip>
#include <sstream>
#include <fstream>
/**
* @file solverManager.h/cpp
* @brief Given a set of instances, solves them and save... |
//
// antrace.cpp
// PPImager
//
// Created by 邱开禄 on 2019/12/17.
// Copyright © 2019 邱开禄. All rights reserved.
//
#include "antrace.h"
#include "ImageCommon.h"
#include "nanosvg/nanosvg.h"
#include "nanosvg/nanosvgrast.h"
// 定义全局变量
struct info_s potrace_info;
antrace::antrace() {
s_state = NULL;
}
antrace... |
#include "towerdef_Map.h"
const std::vector<int> turnCoords { -1,0, -1,-1, 0,-1, 1,-1, 1,0, 1,1, 0,1, -1,1 };
void Map::init( int w, int h, int depMin, int depMax, std::vector<int> _startPts, std::vector<int> _endPts ){
arrW = w;
arrH = h;
arrLength = arrW * arrH;
rangeMin = depMin;
rangeMax... |
#include <stdio.h>
#include <mpi.h>
#include "fem.h"
#include <occa.hpp>
occa::device device;
occa::memory c_LIFT;
occa::memory c_DrDsDt;
occa::memory c_surfinfo;
occa::memory c_mapinfo;
occa::memory c_vgeo;
occa::memory c_Q;
occa::memory c_partQ;
occa::memory c_rhsQ;
occa::memory c_resQ;
occa::memory c_tmp;
occ... |
// MIT License
//
// Copyright (c) 2021-2022. <NAME>
//
// 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... |
/**
* @file gpu_fractals_interactive.cpp
*
* @brief An application for interactively exploration of fractals.
*
* @author <NAME>\n
* (<EMAIL>, <EMAIL>)\n
* Sapienza, University of Rome - Department of Computer Science
* @date 2021-10-25
*/
#inclu... |
/** \file ModelBasedAgent.cc
Implements the ModelBasedAgent class
\author <NAME>
*/
#include <rl_agent/ModelBasedAgent.hh>
#include <algorithm>
#include <sys/time.h>
// planners
#include "../Planners/ValueIteration.hh"
#include "../Planners/PolicyIteration.hh"
#include "../Planners/PrioritizedSweeping.hh"
#i... |
// from execute.cpp
void DrawASCII(LWR& lwr) {
string ascii_filename;
fprintf(stdout, "What ASCII photo would you like me to draw?\n> ");
cin >> ascii_filename;
lwr.DrawASCIIPhoto(ASCII_PATH + ascii_filename + TXT);
}
// from LWR
// Just for fun draw a file containing ASCII characters
int DrawASCIIPhoto(st... |
#define LOG_TAG "GBM-MESA-GRALLOC"
extern "C" {
#include "drv_helpers.h"
}
#include "gbm_mesa_wrapper.h"
#include "UniqueFd.h"
#include "drv_priv.h"
#include "util.h"
#include <algorithm>
#include <array>
#include <cutils/properties.h>
#include <errno.h>
#include <fcntl.h>
#include <gbm.h>
#include <glob.h>
#include... |
/*
Copyright (C) 2003-2014 by <NAME> <<EMAIL>>
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 software for any purpose,
including commercia... |
#include "athena/pointcloud/bounding_geometry.h"
BoundingBoxGeometry athena::pointcloud::obtainBoundingBoxGeometry (pcl::PointCloud<pcl::PointXYZ>::Ptr input_cloud, ros::Publisher pub_transformed_cloud, BoundingRequest req_params) {
pcl::PointCloud<pcl::PointXYZ>::Ptr transformed_cloud = pcl::PointCloud<pcl::PointXY... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
/*
Copyright 2016 Navtech Radar Limited
This file is part of iasdk which is released under The MIT License (MIT).
See file LICENSE.txt in project root or go to
https://opensource.org/licenses/MIT
for full license details.
*/
#include <math.h>
#include <iostream>
#include <opencv2/opencv.hpp>
#include <string>
//#inclu... |
/* Copyright 2019 FXCM Global Services, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use these files 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 agr... |
// Many thanks to <NAME> for his work in analyzing the playstation SPU.
// Most of the code below is based on his work.
// Also, thanks to Antires for his ADPCM decompression routine.
#include "stdafx.h"
#include "PSXSPU.h"
#include "DLSFile.h"
#include "RawFile.h"
#include "PS1Format.h"
using namespace std;
// **... |
#define h101_cxx
#include "h101.h"
#include <TH2.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <iostream>
#include <fstream>
#include <TVector3.h>
#include <CLHEP/Vector/ThreeVector.h>
#include <CLHEP/Vector/LorentzVector.h>
//beta=0.55 m
const double h101::mp0_ = 0.9382723128; //Gev
const double h101::E0_ = ... |
#include <iostream>
#include <set>
#include <list>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <iterator>
#include <map>
#include "juce.h"
using namespace std;
double dist(double a,double b)
{
if (a < b) return(b-a);
else return(a-b);
}
/**
... |
/* -*- mode:C++; c-basic-offset:4 -*-
Shore-kits -- Benchmark implementations for Shore-MT
Copyright (c) 2007-2009
Data Intensive Applications and Systems Labaratory (DIAS)
Ecole Polytechnique Federale de Lausanne
All Rights Reserved.
... |
#include "global.h"
#include "RageFileBasic.h"
#include "RageUtil.h"
#include "RageUtil_AutoPtr.h"
REGISTER_CLASS_TRAITS( RageFileBasic, pCopy->Copy() );
RageFileObj::RageFileObj()
{
m_pReadBuffer = NULL;
m_pWriteBuffer = NULL;
ResetReadBuf();
m_iReadBufAvail = 0;
m_iWriteBufferPos = 0;
m_iWriteBufferUsed = 0... |
/*
* This Code Was Created By <NAME> 2000
* If You've Found This Code Useful, Please Let Me Know.
* Visit My Site At nehe.gamedev.net
*/
#include <stdlib.h>
#include <stdio.h> // Header File For Standard Input / Output
#include <stdarg.h> // Header File For Variable Argument Routines
#include ... |
// Good type names
#include <cstdint>
typedef int8_t i8;
typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef float f32;
typedef double f64;
#include <iostream>
using std::cout;
using std::endl;
#include <cstd... |
#include "Player.h"
#include "PlayerTarget.h"
#include "Scene.h"
#include "Missile.h"
#include <cstdlib>
#include "ParticleEmitter.h"
Player::Player(Scene *_scene, GMode _gameMode, Model3D *_model, Texture2D *_texture, Light *_engineLightNear, Light *_engineLightFar, Vec3 _pos)
: position(_pos)
, direction(Vec3(0,0... |
#include <vector>
#include <string>
#include "../etana/proof.h"
#include "util.h"
const CFSWString context_signs = L"^-+=@_"; //5
const CFSWString pau = L"pau";
const INTPTR no_v = -2;
const CFSWString xphone = L"x";
phrase_struct pause_struct() {
phone_struct phs;
phs.syl_p = no_v;
phs.word_p = no_v;
... |
#define _CRT_SECURE_NO_WARNINGS
// Only allowed in main file to prevent linker errors.
#define STB_IMAGE_IMPLEMENTATION
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <time.h>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/gtc/matrix_transform.hpp>
// In... |
/* Properties of Oxygen
by <NAME>
Thermo properties from
---------------------
"Thermodynamic Properties of Oxygen from the Triple point to 300 K with pressures to 80 MPa",
<NAME>, <NAME>, and <NAME>,
J. Phys. Chem. Ref. Data, v. 20, n. 5, 1991
Transport properties from
------------------------
"Viscosity and Therm... |
// Copyright (c) 2015, UChicago Argonne, LLC. All rights reserved.
// Copyright 2015. UChicago Argonne, LLC. This software was produced
// under U.S. Government contract DE-AC02-06CH11357 for Argonne National
// Laboratory (ANL), which is operated by UChicago Argonne, LLC for the
// U.S. Department of Energy. The ... |
#include "SimpleFft.h"
#include "math.h"
#include <stdio.h>
SimpleFft::SimpleFft(int fftsize)
{
int i;
mTwiddle_r=new double[fftsize];
mTwiddle_i=new double[fftsize];
mTmp_r=new double[fftsize];
mTmp_i=new double[fftsize];
mPermute=new int[fftsize];
for (i=0;i<fftsize;i++)
{
mTwiddle_r[i]= cos(2*M_PI*(dou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.