text
stringlengths
3.08k
22k
/* Software License Agreement (BSD License) * * Copyright (c) 2014, Robotiq, 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 copyr...
#include "Keyboard.h" #include <assert.h> #include "../DinodeckLua.h" #include "../LuaState.h" #include "Button.h" Reflect Keyboard::Meta("Keyboard", Keyboard::Bind); static Keyboard* gKeyboard = NULL; Keyboard::Keyboard() { assert(gKeyboard == NULL); gKeyboard = this; }; // Should be done...
#include<dsp/fir.hpp> #include<pffft.h> #include<vector> #include<iostream> #include<../wdl/wavwrite.h> #include <stdio.h> #include <string.h> #include <float.h> #include <GLFW/glfw3.h> #define NANOSVG_IMPLEMENTATION #include "nanosvg.h" NSVGimage* g_image = NULL; static unsigned char bgColor[4] = { 205,202,200,25...
#include "c4d.h" #include "c4d_symbols.h" #include "toolpickobjectsdk.h" #include "lib_editortools.h" #include "main.h" #define ID_SAMPLE_PICK_OBJECT_TOOL 450000263 class PickObjectTool : public DescriptionToolData { public: virtual Int32 GetToolPluginId() { return ID_SAMPLE_PICK_OBJECT_TOOL; } virtual const String...
/*++ Copyright (c) 2011 Microsoft Corporation Module Name: mpn.cpp Abstract: Multi Precision Natural Numbers Author: <NAME> (cwinter) 2011-11-16. Revision History: --*/ #include <stdint.h> #include "runtime/mpn.h" #include "runtime/debug.h" #include "runtime/buffer.h" #define max(a,b) (((a) > (b...
// Copyright 2021 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 in...
#include "Application.h" #include "ModuleProgram.h" #include "ModuleCamera.h" #include "ModuleRender.h" #include "ModuleScene.h" #include "ModuleEditor.h" #include "ModuleSpacePartitioning.h" #include "ComponentLight.h" #include "ComponentTransform.h" #include "ComponentCamera.h" #include "Component.h" #include "Gam...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
#pragma once #include "util.cpp" #include <set> #include <tuple> #include <deque> #include <stack> long id(int r, int c, int a) { return r + 10000 * c + 1000000 * a; } bool inbounds(int r, int c, int a, Input& input) { return (0 <= r && r < input.r && 0 <= c && c < input.c && 0 < a && a <= input.a); } int t...
/* MAIN FILE */ /* RESERVED ERROR NOTES - None currently */ #include "Libraries.h" #include "List.h" /* <NAME> 4/29/16 This is a linked list super example that asks the user whether they want to add, delete, or print the contents of a linked list. I did NOT use any of the functions provided because I fi...
// Fuel Fabrication Class #include "fuel_fabrication.h" /*** Common Function ***/ std::set<std::string> bright::make_fuel_fab_params_set(material_dict * mats, std::set<std::string> orig_set) { std::set<std::string> new_set (orig_set); for ( material_dict::iterator mat=(*mats).begin() ; mat != (*mats).end(); mat...
/* Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in th...
/* This file is part of KDDockWidgets. SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <<EMAIL>> Author: <NAME> <<EMAIL>> SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only Contact KDAB at <<EMAIL>> for commercial licensing options. */ /** * @file * @brief Impleme...
#include "PID.h" /** * TODO: Complete the PID class. You may add any additional desired functions. */ PID::PID(int tuning_data_size, int num_records_to_skip, float max_steering_angle, float twiddle_tolerance, double steering_noise, double distance_noise) : kNumTuningDataRecords(tuning_data_size)...
// Hybrid Encryption (Diffie-Hellman Key Exchange + AES) // run using: // g++ main.cpp -o run.o -lgmpxx -lgmp -lsodium // ./run.o ServerGeneratePartialKey -> Output: x and g^x // ./run.o ClientGeneratePartialKey -> Output: y and g^y // ./run.o ServerGenerateSessionKey g^y x -> Output: se...
/************************************************************/ /* NAME: <NAME> */ /* ORGN: UNH/NOAA */ /* FILE: SonarFilter.cpp */ /* DATE: 2015-08-26 ...
// Copyright (C) Microsoft Corporation. All rights reserved. #include <cstdio> #include <memory> #include <playfab/PlayFabClientApi.h> #include <playfab/PlayFabClientDataModels.h> #include <playfab/PlayFabSettings.h> #include <playfab/PlayFabEventsDataModels.h> #include <playfab/PlayFabEventsApi.h> #include <playfab/...
/* * LED_PWM.c * * Created on: 03.11.2019 * Author: KaiLi */ #include "LED_PWM.h" #include "LED_Statemachine.h" #define LED_R_CH_SLOW TIM_CHANNEL_3 #define LED_R_CH_FAST TIM_CHANNEL_1 #define LED_G_CH_SLOW TIM_CHANNEL_4 #define LED_G_CH_FAST TIM_CHANNEL_2 #define LED_B_CH_SLOW TIM_CHANNEL_1 #define LED_B_...
/* * ascCrypt.c - simple ASC (ComCryption) encrypt/decrypt utility */ #include "cspwrap.h" #include "common.h" #include <security_cdsa_utils/cuFileIo.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <Security/cssm.h> #include <Security/cssmapple.h> #include <CoreFoundation/Cor...
/* author:marco entry point of the application */ #include <algorithm> #include <cstdio> #include <stdio.h> #include <share.h> #include <iostream> #include <fstream> #include "mzdb/lib/getopt_pp/include/getopt_pp.h" #include "mzdb/writer/mzDBWriter.hpp" #include "mzdb/utils/MzDBFile.h" #include "boost/algorithm/stri...
/** * Create a new BLE server. */ #include "BLEDevice.h" #include "BLEServer.h" #include "BLEUtils.h" #include "BLE2902.h" #include "BLEHIDDevice.h" #include "SampleKeyboardTypes.h" #include <esp_log.h> #include <string> #include <Task.h> #include "sdkconfig.h" static char LOG_TAG[] = "SampleHIDDevice"; static BLE...
#include "photonmapintegrator.h" #include "QTime" Color3f PhotonMapIntegrator::Li(const Ray &ray, const Scene &scene, std::shared_ptr<Sampler> sampler, int depth, Color3f compoundedEnergy) const { //QTime time = QTime(); //time.start(); //,"roughness": 0.05 Color3f finalOutputColor(0.0f); int nu...
/* * Copyright (c) 2010, <NAME>, <NAME>, <NAME>, * <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: * - Redistributions of source code must retain the above copyright...
#include <initializer_list> #include <iostream> #include <cassert> #include <vector> #include <cstring> using namespace std; #pragma GCC diagnostic ignored "-Wunused-variable" #pragma GCC diagnostic ignored "-Wunused-but-set-variable" ////////////////////////////////////////////////// // Check C++ version via value ...
// Geometric Tools, LLC // Copyright (c) 1998-2011 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // // File Version: 5.0.0 (2010/01/01) //------------------------------------------------------...
// Formatting library for C++ - std::ostream support tests // // Copyright (c) 2012 - present, <NAME> // All rights reserved. // // For the license information refer to format.h. #include "fmt/format.h" struct test {}; // Test that there is no issues with specializations when fmt/ostream.h is // included after fmt/f...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-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 noti...
// Copyright 2008 Google 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 in...
#include <cmath> #include <exception> #include <fstream> #include <iostream> #include <map> #include <sstream> #include <string> #include "../../log.hpp" #include "../../string_support.hpp" #include "logreader.hpp" using namespace catnip; using namespace std; /** * \brief Specifically designed to split up energie...
/* * Copyright 2016 RoboAuto team, Artin * All rights reserved. * * This file is part of RoboAuto HorizonSlam. * * RoboAuto HorizonSlam 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 vers...
// Copyright 2018 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <arch/arm64/hypervisor/el2_state.h> #include <arch/arm64/hypervisor/gic/gicv2.h> #include <assert.h> #include <bits.h> #i...
#include <Kernel/Net/IPv4Socket.h> #include <Kernel/Net/TCPSocket.h> #include <Kernel/Net/UDPSocket.h> #include <Kernel/UnixTypes.h> #include <Kernel/Process.h> #include <Kernel/Net/NetworkAdapter.h> #include <Kernel/Net/IPv4.h> #include <Kernel/Net/ICMP.h> #include <Kernel/Net/TCP.h> #include <Kernel/Net/UDP.h> #inclu...
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2022 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 6.0.2022.01.06 #include <MathematicsGPU/GTMathematicsGPUPCH.h> #incl...
#include <iostream> #include <fstream> #include <vector> #include <sstream> #include <chrono> #include <set> #include <map> #include <queue> class timer { public: timer(std::string point) : m_point{ point } { m_start_point = std::chrono::high_resolution_clock::now(); } ~timer() { ...
/* =========================================================================== Doom 3 BFG Edition GPL Source Code Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code"). Doom 3 BFG Edition Source Code is free...
///*|----------------------------------------------------------------------------- // *| This source code is provided under the Apache 2.0 license -- // *| and is provided AS IS with no warranty or guarantee of fit for purpose. -- // *| See the project's LICENSE.md for details. ...
/* $RCSfile: $ * $Revision: $ $Date: $ * Auth: <NAME> (<EMAIL>) * * Copyright (c) 1991-2015 by STEP Tools 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...
#include <stdio.h> #include <stdio.h> #include <math.h> #include <string.h> #include <algorithm> #include <assert.h> using namespace std; #define eps 1e-6 struct Pt { double x, y; Pt(double a = 0, double b = 0): x(a), y(b) {} bool operator<(const Pt &a) const { if(fabs(x-a.x) > eps) ...
#include "Mesh.h" #include "Application.h" #include "ModuleRender.h" #include "ModuleCamera.h" #include "ModuleTextures.h" #include "GL/glew.h" #include "MathGeoLib/Math/float2.h" #include "Material.h" #include "ShadingProgram.h" #include "ComponentPointLight.h" #include "ComponentDirectionalLight.h" #include "Componen...
/**************************************************************************** * * Copyright (c) 2019 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistri...
// // Created by Bernardo on 12/8/2019. // #include <algorithm> #include <omp.h> #include "HardCodedProblem.h" HardCodedProblem::HardCodedProblem(unsigned long n_weeks, int n_realizations, int import_export_rof_table, string system_io, st...
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Redistribution and use of this software 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 ...
/* * Software License Agreement (BSD License) * * Copyright (c) 2014-2015, <NAME>, Social Robotics Lab, University of Freiburg * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redist...
#include <GLFW/glfw3.h> #include <mapbox/geojsonvt.hpp> #include <fstream> #include <sstream> #include <string> #include <chrono> #include <iostream> std::string loadFile(const std::string& filename) { std::ifstream in(filename, std::ios::in | std::ios::binary); if (in) { std::ostringstream contents;...
/* * sortedcollection_t.cppunit.cc * CMSSW * */ // This is a serious hack! Remove it as soon as we get templated on 'key'. typedef int DetId; #include <algorithm> #include <iostream> #include <iterator> #include <ostream> #include <vector> #include "cppunit/extensions/HelperMacros.h" #include "DataFormats/Comm...
#include "Application.h" #include "IDeviceCommunicator.h" #include "HidDevice.h" #include "IProgrammer.h" #include "ProgrammerFactory.h" #include "NotConnectedMockDevice.h" #include "ConnectedMockDevice.h" #include "OutputCollector.h" #include "cybtldr_utils.h" #include <QCommandLineParser> #include <QFile> #include <Q...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
#include <cassert> #include <cmath> #include <iostream> #include <set> #include <vector> using namespace std; ////////////////////////////////////////////////////////// // P_3_1 typedef vector<int> OneD; typedef vector<OneD> TwoD; typedef vector<TwoD> ThreeD; OneD add1D (OneD A, OneD B) { assert(A.size() == B.siz...
//Copyright (C) 2017 Ambiesoft 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 follow...
#include <iostream> #include <algorithm> #include <yaml-cpp/yaml.h> #include "Parameters.h" using namespace std; static Parameters *singletonInstance; //default value if not provided Parameters::Parameters() : Parameters("../parameters/default.yml") {} Parameters::Parameters(const string &url) { singletonInsta...
#include <windows.h> #include <netfw.h> #include <shlobj.h> #include <shellapi.h> #include <security.h> #include "malwaretools.h" #include "time.h" void MalwareTools::init(void) { } void MalwareTools::uninit(void) { } //to crypt void MalwareTools::_GenerateRandomNameW(DWORD dwCaseFlags, LPWSTR ...
// Copyright (c) 2011 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 "chrome/browser/importer/nss_decryptor_system_nss.h" #include <pk11pub.h> #include <pk11sdr.h> #include "base/basictypes.h" #include "base/...
/* * (c) Copyright 2019 Xilinx, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
/*! \file */ // Copyright 2011-2020 <NAME> and Stratify Labs, Inc; see LICENSE.md for rights. //Copyright 2011-2020 <NAME> and Stratify Labs, Inc #include <cstdlib> #include <cstring> #include "fmt/Bmp.hpp" #include "sys/Appfs.hpp" using namespace sgfx; using namespace fmt; using namespace sys; using namespace fs; ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <queue> #include <vector> using namespace std; const int maxn = 200010; const int INF = 1e9 + 10; int n, m, k; #define ls o << 1 #define rs ls | 1 struct treenode { // 当前节点的值,若不唯一则为 INF;lazy 为 INF 表示无延迟更新 int...
// // BRBCashAddr.c // breadwallet-core // // Created by <NAME> on 1/20/18. // Copyright (c) 2018 breadwallet LLC // // 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 restrict...
/* Copyright (c) 2012 Arduino LLC. All right reserved. 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 Foundation; either version 2.1 of the License, or (at your option) any later version. Th...
#include "client_common.h" #include <sys/eventfd.h> TankClient::TankClient(const strwlen32_t endpoints) { interrupt_fd = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK); if (-1 == interrupt_fd) { throw Switch::system_error("eventfd() failed:", strerror(errno)); } poller.insert(...
//===- NaClBitcodeHeader.cpp ----------------------------------------------===// // PNaCl bitcode header reader. // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------...
#include <cassert> #include <cstdint> #include <iostream> #include <thread> #include "bufArray.hpp" #include "helloBye3.hpp" #include "mbuf.hpp" #include "spinlock.hpp" #include "stateMachine.hpp" #undef likely #undef unlikely using Packet = mbuf; using Ident = HelloBye3::Identifier<Packet>; using SM = StateMachine<...
/******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2020 <NAME> * ********************************************************************************* *...
#include "platform.h" #include "debug.h" #include "ce_sim.h" #include "fileioc.h" #include "fxcg/file.h" // TI file format borrowed from https://github.com/calc84maniac/tiboyce/blob/master/tiboyce-romgen/romgen.c enum VAR_TYPE { TYPE_APPVAR = 0x15 }; enum VAR_FLAG { VAR_UNARCHIVED = 0x00, VAR_ARCHIVED = 0x80 }; ...
// // // Keyframes // The purpose of this code is to introduce and discuss keyframes and keyframe animations. // IT DOES NOT RENDER ANY OBJECTS. IT OPENS AN EMPTY GLFW WINDOW. // // The code shows // - how a keyframe and a keyframe animation can be represented with glm // - how to find the two closest keyframes f...
/* LEDPixels.cpp - A Library for use with LED Pixels using the LPD6803 Controller chip Copyright (c) 2010 <NAME> http:www.bliptronics.com All right reserved. Portions of this library based on the TimerOne library by <NAME> and <NAME> This library is free software; you can redistribute it and/or modify it u...
//===----- EditedSource.cpp - Collection of source edits ------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <Application.h> #include <Autolock.h> #include <String.h> #include <Directory.h> #include <Entry.h> #include <FindDirectory.h> #include <Path.h> #include <NodeMonitor.h> #include <image.h> #include <stdio.h> #include <string.h> #include "DeviceManager.h" #include "LocalDeviceImpl.h" #include "Debug.h" #in...
#include "GoldenDataSource.h" #include <QDebug> #include <QDateTime> #include <QApplication> golden_error on_tags_change (golden_int32 count, const golden_int32 *ids, golden_int32 what) { return GoldenDataSource::getInstance()->on_tags_changed(count, ids, what); } golden_error on_data_change (golden_int32 count...
// // Copyright (c) 2017 The Khronos Group 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...
/* DS1287-based DEC 5000/200 Real-Time Clock emulation. Copyright 2003 <NAME>. This file is part of VMIPS. VMIPS 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 op...
#include <algorithm> #include <iostream> #include <vector> #include "CPLEX.hpp" #include "TSPsolution.hpp" #include "utils/cpxmacro.hpp" using std::string; using std::vector; // error status and messagge buffer int status; char errmsg[BUF_SIZE]; const int N = 4; const int NAME_SIZE = 512; char name[NAME_SIZE]; Cpl...
/* * Copyright (C) 2012 Open Source Robotics Foundation * * 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) 2020, 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 Softwa...
#include "IntervalGen/IntGenForPosit32OneApprox.h" #include "luts.h" #include "math.h" posit32 IntervalGenerator::MpfrCalculateFunction(posit32 x) { /* mpfr_set_d(mval, x, MPFR_RNDN); mpfr_exp(mval, mval, MPFR_RNDN); return FromMPFR(mval); */ // If you want to make it run faster, you can ...
#include <iostream> #include <cstdio> #include <cstdlib> #include <string> #include <WritePlotFile.H> #include <AMReX_REAL.H> #include <AMReX_Box.H> #include <AMReX_FArrayBox.H> #include <AMReX_ParmParse.H> #include <AMReX_ParallelDescriptor.H> #include <AMReX_DataServices.H> #include <AMReX_Utility.H> #include <AMRe...
/** FioError definitions file * Description: Contains helper functions to generate appropriately formatted http error messages * that are returned by the HTTP messaging layer when an assertion test fails. * @author <NAME>, <NAME>, <NAME>, <NAME> * @file fioerror.hpp * @license FIO Foundation ( ht...
#include "llvm/IR/IRBuilder.h" #include "llvm/IR/PassManager.h" #include "llvm/Passes/PassBuilder.h" #include "llvm/Passes/PassPlugin.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/RandomNumberGenerator.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include <time.h> #include <unordered_set> u...
#include <random> #include <chrono> #include "../../interface/radix_sort.h" #include "../../src/radix_sort.cc" #include "../../interface/binnor.h" // build as: // c++ -o binnor_demo -O3 -mavx2 -std=c++17 -I../../../.. binnor_demo.cxx bool print_axis_binnor = true; bool print_bin_contents = true; void run_scan(); vo...
#include "eulerproblems.hpp" #include <vector> #include <map> #include <list> #include <array> #include "utils.hpp" #include <math.h> #include <iostream> #include "defines.hpp"//big numbers #include <string> #include <fstream>//files #include <stack> #include <queue> #include <utility> #include <algorithm> #include <ch...
//Includes #include "filtfilt.c" //Declarations const valarray<size_t> oktypes = {1u,2u,101u,102u}; const size_t I = 3u, O = 1u; size_t dim, P, Q; //Description string descr; descr += "Filters each vector (1D signal) in X,\n"; descr += "forwards and then backwards, using\n"; descr += "IIR filter coefficients in vecto...
/* ******************************************************************************* * * Copyright (C) 2007-2014, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * file name: icuzdump.cpp * encoding:...
#include "pch.h" #include "test.h" using namespace ang; using namespace ang::graphics; template<typename T> void parse_vector(cstr_t const& code, windex& i, T&); template<> void parse_vector(cstr_t const& code, windex& i, maths::float4& out) { out.set<0>(text::parser::to_floating(code, i)); text::parser::see...
// SoftwareElement.cpp: implementation of the CSoftwareElement class. // // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved // ////////////////////////////////////////////////////////////////////// #include "precomp.h" #include "SoftwareElement.h" #include <CRegCls.h> #include <WBEM...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2020, PickNik Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
#include <arpa/inet.h> #include "connect.h" #include <fcntl.h> #include "iomanage.h" #include "log.h" #include <netdb.h> #include "network.h" #include "socks5.h" #include <stdlib.h> #include <unistd.h> std::ostream &operator<<(std::ostream &out, const struct sockaddr &sa) { static char buffer[256]; if (sa.sa_f...
#include "implicitbasisfunction.h" #include <cmath> #include "random_gen.h" using namespace anl; std::map<std::string, EInterpTypes> CImplicitBasisFunction::InterpMap = { {"NONE", NONE}, {"LINEAR", LINEAR}, {"CUBIC", CUBIC}, {"QUINTIC", QUINTIC} }; std::map<std::string, EBasisTypes> CImp...
/**************************************************************************** This file is part of the wolfenqt project on http://qt.gitorious.org. Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).* All rights reserved. Contact: Nokia Corporation (<EMAIL>)** You may use this file under the terms of...
#include "AudioStream_F32.h" audio_block_f32_t * AudioStream_F32::f32_memory_pool; uint32_t AudioStream_F32::f32_memory_pool_available_mask[6]; uint8_t AudioStream_F32::f32_memory_used = 0; uint8_t AudioStream_F32::f32_memory_used_max = 0; audio_block_f32_t* allocate_f32_memory(const int num) { static bool firstTi...
/* * This file is part of the Simutrans project under the Artistic License. * (see LICENSE.txt) */ #include "zstd_file_rdwr_stream.h" #include "../../dataobj/environment.h" #include "../../simdebug.h" #include "../../simmem.h" #include <zstd.h> #define ZSTD_FILE_BUF_SIZE (1 << 20) // 1MiB zstd_file_rdwr_stream...
#include "common.h" gtGUIStaticTextImpl::gtGUIStaticTextImpl( gtGraphicsSystem* d ): m_font( nullptr ), m_textMesh( nullptr ), m_mainSystem( nullptr ), m_modelSystem( nullptr ), m_gs( d ), m_gui( nullptr ), m_length( 0.f ), m_height( 0.f ), m_showBackground( true ) { m_type = gtGUIObjectType::Text; m_mainSy...
/* main.cc */ #include <queue> #include <stack> #include <cvc4/cvc4.h> #include "heading.h" #include "sygma.h" using namespace CVC4; // prototype of bison-generated parser function int yyparse(); const int BOUND = 10; // max call depth std::map<string, func_def*> ftable; std::map<string, Expr> vartable; std::ma...
#include "../../AsyncTasks.h" #include "BasicInput.h" #include "Random.h" /* statusToName - Convert a AsynchTask status value into a printable string Author: <NAME> Created: 10/01/2017 Modified: 10/01/2017 param[in] pStatus - The AsynchTasks::ETaskStatus to convert to a string return const c...
// 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 "content/browser/loader/redirect_to_file_resource_handler.h" #include "base/bind.h" #include "base/file_util.h" #include "base/files/file_ut...
/**************************************************************************** FileName [ Bezier_Curver_Plotter.cpp ] Synopsis [ Implementation of a bezier curver plotter ] Author [ Ting-Wei (<NAME> ] Copyright [ Copyleft(c), NTUEE, NTU, Taiwan ] *************************************************...
// // Copyright (c) 2021 <NAME> <alban.fichet at gmx.fr> // 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 //...
#include "config.h" #include "lab1.h" #include "SDL2/SDL.h" #include <vector> #include <cstring> #include <glm/glm.hpp> #include <glm/vec3.hpp> // glm::vec3 #include <glm/vec4.hpp> // glm::vec4 #include <glm/mat4x4.hpp> // glm::mat4 #include <glm/gtc/matrix_transform.hpp> // glm::translate, glm::rotate, glm::scale, glm...
#include <iostream> #include <string> using namespace std; const int TMXVLIBROS = 10; const int TMXVCLIENTES = 10; const int TMXVVENTAS = 10; // Struct que representa un libro struct libro{ int codigo; string titulo; double precio; }; //Struct que representa un cliente struct cliente{ int codigo; string n...
// // Mach7: Pattern Matching Library for C++ // // Copyright 2011-2013, Texas A&M University. // Copyright 2014 <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: // // * Redi...
#include "Utils.hpp" #include <random> #include <chrono> using namespace maps; // helper functions template<int Idx, int Sgn> static inline bool clip(const Eigen::Vector3f& iOrigin, const Eigen::Vector3f& iDirection, const Eigen::Vector3f& iPlanePoint, Eigen::Vector3f& oOrigin, Eigen::Vector3f& oEndPoint, ...
#include <chrono> #include <errno.h> #include <sys/stat.h> #include <sys/types.h> #include <algorithm> #include <chrono> #include <cstdlib> #include <fstream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <nlohmann/json.hpp> #include <chainerx/array.h> #include <chainer...