text
stringlengths
5.71k
33.7k
#include "CTextureManager.h" #include <sstream> // Written by <NAME>, Fanshawe College, 2010 // <EMAIL> // It may be distributed under the terms of the MIT License: // http://opensource.org/licenses/MIT // (Also, it would be Supah Cool if I heard this was remotely useful!) // Use this code at your own risk. It is inde...
#include <Rcpp.h> using namespace Rcpp; NumericVector col_means( NumericMatrix& X ) { int nCols = X.ncol(); NumericVector out = no_init(nCols); for( int j=0; j < nCols; j++ ) { NumericMatrix::Column tmp = X(_, j); out[j] = mean(tmp); } return out; } // Returns squared euclidean distance // [[Rcpp::...
#include <RcppArmadillo.h> #include <chrono> #include <ctime> #include "AFTtv_utilities.h" // [[Rcpp::depends(RcppArmadillo)]] double AFTtv_LN_loglik(const arma::vec &logVyL, const arma::vec &logVyU, const arma::vec &logVc0, const arm...
#include <opencv2/opencv.hpp> #include <iostream> #include <cstdlib> //Note: for K-Means algorithm in-depth theory, refer to the K-Mean algorithm. //Meng-Hee-Heng algorithm: a better approach to K-Means. //From the theory, the K-Means is an algorithm that, inputted with K possible cluster into the image //choosen by t...
#include "instruction.h" map<unsigned int, string> Instruction::re_jump = { {2, "j"}, {3, "jal"} }; map<unsigned int, string> Instruction::re_branch = { {0x01, "bgez"}, {0x11, "bgezal"}, {0x10, "bltzal"}, {0x00, "bltz"} }; map<unsigned int, string> Instruction::re_op_i_0 = { {0x08, "addi"}, ...
#include "parser.h" #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/phoenix.hpp> namespace pants { namespace parser { namespace qi = boost::spirit::qi; namespace ascii = boost::spirit::ascii; namespace phx = boost::phoenix; using namespace pants::ast; typedef std::string::const_iterato...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
// // Created by harper on 8/18/19. // #include <gtest/gtest.h> #include "byteutils.h" #include "sboost.h" using namespace sboost; void prepareData(uint8_t *); TEST(SBoost, Equal) { uint8_t bitpacked2[192]; prepareData(bitpacked2); uint64_t result2_exp[8] = { 0x218012640444A10, 0xA204000420...
#include "glm/gtc/matrix_transform.hpp" #include "pixelboost/debug/assert.h" #include "pixelboost/debug/log.h" #include "pixelboost/file/fileHelpers.h" #include "pixelboost/framework/engine.h" #include "pixelboost/graphics/camera/camera.h" #include "pixelboost/graphics/camera/viewport.h" #include "pixelboost/graphics/...
/*************************************************************************** copyright : (C) 2013 by <NAME> email : <EMAIL> ***************************************************************************/ /*************************************************************************** * T...
int FgI, A7GO,VU , //oqv2 ufq , YZ//HJK , TO ,t5X,zzOg , tw , d9 , Q,jon, Hut9,t8 ,//TByq pCJJdL,/*Zc*/bP5L /*e*/,bAsO , GEkQas, NbD, tZ,/*bge*/r , eWK //sb ,k37UF, yD8B, RG ,yatc, zQdH //WW ,T ;void /*p3I*/ f_f0 () { return ; {return ; {if ( true); else /*R5*/ if ( true) {{ }} else return ; {...
// // Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved. // // 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 ...
/* * Audacious FFaudio Plugin * Copyright © 2009 <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Copyright © 2011 <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 o...
#include <fstream> #include <iostream> #include <sstream> #include <string.h> #include <vector> #include <vapor/CFuncs.h> #include <vapor/FileUtils.h> #include <vapor/OptionParser.h> #include <vapor/VDCNetCDF.h> using namespace Wasp; using namespace VAPoR; struct opt_t { OptionParser::Dimension3D_T dim; std:...
#include "AES-Sbox-Encryption.h" #include<iostream> using namespace std; BYTE Sbox[256] = { //0 1 2 3 4 5 6 7 8 9 A B C D E F 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, //0 0xca, 0x82, 0xc9, 0x7d, 0...
#pragma once #include <Gizmos.h> #include <glm\ext.hpp> #include "PhysicsApp.h" #include "Texture.h" #include "Font.h" #include "Input.h" #include "Sphere.h" #include "Plane.h" #include "Box.h" #include "Spring.h" #include "Wheel.h" #include "Softbody.h" #include "CarBody.h" PhysicsApp::PhysicsApp() : m_physicsScene...
/* * MusicPlayer.cpp * A library for MusicShield * * Copyright (c) 2015 waveshare.net * Website : waveshare.net * Author :still falling leaves * Create Time: May 2015 * Change Log : * * The MIT License (MIT) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this ...
#include "GamePlayScreen.h" #include "ScreenIndices.h" #include <algorithm> #include <ctime> #include <iostream> #include <random> #include <SDL/SDL.h> #include <Bengine2/Bengine2.h> #include <Bengine2/BengineErrors.h> #include <Bengine2/IMainGame.h> #include <Bengine2/ResourceManager.h> //#include <Bengine2/Timing....
// WARNING: code is little endian only! #include "BAM2blocks.h" #include "includedefine.h" // using namespace std; BAM2blocks::BAM2blocks() { oBlocks = FragmentBlocks(); //Right syntax to call the default constructor on an object variable, declared but not initialised? cShortPairs = 0; cIntersectPairs = 0; ...
/* This file is part of the package FUNtoFEM for coupled aeroelastic simulation and design optimization. Copyright (C) 2015 Georgia Tech Research Corporation. Additional copyright (C) 2015 <NAME>, <NAME> and <NAME>. All rights reserved. FUNtoFEM is licensed under the Apache License, Version 2.0 (the "Lice...
////////////////////////////////////////////////////////////////////// // Godot Format 0.01 // // WARNING : This program is DESTRUCTIVE, be sure to commit // your code as a backup BEFORE running godot format. // BE SURE to test on a test folder the first time you use it, to make sure // you understand how to use. // Ru...
/* Copyright (C) 2010 <NAME> 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, including commercial applications, and to a...
/** * fwdmodel_qbold.cc - ASE qBOLD curve fitting model * * <NAME>, IBME * * Copyright (C) 2019 University of Oxford */ #include "fwdmodel_qbold.h" #include <fabber_core/fwdmodel.h> #include <fabber_core/priors.h> #include "armawrap/newmat.h" #include <vector> #include <string> #include <complex> using names...
/** * \file PnlWznmOpkRec.cpp * job handler for job PnlWznmOpkRec (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifdef WZNMCMBD #include <Wznmcmbd.h> #else #include <Wznmd.h> #endif #include "PnlWznm...
#include <iostream> // for standard I/O #include <string> // for strings #include <stdlib.h> #include <unistd.h> #include <opencv2/core/core.hpp> // Basic OpenCV structures (cv::Mat) #include <opencv2/highgui/highgui.hpp> // Video write #include "opencv2/imgproc.hpp" #include "opencv2/imgcodecs.hpp" #include...
/* * @file read_rom_symbols.c * @date 2 Apr 2018 * @author <NAME> * @brief Program to help generate a ROM symbols object file for TM4C129 devices * @details The sequence is: * 1) The include_rom.c source file, part of this project, includes <driverlib/rom.h> from TivaWare * 2) include_ro...
#include "int.h" #include "report/report.pb.h" #include <p4/v1/p4data.pb.h> #include <p4/v1/p4runtime.pb.h> #include <p4/v1/p4runtime.grpc.pb.h> #include <p4/config/v1/p4info.pb.h> #include <boost/array.hpp> #include <boost/coroutine2/all.hpp> #include <iomanip> #include <iostream> #include <stdexcept> #include <str...
// Copyright <NAME> 2015 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <cpl/number_theory/square_root.hpp> #include <gtest/gtest.h> #include <cassert> // assert #include...
/**************************************************************************** Copyright (c) 2020 ZenProgramming.com, Ltd. http://www.zenprogramming.com 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 t...
#include <iostream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; #define CAML 1 //左右摄像头载入编号,自己调一下 #define CAMR 0 #define WIDTH 352 //摄像头分辨率设置 #define HEIGHT 288 int cnt = 1;//拍照图片计数 char Leftname[25];//生成图像文件名 char Rightname[25]; CvCapture *cap1 = NULL, *cap2 = NULL; //capture1为left, ...
/** * @file * @brief What's near the player? **/ #include "AppHdr.h" #include "nearby-danger.h" #include <cfloat> #include <cmath> #include "abyss.h" #include "act-iter.h" #include "areas.h" #include "cloud.h" #include "clua.h" #include "coordit.h" #include "delay.h" #include "directn.h" #include "env.h" #include...
/*------------------------------------------------------------------------------- * This node simulates the response of a MOX gas sensor given the GT gas concentration * of the gases it is exposed to (request to simulation_player or dispersion_simulation) * - Gas concentration should be given in [ppm] * - The Pkg r...
/** * @file llexpandabletextbox.cpp * @brief LLExpandableTextBox and related class implementations * * $LicenseInfo:firstyear=2004&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it und...
/* users.cpp * All User related functions * * (c) <NAME> 2017-2019 */ #include <cstdio> // Included for EOF, printf(), FILE*, fopen(), fgets(), feof() and fclose() #include <cstdlib> // srand(), rand() #include <cstring> // Included for memcpy(), strlen() #include <openssl/evp.h> // EVP_MD #includ...
//===--- SubstitutionMap.cpp - Type substitution map ----------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/*** * Software License Agreement: BSD 3-Clause License * * Copyright (c) 2019, NMMI * 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 ab...
// Copyright 2017 <NAME>. All Rights Reserved. #include "StreetMapRuntime.h" #include "StreetMapComponent.h" #include "StreetMapSceneProxy.h" #include "Runtime/Engine/Classes/Engine/StaticMesh.h" #include "Runtime/Engine/Public/StaticMeshResources.h" #include "PolygonTools.h" #include "PhysicsEngine/BodySetup.h" #if...
// I2Cdev library collection - HMC5883L I2C device class // Based on Honeywell HMC5883L datasheet, 10/2010 (Form #900405 Rev B) // 6/12/2012 by <NAME> <<EMAIL>> // Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib // // Changelog: // 2012-06-12 - fixed swapped Y/Z axes // 2...
/// \class SiPixelLorentzAngleCalibration /// /// Calibration of Lorentz angle for the pixel, /// integrated in the alignment algorithms. /// /// Note that not all algorithms support this... /// /// \author : <NAME> /// date : September 2012 /// $Revision: 1.4.2.21 $ /// $Date: 2013/05/31 08:37:12 $ /// (...
/** * @file cpp_containers.cpp * @author <NAME> <<EMAIL>> * @date 01.07.2017 * * @brief Performs operations with c++ STL containers * * * * Coding Standard: * wiki.ros.org/CppStyleGuide * https://google.github.io/styleguide/cppguide.html * * * @bug * * * @todo * * */...
//===-- HexagonTargetObjectFile.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 // //===---------------------------...
#pragma once #include <iostream> #include <fstream> #include "board.hpp" using namespace std; #define sc_w 6400 // 評価値の絶対値が取る最大値 // 3の累乗 #define p31 3 #define p32 9 #define p33 27 #define p34 81 #define p35 243 #define p36 729 #define p37 2187 #define p38 6561 #define p39 19683 #define p310 59049 #define n_patterns...
// Copyright 2006 The Android Open Source Project #include <log/logger.h> #include <log/logd.h> #include <log/logprint.h> #include <log/event_tag_map.h> #include <cutils/sockets.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <time.h> #...
//------------------------------------------------- // // Class: DTTFFEDReader // // L1 DT Track Finder Raw-to-Digi // // // // Author : // <NAME> UAM Madrid // //-------------------------------------------------- #include "EventFilter/DTTFRawToDigi/interface/DTTFFEDReader.h" #include "DataFormats/Common/int...
// Surface.cpp /* * Copyright (C) 2013-2014 <NAME> * * This software has been released under the MIT License. * See the "License.txt" file in the project root directory * for more information about this license. * */ #include "Surface.h" #include "Spline.h" // TODO: Trace planes cuting a double-cone exactly i...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
// Copyright 2017 Google Inc. // Copyright 2020 The Open GEE Contributors // // 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 // // Unles...
/** * Copyright (c) 2018, <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 a...
#include "bubble_offset.h" #include "point_cloud_utilities.h" #include "geometrycentral/numerical/linear_algebra_utilities.h" #include "geometrycentral/surface/edge_length_geometry.h" #include "geometrycentral/surface/halfedge_factories.h" #include "geometrycentral/surface/intrinsic_mollification.h" #include "geometry...
#include "../include/push_and_swap.hpp" #include <queue> const std::string PushAndSwap::SOLVER_NAME = "PushAndSwap"; PushAndSwap::PushAndSwap(MAPF_Instance* _P) : MAPF_Solver(_P), flg_compress(true), disable_dist_init(false), emergency_stop(false) { solver_name = PushAndSwap::SOLVER_NAME; } ...
/**************************************************** * RoseBin :: Binary Analysis for ROSE * Author : tps * Date : 01 Oct07 * Decription : GMLGraph Visualization ****************************************************/ // tps (1/14/2010) : Switching from rose.h to sage3 changed size from 17,9 MB to 8,4MB #include "s...
/* * Copyright (c) 2009 <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 "CompareData.h" // no need to share with other files static AMR_t amr1, amr2; static char *FileName_In1=NULL, *FileName_In2=NULL, *FileName_Out=NULL; static bool UseCorner=false; static int NField1=-1, NField2=-1, NMag1=-1, NMag2=-1, NParAtt1=-1, NParAtt2=-1, Format1=-1, Format2=-1; static lo...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "xmpp/test/xmpp_sample_peer.h" #include <fstream> #include <sstream> #include "base/util.h" #include "base/test/task_test_util.h" #include "control-node/control_node.h" #include "io/test/event_manager_test.h" #include "sandesh/sandesh_...
#include <ros/ros.h> #include <message_filters/subscriber.h> #include <message_filters/synchronizer.h> #include <message_filters/sync_policies/approximate_time.h> //Publish Messages #include <opt_msgs/RoiRect.h> #include <opt_msgs/Rois.h> #include <std_msgs/String.h> #include <sensor_msgs/CameraInfo.h> #include <opt_m...
#include <arpa/inet.h> #include <iostream> #include <fstream> #include <string> #include <string.h> #include <sstream> #include <map> #include <set> #include <vector> #include <sys/time.h> #include "gm_graph.h" #include "gm_util.h" #include "gm_lock.h" // The following option uses parallel prefix s...
#include<Windows.h> #include<SDL.h> #include<SDL_image.h> #include<string> #include<time.h> using namespace std; const int SCREEN_WIDTH = 480; const int SCREEN_HEIGHT = 690; SDL_Window* g_window = NULL; SDL_Renderer* g_renderer = NULL; //character SDL_Surface* charac_surface = NULL; SDL_Texture* charac_text...
/*============================================================================ * nanoscheme * Copyright (c) 2019-2020 - <NAME> * * File name: parser.cpp * Description: Implementation of parsing functions * *==========================================================================*/ #include "expr.h" /* P...
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #include "NXUserDetectorConstruction.hh" #include "NXUIMessenger.hh" #include "NXChamberParameterisation.hh" #include "NXMagneticField.hh" #include "NXSensi...
/*===================== begin_copyright_notice ================================== Copyright (c) 2017 Intel Corporation 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, includi...
// // Copyright 2021 Splunk 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 i...
/* Copyright (c) 2012, 2016 Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distributed in the ...
/*++ Copyright (C) 2020 Autodesk 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 conditions and the ...
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights 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 opti...
#include "GenScene.h" #include <UEngine/Engine.h> #include <_deps/imgui/imgui.h> #include <UScene/core.h> #include <UScene/tool.h> #include "Cmpt/PathTracerAgency.h" #include <fstream> #include <sstream> #include <string> using namespace Ubpa; using namespace std; namespace Ubpa::detail::dynamic_reflection { ...
/* * Copyright 2010 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...
/* Copyright (C) 2010-2020 by Arm Limited. All rights reserved. */ #include "Child.h" #include "CapturedXML.h" #include "Command.h" #include "ConfigurationXML.h" #include "CounterXML.h" #include "Driver.h" #include "Drivers.h" #include "ExitStatus.h" #include "ExternalSource.h" #include "ICpuInfo.h" #include "LocalCa...
/* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distributed i...
#include "LightOutputNode.h" #include "Context.h" #include <QJsonDocument> #include <QJsonArray> #include <cmath> #include <array> LightOutputNode::LightOutputNode(Context *context) : OutputNode(context, QSize(300, 300)) , m_geometry2D(QOpenGLTexture::Target2D) { } void LightOutputNode::init(QString url) { ...
#include <algorithm> #include <memory> #include <iostream> #include <vector> #include <string> #include <sstream> #include <queue> #include <stack> template <typename T> class Node { public: std::shared_ptr<Node> left,right; T value; size_t height; Node(T value) :value(value), height(0) {} Node() :height(0...
#include "opae_sim.h" #include <iostream> #include <fstream> #include <iomanip> #define CCI_LATENCY 8 #define CCI_RAND_MOD 8 #define CCI_RQ_SIZE 16 #define CCI_WQ_SIZE 16 #define RESET_DELAY 4 #define ENABLE_DRAM_STALLS #define DRAM_LATENCY 24 #define DRAM_RQ_SIZE 16 #define DRAM_STALLS_MODULO 16 uint64_t timestam...
/* KeePass Password Safe - The Open-Source Password Manager Copyright (C) 2003-2021 <NAME> <<EMAIL>> 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 (a...
#include "pch.h" #include "test_application.h" #include "xray/buffer_string.h" #include "xray/engine/engine.h" #include <xray/core/sources/fs_file_system.h> #include <xray/core/core.h> #include <xray/intrusive_list.h> #include <stdio.h> #include <xray/os_preinclude.h> #undef NOUSER #undef NOMSG #unde...
/* * Most of this code is hacky, not well though out, and could do with a revision. But hey, it wasn't serious. * Copyright (c) 2008 <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...
#include <gtest/gtest.h> #include <gmock/gmock.h> #include "RayLib/Matrix.h" //#include "RayLib/Constans.h" using ::testing::ElementsAre; using ::testing::ElementsAreArray; using ::testing::FloatEq; using ::testing::FloatNear; static Matrix4x4 testMatrix(1.0f, 5.0f, 9.0f, 13.0f, 2.0f, 6...
// Copyright 2019 The Alcor Authors. // // 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...
//////////////////////////////////////////////////////////////////////// // // This file is part of pdn-avif, a FileType plugin for Paint.NET // that loads and saves AVIF images. // // Copyright (c) 2020, 2021 <NAME> // // This file is licensed under the MIT License. // See LICENSE.txt for complete licensing and attri...
/** * Self-Organizing Maps on a cluster * Copyright (C) 2013 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later ver...
#include "Vertex.h" #include "HalfEdge.h" #include "Edge.h" #include "Face.h" #include "Mesh.h" #include "FormTrait.h" #include <algorithm> #include <fstream> #include <cstring> #include <iostream> #include <sstream> #include <map> #include <iomanip> #include <limits> #include <float.h> using names...
#include <gtest/gtest.h> #include <gmock/gmock.h> #include <ziopp/upath.h> TEST(upath, absolute_and_relative) { ziopp::upath path{ std::string{ "x" } }; ASSERT_TRUE(path.relative()); ASSERT_FALSE(path.absolute()); path = ziopp::upath{ std::string{ ".." } }; ASSERT_TRUE(path.relative()); ASSERT_FALSE(path.absolu...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 201...
# include <iostream> # include <stdio.h> # include <stdlib.h> # include <math.h> # include <string.h> using namespace std; // Funktionen char* minu(int minute); void time(double sun, int &hour, int &minute); void mez(double &rmez, double rmoz, double &smez, double smoz, double longitude, double delta_long, double zone...
/* Copyright (c) <2003-2016> <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...
// Fuel Cycle Component Parent Class #include "fccomp.h" /**************************************************/ /*** Fuel Cycle Component Classes And Functions ***/ /**************************************************/ /***************************/ /*** Protected Functions ***/ /***************************/ void brigh...
/* * Copyright 2017 <NAME> * * 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 ...
// us #include "ctransport.hh" #include "thread_pool.hpp" // standard includes #include <iostream> #include <string> #include <future> #include <functional> #include <algorithm> // ROOT includes #include "TMath.h" #include "TFile.h" #include "TNtupleD.h" //******* // Collection transport //******* Ctransport::Ctran...
#include "dynamic_obstacle_avoidance_planner/obstacle_tracker_kf.h" KalmanFilter::KalmanFilter(void) { sigma_a = 0.1; } Eigen::Matrix4d KalmanFilter::get_f(double dt) { Eigen::Matrix4d f; f << 1.0, 0.0, dt, 0.0, 0.0, 1.0, 0.0, dt, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0; re...
// // Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved. // // 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 /...
#include "ai/navigator/path_planner/theta_star_path_planner.h" #include "util/logger/init.h" /** * This file contains the implementation of a theta star path planner * which returns an optimal path that avoids obstacles */ // constructor ThetaStarPathPlanner::ThetaStarPathPlanner(Field field, ...
/* * The MIT License (MIT) * * Copyright (c) 2014 <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,...
#include "stdafx.h" #include "CSfmathMatrix.h" #include <math.h> #include <xmmintrin.h> // Shuffle Parameters #define SHUFFLE_PARAM(x,y,z,w) ((x) |(y) <<2 | ((z) <<4) | ((w)<<6)) #define _mm_replicate_x_ps(v) _mm_shuffle_ps((v),(v),SHUFFLE_PARAM(0,0,0,0)) #define _mm_replicate_y_ps(v) _mm_shuffle_ps((v),(v),SHUFFLE_PA...
/******************************************************************************* Copyright (c) 2011 Yahoo! 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 ...
/* umodel.cpp */ #include "umodel.hpp" #include <cmath> /*** UMODEL SCORE ADJUSTMENT METHODS ***/ void UModel::SetMatchProbabilities(double p) { double ip = 1.0 - p; ip = ip / 3.0; for (int i = 1; i < 5; ++i) { for (int j = 1; j < 5; ++j) { if (i == j) matchProbabilities[i][j] = p; ...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "CurveIntersection.h" #include "Intersections.h" #include "IntersectionUtilities.h" #include "LineIntersection.h" #include "LineUtilities.h" #include "QuadraticLineSeg...
#include <iostream> #include <iomanip> #include <sstream> #include <array> #include <cctype> #include <pxr/usd/usd/schemaRegistry.h> #include <pxr/usd/usd/prim.h> #include <pxr/usd/sdf/layer.h> #include <pxr/usd/sdf/layerUtils.h> #include <pxr/usd/sdf/fileFormat.h> #include <pxr/usd/sdf/primSpec.h> #includ...
#include <mirrage/asset/asset_manager.hpp> #include <mirrage/asset/embedded_asset.hpp> #include <mirrage/asset/error.hpp> #include <mirrage/utils/log.hpp> #include <mirrage/utils/md5.hpp> #include <mirrage/utils/template_utils.hpp> #include <physfs.h> #include <cstdio> #include <cstring> #ifdef _WIN32 #include <di...
#include "dyn/emu.hh" #include "arm_syscall_list.hh" #include "ir/canon/bb.hh" #include "ir/canon/linearize.hh" #include "ir/canon/simplify.hh" #include "ir/canon/trace.hh" #include "utils/misc.hh" #include "backend/graph-regalloc.hh" #include "backend/linear-regalloc.hh" #include "utils/bits.hh" #include "mach/aarch64...
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2018 RDK Management * * 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...
/* * cop0.cpp * * <NAME> * 12/20/2020 * * Coprocessor 0 - System Control Coprocessor. * Exception/Interrupt handling. */ #include "cpu/cop0.hh" #include <string> #include <map> #include "util/psxutil.hh" #include "cpu/cpu.hh" #include "imgui/imgui.h" #define COP0_INFO(...) PSXLOG_INFO("Cop0", __VA_ARGS__);...
//===- AlphaInstrInfo.cpp - Alpha Instruction Information -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...