text
stringlengths
5.71k
33.7k
#include "cloud_fitting.h" cloud_fitting::cloud_fitting() :m_num_theta_samples(1024), m_num_phi_samples(512) { m_num_threads = std::thread::hardware_concurrency(); } cloud_fitting::~cloud_fitting() { } void cloud_fitting::fitting_line_3d_linear_least_squares(std::vector<point_3d>& points, line_func_3d & line_fu...
/* * BakerMemoryManager.cpp * * Implementation of BakerMemoryManager class * * LLST (LLVM Smalltalk or Low Level Smalltalk) version 0.2 * * LLST is * Copyright (C) 2012-2013 by <NAME> <<EMAIL>> * Copyright (C) 2012-2013 by <NAME> <<EMAIL>> * * LLST is based on the LittleSmallta...
#include <cstdlib> #include <cassert> #include <iostream> #include <fstream> #include <RTM.hpp> RTMFiniteDifferencesKernel::RTMFiniteDifferencesKernel(RTMParam &_param, RTMProcessLimits &_pLimits) : RTMDistributedGridKernel{_param, _pLimits} { // create kernel defaultPlatform instance accPlatform = new RTM...
/* * Copyright 2014-2017, Max Planck Society. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * thi...
#include "gutil.h" #include <sstream> #include <string> #include <thread> #define BLUEZ "org.bluez" #define BLUEZ_MANAGER_IFACE "org.freedesktop.DBus.ObjectManager" #define BLUEZ_PROPERTY_IFACE "org.freedesktop.DBus.Properties" #define BLUEZ_ADAPTER_IFACE "org.bluez.Adapter1" #define BLUEZ_DEVICE_IFACE "org.bluez.Dev...
#include "imls_icp.h" //pcl::visualization::CloudViewer g_cloudViewer("view-view"); IMLSICPMatcher::IMLSICPMatcher(void ) { m_r = 0.03; m_h = 0.10; m_Iterations = 10; m_PtID = 0; m_pTargetKDTree = m_pSourceKDTree = NULL; } //构造函数. IMLSICPMatcher::IMLSICPMatcher(double _r,double _h,int _iter) { ...
/* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of condi...
#define ALSA_PCM_NEW_HW_PARAMS_API #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <alsa/asoundlib.h> #include <sys/ioctl.h> #include <sys/syscall.h> #include <sys/prctl.h> #include "roller_ey...
// // Created by <NAME> on 2017/04/13 // Copyright 2013-2017 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "GLBackend.h" #include "GLShader.h" #include <gl/GLShaders.h> using namespace...
// Copyright (c) 2020 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distri...
/* Copyright (c) 2012, <NAME> & <NAME> all rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
#include "gtest/gtest.h" #include <cagey-math/Vector2.hh> #include <cagey-math/Vector3.hh> #include <cagey-math/VectorFunc.hh> #include <cstdint> using namespace cagey::math; TEST(Vector3Test, Vector3SizeTest) { ASSERT_EQ(sizeof(Vector3<short>), sizeof(short[3])); ASSERT_EQ(sizeof(Vector3f), sizeof(float[3])); ...
#include <include/Correlator.h> #include <algorithm> Correlator::Correlator( std::shared_ptr<TTTR> tttr, std::string method, int n_bins, int n_casc, bool make_fine ) { #if VERBOSE_TTTRLIB std::clog << "CORRELATOR" << std::endl; #endif curve.set_n_bins(n_bins); curve...
/* * llama-frappe.cc * LLAMA Graph Analytics * * Copyright 2015 * The President and Fellows of Harvard College. * * Copyright 2015 * Oracle Labs. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
#include <windows.h> #include <GL/GL.h> #include <GL/GLU.h> #include <GL/freeglut.h> // #include <iostream> #include <ctime> #include <vector> static constexpr int width = 1920; static constexpr int height = 1080; typedef struct { float x; float y; float z; } XYZ; typedef struct { double m; /* Mas...
#include "cloudpapi.hpp" #include <signal.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdlib.h> #include <stout/option.hpp> #include <map> #include <functional> #ifdef PYTHON_ON #include <Python.h> void PyExec(const char* pyfile) { FILE* fd = fopen(pyfile, "r...
/**********************************************************************/ /** Microsoft Windows/NT **/ /** Copyright(c) Microsoft Corp., 1991 **/ /**********************************************************************/ /* ShareAcl.cxx This file contains the implementation for the...
/* * Author: doe300 * * See the file "LICENSE" for the full license governing this code. */ #include "TestEntries.h" #include <algorithm> #include <cfenv> #include <climits> #include <cmath> #include <cstring> #include <functional> #include <limits> #include <stdexcept> // TODO skip testing for all the out-of-bou...
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <assert.h> #include <iostream> #include <unistd.h> #include <mpi.h> #include "file_io.h" #include "repartition.h" #include "CmdLine.h" #include "generator.h" #include "clustering.h" #include "direct_knn.h" using namespace std; using namespace Torch; us...
#include "Spaceship.h" #include <Core/World.h> #include <Core/Transform.h> #include <Graphics/DebugRenderer.h> #include <Graphics/Render.h> #include <GLFW/glfw3.h> #include <Core/Device.h> #include <Utils.h> #include "BlasteroidsAssets.h" #include "Projectiles.h" #include "Wrapper.h" #include "Blasteroids.h" using nam...
/// @file LTFSCharter.cpp /// @brief FSCharter: Requests and processes FSC tracking data /// @see https://fscharter.net/ /// @details Implements FSCConnection:\n /// - Takes care of login (OAuth)\n /// - Provides a proper REST-conform URL\n /// - Interprets the r...
// // main.cpp // RayTracer // // Created by Aluex on 1/18/15. // Copyright (c) 2015 Aluex. All rights reserved. // #include <cstdio> #include <opencv2/opencv.hpp> //#include <iostream> #include <string> #include "Frame.h" #include "Sphere.h" #include "Render.h" #include "Plane.h" #include "Defaults.h" #include "S...
#include "md5.h" namespace { uint8_t PADDING[64] = { 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x...
// Copyright (c) 2022 <NAME> (lewa_j) #include "hlbsp.h" #include <stdio.h> #include <map> #include <set> #include "map.h" #include "lightmap.h" #include "wad.h" #include "parser.h" bool Map::load_hlbsp(FILE *f, const char *name, LoadConfig *config) { using namespace hlbsp; dheader_t header; dheader31_t header31; ...
#include "filebuf.hpp" #include "esmfile.hpp" #include "ba2file.hpp" #include "nif_file.hpp" #include "plot3d.hpp" static int landWidth = 25728; static int landHeight = 25728; static int cellMinX = -100; static int cellMinY = -100; static int cellMaxX = 100; static int cellMaxY = 100; static float ...
/*========================================================================= Program: VolumeSlice : generates images slices from volume data Module: vtkSurface Language: C++ Date: 2010/03 Auteur: <NAME> =========================================================================*/ // .NAME VolumeSlice // .SE...
/* Copyright 2012-present Facebook, Inc. * Licensed under the Apache License, Version 2.0 */ #include "watchman.h" #include <system_error> #ifndef _WIN32 #include <dirent.h> #endif #ifdef __APPLE__ # include <sys/utsname.h> # include <sys/attr.h> # include <sys/vnode.h> #endif #include "FileDescriptor.h" using watch...
#include "pgo_toy_example.h" #include <ros/ros.h> #include <geometry_msgs/Point.h> #include <visualization_msgs/Marker.h> #include <visualization_msgs/MarkerArray.h> #include <Eigen/Dense> #include <g2o/core/sparse_optimizer.h> #include <g2o/core/optimizable_graph.h> #include <g2o/core/block_solver.h> #include <g2o...
#include "LevelManager.h" #include "../TinyXML/tinyxml.h" #include <sstream> #include <cstdlib> #include "GamePlayState.h" #include "../SGD Wrappers/SGD_GraphicsManager.h" #include "Tile.h" #include "Player.h" #include "Lever.h" #include "PressurePoint.h" #include "Door.h" #include "Trap.h" #include "EntityManager.h" ...
// -*- compile-command: "g++ -DINCLUDE_VCLASSES_MAIN -std=c++11 -Wall -Werror -Weffc++ -pedantic -ggdb -o vclasses vclasses.cpp" -*- #include <math.h> // for pow() #include <stdexcept> #include "vclasses.hpp" extern "C" void __cxa_pure_virtual(void) { throw Pure_Virtual_Exception(); } void throw_unmatchable(co...
/** Copyright (c) 2015 <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following di...
#include <bits/stdc++.h> // #define BOOST #ifdef BOOST #include <boost/filesystem.hpp> #include <boost/random.hpp> #include <boost/random/random_device.hpp> namespace fs = boost::filesystem; namespace rd = boost::random; #else #include <random> #include <filesystem> namespace fs = std::filesystem; namespace rd = ...
#include "genetic/genetic.h" #include <QDebug> #include <QDateTime> //#define DEBUG //#define GENETIC_OPERATION_DEBUG #define DEBUG_FITNESS_POPULATION constexpr auto GRAPH{ "Graph" }; constexpr auto GENETIC{ "Genetic" }; constexpr auto POPULATION_SIZE{ "PopulationSize" }; constexpr auto RESULTS_PATH{"ResultsPath"}; c...
#include <ros/ros.h> #include <voxblox/simulation/simulation_world.h> #include <voxblox/mesh/mesh_integrator.h> #include <voxblox/integrator/esdf_integrator.h> #include <voxblox/integrator/tsdf_integrator.h> #include <voxblox/integrator/occupancy_integrator.h> #include <voxblox/integrator/esdf_occ_integrator.h> #incl...
#include "BOP_database.h" /*//////////////////////////// class Database *///////////////////////////// Database::Database(string filePath){ //database constructor. parameter is file path of old movie list. this->buildDB(filePath); //movie object generate this->calcPersonsScore(); //make sc...
// * main.cpp // File: intersectionDeformer.cpp #include <maya/MMatrix.h> #include <maya/MPoint.h> #include <maya/MFloatPoint.h> #include <maya/MFloatPointArray.h> #include <maya/MVector.h> #include <maya/MVectorArray.h> #include <maya/MFloatVector.h> #include <maya/MItGeometry.h> #include <maya/MItMeshPolygo...
#include "Shrink.h" using std::multimap; using std::pair; using std::vector; using std::make_pair; DSSDShrink::DSSDShrink(TTree *it, TTree *st, TTree *rt) { ipt = it; stree = st; rtree = rt; dssdNum = 0; } DSSDShrink::~DSSDShrink() { } int DSSDShrink::AddDSSD(const char *nn, int xs, int ys, i...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
#include "Level.h" #include "Game.h" #include "TextureManager.h" #include "GameObject.h" #include "Player.h" #include "Bullet.h" #include "Asteroid.h" #include <stdlib.h> #include <iostream> #include <vector> #include <time.h> #include <fstream> using namespace std; Player* player; vector<Asteroid*>...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL license version 2 under * French law and abiding by the rules of distribution of f...
#include "Font.h" #include <iostream> #include <cmath> // Our own custom implementation of a newline, // because fonts generally represent newlines as // nul characters constexpr unsigned int newline = -1; // Round 26.6 fractional pixels off to 32 bit integers inline static int rto32(int v26_6) { return (v26_6 >...
//%2005//////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; // IBM Corp.; EMC Cor...
/** * @file ex_lighting_texture.cpp * @brief Showing lighting effects over two textured objects with Phong * * @author <NAME> * @license MIT */ #include <iostream> #include <string> #include <vector> #include <cmath> #include <numbers> #include <ciso646> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <g...
#include "onehot.h" #include "onehotkernel.h" #include <cstring> // CHANGE THIS TO YOUR DEPTH #define DEPTH 36 using namespace nvinfer1; using namespace nvinfer1::plugin; namespace { const char *ONEHOT_PLUGIN_NAME{"OneHot"}; const char *ONEHOT_PLUGIN_VERSION{"1"}; } REGISTER_TENSORRT_PLUGIN(OneHotLayerCreator); ...
// Copyright (c) 2018, CBH <<EMAIL>> // Licensed under the terms of the BSD 3-Clause License // https://github.com/0CBH0/CellTools/blob/master/LICENSE #include "cellMerge.h" using namespace cv; using namespace std; float imgScale; Mat imgMergeScale, imgMerge, imga, imgb, imgc; int mode, imageContrastA, i...
/********************************************************************** math.cpp - Unit tests for the math code in OpenBabel Copyright (C) 1998-2001 by OpenEye Scientific Software, Inc. Copyright (C) 2001-2006 <NAME> Copyright (C) 2006 <NAME> This file is part of the Open Babel project. For more information, see <ht...
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmCustomCommandGenerator.h" #include <cstddef> #include <memory> #include <utility> #include <cm/optional> #include <cm/string_view> #include <cmext/algorithm> ...
/* * @Author: gpinchon * @Date: 2020-08-17 14:43:37 * @Last Modified by: gpinchon * @Last Modified time: 2021-06-10 22:09:47 */ /* * @Author: gpinchon * @Date: 2019-02-22 16:13:28 * @Last Modified by: gpinchon * @Last Modified time: 2020-06-09 17:11:29 */ #include <Assets/Asset.hpp> #include <Ass...
#include <cstddef> #include <cstdlib> #include <cstring> #include "txtwind.h" using namespace ZZT; static const char draw_patterns[4][5] = { {'\xC6', '\xD1', '\xCD', '\xD1', '\xB5'}, // top {'\xC6', '\xCF', '\xCD', '\xCF', '\xB5'}, // bottom {' ', '\xB3', ' ', '\xB3', ' '}, // inner {' ', '\xC6', '\xCD', '\xB5', ...
/* 对图在1ec2p以及最大边长度限制下做dp,返回选取的边集 调用方式 include 文件之后 graphhs_oepcross::parse( max_arc_len, num_point, Score, m_vecTrainArcs ); 其中 int num_point; 为图中点的个数 tscore Score[MAX_SENTENCE_SIZE][MAX_SENTENCE_SIZE][2]; 为边的分数 vector<Arc> m_vecTrainArcs; 用于保存被选择的边 *...
#include "stdio.h" #include "Event/Digi/CalDigi.h" #include "CalUtil/CalDefs.h" #include "CalUtil/CalArray.h" #include "EbfCalData.h" using idents::CalXtalId; /** * * @fn unsigned int pack (int xtalId, * int rngPos, * int adcPos, * int rn...
/**************************************************\ Release 1 Completion List //Finish translation pics Boss shots harm player? Skate park! x Detect or message for "Ordinal 11"? //Fix small texture button problem?? //Spawn health sooner? Or invincibility timer? //Power link? //Fly into port //permanent sc...
#include "sqlitetests.h" SqliteTests::SqliteTests(QObject* parent) : QObject(parent) { } void SqliteTests::initTestCase() { verifyCreateTable(); foreignKey(); DQConnection defaultConnection = DQConnection::defaultConnection(); db = QSqlDatabase::addDatabase("QSQLITE"); db.setDatabaseName( "tests...
/* * The MIT License * * Copyright (c) 1997-2019 The University of Utah * * 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 * right...
#include <ros/ros.h> #include <image_transport/image_transport.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/image_encodings.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> #include <stdio.h> #include <fstream> #include <math.h> #include <time.h> #include...
#include <iomanip> #include <boost/filesystem/fstream.hpp> #include <boost/filesystem/operations.hpp> #include <boost/algorithm/string.hpp> #include "array.hpp" #include "ligand.hpp" using namespace boost; using namespace boost::filesystem; ligand::ligand(const path& p) : p(p), num_hb_donors(0), num_hb_accept...
/* PROJECT: Medo * AUTHORS: <NAME>, Melbourne Australia * COPYRIGHT: Zen Yes Pty Ltd, 2019-2021 * DESCRIPTION: Media Source */ #include <cassert> #if 0 extern "C" { #include <libavformat/avformat.h> #include <libavcodec/avcodec.h> } #endif #include <MediaKit.h> #include <StorageKit.h> #include <interface/Bit...
/*************************************************************************/ /* resource_importer_texture_atlas.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "glovehttpcommon.hpp" #include "utils.hpp" #define AddGloveHttpResponse(response, text, description) \ {response, {text, description} } const short GloveHttpResponseCode::CONTINUE = 100; const short GloveHttpResponseCode::SWITCH_PROTOCOLS = 101; const short GloveHttpResponseCode::PROCESSING = 102; // ...
#include "extract.h" #include <queue> #include <vector> #include <utility> #include <tr1/unordered_map> #include <set> #include <boost/tuple/tuple_comparison.hpp> #include <boost/functional/hash.hpp> #include <boost/tuple/tuple.hpp> #include "sentence_pair.h" #include "tdict.h" #include "wordid.h" #include "array2d....
// Tencent is pleased to support the open source community by making Mars available. // Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. // Licensed under the MIT License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the Licens...
/* Copyright (c) 2017 TOSHIBA Digital Solutions Corporation This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This...
#include <cstdio> #include <ctime> #include <cstring> // memset #include <cstdlib> // rand, RAND_MAX #include <cmath> // sqrtf #include <Core/Core.h> // open3d #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/shape_inference...
/** @file A brief file description @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you und...
/* * Copyright 2020 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkM44.h" #include "include/core/SkMatrix.h" #include "include/private/SkVx.h" #include "src/core/SkMatrixInvert.h" #include "src/core/SkMatrixPriv.h" #...
#include <string> #include <list> #include "filePartition/FilePartitioner.h" #include "filePartition/MPI_File_Partitioner.h" #include "filePartition/FileSplits.h" #include "parser/Parser.h" #include "parser/WKTParser.h" #include "filePartition/config.h" #include <geos/geom/Geometry.h> #include "spatialPartition/grid.h"...
/** * Copyright (C) 2019 Samsung Electronics Co., Ltd. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless requ...
#include <string> #include <autoware_msgs/TrafficLight.h> #include <std_msgs/String.h> #include <visualization_msgs/Marker.h> #include <visualization_msgs/MarkerArray.h> #include "Context.h" #include "region_tlr_mxnet.h" static bool show_superimpose_result = false; static const std::string window_name = "superimpos...
#include <vector> #include <iostream> #include <queue> #include <cassert> #include "Invariants.h" #include "Debug.h" using namespace std; namespace std { template <> struct hash<std::pair<int, int>> { inline size_t operator()(const std::pair<int, int> &v) const { std::hash<int> int_hasher; return ...
// Copyright 1996-2020 Cyberbotics Ltd. // // 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...
/* * Copyright (c) 2010 WiYun Inc. * Author: luma(<EMAIL>) * * For all entities this program is free software; you can redistribute * it and/or modify it under the terms of the 'WiEngine' license with * the additional provision that 'WiEngine' must be credited in a manner * that can be be observed by end ...
/********** tell emacs we use -*- c++ -*- style comments ******************* $Revision: 1.1 $ $Author: trey $ $Date: 2007/07/08 20:59:30 $ @file zmdp.cc @brief No brief Copyright (c) 2002-2007, <NAME>. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use ...
/* * \author <NAME> CEA/Saclay */ #include <iostream> #include <iomanip> #include "CalibCalorimetry/EcalLaserSorting/interface/LmfSource.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Messag...
/****************************************************************************** ** Copyright (C) 1995 CEA ******************************************************************************* ** ** UNIT ** ** Version: 1.0 ** ** Author: <NAME> ** ** Date: 16/03/2000 ** ** File: col_comp...
// Copyright (c) 2019, NVIDIA CORPORATION. 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 ...
#include <ATen/ATen.h> #include <ATen/Parallel.h> #include <ATen/core/op_registration/op_registration.h> #include <ATen/native/quantized/cpu/fbgemm_utils.h> #include <ATen/native/quantized/cpu/packed_params.h> #include <ATen/native/quantized/cpu/qnnpack_utils.h> #include <caffe2/utils/threadpool/pthreadpool-cpp.h> #inc...
//===- llvm/lib/Target/ARM/ARMCallLowering.cpp - Call lowering ------------===// // // 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) 2018, Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the foll...
// game.cpp : Defines the exported functions for the DLL application. //#define _DEBUG_WAYPOINTS_ //#define _ENABLE_MIN_DELTA_TIME_ // window #define SCREEN_WIDTH 226 #define SCREEN_HEIGHT 248 // layers #define BACKGROUND_LAYER 0 #define DOT_LAYER 1 #define PACMAN_LAYER 2 #define GHOSTS_LAYER 3 #define DEBUG_LAYER 9...
// handles all the snowball stuff, including the weapon and the snow itself. #include "extdll.h" #include "enginecallback.h" #include "util.h" #include "cbase.h" #include "entity_state.h" #include "soundent.h" #include "externmsg.h" #include "studio.h" #include "bot.h" #include "avdll.h" #include "sadll.h" #include "...
#include <CCameraController.h> #include <CRearView.h> #include <irrCC.h> CCameraController::CCameraController(irr::IrrlichtDevice *pDevice, irrklang::ISoundEngine *pSndEngine, CIrrCC *pCtrl, irr::ode::CIrrOdeManager *pOdeMngr, irr::f32 fVrAr) { m_pDevice = pDevice; m_pSndEngine = pSndEngine; m_pOdeM...
/* ConditionalReader (c) 2004 by <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. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;...
// Copyright (c) 2014-2019 The Dash Core Developers, The BiblePay Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "smartcontract-client.h" #include "smartcontract-server.h" #include "util.h" #include "utilmon...
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; // 998244353; // 998244853; template <typename T> struct modular { constexpr modular() : val(0){} constexpr modular(const modular<T>& _m) : val(_m.val) {} template <typename U> constexpr modular(const U& _r = U()) { val = -...
/** * @file AutoPasInterfaceTest.cpp * @author seckler * @date 13.05.19 */ #include "AutoPasInterfaceTest.h" #include "testingHelpers/commonTypedefs.h" constexpr double cutoff = 1.; constexpr double skin = 0.2; constexpr std::array<double, 3> boxMin{0., 0., 0.}; constexpr std::array<double, 3> boxMax{10., 10., 10...
/* -------------------------------------------------------------------------- * * File DemoMagnetsElectric.cpp * Ported By <NAME> * Contact <EMAIL> * * -------------------------------------------------------------------------- * * Copyright (c) 2010-2013 XMSoft. ...
/************************************************************************ * RobWorkStudio Version 0.1 * Copyright (C) Robotics Group, Maersk Institute, University of Southern * Denmark. * * This Software is developed using the Qt Open Source Edition, and is * therefore only available under the GNU General Public ...
#define WIN32_LEAN_AND_MEAN #define WIN32_EXTRA_LEAN #include <windows.h> #include <math.h> #include <GL/gl.h> #include <GL/glu.h> #include <assert.h> #include "glext.h" #include "ParticleSystem.h" #include "Mathhelpers.h" // TODO: CheckIndex should only be called if this is // a debug build??? #d...
#include "utils.h" using namespace cv::cuda; const char *INPUT_BLOB_NAME = "Input"; static Logger gLogger; // TODO: refactor once done static bool globalRunInInt8 = false; #define RETURN_AND_LOG(ret, severity, message) \ do ...
//Program to encrypt and decrypt a wide variety of classical ciphers //By <NAME> #include<iostream> #include <fstream> #include<sstream> #include<string> #include<vector> #include <algorithm> using namespace std; constexpr int num_of_letters = 26; //number of uppercase letters. constexpr int rep_of_A= 65; //The inte...
/* * Copyright (c) 2020 Flight Dynamics and Control Lab * * 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, mo...
#include <iostream> /* ESTRUTURAS DA ÁRVORE Os elementos a seguir compreendem a modelagem dos dados da estrutura de uma Árvore Rubro-Negra. **/ // ENUMERAÇÃO: Cor de um nó // Enumeração responsável por representar a coloração. // Possui semântica de número inteiro em runtime. enum COR { VERMELHO, PRETO }...
#include "tesselation.h" // make normals for each face - duplicates all vertex data void facet_normals(Mesh* mesh) { // allocates new arrays auto pos = vector<vec3f>(); auto norm = vector<vec3f>(); auto texcoord = vector<vec2f>(); auto triangle = vector<vec3i>(); auto quad = vector<vec4i>(); ...
/* Copyright 2012 University of Washington 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 o...
/* * Copyright 2017-2021 <NAME>, Foundation for Research and Technology Hellas (FORTH) * License: BSD * * 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 abov...
/** * * Lame ACM wrapper, encode/decode MP3 based RIFF/AVI files in MS Windows * * Copyright (c) 2002 <NAME> <steve.lhomme at free.fr> * * 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 Found...
/**************************************************************************/ /* */ /* WWIV Version 5.x */ /* Copyright (C)1998-2019, WWIV Software Services */ /* ...
/* main.cpp - Copyright 2019/2021 Utrecht University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
/* * DmsTest.cpp * * Created on: Oct 12, 2015 * Author: ivp */ #include "DmsTest.h" #include <unistd.h> #include <stdlib.h> #include <iostream> #include <sstream> DmsTest::DmsTest() { } DmsTest::~DmsTest() { } // This is old DMS test code used by Hassan. // void DmsTest::Test(Sig...