text
stringlengths
5.71k
33.7k
///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// // // CUserNode // ///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////...
/* * Copyright (c) 2021 bestechnic (Shanghai) Technologies CO., LIMITED. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
/******************************************************************************* I2C Configuration for a Wolfson WM8978 Audio Codec. This file was written based on the information provided in the Codec Specs and on the NuovotonDuino project: https://github.com/DFRobot/NuvotonDuino. *********************************...
/* * Copyright 2005, <NAME>, <EMAIL>. All rights reserved. * Distributed under the terms of the MIT License. */ /** This module applies rules that were learned by another component by * evaluating the cache log files. * * Note: this module is using private kernel API and is definitely not * meant to be an exam...
#include "camera/Camera.hpp" #include "camera/CameraPose.h" #include "camera/RealCamera.hpp" #include "Common.h" #include "PerformanceMonitor.h" #include <fstream> #include <opencv2/highgui.hpp> #include <opencv2/calib3d.hpp> #include <opencv2/imgproc.hpp> #include <Eigen/Geometry> using namespace cv; using namespace...
/// @file FITSImageRW.cc /// @brief Read/Write FITS image class /// @details This class implements the write methods that are absent /// from the casacore FITSImage. /// /// /// @copyright (c) 2016 CSIRO /// Australia Telescope National Facility (ATNF) /// Commonwealth Scientific and Industrial Research Organisation (C...
/* wcecompat: Windows CE C Runtime Library "compatibility" library. * * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved. * http://www.essemer.com.au/ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as pub...
/******************************************************************************* * Copyright (C) 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 without restriction, includ...
// -*- C++ -*- // // Package: HcalLuttoDB // Class: HcalLuttoDB // /**\class HcalLuttoDB HcalLuttoDB.cc CalibCalorimetry/HcalLuttoDB/src/HcalLuttoDB.cc Description: <one line class summary> R Implementation: <Notes on implementation> */ // // Original Author: <NAME> // Created: Mon Mar 19 11:...
// NAME: LiquidCrystal_MCP23017_I2C.cpp // // DESC: This is a library for an LCD display with an I2C board based on the // MCP23017 I2C Port Expander. It allows individual pin mapping from the MCP23017 // to the 1602 LCD. // // This file is part of the LiquidCrystal_MCP23017_I2C for the Arduino environment. // https://...
// Display a Graph // // File: hpcm_display_graph.cc // Authors: <NAME> (<EMAIL>) // Date: Mon Jul 3 14:34:31 EDT 2017 // // The authors have placed this program in the public // domain; they make no warranty and accept no liability // for this program. // // RCS Info (may not be true date or author): // // $Author:...
#include <gtest/gtest.h> #include "../Colour/colour.hh" using namespace bold; TEST (ColourTests, bgr2hsv) { Colour::bgr red(0,0,255); Colour::bgr blue(255,0,0); Colour::bgr green(0,255,0); Colour::bgr yellow(0,255,255); Colour::bgr yellow1(0,255,254); Colour::bgr yellow2(0,254,255); Colour::bgr cyan(25...
#include <stdint.h> #include <string.h> #include <raims/sha512.h> using namespace rai; using namespace ms; static inline uint64_t ROR64( uint64_t value, int bits ) noexcept { return ( value >> bits ) | ( value << ( 64 - bits ) ); } static inline size_t MIN( size_t x, size_t y ) noexcept { return x < y ? x : y; }...
/* Copyright (c) 2011, 2020, 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 with cer...
#include <engine/e_client_interface.h> #include <game/generated/g_protocol.hpp> #include <game/generated/gc_data.hpp> #include <game/gamecore.hpp> // get_angle #include <game/client/animstate.hpp> #include <game/client/gameclient.hpp> #include <game/client/ui.hpp> #include <game/client/render.hpp> #include <game/clie...
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
/******************************************************************************* * Copyright (C) 2007 by the members of PG 510, University of Dortmund: * * <EMAIL> * * <NAME>, <NAME>, <NAME>, <NAME>, * * <NAME>, <NAME>, <NAME>, <NAME>, * * ...
// <NAME> // Each evaluation object defines the "evaluate" function for how // to convert the vector of bool solution and a subfunction number into // an integer fitness. #include "Evaluation.h" using namespace std; // Template specialization to convert a string to a function pointer // Used to allow configurable pr...
/////////////////////////////////////////////////////////////////////////////////////// // Data Analysis Code Project for the External Target Facility, HIRFL-CSR, @IMP // // // // BINGER/inc/etf/TAMath.cxx // // TAMath.cxx -- source file for ...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
/* * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
/******************************************************************************* * * Copyright (c) 2000-2003 Intel Corporation * All rights reserved. * Copyright (c) 2012 France Telecom All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
#include "MeshData.hpp" #include "glm/vec3.hpp" #include "glm/vec4.hpp" #include "glm/gtc/quaternion.hpp" #include "glm/gtc/type_precision.hpp" #include "assimp/Importer.hpp" #include "assimp/postprocess.h" #include "assimp/cimport.h" #include "assimp/scene.h" #include "easylogging++.h" #include <vector> #include <stde...
#include "TROOT.h" #include "TH1.h" #include "TH2.h" #include "TF1.h" #include "TGraphErrors.h" #include "TLegend.h" #include "TCanvas.h" #include "TSystem.h" #include "TStyle.h" #include "TFile.h" #include "TPaveText.h" #include <vector> #include <iostream> #include <sstream> #include <cmath> void setTDRStyle(); ///...
#pragma once #include "linux/videodev2.h" #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/mman.h> #include "opencv2/opencv.hpp" #include <iostream> class RMVideoCapture { public: RMVideoCapture(const char * device, int size_buffer = 1); ~RMVideoCapture(); bo...
//-------------------------------------------------------------------------------- // This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed // under the MIT License, available in the root of this distribution and // at the following URL: // // http://www.opensource.org/licenses/mit-license.ph...
#include "vehicle.h" #include <algorithm> #include <iterator> #include <map> #include <string> #include <vector> #include "cost.h" #include "waypoint.h" #include <iostream> using std::cout; using std::endl; using std::string; using std::vector; // Initializes Vehicle Vehicle::Vehicle() {} Vehicle::Vehicle(double x, ...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <fstream> #include <iostream> #include "cmath.h" #include <iomanip> #include <vector> const int DIM_8 = 8; double cond; static int flag = -1; int pivot[DIM_8]; std::ofstream out("lab2-result.txt"); double* minus(double* x1, double* x2) { double* resul...
#include <Arduino.h> #include <ESP8266WiFi.h> #include <WiFiClientSecure.h> #include <StreamString.h> #include <base64.h> #include "ESP8266SMTPClient.h" /** * constractor */ SMTPClient::SMTPClient() { _tcp = NULL; _tcps = NULL; _port = 0; _tcpTimeout = SMTPCLIENT_DEFAULT_TCP_TIMEOUT; _smtps = fal...
#include "tiles_generic.h" #include "msm6295.h" // FB Alpha - "News" Driver // Input Related Variables static unsigned char NewsInputPort0[8] = {0, 0, 0, 0, 0, 0, 0, 0}; static unsigned char NewsDip[1] = {0}; static unsigned char NewsInput[1] = {0x00}; static unsigned char NewsReset = 0; ...
/* * Copyright (C) 2018 by Author: Aroudj, Samir * TU Darmstadt - Graphics, Capture and Massively Parallel Computing * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD 3-Clause license. See the License.txt file for details. */ #include "Platform/FailureHandling/FileCo...
// // Copyright (C) 2004-2011 by Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This library is distributed in the hope that it will be use...
#include "joycon.h" Joycon::Joycon(JOY_PID _PID, wchar_t* _serial_number) : package_number(0) { /* Set Properties */ PID = _PID; std::wstring ws_sn(_serial_number); std::string sn(ws_sn.begin(), ws_sn.end()); serial_number = _serial_number; serial = sn; } Joycon::~Joycon() { close(); } bool Joycon::open(){ /...
#include <ctype.h> #include <errno.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> #include <alloca.h> #include "fat.hh" unsigned FAT::File::tell() { unsigned offset = this->fat->offsetData; offset += ((this->cluster - 2) * this->fat->sizeC...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include <...
// // src/order/drivers/examples/spoolesmmd.cc -- uses spooles' MSMD // // $Id: spoolesmmd.cc,v 1.2 2000/02/18 01:31:55 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 softwa...
// // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // Statement.cc -- // // Author : <NAME> // Created On : Mon May 18 07:44:20 2015 // Last Modified By : <NAM...
#include "Angel.h" #include <assert.h> typedef Angel::vec4 point4; typedef Angel::vec4 color4; const int NumVertices = 36; //(6 faces)(2 triangles/face)(3 vertices/triangle) point4 points[NumVertices]; color4 colors[NumVertices]; point4 vertices[8] = { point4( -0.5, -0.5, 0.5, 1.0 ), point4( -0.5, 0.5, 0.5...
#include <math.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <GL/gl.h> #include "SDL.h" #include "ship.h" #include "metrics.h" #include "particle.h" #include "commons.h" #include "projectile.h" #include "rock.h" #include "sound.h" #include "model.h" #include "settings.h" #include "gltext.h" #i...
#include "PolySurfMesh.h" #include <algorithm> void PolySurfMesh::edgeSwapNext( const EdgeHandle& eh ) { LOG_ASSERT( !is_boundary( eh ) ); auto heh = halfedge_handle( eh, 0 ); LOG_ASSERT( valence( from_vertex_handle( heh ) ) > 2 ); LOG_ASSERT( valence( to_vertex_handle( heh ) ) > 2 ); // 1 --- 0 --- 5 // | ...
/* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */ /********************************************************************* Copyright 1999-2007, University of Cincinnati. All rights reserved. By using this software the USER indicates that he or she has read, understood and will comply with the f...
#include "ZipFileStream.hpp" #include "Error.hpp" #include "Log.hpp" #include "MethodNotSupportException.hpp" extern "C" { #include "zip.h" #include "zlib.h" } #include <fstream> #include <string.h> #include <unistd.h> #include <utime.h> #define CASESENSITIVITY (0) #define MAXFILENAME (256) #define WRITEBUFFERSIZE ...
//flat #include "ros/ros.h" #include "posture_sensor.h" #include "accel_sensor.h" #include "gyro_sensor.h" #include "accel_angle.h" #include "gyro_angle.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <math.h> #define M...
/* * Copyright 2012 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 require...
/* * Copyright (c) 2010-2015 Pivotal Software, 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 req...
#include <stdio.h> #include <dirent.h> #ifdef __MINGW32__ #include <sys/stat.h> #endif #include <ios> #include <fstream> #include <stdexcept> #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/ml/ml.hpp> #include <opencv2/core/core.hpp> #include "lib/common.h" #include "lib/ImageData...
#include "Bidoo.hpp" #include "dsp/digital.hpp" #include "BidooComponents.hpp" #include "window.hpp" #include <thread> #include "dsp/resampler.hpp" #define FRAME_SIZE 2048 #define BINS 256 using namespace std; namespace rack_plugin_Bidoo { template <int OVERSAMPLE, int QUALITY> struct WavOscillator { bool soft = fa...
// Functions to make a collapsed gibbs sampler for LDA // Export this as a header for use in other packages // [[Rcpp::interfaces(r, cpp)]] // #include "sample_int.h" #include "matrix_conversions.h" // [[Rcpp::depends(RcppArmadillo)]] #include <RcppArmadillo.h> #define ARMA_64BIT_WORD #include <Rmath.h> #include <...
/**************************************************************************** * * Copyright (c) 2019 PX4 Development Team. 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. Redistri...
// Keys.cc for Fluxbox - an X11 Window manager // Copyright (c) 2001 - 2006 <NAME> (fluxgen at fluxbox dot org) // // 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, incl...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkAutoPixmapStorage.h" #include "GrCaps.h" #include "GrContext.h" #include "GrDrawContext.h" #include "GrImageIDTextureAdjuster.h" #include "effects/GrYUVEffect.h" #...
#include "./compositor.h" #include "./rasterizer.h" // ============================================================================ // [RasterizerA2] // ============================================================================ class RasterizerA2 : public CellRasterizer { public: RasterizerA2(Image& dst, uint32_t...
#include "colorfxutils.h" #include "drawutil.h" #include "tregion.h" #include "tflash.h" RubberDeform::RubberDeform() : m_pPolyOri(0), m_polyLoc() {} RubberDeform::RubberDeform(std::vector<T3DPointD> *pPolyOri, const double rf) : m_pPolyOri(pPolyOri), m_polyLoc() { copyOri2Loc(); TRectD bbox; getBBox(bbox...
#pragma once #include <3ds.h> #include <array> #include <algorithm> #include <cstdlib> #include <string> #include <string_view> #include <type_traits> #include <variant> #include <vector> #include "../code/src/settings.h" #include "category.hpp" #include "cosmetics.hpp" #include "debug.hpp" #include "menu.hpp" #incl...
#include "RecoLocalCalo/HGCalRecProducers/interface/HGCalCLUEAlgo.h" // Geometry #include "DataFormats/HcalDetId/interface/HcalSubdetector.h" #include "Geometry/CaloGeometry/interface/CaloCellGeometry.h" #include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h" #include "Geometry/Records/interface/IdealGeom...
/* mathgl.cpp is part of UDAV * Copyright (C) 2007-2014 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License * as published by the Free Software Foundation * * This program is distributed in the hope that it will ...
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE USE OF...
//===-- MipsInstrInfo.cpp - Mips Instruction Information ------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/****************************************************************** Copyright <NAME> 2020 ******************************************************************/ #include "molecule_pipeline_imp.h" #include <math.h> #include <stdlib.h> #include <time.h> Molecule::Molecule(int num_jiggles, int num_atoms, PyArrayObject *posi...
// NRF24.cpp // // Copyright (C) 2012 <NAME> // $Id: RH_NRF24.cpp,v 1.21 2015/03/29 03:53:47 mikem Exp $ #include <RH_NRF24.h> #include <cstring> #define NRF_TIMEOUT_MS 1 #if ENABLE_DIAGNOSTIC_LED #ifndef LED_DRIVER_PCA9552_H_ #include "led_driver_pca9552.h" #endif static color_rgb colors[] = { { LED_MODE_OFF, ...
/* * ZMText.cpp * yazmin * * Created by <NAME> on 18/12/06. * Copyright 2006-2007 <NAME>. All rights reserved. * */ #include "ZMText.h" #include "ZMMemory.h" static const char defaultA0[] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q'...
/** * Copyright (C) 2016 <NAME>. All rights reserved. * License: https://github.com/crosire/blink#license */ #include "blink.hpp" #include "pdb_reader.hpp" #include "coff_reader.hpp" #include "scoped_handle.hpp" #include <string> #include <algorithm> #include <unordered_map> #include <Windows.h> static std::filesy...
//------------------------------------------------------------------------------ // A simple example showing how to use the triangle geometry //------------------------------------------------------------------------------ #include "givr.h" #include <glm/gtc/matrix_transform.hpp> #include "io.h" #include "turntable_co...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include "design.h" #include <complex> #include <cmath> using namespace std::complex_literals; Eigen::Matrix <double, Eigen::Dynamic, 1> Gradient_num(polarization pol, design _design, double wavelength, process_type p); Eigen::Matrix <double, Eigen::Dynamic, Eigen:...
#include "include.h" #include "parameters.h" #include "bit_manipulation.h" #include "double_utility.h" #include "integer.h" #include "asm_main.h" #include "vdf_original.h" #include "vdf_new.h" #include "gpu_integer.h" #include "gpu_integer_divide.h" #include "gcd_base.h" #include "gpu_integer_g...
#include <iostream> #include <string> #include <array> #include <vector> #include <algorithm> #include <cassert> using namespace std; /// Returns the square distance between two arrays. float distance_sqr(const array<float, 3>& a, const array<float, 3>& b) { const float d0 = a[0] - b[0]; const float d1 =...
//===--- RequirementMachine.cpp - Generics with term rewriting ------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE....
/* * Copyright (C) 2019, unclearness * All rights reserved. */ #include "vacancy/voxel_carver.h" #include <array> #include "vacancy/extract_voxel.h" #include "vacancy/marching_cubes.h" #include "vacancy/timer.h" namespace { inline float SdfInterpolationNn(const Eigen::Vector2f& image_p, ...
#include <iostream> #include "vapor/Advection.h" #include <fstream> #include <algorithm> using namespace flow; // Constructor; Advection::Advection() : _lowerAngle(3.0f), _upperAngle(15.0f) { _lowerAngleCos = glm::cos(glm::radians(_lowerAngle)); _upperAngleCos = glm::cos(glm::radians(_upperAngle)); for (...
/* * File: ZonotopeTest.cpp * Author: jongan * * Created on Sep 1, 2014, 11:56:26 AM */ #include "../defines.h" #include "gtest/gtest.h" #include <hypro/datastructures/Halfspace.h> #include <hypro/representations/GeometricObjectBase.h> #include <iostream> #include <stdlib.h> /* * Google TYPED_TEST for Zonotop...
#ifdef CS_COMPLEX #undef CS_COMPLEX #endif #include "cs.h" /* clear w */ static CS_INT cs_wclear(CS_INT mark, CS_INT lemax, CS_INT* w, CS_INT n) { CS_INT k; if (mark < 2 || (mark + lemax < 0)) { for (k = 0; k < n; k++) if (w[k] != 0) { w[k] = 1; } mark = 2...
//###################################################################### // // GraspIt! // Copyright (C) 2002-2009 Columbia University in the City of New York. // All rights reserved. // // GraspIt! is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as publi...
//************************************************************************ // Copyright (C) 2020 Massachusetts Institute of Technology // // File Name: cep_gps.cc/h // Program: Common Evaluation Platform (CEP) // Description: gps test for CEP // Notes: //****************************************...
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: dnlebard #include "HarmonicImproperForceCompute.h" #include <iostream> #include <sstream> #include <stdexcept> #include <math.h> using names...
/* * Copyright (c) 2007-2017, Intel Corporation * * 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, p...
#include "SearchController.h" #include <angles/angles.h> #include <array> #include <cstdlib> #include <ctime> #include <queue> #include <geometry_msgs/Pose2D.h> #include <geometry_msgs/Twist.h> float locationCounter = 1; float locationCounterTwo = 1; SearchController::SearchController() { rng = new random_number...
// This file is part of KWIVER, and is distributed under the // OSI-approved BSD 3-Clause License. See top-level LICENSE file or // https://github.com/Kitware/kwiver/blob/master/LICENSE for details. #include "mesh_coloration.h" #include <kwiversys/SystemTools.hxx> #include "vtkKwiverCamera.h" // VTK includes #includ...
/* ---------------------------------------------------------------------- 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...
#include "LFSCPrinter.h" LFSCPrinter::LFSCPrinter( Expr pf_expr, Expr qExpr, std::vector<Expr> assumps, int lfscm, CommonProofRules* commonRules ): d_user_assumptions(assumps), d_common_pf_rules(commonRules){ printer = this; if( ...
#include <iostream> #include <fstream> #include <stdlib.h> #include <cstdio> #include <iostream> #include <memory> #include <stdexcept> #include <string> #include <array> #include <map> #include <cstring> #include "lib/platformfolders/platform_folders.h" #include "lib/filedialogs/portable-file-dialogs.h" #if defined(...
//===------------------------- DFG2LLVM_CUDNN.cpp ------------------------ ===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/** * \brief Example Scene 1 implementation * \file */ #include <cassert> #include <iostream> #include "assignment1.h" // v8 v7 // *------* y // /| /| ^ // v4/ | v3/ | | // ...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2010, 2011 <NAME> This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or...
#include "laser_output.h" #include "trace.h" // Debugging Trace File CLaserOutput::CLaserOutput() { // Clear out the temp frame memset(&m_points, 0, sizeof(laser_point) * MAX_FRAME_SIZE); m_total_points = 0; // Clear the total points written m_total_points_written = 0; // Reset the blank and cent...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2017-2020, Waterplus http://www.6-robot.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
#include <cstdarg> #include <text.hpp> #include <utf8.hpp> #include <common.hpp> namespace { template<typename text_t> uint32_t GetTotalSpaceCount(const text_t& text) { uint32_t result = 0; for (auto smb: text) { // standard says, that isspace works for symbols between 0 and 255 // otherwise ...
// 3D intersection tests. // We want to check that no division is performed for interface macro Do_intersect_3_RT #define CGAL_NO_MPZF_DIVISION_OPERATOR // Sphere_3_X with X < Sphere (lexicographically) are tested in other files #include <CGAL/Intersections_3/Ray_3_Ray_3.h> #include <CGAL/Intersections_3/Ray_3_Segme...
/* ---------------------------------------------------------------------- SPPARKS - Stochastic Parallel PARticle Kinetic Simulator http://www.cs.sandia.gov/~sjplimp/spparks.html <NAME>, <EMAIL>, Sandia National Laboratories Copyright (2008) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85...
/*************************************************************************** * Original Diku Mud copyright (C) 1990, 1991 by <NAME>, * * <NAME>, <NAME>, <NAME>, and <NAME>. * * * * Merc Diku Mud improvments copyright (C) 1992, 1993 ...
/******************************************************************************* Copyright 2006-2012 <NAME> <<EMAIL>> 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/lice...
#include "pbbs-include/get_time.h" timer t; #include "pam.h" #include <iostream> #include <algorithm> using namespace std; struct entry { using key_t = int; using val_t = int; using aug_t = float; static inline bool comp(key_t a, key_t b) { return a < b;} static aug_t get_empty() { return 0;} static aug_t...
// Example of a composed asynchronous operation which uses the LEAF library for error handling and reporting. // // An example of running: // - in one terminal: ./asio_beast_leaf_rpc 0.0.0.0 8080 // - in another: telnet localhost 8080 // sum 0 1 2 3 // div 1 0 // mod 1 // quit #include <algorithm> #...
/* * Copyright (c) 2012 <NAME>. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the COPYING file. */ #include <gtest/gtest.h> #include <stdexcept> #include <almath/types/alpose2d.h> #include <almath/tools/altrigonometry.h> TEST(ALPose2DTest, basicOperator)...
#include "OcrLite.h" #include <stdarg.h> //windows&linux #include "spdlog/spdlog.h" #include "spdlog/sinks/basic_file_sink.h" #include "spdlog/sinks/stdout_color_sinks.h" #include <string> OcrLite::OcrLite() {} OcrLite::~OcrLite() { if (isOutputResultTxt) { fclose(resultTxt); } } void OcrLite::setNu...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include "prng.h" #define PI 3.141592653589793 long hash31(long long a, long long b, long long x) { long long result; long lresult; // return a hash of x using a and b mod (2^31 - 1) // may need to do another mod afterwards, or drop high bits // depen...
/* * DBMS Implementation * Copyright (C) 2013 <NAME>, <NAME> * * 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 Foundation; either version 2 of the License, or * (at your option) any later version. * * This ...
#include <tsgemm/accumulate.hpp> #include <tsgemm/gemm.hpp> #include <tsgemm/geometry.hpp> #include <tsgemm/input.hpp> #include <tsgemm/mpi_utils.hpp> #include <tsgemm/sum_global.hpp> #include <hpx/dataflow.hpp> #include <hpx/hpx.hpp> #include <hpx/include/resource_partitioner.hpp> #include <hpx/mpi/mpi_executor.hpp> ...
#include "vector.hpp" #include "list.hpp" #include "deque.hpp" #include "stack.hpp" #include "queue.hpp" #include "priority_queue.hpp" #include "slist.hpp" #include "rb_tree.hpp" #include "pair.hpp" #include "set.hpp" //#include "map.hpp" //#include "multimap.hpp" #include "multiset.hpp" #include "hashtable.hpp" //#inc...
#include <clue/meta_seq.hpp> #include <gtest/gtest.h> namespace meta = clue::meta; using meta::seq_; #define CHECK_META_T(R, Expr) ASSERT_TRUE((std::is_same<R, Expr>::value)) using i1 = meta::int_<1>; using i2 = meta::int_<2>; using i3 = meta::int_<3>; using i4 = meta::int_<4>; using i5 = meta::int_<5>; using i6 = m...
// This file is a part of Hologine. // // Hologine is a straight-forward framework for interactive simulations, // most notably video games. // // Copyright 2015 <NAME>. // // For licensing information, review the LICENSE file located at the root // directory of the source package. #include <cmath> #include "core/math/...