text
stringlengths
5.71k
33.7k
#include <chrono> #include <exception> #include <iostream> #include <string> #include <tuple> #include <vector> #include <boost/algorithm/string.hpp> #include <boost/container_hash/hash.hpp> #include <boost/lexical_cast.hpp> #include <boost/numeric/ublas/matrix.hpp> #include "nlohmann/json.hpp" #include "psvt/statisti...
extern "C" { #include "can.h" } //#define PART_TM4C1294NCPDT #include <tm4c1294ncpdt.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include <driverlib/sysctl.h> #include <driverlib/gpio.h> #include <driverlib/pin_map.h> #include <driverlib/pwm.h> #include <driverlib/fpu.h> #include <...
/* * cobra_cli.cpp * Author: <NAME> * Copyright (c) 2019-2021 Machine Zone, Inc. All rights reserved. */ // // Main driver for cobra utilities // #include <CLI/CLI.hpp> #include <spdlog/sinks/basic_file_sink.h> #include <spdlog/spdlog.h> #include <ixbots/IXCobraToCobraBot.h> #include <ixbots/IXCobraToPythonBo...
/****************************************************************************** Filename: main.cpp Author: <NAME> (http://davidcdrake.com) Description: Main file for "HeroQuest 3D," a simple 3D action-adventure game based on the board game "HeroQuest" by <NAME> and Games Workshop. **...
#include "obstacle_detector_pca/obstacle_detector_pca.h" ObstacleDetectorPCA::ObstacleDetectorPCA(void) :local_nh("~") { downsampled_cloud_pub = local_nh.advertise<sensor_msgs::PointCloud2>("downsampled_cloud", 1); clustered_cloud_pub = local_nh.advertise<sensor_msgs::PointCloud2>("clustered_cloud", 1); bb...
#include <iostream> #include <execution> #include <algorithm> #include <functional> #include "unsuck.hpp" using namespace std; template<class T> struct SortPair{ uint32_t index = 0; T value = 0; }; struct Point { double x = 0.0; double y = 0.0; double z = 0.0; double value = 0.0; uint...
/* * Copyright (c) 2021, University of Washington * 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 li...
/* Software License Agreement (BSD License) Copyright (c) 2016--, <NAME> (<EMAIL>) 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 no...
/** * Non-metric Space Library * * Main developers: <NAME>, <NAME>, <NAME>, <NAME>, <NAME> * * For the complete list of contributors and further details see: * https://github.com/searchivarius/NonMetricSpaceLib * * Copyright (c) 2013-2018 * * This code is released under the * Apache License Version 2.0 http:...
/** * @file * This file is part of SeisSol. * * @author <NAME> (c.uphoff AT tum.de, http://www5.in.tum.de/wiki/index.php/Carsten_Uphoff,_M.Sc.) * * @section LICENSE * Copyright (c) 2015, SeisSol Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modificatio...
// Copyright (c) 2012-2016, 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 con...
#include "Book.h" #include "Menu.h" #include "Render.h" #include "FileUtils.h" #include <stdio.h> #include <time.h> #include <string.h> extern int screenWidth; extern int screenHeight; extern double screenPosX; extern double screenPosY; extern int mousePosX, mousePosY; extern int mouseMode; extern bool typeMode; exte...
// auto_rank_updater.cpp : This file contains the 'main' function. Program execution begins and ends there. // #define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING #include "stdafx.h" #include "monitor.h" #include "curl/curl.h" #include "nlohmann/json.hpp" #include "XPowerControl.h" #include "XPowerControlDlg.h" #...
#include <bgame/impl.h> /* ======================================================================= SESSION DATA Session data is the only data that stays persistant across level loads and tournament restarts. ======================================================================= */ /* ================ G_WriteClie...
#include "../interface/HistogramDrawer.h" #include "algorithm" #include <math.h> #include "THStack.h" #include "TGraphErrors.h" #include "TLine.h" #define FILLSTYLE 3254 HistogramDrawer::HistogramDrawer(double x, double y): CanvasDrawer(x,y) { // done } HistogramDrawer::~HistogramDrawer() { if (fileIsOwned...
/* * Copyright (c) 2020, Robobrain. * 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 co...
#include "Application.h" #include "mmgr/mmgr.h" #include "rjson.h" #include "gpudetect/DeviceId.h" Application::Application() { window = new ModuleWindow(this); audio = new ModuleAudio(this); input = new ModuleInput(this); importer = new ModuleImporter(this); scene = new ModuleScene(this); gui = new ModuleGUI(t...
#include <chrono> #include <geometry_msgs/PointStamped.h> #include <object_cloud/PointCloudUtils.h> #include <object_cloud/SACModelEdge.h> #include <pcl/common/centroid.h> #include <pcl/common/transforms.h> #include <pcl/features/moment_of_inertia_estimation.h> #include <pcl/filters/extract_indices.h> #include <pcl/fil...
#include "rnn.hpp" RNN::RNN(int word_dim, int hidden_dim, double bptt_truncate) { word_dim_ = word_dim; hidden_dim_ = hidden_dim; bptt_truncate_ = bptt_truncate; epoch_ = 0; lr_ = 0.005; // == initialize model parameters == random_device rd; mt19937 gen(rd()); uniform_real_distribution<double> dis...
/* Copyright 2018 <NAME> (<EMAIL>) * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. *...
/*************************************************************************** * Copyright (c) 2020, <NAME>, <NAME>, <NAME>, and * * <NAME> * * Copyright (c) 2020, QuantStack * * ...
/*++ Copyright (c) 2001 Microsoft Corporation Module Name: log.cpp Abstract: This file implements the BITS server extensions logging --*/ #include "precomp.h" #include "sddl.h" #define ARRAYSIZE(x) (sizeof((x))/sizeof((x)[0])) const DWORD g_LogLineSize = 160; typedef char LOG_LIN...
// Software License Agreement (BSD License) // Copyright (c) 2008, <NAME> // 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...
/* Copyright 2011-2013 <NAME>, <NAME>, <NAME>, <NAME>, <NAME> Istituto Nazionale di Geofisica e Vulcanologia Sezione di Catania, Catania, Italy Università di Catania, Catania, Italy Johns Hopkins University, Baltimore, MD This file is part of GPUSPH. GPUSPH is free software: you can re...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2016-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance...
// 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 under the Apache License, Version 2.0 (the // "License"); you may...
#include "TestsWithGL_pcp.h" #include <cmath> #include "ItemArray.hpp" #include "test_sim_core.h" #include "TriangleMesh.h" #include "TriangleMeshToParticles.h" #include "Model_T2D_CHM_s.h" #include "Step_T2D_CHM_s_SE_Geostatic.h" #include "ResultFile_PlainBin.h" #include "ResultFile_XML.h" #include "ResultFile_hdf...
// Copyright (c) 2012 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 <stddef.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <map> #include <vector> #include "ppapi/c/dev/ppb_video_cap...
/* Original code has been submitted by <NAME>. ---------------------------------------------------------------------------------- * Spill-Tree for Approximate KNN Search * Author: <NAME> * mailto: <EMAIL> * Refer to Paper: * An Investigation of Practical Approximate Nearest Neighbor Algorithms * cv...
#include "wled.h" /* * Used to draw clock overlays over the strip */ void initCronixie() { if (overlayCurrent == 3 && dP[0] == 255) //if dP[0] is 255, cronixie is not yet init'ed { setCronixie(); strip.getSegment(0).grouping = 10; //10 LEDs per digit } else if (dP[0] < 255 && overlayCurrent != 3) {...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2005, 2006 <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 "fusion_ukf.h" #include "Eigen/Dense" #include <iostream> #include <limits> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter */ FusionUKF::FusionUKF() { skip_radar_ = false; skip_laser_ = false; is_initialized_ = false; ...
//: // \file // \brief arbitrary precision calculator // Accepts a C-style numeric expression that is to be parsed (preferably within // quotes to escape spaces, brackets and other special symbols from the shell); // it may contain the following: // optional spaces (are ignored) // integer and floating point numbers,...
/** * Copyright (c) 2017-present, Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
//---------------------------------------------------------------------------- // // License: See top level LICENSE.txt file. // // Author: <NAME> // // Description: Base class for tuple-based ossimSensorModel metric operations. // //---------------------------------------------------------------------------- // $Id:...
/* */ #include <memory> #include <cstring> #include <vector> #include "makestring.h" #include "crceeprom.h" #include <ESP8266WiFi.h> // https://github.com/esp8266/Arduino #include <ESP8266mDNS.h> #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager #include "LittleFS.h" #include <propertyutils.h> #incl...
/************************************************************************ Copyright 2021, eBay, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 ...
#include "matrixMulCUBLAS.h" unsigned long int p, q, n, e, d; /* FIXME */ typedef struct _matrixSize // Optional Command-line multiplier for matrix sizes { unsigned int uiWA, uiHA, uiWB, uiHB, uiWC, uiHC; } sMatrixSize; int nIter=1,encrypt=1,verify=1; void matrixMulCPU(float *C, const float *A, const float...
#include <nds.h> #include <fat.h> #include <stdio.h> #include <maxmod9.h> #include "common/lzss.h" #include "common/tonccpy.h" #include "common/dsimenusettings.h" #include "common/systemdetails.h" #include "soundbank.h" #include "graphics/lodepng.h" //#include "soundbank_bin.h" extern u16 bmpImageBuffer[256*192]; ex...
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to b...
// // "$Id: Fl_Gl_Window.cxx 8657 2011-05-12 11:50:43Z manolo $" // // OpenGL window code for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2010 by <NAME> and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public // License as p...
/* * main.cpp * Main file used to invoke given algorithms * * Created on: 28-Oct-2015 * Author: chandrahas */ #include <iostream> #include <fstream> #include "Eigen/Dense" #include "QuadraticForm.h" #include "SteepestGradientDescent.h" #include "DataLoader.h" #include "SquaredLoss.h" #include "LogisticLoss...
extern "C"{ #include "keyboard.h" } #include "C64KeyMap.h" #include "SYS_KeyCodes.h" #include "CByteBuffer.h" #include "CSlrString.h" #include "C64SettingsStorage.h" #include "CDebugInterfaceVice.h" #define C64D_KEYMAP_MAGIC 0xEA #define C64D_KEYMAP_FILE_VERSION 0x01 C64KeyMap::C64KeyMap() { } void C64KeyMap::...
#include "BldDetector.hh" #include <chrono> #include <iostream> #include <memory> #include <arpa/inet.h> #include <sys/ioctl.h> #include <net/if.h> #include "DataDriver.h" #include "TimingHeader.hh" #include "xtcdata/xtc/DescData.hh" #include "xtcdata/xtc/ShapesData.hh" #include "xtcdata/xtc/NamesLookup.hh" #include "...
#pragma once /** @file ParticleMatcher.hpp * @brief Define a class for matching particles across different snapshots. * * @author <NAME> (<EMAIL>) */ #include <iostream> #include <vector> #include <string> #include <sstream> #include <iomanip> // setfill, setw, setprecision #include <cmath> // pow #include <cas...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * -----------...
// AUTHOR: <NAME> (https://github.com/seanmarks) #include "Statistics.h" // Constructor/destructor Statistics::Statistics(const int seed) { // Generate series of unsigned ints for RNG (below) std::seed_seq seedSequence = { seed }; // Random number generator: Mersenne Twister rng_ptr_ = Statistics::MersenneTwister...
#include <StdInc.h> #include <jitasm.h> #include <Hooking.h> #include <sysAllocator.h> #include <CrossBuildRuntime.h> #include <LaunchMode.h> static int ReturnTrue() { return 1; } #include <Streaming.h> #include <VFSManager.h> #include <atPool.h> #include <MinHook.h> #include <Error.h> extern hook::cdecl_stub<...
#include "solvers/csdsolvertrafofp2d.hpp" #include "common/config.hpp" #include "common/io.hpp" #include "fluxes/numericalflux.hpp" #include "kernels/scatteringkernelbase.hpp" #include "problems/icru.hpp" #include "problems/problembase.hpp" #include "quadratures/qproduct.hpp" #include "quadratures/quadraturebase.hpp" #...
/******************************************************************************************************* * Copyright 2017 - pvyield GmbH / <NAME> * Copyright 2017 Alliance for Sustainable Energy, LLC * * NOTICE: This software was developed at least in part by Alliance for Sustainable Energy, LLC * (“Alliance”) unde...
/* $Id: CoinPresolveEmpty.cpp 1448 2011-06-19 15:34:41Z stefan $ */ // Copyright (C) 2002, International Business Machines // Corporation and others. All Rights Reserved. // This code is licensed under the terms of the Eclipse Public License (EPL). #include <stdio.h> #include <math.h> #include "CoinFinite.hpp" #incl...
/* Copyright 2017 - BSD-3-Clause * * Copyright Holder (alphabetical): * * Beikirch, Maximilian * Cramer, Simon * Frank, Martin * Otte, Philipp * Pabich, Emma * Trimborn, Torsten * * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * followin...
/* Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
/* ** Copyright 2014-2017 Centreon ** ** 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 t...
#include "global.h" #include "volumebase.h" #include "staticfunctions.h" #include "volumefilemanager.h" #include "mainwindowui.h" #include "xmlheaderfunctions.h" #include "volumeinformation.h" int VolumeBase::pvlVoxelType() { return m_pvlVoxelType; } Vec VolumeBase::getFullVolumeSize() { return m_fullVolumeSize; } Vec...
/* Copyright 2021 Stanford 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 agree...
/* * Copyright (C) 2011-2017 Redis Labs Ltd. * * This file is part of memtier_benchmark. * * memtier_benchmark 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, version 2. * * memtier_benchmark is distr...
#include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <cmath> #include "Shader.h" #include "stb_image.h" #include "stb_image_write.h" #include "Camera.h" #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <assimp/Importer.hpp> #include <assimp...
// HFE format for HxC floppy emulator: // http://hxc2001.com/download/floppy_drive_emulator/SDCard_HxC_Floppy_Emulator_HFE_file_format.pdf #include "SAMdisk.h" // Note: currently only format revision 00 is supported. #define HFE_SIGNATURE "HXCPICFE" typedef struct { char header_signature[8]; uint8_t format_revis...
/*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...
// Copyright 2014 The Souper Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
#include <cmath> // math functions #include <cstdio> // standard I/O functions #include <cstring> // string manipulation functions #include <conio.h> #include <iostream> // console stream I/O #include <fstream> // file stream I/O #include <strstream> // string stream I/0 #include <iomanip> // I/O man...
#include "GLUT/glut.h" #include <math.h> #include <iostream> #include "TextureBuilder.h" using namespace std; int meteor1_radius = 20; int meteor2_radius = 26; int meteor3_radius = 10; bool meteor1 = true; bool meteor1_up= true; int up_count = 0; bool meteor2 = true; bool meteor3 = true; int meteor3_rotate = 0; bool ...
#include "ContactSolver.h" using namespace Physics; using namespace EntityComponents; namespace { //Constructs an arbitary orthonormal basis for the contact inline void CalculateContactBasis(Contacts* c) { glm::vec3 contactTangent[2]; glm::vec3 contactNormal = c->contactNormal; i...
/* * Copyright 2017 AVSystem <<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/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
/* This code tests the implementation of higher-order elements with the matrix-free matrix matrix-vector product implementation. */ #include "TACSHeatConduction.h" #include "TACSLinearElasticity.h" #include "TACSThermoelasticity.h" #include "TACSLagrangeInterpolation.h" #include "TACSQuadBasis.h" #include "TACSHex...
#include "supercharge.hpp" bool supercharge::isUsbThreadRunning(){ DWORD result = WaitForSingleObject( hThread, 0); if (result == WAIT_OBJECT_0) { return false; } else { return true; } } void supercharge::reconnect() { closesocket(sockfd); WSACleanup(); Sleep(INTERVAL); C2Connect(); } void supercharge::s...
#include "rcpp_mmutil_network.hh" //' Clustering columns of the network mtx file (feature incidence matrix) //' //' @param mtx_file data file (feature x edge) //' @param row_file row file (feature x 1) //' @param col_file col file (sample x 1) //' @param output a file header for result/temporary files //' @param nnz_c...
//===- HandshakeToHW.cpp - Translate Handshake into HW ------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception //===-------------------------------------...
#include "simplecc/LLVM/LLVMIRCompiler.h" #include "simplecc/Analysis/TypeEvaluator.h" #include <llvm/IR/Verifier.h> #include <simplecc/LLVM/LLVMIRCompiler.h> #include <array> using llvm::BasicBlock; using llvm::GlobalVariable; using llvm::Instruction; using llvm::StringRef; using namespace simplecc; LLVMIRCompiler:...
#include "Transpiler.h" #include "FetlangManager.h" #include "Fraction.h" #include "FractionParser.h" #include "QuoteUtil.h" using namespace SyntaxTree; static const std::string lho_temp_chain = "lho_temp_chain"; static const std::string rho_temp_chain = "rho_temp_chain"; // Replace text within a string static void ...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkCpu.h" #include "SkOpts.h" #include "SkRasterPipeline.h" #include "SkStream.h" #if defined(_MSC_VER) #include <windows.h> #else #include <sys/mman.h> #endi...
//===-- DataDumpExtractorTest.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 // //===---------------------------...
/* * proovib arvata nimisona ja verbi * varem on leitud l�pud * algoritm: kontrollib, kas m�ni lopp v�ib olla eesti k s�na l�pp */ #include "mrf-mrf.h" #include "post-fsc.h" int MORF0::arvans2(MRFTULEMUSED *tulemus, FSXSTRING *sonna, int S6naPikkus, VARIANTIDE_AHEL **variandid, const FSxCHAR *lubatavad_sl) ...
#include <FK/FK.h> #include <memory> using namespace FK; using namespace FK::Material; using namespace std; class Ball { public: static constexpr double DOWN_ACCEL = 0.050; // 降下時の加速度 static constexpr double RISE_ACCEL = 0.053; // 上昇時の減速度 static constexpr int DOWN_MODE = 0; // 降下モード static constexpr int RISE_...
/* * BlockManipulatorControl.cpp * * Created on: 7 Nov 2016 * Author: bdai <<EMAIL>> */ #include <drivers/drv_hrt.h> #include <systemlib/mavlink_log.h> #include <fcntl.h> #include <matrix/math.hpp> #include "BlockManipulatorControl.hpp" static float GRAPPER_ANGLE_RANGE[2] = {-5.0f / 180.0f * (float)M_PI, ...
#include "NeuralSolverMPC.h" #include "../convexMPC/common_types.h" #include "NeuralMPC_interface.h" #include "NeuralRobotState.h" #include <eigen3/Eigen/Dense> #include <cmath> #include <eigen3/unsupported/Eigen/MatrixFunctions> #include <qpOASES.hpp> #include <stdio.h> #include <sys/time.h> #define n_BIG_NUMBER 5e10...
// // main.cpp // color // // Created by william on 2020/4/12. // Copyright © 2020 william. All rights reserved. // #include "fileSystem.hpp" #include "shader.hpp" #include "camera.hpp" #include "base.h" #define CUBE_POSITION_LOCATION 0 #define CUBE_TEXCOORD_LOCATION 1 #define CUBE_NORMAL_LOCATION 2 #define LI...
/* * seqgen.cpp * * Created on: Jun 23, 2015 * Author: joe */ #include <iostream> #include <string> #include <vector> #include <nlopt.hpp> #include <armadillo> #include <random> #include <numeric> using namespace std; //using namespace arma; using arma::randn; using arma::mat; using arma::expmat; #include...
// Added these from Johnoel's code for the RNG below. Hopefully play nice // with everything else #include <iostream> #include <vector> #include <cstdlib> #include <cmath> #include <fstream> #include <sstream> #include <stack> #include <queue> #ifndef __OPENCC__ #include <random> #endif //#include "nuts_da.h" using ...
/* * Copyright (C) 2010 Google Inc. 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 conditio...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #include <cmath> #include <map> #include <tool/shader.h> #include <tool/camera.h> #include <geometry/BoxGeometry.h> #include <geometry/PlaneGeometry.h> #include <geometry/SphereGeometry.h> #define STB_IMAGE_IMPLEMENTATION #include <tool/stb_image.h> ...
// -*- ++ -*- // // Package: FWCore/Framework // Function: throwIfImproperDependencies // // Implementation: // [Notes on implementation] // // Original Author: root // Created: Tue, 06 Sep 2016 16:04:28 GMT // // system include files // user include files #include "FWCore/Framework/src/throwIfIm...
#include "stdafx.h" /* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software; you can redistribute it and/or * modify it...
/* * Copyright 2009 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
#include "../include/ragelGenerator.h" #define LOCAL_DEBUG 0 void RagelGenerator::prepareAlphabetArr(int alphabetLength) { alphabetArr.clear(); alphabetVisitied.clear(); overallPattern.clear(); if (alphabetLength <= MAX_EVENT_REPRESENTATION) { for (int i = 0; i < alphabetLength; i++) { ...
#include "linear_algebra.h" #include <cassert> const Matrix3x4 Matrix3x4::identity = [] { Matrix3x4 m{}; m.a[0][0] = m.a[1][1] = m.a[2][2] = 1.f; return m; }(); const Matrix4x4 Matrix4x4::identity = [] { Matrix4x4 m{}; m.a[0][0] = m.a[1][1] = m.a[2][2] = m.a[3][3] = 1.f; return m; }(); void M...
// cmd_compress_bf.cc-- copy bloom filters using a different compression format #include <string> #include <cstdlib> #include <cstdint> #include <iostream> #include <vector> #include "utilities.h" #include "bloom_filter.h" #include "file_manager.h" #include "support.h" #include "commands.h" #include "cmd_compress_bf...
#include "mesh.h" Mesh::Mesh() : m_status(0) {} const Vertex& Mesh::GetVertex(size_t idx) const { return m_vertices[idx]; } s32 Mesh::GetIndex(size_t i) const { return m_indices[i]; } size_t Mesh::GetVertexCount() const { return m_vertices.GetSize(); } size_t Mesh::GetFaceCount() const { r...
/* Copyright 2020 HPS/SAFARI Research Groups * * 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,...
/**************************************************************************** * real mode i286 emulator v1.4 by <NAME> * * (initial work based on <NAME>'s pcemu) * ****************************************************************************/ struct i86_timing { int id; UINT8 exception, ire...
// ------------------------------------------ // File absurdum.cc // ------------------------------------------ #include <string> #include "a.h" #include "abc.h" #include "abscissa.h" #include "ack.h" #include "absurdum.h" // ------------------------------------------ std::string amortering(int minst, std::string*...
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) Microsoft Corporation. All rights reserved. ///////////////////////////////////////////////////////...
#pragma once #include <MatrixT.hpp> //MatrixT types #include <math.h> #include <cstring> #include <cstdint> #include <vector> #include <algorithm> #define DEFAULT_GP 5 namespace rcdefs { enum COM_METHOD { MEAN_ABS, NORMAL, GRAD_MAG }; // Apply 3x3 average to image // Edges are corrected so they are 2x3 (corners...
int B9sBv , O ,eqMwTO ,// /*EiGka*/Xw, ct,dqfF , //C0J y8, LC, rfWo5uN , i4He2 // , //jRE6au my ,ySuIo , MflCD , Tl , Rl3y ,AR,/*ZBO*/ZB7 ,//3KC7 xG , PFwz, T8P ,rak , Ue , pQSbB ,H9 ,P7U, dCIi , XHxp, a2vs , obfkv ,YAee,tN3 , K0q , BplX , J4Mf,xN/*giKOl*/ ; void f_f0 () {//pUBl int Ikx...
/** * * \class StEEmcIUMixMaker * \brief A class for mixing pi0 candidates * * This class takes as input points found using StEEmcIUPointMaker or * a derivative class. We then loop over all possible pairs of * points to find pi0 (eta) --> gamma gamma candidates. * * Points from * each event are stored in ...
/* Copyright (c) 2014, <NAME>, All rights reserved. Copyright (c) 2016, The Cinder Project, All rights reserved. This code is intended for use with the Cinder C++ library: http://libcinder.org Redistribution and use in source and binary forms, with or without modification, are permitted provided that the followi...
/*MIT License Copyright (c) 2021 CasualYouTuber31 <<EMAIL>> 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, merg...
/* --------------------------------------------------------------------------- Table access class Generated on silgy.org on 2020-05-30 10:37:38, generator v.1.0.0 Using C-style strings Using exceptions --------------------------------------------------------------------------- */ #include "Cvisits.h" boo...
/** * @file main.cpp * @ingroup tweak-api * * @brief test suite for implementation of simplified server side tweak2 public API. * * @copyright 2018-2021 Cogent Embedded Inc. ALL RIGHTS RESERVED. * * This file is a part of Cogent Tweak Tool feature. * * It is subject to the license terms in the LICENSE file fo...