text
stringlengths
3.08k
22k
/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
/** * relocopt: main.cpp * Copyright (c) Torr Vision Group, University of Oxford, 2017. All rights reserved. */ #include <fstream> #include <iostream> #include <limits> #include <stdexcept> #include <boost/assign/list_of.hpp> #include <boost/bind.hpp> #include <boost/chrono.hpp> #include <boost/program_options.hpp...
/* * Copyright (c) 2011. <NAME> <bytefish[at]gmx[dot]de>. * Released to public domain under terms of the BSD Simplified license. * * 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...
#include "ArUcoCalib.h" #include <direct.h> // to use "_mkdir" /////////////////////////////////////////////////////////////////////////////// // /////////////////////////////////////////////////////////////////////////////// void ArUcoCalib::InitMarker(const char* filePath, float size) { MarkerMapConfig.readFromFi...
// Copyright (c) 2010, <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: // // Redistributions of source code must retain the above copyright notice, this // list of conditions and ...
#include "mainwindow.h" #include "ui_mainwindow.h" #include "generateur.h" #include <QMessageBox> #include <iostream> #include <vector> #include <string> #include <sstream> #include <fstream> #include <QFileDialog> #include <iostream> using namespace std; MainWindow::MainWindow(QWidget *parent) :QMainWindow(parent),...
// The MIT License( MIT ) // // 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,...
// Copyright 2020 Google LLC // // 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 w...
#include "projectile.h" Projectile::Projectile( int x, int y, int z, double ax, double ay, double az ) : center( x, y, z ), angles( ax, ay, az ), velX( 0 ), velY( 0 ), angX(0), waitTime(180) { sides.reserve(4); } Projectile::~Projectile() { } void Projectile::X( int x ) { center.X(x); } void Projectile::...
/* * ObjRecICP.cpp * * Created on: Mar 23, 2011 * Author: papazov */ #include "ObjRecICP.h" ObjRecICP::ObjRecICP() { mPointLocator = NULL; mEpsilon = 0.00001; } ObjRecICP::~ObjRecICP() { if ( mPointLocator ) mPointLocator->Delete(); } //=================================================================...
#include "RecoEgamma/EgammaPhotonAlgos/interface/EnergyUncertaintyPhotonSpecific.h" #include <iostream> EnergyUncertaintyPhotonSpecific::EnergyUncertaintyPhotonSpecific(const edm::ParameterSet& config) {} EnergyUncertaintyPhotonSpecific::~EnergyUncertaintyPhotonSpecific() {} void EnergyUncertaintyPhotonSpecific::in...
#include "Audio.hpp" #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #else #include <errno.h> #include <time.h> #include <stdint.h> inline void Sleep(uint32_t ms) { struct timespec ts, rem; ts.tv_sec = ms / 1000; ts.tv_nsec = (ms % 1000) * 1000000; while (nanosleep(&ts, &rem) == -1 && errno == EINT...
#include <array> #include <cstdlib> #include <iostream> #include <cmath> #include <vector> #include <string> #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-volatile" #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #pragma clang diagnostic pop #include "Graphics/Graphics.h"...
/********************************************************************************* * MIT License * * 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...
// Copyright 2018 The MathWorks, Inc. /* * File : slfcn_gw.c * Abstract: */ #include <zmq.hpp> #include <iostream> #include <vector> #include <string> #include <memory> #define S_FUNCTION_NAME sfcn_receive #define S_FUNCTION_LEVEL 2 #include "simstruc.h" #include "statcal_util.hpp" /*================* * Build...
/** The MIT License (MIT) Copyright (c) 2019 by <NAME>, ThingPulse 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, m...
#include "Core.hpp" void DrawLetter( GraphicsEngine &, int, int, int, char ); void A( GraphicsEngine &, int, int, int ); void B( GraphicsEngine &, int, int, int ); void C( GraphicsEngine &, int, int, int ); void D( GraphicsEngine &, int, int, int ); void E( GraphicsEngine &, int, int, int ); void F( GraphicsEngine &, ...
#include "sffreader.h" /* L I C E N S E *************************************************************/ /* Copyright (C) 2009, 2010 <NAME> <<EMAIL>> and Washington University in St. Louis This program is free software; you can redistribute it and/or modify it under the terms o...
#include <iostream> #include <sstream> #include <fstream> #include <cstddef> #include <newNTL/LLL.h> #include "ReductionQualityChecker.h" #include "JacobiMethod.h" #include "MatrixFactory.h" #include "macros.h" #include <chrono> using namespace std; using namespace newNTL; using namespace std::chrono; #include "vec_do...
#include "cooling.h" #include "PhysConsts.h" double atomic_temp_tab[50] = { 4.04, 4.08, 4.12, 4.17, 4.21, 4.25, 4.3, 4.34, 4.38, 4.44, 4.48, 4.53, 4.58, 4.62, 4.67, 4.71, 4.77, 4.82, 4.88, 4.93, 4.98, 5.04, 5.09, 5.14, 5.2, 5.25, 5.3, 5.36, 5.41, 5.46, 5.51, 5.57, 5.62, 5.67, 5.73, 5.78, ...
/************************************************************************** 2. Una lista L se dice que está ordenada de forma ascendente por índices (orden indexado) si la secuencia {L(indices(0)),L(indices(1)),...L(indices(indices.size()-1))}. (siendo L(i) el elemento en la posición i-ésima), es una secuencia ...
/*========== my_main.c ========== This is the only file you need to modify in order to get a working mdl project (for now). my_main.c will serve as the interpreter for mdl. When an mdl script goes through a lexer and parser, the resulting operations will be in the array op[]. Your job is to go through ea...
#define BACKWARD_HAS_DW 1 #include "backward.hpp" namespace backward { backward::SignalHandling sh; } #include <camera_model/camera_models/CameraFactory.h> #include <code_utils/eigen_utils.h> #include <code_utils/math_utils/Polynomial.h> #include <code_utils/sys_utils/eigen_file_io.hpp> #include <cv_bridge/cv_bridge.h...
//-------------------------------------------------------------------------------- // 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 <sstream> #include "PLOG.hh" #include "NPY.hpp" #include "SensorLib.hh" const plog::Severity SensorLib::LEVEL = PLOG::EnvLevel("SensorLib", "DEBUG"); const char* SensorLib::SENSOR_DATA = "sensorData.npy" ; const char* SensorLib::SENSOR_ANGULAR_EFFICIENCY = "angularEfficiency.npy" ; SensorLib* SensorLib::L...
#include <limits> #include "./mist.hpp" using namespace GS_DDMRM::S_IceRay::S_geometry::S_volumetric; struct GC_mist::C_intersect { bool M_hit; }; namespace { typedef GS_DDMRM::S_IceRay::S_type::GT_scalar GTs_scalar; GTs_scalar GFs_randX() { static int Is_counter=0; ...
// Copyright <NAME> 2016. #include "ha/dsp_tool_box/modulation/adsr_envelope.h" #include "gtest/gtest.h" #include <fstream> using namespace ha::dtb; using namespace ha::dtb::modulation; using TimeValue = std::pair<real, real>; using TimeValues = std::vector<TimeValue>; using TestData = struct { real att; r...
/* Created by <NAME> on 2016/05/07. http://www.github.com/otgaard/zap */ #include "texture.hpp" #include "gl_api.hpp" /* TODO: Implement correct type handling for pixel formats */ using namespace zap::engine; using namespace zap::engine::gl; int pixel_size(zap::engine::pixel_format format, zap::engine::pixel_datatyp...
// license:BSD-3-Clause // copyright-holders:<NAME>, <NAME> /*************************************************************************** Atari Cloud 9 (prototype) hardware ***************************************************************************/ #include "emu.h" #include "includes/cloud9.h" #include "video/re...
/*- * SPDX-License-Identifier: Zlib * * Copyright (c) 2009-2019 <NAME> <<EMAIL>> * For conditions of distribution and use, see LICENSE file */ /* * I/O buffer cache. This is greatly influenced by NetBSD's implementation, * which in turn is inspired by the original UNIX implementation as specified * in "The Des...
/****************************************************************************//* * MIT License * 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 restrictio...
/* * @file * @author TPOC: <EMAIL> * * @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT) * 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 sou...
#ifndef __PROGTEST__ #include <cstdio> #include <cstdlib> #include <cstdint> #include <climits> #include <cfloat> #include <cmath> #include <iostream> #include <iomanip> #include <algorithm> #include <numeric> #include <vector> #include <set> #include <list> #include <map> #include <unordered_set> #include <unordered_...
//#define ENABLE_LOG_PRINTF #include <string.h> #include "evas_direct3d_object_font.h" #include "evas_direct3d_image_cache.h" #include "evas_direct3d_device.h" #include "evas_direct3d_shader_pack.h" #include "evas_direct3d_vertex_buffer_cache.h" D3DObjectFont::Cache D3DObjectFont::_cache; D3DObjectFont::D3DObjectFo...
/************************************************************************* > File Name: Viewport.cpp > Project Name: SnowSimulation > Author: <NAME> > Purpose: Viewport of snow simulation. > Created Time: 2018/01/05 > Copyright (c) 2018, <NAME> *************************************************************************/ ...
/*- * SPDX-License-Identifier: Zlib * * Copyright (c) 2009-2018 <NAME> <<EMAIL>> * For conditions of distribution and use, see LICENSE file */ /* * Threads have a current state which is contained in t_flags; possible * transitions are: * * +-->[suspended]->-+ * | | | * | v | *...
#include <csignal> #include <mapnik/config.hpp> #include <mapnik/datasource_cache.hpp> #include <folly/Memory.h> #include <folly/io/async/EventBaseManager.h> #include <proxygen/lib/http/HTTPMessage.h> #include <proxygen/httpserver/HTTPServer.h> #include "etcd_config.h" #include "httphandlerfactory.h" #include "json_...
// // rescue.cpp // resurrExion // // Copyright (C) 2020 <NAME> <<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 rig...
#include "StdAfx.h" #include "Parser.h" static Tokens m_tokens; Parser::Parser( const HDC hdc ) : mSaveDC( -1 ), mFont( nullptr ) { Init( hdc ); } Parser::~Parser() { assert( mFont == nullptr ); // forgot to call deinit? Clear(); } /** * \brief Delete all the tags/text that we have/ */ void Parser::Cl...
// // $Id$ // //*********************************************************************** // * // Copyright (C) 2006 * // University Corporation for Atmospheric Research * // ...
#include "NoiseGUI.hpp" #include <glad/glad.h> #include <imgui/imgui.h> #include <imgui/imgui_impl_glfw_gl3.h> #include <imgui/imgui_internal.h> #include "GLShader.hpp" #include "Estimator.hpp" #include "GLResources.hpp" #include <experimental/filesystem> using namespace ImGui; #include <opencv2/imgcodecs.hpp> using ...
#include <string> #include "KingServent.h" using namespace std; // Tile type string tileType[] = { "Floor", "Wall", "Door" }; // Int to direction convertion array string directions[] = { "None", "North", "East", "South", "West" }; // Strings used in the door message string doorMessa...
#include "lexer.hpp" #include "utils.hpp" #include "error.hpp" #include <sstream> #include <iostream> #include <stdexcept> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/mman.h> #include <string.h> #if __cpp_exceptions MakefileLexer::MakefileLexer(const std::string &fileName) : fileNa...
#include "CommandParser.h" /* Library C++ CommandParser - Parse Argc Argv. Copyright 2013 <NAME> (<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 l...
/* -*- mode:C++; c-basic-offset:4 -*- Shore-kits -- Benchmark implementations for Shore-MT Copyright (c) 2007-2009 Data Intensive Applications and Systems Labaratory (DIAS) Ecole Polytechnique Federale de Lausanne All Rights Reserved. Permi...
// Copyright (c) 2021 Xeni Robotics // // 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 ...
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; // 998244353 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 = -MOD <= _r && _r...
#include <SDL.h> #include <SDL_opengl.h> #include <unistd.h> #include <limits.h> #include <thread> #include <libgen.h> #include "imgui.h" #include "imgui_impl_sdl.h" #include "imgui_impl_opengl2.h" #include "main.h" #include "common.h" #include "config.h" #include "tree.h" #include "threads.h" int done = 0; SDL_Win...
/* * (c) 2009-2010 <NAME> <<EMAIL>> * * This file is part of flame. * * flame 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 3 of the License, or * (at your option) any later version. ...
#include <mex.h> #include <cmath> const double EPSILON = 1e-10; //============================================================================= // Quick and dirty math functions //============================================================================= void copyTo(int n, double* a, const double...
/*************************** SparkFunMAX31855k.cpp ***************************** * Copyright (c) 2015 SparkFun Electronics * * * * Permission is hereby granted, free of charge, to any person obtaining a ...
#include "ix/ix.h" #include "osi/include/util/fileOp.h" std::mutex ixMesh::mtx; // no constructors loading no mesh, or this must be put in a inline func /* * RESEARCH: - index buffers' main thing is the reusability of vertexes... if you can use indexes even with more mem, it's worth it a vertex in cache, w...
// -*-C++-*- /* (c) Copyright 2008, Hewlett-Packard Development Company, LP See the file named COPYING for license details */ #include <Lintel/HashMap.hpp> #include <Lintel/PThread.hpp> #include <DataSeries/Int64TimeField.hpp> using namespace std; using boost::format; struct RegisteredInfo { string field_n...
#include "OPTICKS_LOG.hh" #include "G4SystemOfUnits.hh" #include "G4OpRayleigh.hh" #include "G4Element.hh" #include "G4Material.hh" #include "G4MaterialPropertiesTable.hh" #include "G4OpticalPhoton.hh" #include "G4PhysicalConstants.hh" /** CWater ======== This is developed further in: X4MaterialWaterStandalone ...
#pragma once template<size_t DataSize, typename T, size_t A, size_t B> struct vec2Swizzle { typename T::value_type m_data[DataSize]; T operator=(const T& vec) { return T(m_data[A] = vec.x, m_data[B] = vec.y); } operator T() const { return T(m_data[A], m_data[B]); } }; templ...
/* 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-B license under * French law and abiding by the rules of distribution of free soft...
extern "C" { #include <android/native_window.h> #include <android/native_window_jni.h> #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libswscale/swscale.h" #include "libavutil/imgutils.h" }; #include <sys/time.h> #include <unistd.h> #include <pthread.h> static AVFormatContext *pFormatCtx;...
#include <iostream> #include <iomanip> #include <fstream> #include <sstream> #include <array> #include <vector> #include <set> #include <map> #include <random> #include <chrono> #include <functional> #include <algorithm> #include <cmath> #define NUM_FIELDS 16 #define NUM_SETS 10 namespace NaiveBayes { struct ...
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <filesystem> #include <iomanip> #include <vector> #include "../include/directory_looker.hpp" #include "../include/file_mangement.hpp" #include "../include/config_manager.hpp" using namespace std::chrono; using namespace std::filesyste...
#include "Zuma_Prefix.pch" #include <SexyAppFramework/WidgetManager.h> #include <SexyAppFramework/Font.h> #include <SexyAppFramework/Graphics.h> #include "Board.h" #include "CircleButton.h" #include "CircleCommon.h" #include "CircleDialog.h" #include "CircleShootApp.h" #include "HighScoreMgr.h" #include "StatsDialog....
/*************************************************************************** qgsdb2expressioncompiler.cpp - DB2 expression compiler -------------------------------------- Date : 2016-01-27 Copyright : (C) 2016 by <NAME> <NAME>, <NAME> Email : dadler at adtechgeospatial.com ...
#include <pendule_pi/pigpio.hpp> #include <pendule_pi/pendule.hpp> #include <pendule_pi/joystick.hpp> #include <digital_filters/filters.hpp> #include <iostream> #include <iomanip> #include <chrono> #include <thread> #include <cmath> #include "utils.hpp" enum class ControlMode { Manual, LQR, Swingup }; std::str...
#include "MongoPerf.h" #include <stdio.h> #include <stdint.h> #include <omp.h> using namespace std; using namespace mongo; KdRequest * queryRequest; REQUEST_TYPE requestType; inline static uint64_t createTime(int year, int month, int day, int hour, int min, int sec) { struct tm timeinfo; memset(&timeinfo, 0, sizeo...
#include <allegro_flare/allegro_flare.h> #include <math.h> #include <allegro_flare/box.h> using namespace allegro_flare; using namespace AllegroFlare; class UINullWidget : public UIWidget { public: UINullWidget(UIWidget *parent, float x, float y, float w, float h) : UIWidget(parent, "UINullWidge...
/* Cafu Engine, http://www.cafu.de/ Copyright (c) <NAME> and other contributors. This project is licensed under the terms of the MIT license. */ #include "TypeSys.hpp" #include "ConsoleCommands/Console.hpp" #include <cassert> #include <cstring> using namespace cf::TypeSys; /*****************/ /*** TypeInfoT ***/ ...
// // Copyright (c) 2017, 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 conditi...
#include <SDL.h> #include <SDL_rect.h> #include <SDL_ttf.h> #include <iostream> #include <string> #include <sstream> #include <cmath> #include <unistd.h> //Screen dimension constants const int SCREEN_WIDTH = 1024; const int SCREEN_HEIGHT = 768; //The window we'll be rendering to SDL_Window* gWindow = NULL; //The win...
/* This file is part of the UrgBenri application. Copyright (c) 2016 <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 copyrig...
#include <iostream> #include <string> #include <vector> #include "tuner_api.h" #define STRIDED 0 #if STRIDED == 1 #define STRIDE_BLOCK 32 #endif #define USE_CUDA 0 #if STRIDED == 0 #if USE_CUDA == 0 #if defined(_MSC_VER) #define KTT_KERNEL_FILE "../examples/gemm_batch/gemm_kernel.cl" ...
#include <math.h> #include <algorithm> #include <iostream> #include <vector> #include "PID.h" #define PI 3.1415926 using namespace std; /** * TODO: Complete the PID class. You may add any additional desired functions. */ PID::PID() {} PID::~PID() {} void PID::Init(double spd_lim_, vector<double> k_) { /** ...
/// @copyright /// Copyright (C) 2020 Assured Information Security, Inc. /// /// @copyright /// 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 limita...
/******************************************************************************** * * Copyright (c) 2018 ROCm Developer Tools * * MIT LICENSE: * 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 So...
/* * 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...
#include "editor_layer.hh" #include <fenix/util/instrumentor.hh> #include <fenix/util/platform_utils.hh> #include <imgui.h> #include <glm/gtc/type_ptr.hpp> #include <iostream> #include <filesystem> static constexpr float ASPECT_RATIO = 16.0f / 9.0f; namespace fenix { EditorLayer::EditorLayer() : Layer("...
#include "Connection.h" #include <iostream> using std::cout; using std::endl; using std::cerr; #include <sys/socket.h> //socket() #include <sys/types.h> //socket() #include <arpa/inet.h> //htons() #include <stdexcept> #include <unistd.h> //close() #include <netdb.h> #include <strings.h> ...
#include "rbtree.h" #include <stdlib.h> #include <assert.h> #include <stdio.h> #include "rbtree_util.h" /* .-. X */ /* (11 ) ...
/** @file K_Intensity.cc * @author pmaginot * @brief Implement the K_Intensity class * Store k quantities for DIRK time integration, for intensity data (no angular moment storage) */ #include "K_Intensity.h" K_Intensity::K_Intensity(const int n_cells, const int n_stages, const Fem_Quadrature...
#include <emscripten/bind.h> #include <string> #include <vector> #include <limits> #include <cmath> extern "C" { #define __STDC_CONSTANT_MACROS #include <libavutil/log.h> #include <libavutil/opt.h> #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> }; typedef struct Status { int...
#include <iostream> #include <chrono> #include <float.h> #include "tensor.h" #include "layers.h" #include "net.h" #include "optimizer.h" int LoadMNISTImages(const char* filename, float** pp_images, int* total_images); int LoadMNISTLabels(const char* filename, char** pp_labels); int MNIST_lten(const cha...
#include "LongboardGame.h" // Declare our game instance LongboardGame game; // Pick some arbitrarily large world size for our playground #define WORLD_SIZE 20.0f // Maximum velocity, in meters/sec #define VELOCITY_MAX 2.0f #define VELOCITY_MAX_MS (VELOCITY_MAX / 1000.0f) // Minimum v...
#include <cstdio> #include <cstdlib> #include "Vpit.h" #include "verilated.h" #include "verilated_vcd_c.h" //------------------------------------------------------------------------------ typedef unsigned int uint32; typedef unsigned char uint8; //--------------------------------------------------------------------...
/*- * Copyright 2003-2005 <NAME> * All rights reserved * * Redistribution and use in source and binary forms, with or without * modification, are permitted providing that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions ...
/* * Copyright 2010, * <NAME>, * <NAME>, * * CNRS/AIST * */ #include <sot/core/multi-bound.hh> //#define VP_DEBUG_MODE 25 #include <sot/core/debug.hh> using namespace dynamicgraph::sot; MultiBound::MultiBound(const double x) : mode(MODE_SINGLE), boundSingle(x), boundSup(0), boundInf(0), boundSupSetu...
// =========================================================================== // $Source$ // $Revision$ // $Date$ // =========================================================================== // Copyright (C) 1999 <NAME>. All Rights Reserved. // // BY USING ANY PORTION OF THIS SOFTWARE, YOU AGREE TO THE FOLLOWING // ...
/* * Copyright (c) 2008 <NAME>, <NAME>, <NAME> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
/* * Abuse - dark 2D side-scrolling platform game * Copyright (c) 1995 Crack dot Com * Copyright (c) 2005-2011 <NAME> <<EMAIL>> * * This software was released into the Public Domain. As with most public * domain software, no warranty is made or implied by Crack dot Com, by * <NAME>, or by <NAME>. */ #if ...
/* * Copyright (C) 2010-2019 <NAME> * http://www.1f0.de * * 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 ve...
//g = 3 //998244353, img = 86583718 //1004535809 = 479*2^21+1, img = 483363861 //469762049, img = 19610091 //4179340454199820289 int size; int bitrev[MAX2N]; int invs[MAX2N+10]; int w[2][MAX2N]; //max2n == 2^k void Init_NTT(int max2n) { size = max2n; int z = __builtin_ctz(size); for (int i = 0; i < size; +...
#include <fstream> #include <iostream> #include <utility> #include <algorithm> #include <tuple> #include <cnpy.h> #include <libutils/timer.h> #include "utils.h" #include "geometry.h" #include "VoronoiClassifier_kd.h" #include <omp.h> VoronoiClassifier::VoronoiClassifier(int seed) : rand_state(seed), random_engine...
#include <QByteArray> #include <QCommandLineParser> #include <QDebug> #include <QDir> #include <QLockFile> #include <QSqlDatabase> #include <QSqlError> #include <QSqlQuery> #include <QStringList> #include <QTemporaryFile> #include <QTextStream> #include <QVariant> #include <QVector> #define QT_DEBUG class ZathuraMana...
#include "../testenv.hh" #include <mod/mod.stdio.hh> #include <mod/mod.fs.hh> #include <mod/mod.sys.exec.hh> using namespace std; void test_exec(duktape::engine& js) { // Parameter position/format validity checks test_expect_except( js.eval<int>("sys.exec()") ); test_expect_except( js.eval<int>("sys....
#include "HeadTracker.h" #include "FMatrixAffineCompute.cpp" #include "utils.h" #include "Application.h" // Decide whether two numbers have the same sign bool issamesign(int a, int b) { if ((a > 0 && b < 0) || (a < 0 && b > 0)) { return false; } return true; } static double squareNorm(Point point) { return Uti...
#include <node.h> #include <node_buffer.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "ftdi_driver.h" #include "ftdi_constants.h" #include "FTChipID.h" using namespace v8; using namespace node; /********************************** * Local typedefs **********************************/ struct...
/* LICENSE ------- Copyright 2005 Nullsoft, 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...
/* Copyright 2017-2018 All Rights Reserved. * <NAME> (<EMAIL>) * * [Contact] * <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/licens...
/*============================================================================== Program: 3D Slicer Copyright (c) Kitware Inc. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to in writing, software distributed under the License...
/*========================================================================= * * Copyright 2011-2013 The University of North Carolina at Chapel Hill * All rights reserved. * * Licensed under the MADAI Software License. You may obtain a copy of * this license at * * https://madai-public.cs.unc.edu/vis...
//@@@@AUTOBLOCK+============================================================; // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR // PURPOSE. ...
#include <limits> #include "parallel_checker.hpp" ParallelChecker::ParallelChecker(string _inequality, vector<string> _constraints, vector<string> _substitutions, long_d _min_angle, ...