text
stringlengths
5.71k
33.7k
// Copyright 2014 The Galactic Bloodshed Authors. All rights reserved. // Use of this source code is governed by a license that can be // found in the COPYING file. /* makeplanet.c -- makes one planet. */ import gblib; import std; #include "gb/creator/makeplanet.h" #include "gb/creator/makestar.h" #include "gb/file...
/* This file is part of the Princeton FCMA Toolbox Copyright (c) 2013 the authors (see AUTHORS file) For license terms, please see the LICENSE file. */ #include <mpi.h> #include "Scheduler.h" #include "common.h" #include "MatComputation.h" #include "CustomizedMatrixMultiply.h" #include "CorrMatAnalysis.h" #include ...
/* * Go Beaver Go, a puzzle game based on a variant of the 2L programming language * * Copyright 2019, <NAME> */ #include "MainMenuController.h" #include "Globals.h" #include "Challenges.h" #include "Drawing.h" #include "SharedMemory.h" #include "Store.h" constexpr int numMainMenuEntries = 5; char const* const m...
#include <iostream> #include <vector> #include <memory> #include <random> #include <chrono> #define STB_IMAGE_IMPLEMENTATION #include "stb/stb_image.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb/stb_image_write.h" #include "raytracer/Camera.h" #include "raytracer/Image.h" #include "raytracer/integrators/Bas...
/* * CiderPress * Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved. * See the file LICENSE for distribution terms. */ /* * Multiple conversions for double-hi-res graphics. */ #include "StdAfx.h" #include "DoubleHiRes.h" #include "HiRes.h" /* * The screen layout is described in detail in ...
// synthv1_formant.cpp // /**************************************************************************** Copyright (C) 2012-2019, rncbc aka <NAME>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by t...
/** * 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 "AuthsaeCallbackHelpers.h" extern "C" { #include <authsae/ampe.h> #include <authsae/evl_ops.h> #include <authsae/sae.h> ...
/// Laboratorium: Grafika Komputerowa /// Prowadzący: Dr inż. <NAME> /// Cwiczenie 4 /// <NAME> 209909 /*************************************************************************************/ // Szkielet programu do tworzenia modelu sceny 3-D z wizualizacją osi // układu współrzednych /*****************************...
#include "RubeParser.h" #include <Box2D/Box2D.h> #include <algorithm> #include <cmath> static const bool DO_LOG = false; namespace rocket { namespace box2d { std::string RubeParser::valueTypeToString(Json::Value const& value) { if (value.isBool()) return "bool"; else if (value.isString()) return "string"; else ...
/************************************************************************* * Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved. * * See LICENSE.txt for license information ************************************************************************/ #include "nccl.h" #include "core.h" #include "utils.h"...
#include "CodeGenUtils.hpp" #include <algorithm> #include <iostream> // TODO: USE NEW getLLVMType change to get the proper type llvm::Instruction* Utils::createMatrix(Utils::IRContext* context, const Typing::Type& type) { // We need a prefix that has some basic information Typing::MatrixType matType; try ...
#include "ros/ros.h" #include "ros/time.h" #include "std_msgs/String.h" #include "rwth_perception_people_msgs/GroundPlane.h" #include "rwth_perception_people_msgs/VisualOdometry.h" #include "rwth_perception_people_msgs/AnnotatedFrame.h" #include "rwth_perception_people_msgs/Annotation.h" #include <sensor_msgs/CameraIn...
/* Copyright (c) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD (revised) license as described in the file LICENSE. */ #include "search_sequencetask.h" #include "vw.h" namespace SequenceTask { Search::search_task task = { "sequence", ...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2020 GBCR Developers // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // GBCRTODO Move this to compiler flags #define BOOST...
/* Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
/* Plane.cpp Written by <NAME> A standard 3D plane (space plane.) Essentially just the surface defined by a*x + b*y + c*z + d = 0 See Plane.h for a description of these functions. */ Plane::Plane() { } Plane::Plane(const Plane &P) { a = P.a; b = P.b; c = P.c; d = P.d; } Plane:...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2019 Intel Corporation #include <unordered_set> #include "pattern_matching.hpp" namespace { using Grap...
#include "HitQuadrupletGeneratorFromLayerPairForPhotonConversion.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "TrackingTools/DetLayers/interface/DetLayer.h" #include "TrackingTools/DetLayers/interface/BarrelDetLayer.h" #include "TrackingTools/DetLayers/interface/ForwardDetLayer.h" #include "R...
#include "wiimote.h" #include <iostream> #include <cstring> #include <sys/epoll.h> #include <fcntl.h> #include <errno.h> device_methods wiimote::methods; wiimote::~wiimote() { clear_node(&base); clear_node(&buttons); clear_node(&accel); clear_node(&ir); clear_node(&motionplus); clear_node(&nunchuk); cle...
//=---------------------------------------------------------------------= // // $Id$ $Name$ // // The contents of this file are subject to the AAF SDK Public Source // License Agreement Version 2.0 (the "License"); You may not use this // file except in compliance with the License. The License is available // in AAFSD...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2021-2021 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 co...
/*************************************************************************/ /* gd_mono_class.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "Compiler.h" #include "common/link_types.h" #include "IR.h" #include "goalc/regalloc/allocate.h" #include "third-party/fmt/core.h" #include "CompilerException.h" #include <chrono> #include <thread> using namespace goos; Compiler::Compiler(std::unique_ptr<ReplWrapper> repl) : m_debugger(&m_listener), m_re...
#include <stan/math/torsten/test/unit/test_fixture_twocpt.hpp> #include <stan/math/torsten/test/unit/test_functors.hpp> #include <stan/math/torsten/pmx_twocpt_model.hpp> #include <stan/math/torsten/pmx_ode_model.hpp> #include <boost/mp11.hpp> TYPED_TEST_SUITE_P(test_twocpt); TYPED_TEST_P(test_twocpt, single_bolus_tla...
#include "wled.h" /* * Sending XML status files to client */ //build XML response to HTTP /win API request void XML_response(AsyncWebServerRequest *request, char* dest) { char sbuf[(dest == nullptr)?1024:1]; //allocate local buffer if none passed obuf = (dest == nullptr)? sbuf:dest; olen = 0; oappend((cons...
#include "realtime_task.h" // elmo_shm/include #include "list_display.h" // elmo_shm/include #include "servo_shm.h" // elmo_shm/include #define DISPLAY_THREAD_PERIOD 500000 // ListDisplay disp(2); void *list_display_thread_fun (void *arg) { int period = ((int *)arg)[0]; int prio = ((int *)arg)[1]; vol...
//===- LoopPipelining.cpp - Code to perform loop software pipelining-------===// // // 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 // //===---------------------------...
#include "octree.h" #include "avl.h" #include "../graphics/models/box.hpp" // calculate bounds of specified quadrant in bounding region void Octree::calculateBounds(BoundingRegion &out, Octant octant, BoundingRegion parentRegion) { // find min and max points of corresponding octant glm::vec3 center = pare...
/*========================================================================= Program: Bender Copyright (c) Kitware 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.a...
// --------------------------------------------------------------------- // // Copyright (c) 2019 - 2019 by the IBAMR developers // All rights reserved. // // This file is part of IBAMR. // // IBAMR is free software and is distributed under the 3-clause BSD // license. The full text of the license can be found in the f...
#include <GlfwApp.h> #include <OpenGLInclude.h> #include <opengl_fontstashcallbacks.h> #include <Bullet3Common/b3Quaternion.h> #include <Bullet3Common/b3CommandLineArgs.h> #include <GLShader.h> #include <GLVAO.h> #include <GLVBO.h> #include <GLPrimitiveRenderer.h> #include <OpenSans.h> #include <memory> // bool printS...
/* Copyright 2013 Yahoo! Inc. */ /* See LICENSE in the root of the distribution for licensing details. */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <limits.h> #include ...
#include "vector.h" Matrix4f::Matrix4f(){} Matrix4f::~Matrix4f(){} const Matrix4f Matrix4f::IDENTITY(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f); void Matrix4f::rotate(const ...
/*************************************************************************** * * 22.locale.ctype.toupper.cpp - Tests exercising the toupper() of ctype facet * * $Id$ * *************************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one or m...
#pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wint-in-bool-context" #pragma GCC diagnostic ignored "-Wuninitialized" #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #include <vector> #include <ap_fixed.h> #include <gtest/gtest.h> #include "graphlily/global.h" #include "graphlily/io/data_loader.h...
//File: P03.cpp //Date: 09/27/2011 //Name: <NAME> //Course: CS 150-001 - Introduction to Computing II //Desc:This program can take the input of a phone number and output to a text file all the possible words that could be used for that specific phone number. #include <iostream> #include <string> #include <sstrea...
#include "../basic-abstract-game.h" #include "../assetgen.h" #include "../roomgen.h" #include "../mazegen.h" #include <set> #include <queue> #include <memory> const std::string NAME = "jumper"; const float GOAL_REWARD = 10.0f; const int GOAL = 1; const int SPIKE = 2; const int CAVEWALL = 6; const int CAVEWALL_TOP = ...
/* * 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...
/** * Test application for core FEC algorithm. Calls encoding and decoding functions in * ForwardErrorCorrection directly. * */ #include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include "forward_error_correction.h" #include "forward_error_correction_internal.h" #include...
// Copyright (c) 2018 Graphcore Ltd. All rights reserved. #define BOOST_TEST_MODULE NonLinearitySupervisor #include "poplibs_test/NonLinearity.hpp" #include "poplibs_test/Util.hpp" #include "poputil/VertexTemplates.hpp" #include <poplar/Engine.hpp> #include <poplibs_support/TestDevice.hpp> #include <popnn/NonLinearity....
/* main.cpp Copyright (C) 2013 by <NAME> - http://cosinekitty.com/raytrace This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is granted to anyone t...
//===--- SemaCUDA.cpp - Semantic Analysis for CUDA constructs -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "App.h" #include "Input.h" #include "Textures.h" #include "Render.h" #include "Window.h" #include "Scene.h" #include "ScenePause.h" #include "SceneOptions.h" #include "Map.h" #include "Player.h" #include "WalkingEnemy.h" #include "FlyEnemy.h" #include "Audio.h" #include "GameplayHUD.h" #include "ModuleControll...
/* The MIT License Copyright (c) 2021, Prominence AI, Inc. 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...
#include <crow.h> #include <json.h> #include <mustache.h> #include <boost/program_options.hpp> #include <sstream> #include <iostream> #include <fstream> #include <map> #include <string> #include <thread> #include <random> #include <list> #include <chrono> #include "lite_db.hpp" using namespace boost::program_option...
// Copyright 2016 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Helper program for setting WiFi transmission power. #include <map> #include <string> #include <vector> #include <linux/nl80211.h> #include <net/...
#include "global.h" #include "RageSoundReader_Chain.h" #include "RageSoundReader_FileReader.h" #include "RageSoundReader_Resample_Good.h" #include "RageSoundReader_Preload.h" #include "RageSoundReader_Pan.h" #include "RageLog.h" #include "RageUtil.h" #include "RageSoundMixBuffer.h" #include "RageSoundUtil.h" #include "...
// // Created by CainHuang on 2019/2/26. // #include "VideoCutEditor.h" VideoCutEditor::VideoCutEditor(const char *srcUrl, const char *videoUrl, MessageHandle *messageHandle) : Editor(messageHandle), srcUrl(srcUrl), dstUrl(videoUrl), start(0), duration(0), speed(1.0) { mMutex = new...
/* Copyright (C) 2018-2019 <NAME>, TKJ Electronics. All rights reserved. * * This program is free software: you can redistribute it and/or modify it * under the terms of the MIT License * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warrant...
/* * ArcScript Scripts for Arcemu MMORPG Server * Copyright (C) 2008-2011 Arcemu Team * Copyright (C) 2007 Moon++ <http://www.moonplusplus.com/> * * This program 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 Foun...
//===- SparseTensorLowering.cpp - Sparse tensor primitives conversion -----===// // // 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) 2014-2015 Dropbox, 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 agr...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. * Copyright (c) 2013,2014,2015,2016,2017 by the GROMACS development team. * Copyright (c) 2018,2019,2020, by the GROMA...
/* * @Author: HowsenFisher * @Date: 2021-07-29 18:45:18 * @LastEditors: HowsenFisher * @LastEditTime: 2021-07-31 17:32:05 * @Description: the source code of openGL with parallel_light */ #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/g...
//Basic C/C++ includes #include <iostream> #include <stdio.h> #include <stdlib.h> #include <fstream> #include <vector> #include <math.h> using namespace std; //GLEW include #include <GL/glew.h> //GLFW for quality of life #include <GLFW/glfw3.h> //GLM includes #include <glm/glm.hpp> #include <glm/gtc/matrix_transform...
// Copyright (c) 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 "tools/gn/filesystem_utils.h" #include <algorithm> #include "base/logging.h" #include "base/strings/string_util.h" #include "base/strings/u...
//-------------------------------------------------------------------------------------- // CPUSets.cpp // // Advanced Technology Group (ATG) // Copyright (C) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------- #include "pch.h" #i...
#include "pin.H" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <sys/types.h> #include <syscall.h> #include "util.h" #include <sys/wait.h> #include <sys/time.h> #include <iostream> using namespace std; /* Globals */ struct thread_data* current_thread; // Always points to threa...
/* Arduino Library for Bosch Sensortec BME680 Environment Server Written by AA for ClosedCube --- The MIT License (MIT) Copyright (c) 2017 ClosedCube Limited 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 ...
#pragma once #include "mtrain.hpp" #include "SPI.hpp" #include "GenericRadio.hpp" #include "PinDefs.hpp" #include <string> #include <vector> #include <memory> #include "delay.hpp" #include <cstring> #include "interrupt_in.hpp" #include "FreeRTOS.h" #include "task.h" #include <cstdio> namespace ISMConstants { // H...
#include <cgv/gui/trigger.h> #include <cgv/gui/provider.h> #include <cgv/render/drawable.h> #include <cgv/render/context.h> #include <cgv/render/texture.h> #include <cgv/render/attribute_array_binding.h> #include <cgv/render/frame_buffer.h> #include <cgv/render/shader_program.h> #include <cgv_gl/gl/gl.h> #include <cgv/...
#include "SimulationCore_pcp.h" #include "Geometry.h" #include "Model_T2D_ME_s.h" Model_T2D_ME_s::Model_T2D_ME_s() : Model("Model_T2D_ME_s"), elems(nullptr), elem_num(0), nodes(nullptr), node_num(0), pcls(nullptr), pcl_num(0), bfx_num(0), bfy_num(0), bfxs(nullptr), bfys(nullptr), tx_num(0), ty_num(0), txs(nul...
/* * This file is part of PTN Engine * * Copyright (c) 2017 <NAME> * * 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 require...
#include <iostream> #include <boost/program_options.hpp> #include <cppdb/frontend.h> #include "command_arguments.hpp" #include <fstream> #include <ctemplate/template.h> #include <vector> #include <map> #include <sstream> #include <iomanip> #include "common/common.hpp" #ifndef VERSIONNUMBER #define VERSIONNUMBER "0.1.0...
//===-- SystemZInstrInfo.cpp - SystemZ instruction information ------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrCCCoverageProcessor.h" #include "GrMesh.h" #include "glsl/GrGLSLVertexGeoBuilder.h" using InputType = GrGLSLGeometryBuilder::InputType; using OutputType = GrGLSL...
/** * @file CglVPC.hpp * @brief File containing CglVPC class and related methods * * @author <NAME> * @date 2018-12-24 */ #pragma once #include <vector> #include <string> // COIN-OR files #include <CglCutGenerator.hpp> // Project files #include "VPCParameters.hpp" // VPCParameters has to be declared here becau...
#include <sf2/sf2.hpp> #include <mirrage/renderer/model.hpp> #include <mirrage/graphic/device.hpp> #include <mirrage/graphic/render_pass.hpp> #include <mirrage/utils/ranges.hpp> using namespace mirrage::graphic; namespace mirrage::renderer { namespace { constexpr auto material_textures = std::uint32_t(4); } /...
// // OpenGL Texture lib (iOS/android/opengl/ndk) // onion software/onitama 2011/11 // #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <string.h> #if defined(HSPLINUX) || defined(HSPEMSCRIPTEN) #include <unistd.h> #include "../../hsp3/hsp3config.h" #else #if defined(HSPNDK) || de...
//////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <SFML/Graphics.hpp> #include "map.h" #include "dwarf.h" #include <iostream> #include <math.h> #include <sstream> #define killTrapCost 2000 #define shinyCost 1000 #define sticky...
#include "debug.h" #include "mm_tree.h" #include <fstream> #include "ogrsf_frmts.h" #define DIST_THD 10 RTree::RTree() { node_count_ = 0; edge_count_ = 0; trajectories_count_ = 0; OGRRegisterAll(); } RTree::~RTree() { } bool RTree::BuildRoad(std::string node_file, std::string ...
#include "VectorLine_P.h" #include "VectorLine.h" #include "Utilities.h" #include "ignore_warnings_on_external_includes.h" #include "restore_internal_warnings.h" #include <SkBitmap.h> #include <SkPathMeasure.h> #include "MapSymbol.h" #include "MapSymbolsGroup.h" #include "VectorMapSymbol.h" #include "OnSurfaceVector...
// [[Rcpp::depends(RcppEigen)]] #include <RcppEigen.h> #include <algorithm> using MapMatd = Eigen::Map<Eigen::MatrixXd>; using MapVecd = Eigen::Map<Eigen::VectorXd>; // typedef Eigen::Map<Eigen::MatrixXi> MapMati; // cannot map integermatrix?? using MapVeci = Eigen::Map<Eigen::VectorXi>; using Rcpp::as; using Rcpp::...
#include <iostream> #include <string> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/photo/photo.hpp> #include <opencv2/calib3d/calib3d.hpp> #include "ros/ros.h" #include "std_msgs/String.h" #include "std_msgs/Bool.h" #include "std_msg...
/* * DEBUG: section 79 Storage Manager COSS Interface * AUTHOR: <NAME> * * SQUID Web Proxy Cache http://www.squid-cache.org/ * ---------------------------------------------------------- * * Squid is the result of efforts by numerous individuals from * the Internet community; see the CONTRIBUTORS ...
// VensimParse.cpp : Read an mdl file into an XModel object // we use a mapped file via boost to simplify look ahead/back // we include the tokenizer here because it is as easy as settinig // up regular expressions for Flex and more easily understood #include "VensimParse.h" #include <cstring> #include "../Symbol/Ex...
/** * * Copyright (c) 2002 Bryce "Zooko" Wilcox-O'Hearn Permission is hereby * granted, free of charge, to any person obtaining a copy of this software to * deal in this software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * s...
#include <cstdio> #include <iostream> #include <fstream> #include <cstdint> #include <csignal> #include <unistd.h> #include <sys/time.h> #include "myModules.h" // VME Module Id.s #include "myV2718.h" // CAEN V2718 VME Bridge class #include "myV513.h" ...
#include <iostream> #include <filesystem> #include <Eigen/Eigenvalues> #include <fstream> #include "SpectraAnalysisLinearElements.h" #include "../PhysicalModel/ExternalForces.h" SpectraAnalysisLinearElements::SpectraAnalysisLinearElements(const SimParameters& params, Eigen::VectorXd& q0, Eigen::VectorXd& v0, const Lin...
/*************************************************************************/ /* Copyright (c) 2000-2016 NT Kernel Resources. */ /* All Rights Reserved. */ /* http://www.ntkernel.com */ /* <EM...
#include "analysisDialog.h" AnalysisDialog::AnalysisDialog(MainWindow* w, DialogType d, QString title) { mw = w; dialogType = d; network = mw->network; this->setWindowTitle(title); thresholdEdited = false; if (d == NETWORK) { createNetworkAnalysis(); } else if (d == RESULTS) { ...
/* * ShapeKnots, a program that predicts RNA secondary structures with pseudoknots. * * (c) 2013 * Mathews Lab, University of Rochester Medical Center * Weeks Lab, The University at North Carolina at Chapel Hill * Code contributors: <NAME>, <NAME>, <NAME> */ #include "ShapeKnots_Interface.h" #define OUTPUT_TO_...
/** * \file QryWznmRlsList.cpp * job handler for job QryWznmRlsList (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifdef WZNMCMBD #include <Wznmcmbd.h> #else #include <Wznmd.h> #endif #include "QryWz...
////////////////////////// //程序名称:立方体三视图及正等轴测图及其旋转 //功 能:鼠标左键单击时绕Z轴逆时针旋转10°,右键双击后退出程序 //remember to use MBCS character set #include <math.h> #include <graphics.h> #include <stdio.h> #include <conio.h> #include <iostream> using namespace std; #define N 20 // N个点*** #define PI 3.141592...
// Copyright 2002 - 2008, 2010, 2011 National Technology Engineering // Solutions of Sandia, LLC (NTESS). Under the terms of Contract // DE-NA0003525 with NTESS, the U.S. Government retains certain rights // in this software. // // Use of this source code is governed by a BSD-style // license that can be found in the L...
#pragma once #include <memory> #include <cstdint> #include <climits> #include <initializer_list> #include <string> #include <vector> #include "pico/stdlib.h" void init(); void update(uint32_t tick); void draw(uint32_t tick); namespace picosystem { extern uint32_t _debug; typedef uint16_t color_t; struct s...
#include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include "Draw2D.h" #include "LTFaction.h" #include "LTWorld.h" // THE HEADER #define DEBUG_PLOT_INTERACTION( pa, pb, R, G, B ) if(interacts){ \ glColor3f( R, G, B ); \ Draw2D::drawLine_d( pa->pos, pb->pos ); }; void LTWorld::update( ){ for( int i=0; i<...
/* * VGDE - Video Game Development Environment * Copyright (c) 2020-2021 <NAME> * * 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 s...
#include <iostream> #include <algorithm> #include <fstream> #include <string> #include <random> #include <vector> #include <chrono> #include <cmath> #include <ctime> #include "kmeans.cpp" using namespace std; namespace GA_clusting { int runtimes = 30; int iteration = 2000; double popsize = 20; double...
#include "iterative_deepening_search.h" #include "depth_first_search.h" #include "minimal_lookahead_search.h" #include "prost_planner.h" #include "utils/logger.h" #include "utils/math_utils.h" #include "utils/system_utils.h" #include <algorithm> #include <iostream> #include <numeric> using namespace std; IDS::Hash...
// // src/order/drivers/examples/liummd.cc -- uses liu's GENMMD // // $Id: davisamd.cc,v 1.2 2000/02/18 01:31:54 kumfert Exp $ // // <NAME>, Old Dominion University // Copyright(c) 1997-1998, Old Dominion University. All rights reserved. // // Permission to use, copy, modify, distribute and sell this software and...
// // Virtual Mirror Demo App // Author: <NAME> (<EMAIL>) // #include "stdafx.h" #include "Application.h" #include <boost\format.hpp> #include <NuiApi.h> using namespace std; using namespace sf; using namespace openni; /*class ScreenspaceShader : public sf::Drawable { public: ScreenspaceShader(sf::Shader shad...
/* Firmata.cpp - Firmata library Copyright (C) 2006-2008 <NAME>. All rights reserved. Modified for Adafruit_BLE_Uart by <NAME>/<NAME> for Adafruit Industries, 2014 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publis...
// This file is part of BOINC. // http://boinc.berkeley.edu // Copyright (C) 2008 University of California // // BOINC is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, // either version 3 of the Licens...
#include <Basic_block.h> // static void Basic_block::show_dependances(Instruction *i1, Instruction *i2) { if (i1->is_dep_RAW1(i2)) cout << "Dependance i" << i1->get_index() << "->i" << i2->get_index() << ": RAW1" << endl; if (i1->is_dep_RAW2(i2)) cout << "Dependance i" << i1->get_index() << "->i" <<...
// // Created by <NAME> on 28.10.20. // #include <fstream> #include <map> #include <unordered_map> #include "GroundVerifier.h" #include <cassert> #include <algorithm> #include <list> void GroundVerifier::verify(progression::Model *htn, string sasPlan) { // // read plan // std::ifstream fIn(sasPlan); ...
// Project: libv, File: app/enum_generator.cpp, Author: <NAME> [Vader] // ext #include <clip/clip.h> #include <fmt/format.h> // std #include <iostream> #include <set> #include <string> #include <string_view> // ------------------------------------------------------------------------------------------------- static ...
#include "Mesh.h" Mesh::Mesh(Real_t _Area) noexcept { Real_t Boundary[8] = {0., 0., 1., 0., 1., 1., 0., 1.}; Real_t PML[8] = {0., 0., 1., 0., 1., 1., 0., 1.}; construct(Boundary, 4, PML, 4, _Area); } Mesh::Mesh(Real_t* _Boundary, int32_t _nBoundary, Real_t* _PML, int32_t _nPML, Real_t _Area) noexcept{ construc...
#include <vector> #include <iostream> #include <fstream> #include <random> #include <string> #include <algorithm> #include <boost/algorithm/string.hpp> #include <boost/program_options/options_description.hpp> #include <boost/program_options/variables_map.hpp> #include <boost/program_options/parsers.hpp> namespace po ...
/*///////////////////////////////////////////////////////////////////////////// /// @summary Implements a series of transforms for generating screenspace quads /// representing sprite data to be streamed to the GPU each frame. Sprites are /// transformed on the CPU and written to a dynamic vertex buffer each frame. ///...