text
stringlengths
8.71k
38.4k
#include "stdafx.h" #include "Application.hpp" #include "GameConfig.hpp" #include "Game.hpp" #include "Track.hpp" #include "LaserTrackBuilder.hpp" #include <Beatmap/BeatmapPlayback.hpp> #include <Beatmap/BeatmapObjects.hpp> #include "AsyncAssetLoader.hpp" const float Track::trackWidth = 1.0f; const float Tr...
// Copyright (C) 2018-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /** * \brief The entry point for the Inference Engine multichannel_yolo_detection demo application * \file multichannel_yolo_detection/main.cpp * \example multichannel_yolo_detection/main.cpp */ #include <iostream> #include <vector> ...
//----------------------------------*-C++-*----------------------------------// // Copyright 2020 UT-Battelle, LLC, and other Celeritas developers. // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: (Apache-2.0 OR MIT) //-------------------------------------------------------------------------...
/* Copyright 1986, 1988, 1989, 1990, 1995 by Abacus Research and * Development, Inc. All rights reserved. */ /* Forward declarations in QuickDraw.h (DO NOT DELETE THIS LINE) */ #include <base/common.h> #include <QuickDraw.h> #include <CQuickDraw.h> #include <MemoryMgr.h> #include <ToolboxUtil.h> #include <quickd...
// dear imgui: Platform Backend for GLFW // This needs to be used along with a Renderer (e.g. OpenGL3, Vulkan, WebGPU..) // (Info: GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context // creation, etc.) (Requires: GLFW 3.1+) // Implemented features: // [X] Plat...
#include "DynamicEntity.h" #include "j1Map.h" #include "j1App.h" #include "j1Scene.h" #include "j1Render.h" #include "j1Audio.h" #include "j1Pathfinding.h" #include "j1Textures.h" #include "j1EntityManager.h" #include "j1Player.h" #include "j1Input.h" #include "AI_Player.h" #include "StaticEntity.h" #include "Gatherer....
// mcmc.cpp #include <cmath> #include <iostream> #include <iomanip> #include <vector> #include <limits> #include <string> #include <stdexcept> #include <algorithm> #include "mcmc.h" #include "user_defined.h" #include "Rcpp_interface.h" using namespace std; MCMCReporter::MCMCReporter(unsigned int iterations, unsigned ...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2016 The Bitcoin Core developers // Copyright (c) 2016-2019 The MagnaChain Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "net/net_processing.h" #...
#include "hw/cpu/cpu.h" #include "hw/dma.h" #include "hw/ppu.h" #include <algorithm> #include <tuple> RgbColor RgbColor::FromLcdIntensities(u8 r, u8 g, u8 b) { // a good fast naive intensity to RGB approximation. // RGBs can range from 7 to 255, allowing for a near-enough pure black assert(r < 0x20 && g...
#if defined(_DEBUG) && !defined(_WIN64) #include <vld.h> #endif #include <stdio.h> #include <stdlib.h> //#define FLT_NO_OPNAMES //#define FLT_LEAN_FACES //#define FLT_ALIGNED #define FLT_UNIQUE_FACES #define FLT_WRITER #define FLT_IMPLEMENTATION #include <flt.h> #include <cstdint> #include <cstdlib> #include <cstdio...
#include <stdio.h> #include <string.h> #include <errno.h> #include <ctype.h> #include <stdlib.h> #include <unistd.h> #include <sys/ipc.h> #include <sys/shm.h> #include <getopt.h> #include "fplatform.h" #include "tool.h" #include "configure.h" #include "AdvLog.h" #include "AdvJSON.h" using namespace std; typedef struc...
/* Starshatter OpenSource Distribution Copyright (c) 1997-2004, Destroyer Studios LLC. 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 t...
#include "Core.h" #include <Console.h> #include <string> #include <set> #include <modules/Gui.h> #include "Types.h" #include "help_ui.h" #include "screen.h" using std::vector; namespace embark_assist{ namespace help_ui { enum class pages { Intro, General, Finder, ...
#include "readDwarf.h" #include <assert.h> #include <unordered_map> #include <array> #include <windows.h> #include "PEImage.h" #include "dwarf.h" #include "mspdb.h" extern "C" { #include "mscvpdb.h" } static Location mkInReg(unsigned reg) { Location l; l.type = Location::InReg; l.reg = reg; ret...
// // Created by 张佳男 on 2020/6/9. // #include <stdio.h> #include <malloc.h> #include <memory.h> #include <sys/stat.h> #include <stdint-gcc.h> #include <process.h> #include "elf.h" Elf64_Ehdr loadFile(); void readElfHeader(Elf64_Ehdr *file); Elf64_Ehdr readElf(); void parseElf(); char *getMachine(Elf64_Half machin...
#include <tuple> #include <utility> #include <cstdint> #include <stdexcept> #include "../include/simple_match/simple_match.hpp" #include <iostream> #include "../include/simple_match/boost/any.hpp" #include "../include/simple_match/boost/variant.hpp" #include "../include/simple_match/boost/optional.hpp" #include "../in...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
// This is the answer to Ex8 #include <fstream> #include <iomanip> #include <map> #define SC_INCLUDE_DYNAMIC_PROCESSES #include "systemc" using namespace sc_core; using namespace sc_dt; using namespace std; #include "tlm.h" #include "tlm_utils/peq_with_cb_and_phase.h" #include "tlm_utils/simple_initiator_socket.h"...
#pragma once #include "host_tensor.hpp" template <typename TIn, typename TWei, typename TOut, typename ConvStrides, typename ConvDilations, typename InLeftPads, typename InRightPads> void host_direct_convolution(const Tensor<TIn>& in, ...
/* Copyright The Overlaybd 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...
//---------------------------------------------------------------------------- // Anti-Grain Geometry - Version 2.2 // Copyright (C) 2002-2004 <NAME> (http://www.antigrain.com) // // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. ...
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2017-, Southwest Research Institute * Copyright (c) 2017-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are...
#include "interaction_elph.h" #include <fstream> #ifdef HDF5_AVAIL #include <highfive/H5Easy.hpp> #endif // specific parse function for the case where there is no // HDF5 available InteractionElPhWan parseNoHDF5(Context &context, Crystal &crystal, PhononH0 *phononH0_) { std::string f...
/** * This program tests the range image likelihood library. * * You can move around using * w - forward * a - backward * s - left * d - right * q - up * z - down * f - write point cloud file * * The mouse controls the direction of movement * * Esc - quit * */ #include <Eigen/Dense> #include <...
// 1. Resources used to create this program // 2. http://code.runnable.com/VXjZZimG7Nk0smWF/simple-tcp-server-code-for-c%2B%2B-and-socket // http://man7.org/linux/man-pages/man3/getifaddrs.3.html // http://man7.org/linux/man-pages/man3/inet_ntop.3.html // http://man7.org/linux/man-pages/man2/socket.2.html // http://man...
///////////////////////////////////////////////////////////////////////////// // // // Problem: dT/dt = alpha_heat * Grad^2 T // // Method: Finite Element Method with linear 3D tetrahedral elements // and Implicit Euler Method and Conjugate Gradient Method // // Allocate 1 Node on Avoca: salloc -N 1 -t1:00:00 -...
/** * Copyright (c) 2017-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. */ #include "state_feature.h" static inline void accu_value(int idx, float val, std::map<int, std::pair<int, float>...
/* ; Project: Open Vehicle Monitor System ; Date: 14th March 2017 ; ; Changes: ; 1.0 Initial release ; ; (C) 2011 <NAME> / Stegen Electronics ; (C) 2011-2017 <NAME> ; (C) 2011 <NAME> @ EPRO/DX ; ; Permission is hereby granted, free of charge, to any person obtaining a ...
#include <Arduino.h> #include <WebServer.h> #include <HTTP_Method.h> #include "WebPage.h" #include "static/static.h" #include <ESPAsyncWebServer/ESPAsyncWebServer.h> #include "Motor.h" #include "RBE1001Lib.h" #include <stdio.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/queue.h" AsyncWebSer...
// Fermilab Software Legal Information (BSD License) // Copyright (c) 2008-2019, Fermi Research Alliance, LLC // 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...
#include <iostream> #include <omp.h> #include <X11/Xlib.h> #include <boost/graph/adjacency_list.hpp> #include <boost/config.hpp> #include <boost/graph/graphviz.hpp> #include <boost/graph/depth_first_search.hpp> #include <boost/graph/breadth_first_search.hpp> #include <boost/graph/prim_minimum_spanning_tree.hpp> #includ...
#include "RayTracingInOneWeekendDemoPass.h" #include <chrono> namespace { // Where is our shader located? const char* kFileRayTrace = "RayTraceInAWeekend\\rayTracingInAWeekend.rt.hlsl"; }; // This callback gets run on program initialization bool RayTracingInOneWeekendDemo::initialize(RenderContext::SharedPtr pRen...
/* File: init.cpp Author: <NAME> Date: September 3, 2013 */ #include "input_deck_reader.h" #include "global.h" #include "opt/opt.h" #include "utils.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #include <gsl/gsl_linalg.h> #ifdef USE_MPI #include <mpi....
#include "NodeGraph_Manager.h" #include "Globals.h" #include "Node.h" #include "ImGui/imgui.h" #include "ImGui/imgui_impl_sdl.h" #include <string> #include <vector> NodeGraph_Manager::NodeGraph_Manager() { } NodeGraph_Manager::~NodeGraph_Manager() { for (uint i = 0; i < nodes.size(); i++) { RELEASE(nodes[i]);...
#include "stdhdr.h" #include "digi.h" #include "simveh.h" #include "object.h" #include "PilotInputs.h" #include "airframe.h" #include "aircrft.h" #include "guns.h" #include "simdrive.h" #include "sms.h" #include "guns.h" #include "classtbl.h" #include "MsgInc\WeaponFireMsg.h" #include "radar.h" // 2002-02-10 S.G. /* S....
/* * File: lfGraph_getPath.cpp * * * Author(s): * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Description: * implementation of a Coarse Graph GetPath * Copyright (c) 2018. * last Updated: 31/07/2018 * */ #include<iostream> #include<float.h> #include<std...
/*!********************************************************************************************************************* \File VulkanIBLMapsGenerator.cpp \Title Vulkan Image Based Lighting Maps Generator \Author PowerVR by Imagination, Developer Technology Team. \Copyright Copyright(c) Imaginati...
#pragma once #include "MercuryCore.h" #include "HandDetector.h" /************************************ UTIL *********************************************/ /* * Get the amount of edges inside of a blob as an integer */ BlobEdgeData getEdgeData(BlobInformation& blob, cv::Mat& edges) { // the data to fill BlobEdgeDa...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <FL/fl_ask.H> typedef struct noeud2{ struct noeud2 *v1, *v2, *v3; /* neighbors */ double l1, l2, l3; /* actual branch lengths */ double b1, b2, b3; /* bootstrap values */ char* nom; /* name */ } *noeud; typedef struct sbranche{ noeud bout1;...
#include "stdafx.h" #include "Util.h" static const struct { COLORREF color; char *command; } COMMAND2COLOR[] = { {RGB(0xFF, 0x00, 0x00), "red"}, {RGB(0xFF, 0x80, 0x80), "pink"}, {RGB(0xFF, 0xC0, 0x00), "orange"}, {RGB(0xFF, 0xFF, 0x00), "yellow"}, {RGB(0x00, 0xFF, 0x00), "green"}, {RGB(0x00, 0xFF, 0xFF), "cya...
#include "Application.h" #include "ProgramDescription.h" #include "UniformList.h" #include "glad/glad.h" #include "screenShoot.h" #include "timer.h" #include "watcher.h" #include "window.h" #include <sys/stat.h> #include <GLFW/glfw3.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <atomic> #inc...
/* ---------------------------------------------------------------------- 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 (c) 2017 Regents of the SIGNET lab, University of Padova. // 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 copyrigh...
#include <iostream> #include<sndfile.hh> #include<memory.h> #include"../src/hypercurve.h" #include"sndfile.hh" #include<chrono> using namespace std; struct timer { timer() { t1 = std::chrono::high_resolution_clock::now(); first = t1; } void time_since_last(std::string label = "") {...
#include <test_plugin/test_planner.h> #include <pluginlib/class_list_macros.h> PLUGINLIB_EXPORT_CLASS(test_planner::TestPlanner, nav_core::BaseLocalPlanner); geometry_msgs::Quaternion convertPlanarPsi2Quaternion(double psi) { geometry_msgs::Quaternion quaternion; quaternion.x = 0.0; quaternion.y = 0.0; ...
/* * pool.cpp * * Created on: 18.04.2014 * Author: mad */ #include "net.h" #include "validation.h" #include "miner.h" #include "pool.h" //#include "bitcoinrpc.h" PrimeWorker::PrimeWorker(CWallet* pwallet, unsigned threadid, unsigned target) { mWallet = pwallet; mThrea...
// // <NAME> <<EMAIL>> // Argonne National Laboratory // // <NAME> <<EMAIL>> // Indiana University Cyclotron Facility // // <NAME> <<EMAIL>> // Indiana University Cyclotron Facility // // ROOT #include "TFile.h" #include "TTree.h" #include "TRandom.h" #include "TClonesArray.h" #include "TH1.h" #include "TH2.h" #includ...
/* <NAME> '20 COS 526: Assignment 1 poisson_clone.cpp Clones src into dest based on mask using seamless Poisson cloning as described in Perez et al. in 2003 */ #include <cmath> #include <string> #include <cstdio> #include <cstdlib> #include <gsl/gsl_vector.h> #include <gsl/gsl_spmatrix.h> #include <gsl/gsl_splinalg.h...
#include "gff_utils.h" extern bool verbose; extern bool debugMode; //bool debugState=false; void printFasta(FILE* f, GStr& defline, char* seq, int seqlen) { if (seq==NULL) return; int len=(seqlen>0)?seqlen:strlen(seq); if (len<=0) return; if (!defline.is_empty()) fprintf(f, ">%s\n",defline.chars()); int il...
#include "XMILEGenerator.h" #include <algorithm> #include "../Model.h" #include "../Symbol/ExpressionList.h" #include "../Vensim/VensimView.h" #include "../XMUtil.h" XMILEGenerator::XMILEGenerator(Model *model) { _model = model; } std::string XMILEGenerator::Print(bool isCompact, std::vector<std::string> &errs) {...
/************************************************************************** * Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
// vim: set expandtab tabstop=8 shiftwidth=8 foldmethod=marker: /** @file Elias.cpp * Algoritmos de compresión para números * * Tomados de: * Compression and coding algorithms * Escrito por <NAME>, <NAME> * * http://books.google.com.co/books?id=czwqegW_NCAC&pg=PA42&lpg=PA42&dq=Binary+Interpolative+Coding&source...
/*************************************************************************/ /* editor_sample_import_plugin.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// Copyright (c) 2011 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 "crypto/ec_private_key.h" #include <vector> #include "base/memory/scoped_ptr.h" #include "testing/gtest/include/gtest/gtest.h" // Generate...
/** * File: ZTextureAnimation.cpp * ZResources defined: ZTextureAnimation, ZTextureAnimationParams (XML declaration not supported for * the latter) * Purpose: extracting texture animating structures from asset files Note: data type is exclusive to * Majora's Mask * * Structure of data: * A texture animation con...
#include "InternodeSyncer.h" #include <common/net/message/storage/StatStoragePathMsg.h> #include <common/net/message/storage/StatStoragePathRespMsg.h> #include <common/toolkit/MessagingTk.h> #include <common/toolkit/MinMaxStore.h> #include <common/toolkit/Time.h> #include <common/toolkit/ZipIterator.h> #include <commo...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
/* TwoPunctures: File "TwoPunctures.c"*/ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <cmath> #include <ctype.h> #include "parameters.h" #include "grUtils.h" #include "TwoPunctures.h" using namespace massgrav; MPI_Comm MPI_TP_COMM = MPI_COMM_WORLD; inline double EXTEND(d...
//Eigen #include <Eigen/Core> //OpenCV #include <opencv2/core/core.hpp> #include <opencv2/core/eigen.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/calib3d.hpp> #include <opencv2/imgproc.hpp> //PCL #include <pcl/point_cloud.h> #include <pcl/point_types.h> #i...
#include <cassert> #include <cstdlib> #include <cstdio> #include <algorithm> #include <iostream> #include <fstream> #include <numeric> #include <string> #include <sstream> #include <vector> #ifdef _MSC_VER #pragma warning( push ) #pragma warning( disable : 4312 ) #endif // _MSC_VER #include "stb_image.h" #ifdef _MSC...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2014 Universidad de la República - Uruguay * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; ...
/********** This library 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 License, or (at your option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This librar...
/** * \file libsanm/anm.cpp * This file is part of SANM, a symbolic asymptotic numerical solver. */ #include "libsanm/anm.h" #include "libsanm/sparse_solver.h" #include "libsanm/strio.h" #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <mutex> using namespace sanm; namespace { cl...
#include <getopt.h> #include <unistd.h> #include <netdb.h> #include <arpa/inet.h> #include <string.h> #include "DataDriver.h" // DrpTDet register map // Master (device = 0x2030) // 0x00800000 MigToPciDma // 0x00A00000 TDetSemi // 0x00C00000 TDetTiming // 0x00E00000 I2C Devices // Slave (devi...
#include <seeds.exchange.hpp> #include <cmath> void exchange::reset() { require_auth(_self); config.remove(); asset citizen_limit = asset(uint64_t(2500000000), seeds_symbol); asset resident_limit = asset(uint64_t(2500000000), seeds_symbol); asset visitor_limit = asset(26000 * 10000, seeds_symbol); as...
#include <eigen_conversions/eigen_msg.h> #include <geometry_msgs/Pose.h> #include <geometry_msgs/PoseArray.h> #include <geometry_msgs/TransformStamped.h> #include <pcl_conversions/pcl_conversions.h> #include <ros/ros.h> #include <sensor_msgs/PointCloud2.h> #include <tf/transform_datatypes.h> #include <tf/transform_list...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "spline.h" using namespace std; // for convenience using json = nlohmann::json; ...
// Copyright (c) 2011-2016 <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, d...
#include <THC/THC.h> #include <pybind11/pybind11.h> #include<torch/torch.h> // #include "depthconv_cuda_kernel.h" template <typename DType> void depthconv_im2col(cudaStream_t stream, const DType *data_im, const DType *data_depth, const int channels, const int height, cons...
//============================================================================ // Name : Assignment 1, CMPE230 // Author : <NAME> & <NAME> // Description : In this project, we implement a simple compiler called COMP // that generates A86 code for a sequence of expressions and // ...
/* * 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 and the following disclaimer. * * - Redistributions in binar...
/** ****************************************************************************** * @file lib_NDEF_URI.c * @author MMY Application Team * @version $Revision: 1330 $ * @date $Date: 2015-11-05 10:39:11 +0100 (Thu, 05 Nov 2015) $ * @brief This file help to manage NDEF file that represent URI. *****...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include <dirent.h> #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "codegen_langunit.hpp" #include "codegenerator_helper.hpp" #include "cpu_codegen_pass.hpp" #include "nnfusion/common/descriptor/la...
// copyright (c) 2007 <NAME>, see licence.txt for more info /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include <base/system.h> #include <engine/graphics.h> #include <engine/storage.h> #include <engine/demo.h> #include <engine/shared/config.h> #include "SDL.h" #inc...
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library 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 2.1 of the License, or (at your opti...
#include "DQM/BeamMonitor/plugins/BeamSpotDipServer.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Framework/interface/LuminosityBlock.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/ConsumesCollect...
// Copyright (C) 2017, <NAME> // This software may be modified and distributed under the terms // of the BSD 3-Clause license. // See the LICENSE.txt file for details. /// \file example.cpp /// \author <NAME> /// \date 2009 /* Modified by <NAME> to add loading of simple 3D tensor files of floats and t...
// Copyright 2020 <NAME> #include "../../../modules/task_3/pasukhin_d_strassen/strassen.h" #include <mpi.h> #include <iostream> #include <random> #include <vector> int comm_rank = 1; int comm_size = 1; int rows = 1; int columns = 1; int checkProc(const int size) { int pow = 1; for (int i = 0; i <= 10; ++i) { ...
int Qa , GMo,fGOM, rq , ellF , b , hz ,WrGG ,St0k , k, // uUsMB ,//XN F0mqT, EHIv , vNaI, PO,FfmW0 ,mhUt , qu , Zu ,o6Ig,ZXP7wu, Aq ,/*9nY*/e, ZE/*F*/ , /*9jM*/f1OE5 ,DZBL , aVP2 , b9OU,JY7,s3 , KQkn ,p, Qh ,uc , ytN8 , n8s ,bQza , I7d2 , SMIg,H0bAL /**/ , um, ONx25;void f_f0 () { in...
// Copyright (c) 2019-2021, Lawrence Livermore National Security, LLC and // other Serac Project Developers. See the top-level LICENSE file for // details. // // SPDX-License-Identifier: (BSD-3-Clause) #include <gtest/gtest.h> #include <array> #include <fstream> #include <functional> #include "mfem.hpp" #include "s...
/* * =============================================================== * Description: Shard hyperdex stub implementation. * * Created: 2014-02-18 15:32:42 * * Author: <NAME>, <EMAIL> * * Copyright (C) 2013-2014, Cornell University, see the LICENSE * file for licensing agr...
#include "sdl_addon.h" #include <algorithm> #include <iostream> #include <sstream> // windows has apparently deprecated fopen so let's ignore that #ifdef _WIN32 #pragma warning (disable : 4996) #endif #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" bool sdlSetWindow(SDL_Window* window_) { SDL_Sy...
/* * Copyright 2011-2014 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include "ModifierKeysWindow.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <Bitmap.h> #include <Button.h> #include <Catalog.h> #include <Check...
/* * FirstScene - Première scène graphique * Prérequis: Aucun * Utilisation du module utilitaire et graphique ** Présente : * -Création et gestion d'une fenêtre (Traitement des évènements clavier/souris) * -Gestion du clavier(Récupération de l'état d'une touche) * -Des outils pour afficher une scène basique via le c...
#include "Open303VST.h" //------------------------------------------------------------------------------------------------- AudioEffect* createEffectInstance(audioMasterCallback audioMaster) { return new Open303VST(audioMaster); } //===============================2============================================...
#include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #include <cstdio> #include <cstdlib> #include <fstream> #include <functional> #include <iostream> #include <memory> #include <regex> #include <sstream> #include <stdexcept> #include <string> #include <unordered_set> #include <utility> #include <vector> ...
#include "Codes.h" #include <string.h> #include <time.h> #include "dtoa.h" INTEGER GetOperatorType(INTEGER ID) { switch (ID) { // selectors case KEY_INDEX_OPEN: case KEY_INDEX_CLOSE: case KEY_P_OPEN: case KEY_SELECTOR_P: case KEY_SELECTOR_I: case KEY_P_CLOSE:...
// // //*********************************************************************** // * // Copyright (C) 2009 * // University Corporation for Atmospheric Research * // ...
// [[Rcpp::depends(RcppArmadillo)]] #include <RcppArmadillo.h> #include "utils.h" #include "toolbox.h" using namespace arma; using namespace Rcpp; // A note on dimensions: these programs are written so that the long axis of the data is in rows. // That means for the complete data set time is in rows. // When the pro...
#include "Drawable.h" #include <iostream> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #include <glm.hpp> #include <gtc/matrix_transform.hpp> #include <gtc/type_ptr.hpp> #include "Mathematics/Triangle.h" #include "Mathematics/Vector3.h" float MC_OpenGL::vertices[] = { -0.5f, -0.5f, -0.5f, 0.0f, 0.0f,...
//===- opt.cpp - The LLVM Modular Optimizer -------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "Matrix4.hpp" Matrix4::Matrix4(){ c[0] = 1.0f; c[1] = 0.0f; c[2] = 0.0f; c[3] = 0.0f; c[4] = 0.0f; c[5] = 1.0f; c[6] = 0.0f; c[7] = 0.0f; c[8] = 0.0f; c[9] = 0.0f; c[10] = 1.0f; c[11] = 0.0f; c[12] = 0.0f; c[13] = 0.0f; c[14] = 0.0f; c[15] = 1.0f; } Matrix4::~Matrix4(){ } Matrix4 Matrix4...
// Copyright (c) 2007, 2018, Oracle and/or its affiliates. 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, version 2.0, as // published by the Free Software Foundation. // // This program is also distributed w...
#include "ofxAssimpModelLoader.h" #import "aiConfig.h" #define BUFFER_OFFSET(i) ((char *)NULL + (i)) #define aisgl_min(x,y) (x<y?x:y) #define aisgl_max(x,y) (y>x?y:x) //------------------------------------------- static void color4_to_float4(const struct aiColor4D *c, float f[4]) { f[0] = c->r; f[1] = c->g; f[2]...
#pragma once #include <CombBLAS/CombBLAS.h> #include <execinfo.h> #include <libgen.h> #include <petscmat.h> #include <petscviewer.h> #include <unistd.h> #include <csignal> #include <cstdio> #include <cstdlib> #include <utility> #include <vector> #include "options.hpp" namespace ligmg { // Orthagonalize a std::vector...
/* Copyright (c) 2010-2016, <NAME> - IntRoLab - Universite de Sherbrooke 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,...
//===-- FIRBuilder.cpp ----------------------------------------------------===// // // 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 2013 <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 copyr...
/* * Copyright 2004-2019 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 * *...
// // Created by kerin on 2019-03-01. // #include "parse_arguments.hpp" #include "parameters.hpp" #include "tools/eigen3.3/Dense" #include "tools/cxxopts.hpp" #include <iostream> #include <iomanip> #include <set> #include <cstring> #include <boost/filesystem.hpp> #include <mpi.h> #include <regex> #include <random> #...