text
stringlengths
3.08k
22k
/* * Copyright (c) CERN 2013 * * Copyright (c) Members of the EMI Collaboration. 2011-2013 * See http://www.eu-emi.eu/partners for details on the copyright * holders. * * Licensed under the Apache License, Version 2.0 * See the LICENSE file for further information * */ /** @file LocationInfo.cc * ...
#include <gtest/gtest.h> #include "dali/array/array.h" #include "dali/array/tests/test_utils.h" #include "dali/array/op/arange.h" #include "dali/array/op/dot.h" #include "dali/array/op/random.h" #include "dali/array/expression/assignment.h" #include "dali/utils/scope.h" void check_dot_result(DType dtype, bool contiguo...
#include "editor/server_api.hpp" #include "coding/url.hpp" #include "geometry/mercator.hpp" #include "base/logging.hpp" #include "base/math.hpp" #include "base/string_utils.hpp" #include "base/timer.hpp" #include <algorithm> #include <sstream> #include "3party/pugixml/src/pugixml.hpp" namespace { std::string KeyV...
CargoWeb::CargoWeb() : RSAlgorithm("cargoweb", true), grid_(100), d(0,1) { this->batch_time() = BATCH; this->nclimbs_ = 0; this->ntries_ = 0; this->nanneals_ = 0; this->ntimeouts_ = 0; this->ncap_ = 0; this->ntw_ = 0; this->t_max = tmax; this->p_max = pmax; this->f_ = static_cast<float>(f/100.0...
#include "StdAfx.h" #include "avx_luminance.h" #include "avx_cfa.h" #include "avx.h" AvxLuminance::AvxLuminance(CMemoryBitmap& inputbm, CMemoryBitmap& outbm) noexcept : inputBitmap{ inputbm }, outputBitmap{ outbm }, avxReady{ true } { if (!AvxSupport::checkSimdAvailability()) avxReady = false; // ...
/* * Copyright (c) 2017-2019 Cisco and/or its affiliates. * 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 appl...
/* Copyright (c) 2015, <NAME> All rights reserved. Licensed under the BSD 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 must retain the above copyright notice, this list...
/* * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
/* Copyright (c) 2017 NicoHood See the readme for credit to other people. 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 (c) <2003-2021> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * includi...
#include "main.h" void setup() { // set CPU clock HAL_Init(); SystemInit(); SystemClock_Config_HSE_8M_SYSCLK_72M(); // initialize motor pins pinMode(COIL_A_DIR_1_PIN, OUTPUT); pinMode(COIL_A_DIR_2_PIN, OUTPUT); pinMode(COIL_B_DIR_1_PIN, OUTPUT); pinMode(COIL_B_DIR_2_PIN, OUTPUT); ...
#include "aperture.h" #include "point.h" // CUBES struct Point calcHeartPoint(long double t) { struct Point p; p.x = (pow(sin(t), 3.0)); // [-1;1] p.y = ((13.0*cos(t)-5.0*cos(2.0*t)-2.0*cos(3.0*t)-cos(4.0*t) + 2.5) / 14.5 * (-1)); // [1;-1] return p; } void drawHeart(U8G2 u8g2, long double funcstep, long d...
#include "stdafx.h" #include "packet.h" #include "common.h" static void set_packet_header(char *buf, const size_t size) { static char hexchar[] = "0123456789abcdef"; #define hex(a) (hexchar[(a) & 15]) buf[0] = hex(size >> 12); buf[1] = hex(size >> 8); buf[2] = hex(size >> 4); buf[3] = hex(size); #un...
#include "Manufactured_Integral_Operator.hh" #if defined(ENABLE_OPENMP) #include <omp.h> #endif #include <cmath> #include <iostream> #include "Angular_Discretization.hh" #include "Basis_Function.hh" #include "Conversion.hh" #include "Energy_Discretization.hh" #include "Integration_Mesh.hh" #include "Manufactured...
#include <admodel.h> #include <wtsADMB.hpp> #include "ModelConstants.hpp" #include "ModelConfiguration.hpp" //********************************************************************** // Includes // ModelConfiguration //********************************************************************** using namespace ...
#include "tests_config.h" #include <CortidQCT/CortidQCT.h> #include <Eigen/Core> #include <gsl/gsl> #include <gtest/gtest.h> #include <igl/per_vertex_normals.h> #include <cstdio> #include <iterator> using namespace CortidQCT; #ifndef CortidQCT_DATADIR # error "No data dir given" #endif static std::string const m...
// // main.cpp // TermRankingMethod // // Created by <NAME> on 2014/12/01. // Copyright (c) 2014年 <NAME>. All rights reserved. // #include <iostream> #include <fstream> #include <limits> #include "TermRankingMethod.h" #include "Wave.h" #include "analysis.h" #include "LorenzSystem.h" #include "Audio.h" #include "W...
#include <iomanip> #include <sstream> #include <stdio.h> #include "hardware/dma.h" #include "hardware/i2c.h" #include "hardware/spi.h" #include "pico/multicore.h" #include "pico/stdlib.h" #include "pico/time.h" #include "pico/util/queue.h" #include "csrc/u8g2.h" #include "encoder.hpp" #include "u8g2functions.h" usi...
/** * This file is part of the CernVM File System. */ #include <gtest/gtest.h> #ifdef __APPLE__ #include <sys/sysctl.h> #endif #include <syslog.h> #include <algorithm> #include <cassert> #include <fstream> // TODO(jblomer): remove me #include <sstream> // TODO(jblomer): remove me #include "../../cvmfs/manifest...
/**********************************************************************/ /** Microsoft Windows/NT **/ /** Copyright(c) Microsoft Corp., 1991 **/ /**********************************************************************/ /* openfiles.cxx ...
/* * Copyright 2019 Xilinx, 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 law or agreed to...
#include "TextRasterizer_P.h" #include "TextRasterizer.h" #include "ignore_warnings_on_external_includes.h" #include <SkBitmapDevice.h> #include <SkTypeface.h> #include "restore_internal_warnings.h" #include "ICU.h" #include "CoreResourcesEmbeddedBundle.h" OsmAnd::TextRasterizer_P::TextRasterizer_P(TextRasterizer* c...
#include <arpa/inet.h> #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <linux/input.h> #include <linux/kd.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/select.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h...
// jhcFRecoOCV.cpp : face recognizer based on OpenCV LBP histogram method // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 2014 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this fil...
/* Copyright (c) 2012 Cheese and Bacon Games, LLC */ /* This file is licensed under the MIT License. */ /* See the file docs/LICENSE.txt for the full license text. */ #include "creature.h" #include "game_constants.h" #include "game_data.h" #include "game.h" #include "lighting.h" #include <font.h> #include <object_man...
/* Author: <NAME> C++ Program for Assembly Line Scheduling (Dynamic Programming). Consider two assembly lines 'A' and 'B' numbered from 'A1 to An' and 'B1 to Bn' respectively. 'In1' and 'In2' are two possible where an objects enters and 'Out1' and 'Out2' are two exits after assembli...
#include "SRTypes.h" #include "FFTWUpsample.h" #include <cblas.h> #include <itkTimeProbe.h> #include "MathUtils.h" #include <itkSqrtImageFilter.h> #include <itkComplexToModulusImageFilter.h> #include <itkVectorIndexSelectionCastImageFilter.h> #include <itkGradientMagnitudeImageFilter.h> #include <itkBinaryFunctorI...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> * <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> using namespace std; #include "helper_func...
/*========================================================================= Program: ToolCursor Module: vtkRotateCameraTool.cxx Copyright (c) 2010 <NAME> All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR ...
/* * A graph data structure and various algorithms. * All traversals are non-recursive. * n := number of nodes * counter := auxiliary counter for traversal isolation * visit := auxiliary array for tracking visited nodes * next := auxiliary array for tracking next DFS child to visit * p := parent node * x := cur...
/* * Copyright (C) 2008 The Android Open Source Project * * 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 app...
#include <Windows.h> #include <iostream> #include <conio.h> #include <cassert> #include <SimpleIni.h> #include <atomic> #include <thread> const int HOTKEY_ID = 123; //const int HOTKEY_MOD = MOD_ALT | MOD_CONTROL | MOD_SHIFT | MOD_NOREPEAT; //const int HOTKEY_KEY = VK_F4; const bool config_utf8 = true; const bool conf...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2003, 2007 <NAME> Copyright (C) 2003, 2007, 2008 StatPro Italia srl This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantL...
// Copyright (c) 2008, 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 condi...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
/***** Vdd::Store Implementation *****/ /************************ ************************ ***** Interfaces ***** ************************ ************************/ /******************** ***** System ***** ********************/ #include "Vk.h" /****************** ***** Self ***** ******************/...
#include "FormRequestHandler.h" #include <Poco/File.h> #include <Poco/FileStream.h> #include <Poco/InflatingStream.h> #include <Poco/JSON/Object.h> #include <Poco/Net/HTMLForm.h> #include <Poco/Path.h> #include <Poco/StreamCopier.h> #include <Poco/Thread.h> #include <Poco/URI.h> #include <Poco/UUIDGenerator.h> #includ...
#include "pch.h" #include "UFO.h" UFO::UFO( Game *game, sf::Texture * texturePtr, sf::Texture * beamTexturePtr, float x, float y) : GameObject(game, x, y) { this->texturePtr = texturePtr; this->beamTexturePtr = beamTexturePtr; //Initialize the Animation animation = new Animation(14, 64, game->getF...
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1991 - 2000. // // File: EntryBuf.Cxx // // Contents: Implementation of the CEntryBuffer and associated classes. // // Classes: CEntry, CKeyVector, CEnt...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "precomp.h" #include "charsets.hpp" #include "terminalOutput.hpp" #include "strsafe.h" using namespace Microsoft::Console::VirtualTerminal; TerminalOutput::TerminalOutput() noexcept { // By default we set all of the G...
/* Copyright (C) 2006 <NAME>, all rights reserved X! tandem This software is a component of the X! proteomics software development project Use of this software governed by the Artistic license, as reproduced here: The Artistic License for all X! software, binaries and documentation Preamble The intent of this d...
#include <iostream> #include <fstream> #include <string> #include <cmath> #include <vector> #include <cstdlib> #include <cstdio> #include <glad/glad.h> #include <GLFW/glfw3.h> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #include "objload...
#include "OpenT12.h" double PTemp[FixNum] = {TempP1, TempP2, TempP3, TempP4}; //温度拟合系数 long Calibration_Base[FixNum] = {150, 200, 250, 300, 325, 350, 375, 400, 425, 450}; long Calibration_Input[FixNum] = {0}; //显示曲线系数 void ShowCurveCoefficient(void) { Clear(); char buffer[50]; for (long i = 0; i < 4; i++)...
#include "world/world.h" #include "util/gldebugging.h" #include "util/planerenderer.h" #include "util/loadtexture.h" #include "objects/hud.h" extern int hudTime; #include "GL/glew.h" #include "GLFW/glfw3.h" #include "glm/glm.hpp" #include "glm/gtc/matrix_transform.hpp" // for lookAt() and perspective() #include...
/* ************************************************************************ * File: mobact.c Part of CircleMUD * * Usage: Functions for generating intelligent (?) behavior in mobiles * * * * All rights re...
///////////////////////////////////////// // // OpenLieroX // // Auxiliary Software class library // // based on the work of JasonB // enhanced by <NAME> and <NAME> // // code under LGPL // ///////////////////////////////////////// // Mathematics Library // Created 20/12/01 // <NAME> #include <cassert> #i...
#include "rw/logging.h" #include "rw/utf8.h" #include <array> #include <cstring> #include <langinfo.h> #include <tuple> #define LOGGER() (rw::logging::get("rwte-main")) namespace rw::utf8 { void set_locale() { // set/check utf8 locale. locale is needed for C funcs // like wcwidth/wcswidth later std::set...
//======================================================================= // Copyright (c) 2015-2016 <NAME> // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //======================================================================= #...
#include <ESP8266WiFi.h> //ESP8266 Core WiFi Library (you most likely already have this in your sketch) #include <DNSServer.h> //Local DNS Server used for redirecting all requests to the configuration portal #include <ESP8266WebServer.h> //Local WebServer used to serve the configuration portal ...
/** * Implementation of a 3D interpolation class. */ #include <cmath> #include <gsl/gsl_interp.h> #include "FVM/FVMException.hpp" #include "FVM/Interpolator3D.hpp" using namespace DREAM::FVM; using namespace std; /** * Constructor. */ Interpolator3D::Interpolator3D( const len_t nx1, const len_t nx2, const ...
/* * ========================= ChildMesh.cpp ========================== * -- tpr -- * CREATE -- 2019.01.22 * MODIFY -- * ---------------------------------------------------------- */ #include "ChildMesh.h" #incl...
#include "mainwindow.h" #include <QMetaType> #include <ctime> #include <iostream> using namespace std; static Matrix<8,8> whiteKingTable({-6,-8,-8,-10,-10,-8,-8,-6, -6,-8,-8,-10,-10,-8,-8,-6, -6,-8,-8,-10,-10,-8,-8,-6...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> using std::string; using std::vector; using std::normal_...
/* * generating boids * boid.cpp * * Created by aa_debdeb on 2015/11/12. * Remodeled by <NAME>. * * The MIT License (MIT) * * Copyright (c) 2019 <NAME>. * Copyright (c) 2015 aa_debdeb * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated document...
#include "PSystem.h" void np::PSystem::setup( int w, int h, int numAttractors ){ #ifdef __ARM_ARCH fbo.allocate( w, h, GL_RGBA ); #else fbo.allocate( w, h, GL_RGBA, 2 ); #endif fbo.begin(); ofClear(0, 0, 0, 0); fbo.end(); emitters.resize(4); emitters[0].setPosition(...
#include <Astra/Astra.h> #include <AstraUL/AstraUL.h> #include <chrono> #include <iostream> #include <pcl/io/io.h> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl_ros/publisher.h> #include <pcl_ros/point_cloud.h> #include <pcl_conversions/pcl_conversions.h> #include <ros/ros.h> #include <ros/publi...
//=====================================================================// /*! @file @brief GPTW サンプル @n RX64M, RX71M: @n 12MHz のベースクロックを使用する @n P07 ピンにLEDを接続する @n SCI1 を使用する @n RX65N (Renesas Envision kit RX65N): @n 12MHz のベースクロックを使用する @n P70 に接続された LED を利用する @n SCI9 を使用する @n ...
#include <iostream> #include <vector> #include <imgui.h> #include "glm/ext/matrix_transform.hpp" #include "glm/gtc/type_ptr.hpp" #include "hazel/events/application_event.hpp" #include "hazel/platform/opengl/opengl_shader.hpp" #include "hazel/hazel.hpp" #include "hazel/renderer/texture.hpp" #include "sandbox_2d.hpp" ...
//---------------------------------------------------------------------------- // // Copyright (c) 2013-2017, <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...
#include "Settings.h" Settings::Settings() { } void Settings::load() { if (EEPROM.read(checkNumAdr) != checkNum) { reset(); return; } ssidLen = EEPROM.read(ssidLenAdr); passwordLen = EEPROM.read(passwordLenAdr); if (ssidLen < 1 || ssidLen > 32 || passwordLen < 8 && passwordLen != 0 || passwordL...
/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2020 Aerll - <EMAIL> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this softwareand associated documentation files(the "Software"), to deal // in the Software without restric...
#include "Scene.h" #include "Globals.h" #include "Utils/Logger.h" #include "Application.h" #include "Modules/ModuleDebugDraw.h" #include "GameObject.h" #include "Components/Component.h" #include "Components/ComponentTransform.h" #include "Components/ComponentCamera.h" #include "Components/ComponentMesh.h" #include ...
// Problem: https://projecteuler.net/problem=161 /* . Starting from a blank board, try placing a shape on the first square on the top row that is not completely filled. . Use DFS to search for all possible shape placements. . Use memoization to cache results. . Encode the number of filled rows an...
/* * 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...
#include "mex.h" #include "mexOliUtil.h" #include "math.h" #include "affineTransferDistanceMEX.h" #include "stdio.h" // [ dist flip ] = affineTransferDistanceMEX(matchlist, affMatrix1, affMatrix2, bSingle, bReflective) // This generates a matrix with the 'affine symmetric transfer error' // between all the possib...
/* * \class PulseFitWithFunction * * \author: <NAME> - CEA/Saclay */ // File PulseFitWithFunction.cxx // =========================================================== // == == // == Class for a function fit method == // == ...
#include "timeline.h" #include <string> #include <algorithm> #include <iomanip> #include <sstream> Timeline::Timeline(wxFrame* parent, int lines, bool follow) : wxPanel(parent), lines(lines), follow(follow), backgroundColor("black"), headColor("dark grey"), majorTickColor("red"), minorTickColor("black"), c...
/*========================================================================= Program: Visualization Toolkit Module: vtkImageMapToColors.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed ...
#include "Intersection.h" /* To determine if a ray intersects a triangle, we first check if the ray intersects the plane in which the triangle lies If it does, we then check if the hit point lies within the triangle The equation of a plane is the following: (P - A) dot N = 0 Where A is any point on t...
/* * Dawn Engine * Written by <NAME> (c) 2012-2019 (<EMAIL>) */ #include "Core.h" #include "scene/CSceneNode.h" #include "net/CNetData.h" #include "net/CNetTransform.h" #include "Resource.h" #include "CShipEngines.h" using namespace dw; ShipEngineData::ShipEngineData(const Vec3& force, const Vec3& offset) : ac...
#include "../../gpugi/utilities/random.hpp" namespace PSO { template<unsigned N> struct SwarmParticle { Vec<N> position; ///< This is the vector in the search space, i.a. the values to be optimized Vec<N> optPosition; ///< Personal optimum till now Vec<N> velocity; ///< Current direction and velocity float fi...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2015-2017 Intel Corporation. All Rights Reserved. #include <librealsense2/rs.hpp> // Include RealSense Cross Platform API #include "example.hpp" // Include short list of convenience functions for rendering #include <string> #...
// // get_power_info.cpp - get power information implementation // // leccore library, part of the liblec library // Copyright (c) 2019 <NAME> (alecmus at live dot com) // // Released under the MIT license. For full details see the // file LICENSE.txt // #define INITGUID #include "get_power_info.h" #include "../lecco...
/* ==================== Adapted from Textures.cpp demo but with sample texture. ==================== */ #include "lgl/Base.h" #include <cmath> #include <cstdlib> using namespace glm; float vertices[] = { // positions // texture coords 0.5f, 0.5f, 0.0f, 1.0f, 1.0f, // top right 0.5f...
/* * Copyright (c) 2000-2001,2011,2014 Apple Inc. All Rights Reserved. * * The contents of this file constitute Original Code as defined in and are * subject to the Apple Public Source License Version 1.2 (the 'License'). * You may not use this file except in compliance with the License. Please obtain * a copy o...
#include <cstdio> #include <ctime> #include <cstring> // memset #include <cstdlib> // rand, RAND_MAX #include <cmath> // sqrtf #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/shape_inference.h" #include "tensorflow/core/framework/common_shap...
// // Created by Max on 2021-01-01. // #include "../raytracer/features/Tuple/Tuples.h" #include "../raytracer/features/Helper.h" #include "gtest/gtest.h" // << "x: " << b.x << " y: " << b.y << " z: " << b.z << " w: " << b.w // A tuple with w=1.0 is a point TEST(TupleTests, TestPointValues) { double x = 4.3, y = ...
#include "cDisparo.h" #include "cNivel.h" #include <gl/glut.h> /* // <NAME> (TEX_NAVE1) int tiroEnemigo[4][4] = { { 212, 279, 6, 6 }, { 227, 278, 10, 8 }, { 243, 277, 12, 10 }, { 272, 276, 14, 12 } }; int tiroEnemigoMid = 281; */ int tiroEnemigo[4][4] = { { 136, 6, 7, 6 }, { 153, 6, 7, 6 }, { 170, 6, 7, 6 },...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsXBLProtoImpl.h" #inclu...
// Copyright 2021 <NAME> #include <mpi.h> #include <vector> #include <string> #include <random> #include <algorithm> #include "../../../modules/task_3/medvedeva_k_gauss_block_partition/gauss_block_partition.h" static std::vector<double> gauss_kernel(9, 0); std::vector<int> getRandomMatrix(std::vector<int>::size_type ...
#include <iostream> #include <fstream> #include <cstdlib> #include <string> using namespace std; struct student { int miejsce; string imie; string nazwisko; string plec; int nr_pesel; int nr_indeks; }; struct BazaStudentow { student bazaW[100]; int ile; }; void menu(BazaStudentow& b...
#include "VRRenderer.h" #include "RenderTexture.h" #pragma comment (lib, "../../openvr/lib/win32/openvr_api.lib") bool VRRenderer::Init(Window* win, int xres, int yres, bool fake) { if (fake) { render_height = render_width = 1000; goto finish; } // Loading the SteamVR Runtime vr::EVRInitError eError = vr::...
#include "GraphScene.hpp" #include "object_proxies.hpp" #include <qfiledialog.h> #include "Node.hpp" #include "Aquila/core/IDataStream.hpp" #include "Aquila/nodes/Node.hpp" #include "Aquila/framegrabbers/IFrameGrabber.hpp" #include "Aquila/serialization/cereal/JsonArchive.hpp" #include "object_proxies.hpp" #include "Me...
#include "Mage.h" #include "BattleFieldUI.h" #include "HPCounter.h" #include "MessageDispatchCenter.h" Mage::Mage() { } bool Mage::init() { Actor::init(); _useWeaponId = ReSkin.mage.weapon; _useArmourId = ReSkin.mage.armour; _useHelmetId = ReSkin.mage.helmet; //init data copyData_Mage(); ...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein is * confidential and proprietary to MediaTek Inc. and/or its licensors. Without * the prior written permission of MediaTek inc. and/or ...
#include <iostream> #include <sstream> #include "output.h" #include "outputhtml.h" #include "bib.h" #include "utfconv.h" #include "latexconv.h" #include "odb.h" using namespace odb; #define _HTML_OUTPUT_VERSION 0.01 #define _IE6_WORKAROUNDS void COutputHtml::GenerateHeader () { std::string sStyleSheetScreen ...
/* * complex.cpp * Implementation file for complex number class * <NAME> * <EMAIL> * Jan. 1999 * * Copyright (c) 1999 <NAME> * Released under the MIT License * */ #include "complex.h" static Complex j = Complex(0.0,1.0); static Complex i = Complex(0.0,1.0); // default constructor Complex::Complex(void) {r...
/* Copyright (c) 2007 <NAME>. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless require...
#include "ScopeWidget.h" #include <gdkmm/general.h> #include <iostream> #include <cstring> using namespace std; ScopeWidget::ScopeWidget(ProtocolWorker *worker) : Glib::ObjectBase("scopewidget"), Gtk::Widget(), work...
// This takes an array of transforms, and outputs a curve. #include <zNativeMayaTools/MStatusHandler.h> #include <zNativeMayaTools/Log.h> #include <zNativeMayaTools/Helpers.h> #include <zNativeMayaTools/MayaUtils.h> #include <maya/MGlobal.h> #include <maya/MMatrix.h> #include <maya/MPointArray.h> #include <maya/MDoub...
#include "GElementalSkullProcess.h" #include "GPlayer.h" #define DEBUGME #undef DEBUGME /********************************************************************************* ********************************************************************************* ***************************************************************...
#include <cstddef> #include <cstdint> #include <cassert> #include <iostream> #include <type_traits> // Begin Autogenerated Code ========================= // STM32F4 family from ST Microelectronics. Based on a Cortex M4F core. namespace STM32F4xx { // Reset and Clock Control peripheral for STM32F4xx family. class RC...
/** @file main_IMACS_WEBOTS.cpp * @brief The MAIN file for IMACS framework using WEBOTS simulator */ #include "config_webots.hpp" #define UNUSED(x) (void)(x) //!< macro for tagging unused images int main(int argc, char **argv) { using namespace std; using namespace cv; /// ------- simulation parameters --------...
/*------------------------------------------------------------------------- * * unaccent.c * Text search unaccent dictionary * * Copyright (c) 2009-2012, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/unaccent/unaccent.c * *----------------------------------------------------------------...
/// /// Copyright (C) 2017, Cyberhaven /// Copyright (C) 2013, Dependable Systems Laboratory, EPFL /// /// 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 wit...
/******************************************************** Stanford Driving Software Copyright (c) 2011 Stanford University 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...
#include "pressio_rom_galerkin.hpp" struct MyCustomDecoder { // this is mandatory because pressio detects it using jacobian_type = pressio::containers::MultiVector<Eigen::MatrixXd>; using fom_state_type = pressio::containers::Vector<Eigen::VectorXd>; private: const int romSize_ = {}; jacobian_type jac_; ...
/* EXTREME BLOCKS - Copyright (C) 2010 by <NAME> * * (c) RPR-GDevelopment - 2010 * * Written by <NAME> * * This source code is released under the The GNU * * General Public License (GPL). Please refer to the * * ...
/*************************************************************************/ /* resource_importer_obj.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...