text
stringlengths
8.71k
38.4k
/* * strategy_keepvalue.cpp * * Created on: 20. 10. 2019 * Author: ondra */ #include "strategy_leveraged_base.h" #include <chrono> #include <imtjson/object.h> #include "../shared/logOutput.h" #include <cmath> #include "../imtjson/src/imtjson/string.h" #include "sgn.h" using ondra_shared::logDebug; temp...
/* This file is part of the KDE project Copyright 1999-2006 The KSpread Team <<EMAIL>> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at ...
/** * CityEngine SDK Geometry Encoder for Python * * Copyright (c) 2012-2020 Esri R&D Center Zurich * * 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.o...
//===--- AliasAnalysis.cpp - SIL Alias Analysis ---------------------------===// // // 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...
//===--- DestroyHoisting.cpp - Hoisting of address destroys ---------------===// // // 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...
//===--- IAMInference.cpp - Import as member inference system -------------===// // // 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...
#include <iostream> #include <sstream> #include <bitset> #include <fstream> #include <boost/date_time/posix_time/posix_time.hpp> #include <boost/range/algorithm/remove_if.hpp> #include <boost/algorithm/string/classification.hpp> #include <boost/date_time/posix_time/posix_time.hpp> #include <boost/algorithm/string.hpp>...
#ifdef MKL #include "mkl.h" #elif defined(BLASFEO) #include <blasfeo_s_blas_api.h> #elif defined(OPENBLAS) || defined(BLIS) || defined (ACCELERATE) #include <cblas.h> #elif defined(HALIDE) #include "halide_blas.h" #elif defined(RUY) #include "ruy/ruy.h" #elif defined(TVM) #include <unordered_map> #include "tvm/te/sched...
#include <iostream> #include <cstdlib> #include "polynomials.h" #include "lweparams.h" #include "tlwe.h" #include <tuple> #include "mkTFHEparams.h" #include "mkTFHEkeys.h" #include "mkTFHEkeygen.h" #include "mkTFHEsamples.h" #include "mkTFHEfunctions.h" using namespace std; // *************************************...
// Copyright 2018 <NAME> // // Code to emulate Whirlpool protocol compatible devices. // Should be compatible with: // * SPIS409L, SPIS412L, SPIW409L, SPIW412L, SPIW418L // Remotes: // * DG11J1-3A / DG11J1-04 // * DG11J1-91 // // Note: Smart, iFeel, AroundU, PowerSave, & Silent modes are unsupported. // Advanced ...
// --------------------------------------------------------------------------- // // The ab-initio based multiscale library // // S / P H I / n X // // Copyright: Max-Planck-Institute for Iron Research // 40237 Duesseldorf, Germany // // Contact: https://sxlib.mpie.d...
//***********************************************************************// // // // - "Talk to me like I'm a 3 year old!" Programming Lessons - // // // // $Author: DigiBen <EMAIL> // // // // $Program: ...
/* * $Id: TextBox.cpp,v 1.4 2006/10/18 23:53:10 nathanst Exp $ * * TextBox.cpp * HOG * * Created by <NAME> on Mon Apr 12 2004. * Copyright (c) 2004 <NAME> * * * This file is part of HOG. * * HOG is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Licen...
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* The MIT License Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or http://flusspferd.org/contributors.txt) Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
#include <Matrix.h> #include <Vector.h> #include <iostream> #include <math.h> //!Constructor Matrix4x4::Matrix4x4() { //Make Matrix Identity toIdentity(); } //! Destructor Matrix4x4::~Matrix4x4() { //LEAVE BLANK } //! Assignment Constructor Matrix4x4::Matrix4x4( float v00,float v10,float v20,float v30, f...
// --------------------------------------------------------------------------- // This file is part of reSID, a MOS6581 SID emulator engine. // Copyright (C) 2004 <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 ...
#include <iostream> #include <fstream> #include <string> #include <vector> #include <list> #include <array> #include <regex> #include <bitset> typedef long long int ll; typedef std::array<ll, 6> register_t; std::list<std::string> getInputPerLines(std::string); // Part One std::array<ll, 6> addr(ll A, ll B, ll C, std...
#include <array> #include <vector> #include "Eigen/Dense" #include <iostream> #include "dnnl.h" #include <chrono> #include "intgemm.h" #include "aligned.h" #include <unordered_map> #include "fbgemm_tests.h" void printDNNLStatus(dnnl_status_t& status) { if (status == dnnl_success) { std::cout << "MKL success."...
int bv9 ,uva ,//f8 c , /*0S*/Q ,JlD, //ykai7 eBx,mDuv , //2 Rcan, Fl,uHH //KD ,cEq ,Zh,//QJk kt , auS ,n, J ,yho, r ,wGj /*k9n*/, i1Xc, ZGx, wFjl, rbj,/*TR*/dBvfr,/*1Xt*/UjDj , NYD , PBQo3n ,aBW , i90 ,kr2u,EPf, /*PC*/ N , //P4C stHm, EMmu , yen ,EI ,g , Vy , VQ, kS; void f_f0 (){ { {for /**/(int i...
// Copyright (c) 2021-2022 Glass Imaging Inc. // Author: <NAME> <<EMAIL>> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless ...
#include <ddk_nav_2d/nav2d.h> #include <string> #include <math.h> #define PI 3.14159265 Nav2D::Nav2D() { pnh_ = ros::NodeHandle("~"); // Params pnh_.param<double>("min_recheck_period", min_recheck_period_, 8.0); pnh_.param<double>("server_wait_timeout", server_wait_timeout_, 3.0); pnh_.param<std::string>...
#include <jpl-tags/fiducial_stereo.h> #include <opencv2/opencv.hpp> #include <drc_utils/LcmWrapper.hpp> #include <drc_utils/BotWrapper.hpp> #include <lcm/lcm-cpp.hpp> #include <kdl/tree.hpp> #include <kdl_parser/kdl_parser.hpp> #include <forward_kinematics/treefksolverposfull_recursive.hpp> #include <model-client/mod...
/* -*- 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/. */ // Main header first: #include "ns...
#include "vix_all.h" #include <maya/MPlug.h> #include <maya/MPlugArray.h> #include <maya/MItDependencyGraph.h> #include <maya/MDagPath.h> #include <maya/MPointArray.h> #include <maya/MIntArray.h> #include <maya/MFnNurbsSurface.h> #include <maya/MFnAttribute.h> /*! * @fn meConvMesh::meConvMesh * Constructor for poly...
// split2mono.cpp // // Format description below: // // tree: split2mono // - blob: repos (text file) // <header> // <upstream>... // // <header>:: 'name:' SP <name> LF // <upstream>:: 'upstream:' SP <name> SP <num-upstreams> // SP <commits-size> SP <svnbase-size> LF // // - blob: c...
#include "maprecognizer.h" #include <QDebug> #include <QDateTime> const QList<QColor> obstacleColorList = { QColor(0, 136, 67), QColor(0, 133, 74), QColor(0, 138, 71), QColor(0, 139, 72) }; const QColor catHeadColor = QColor(126, 55, 55); const QString pathToCatIamge = QString("/Users/igorgoremykin/p...
// Copyright (c) 2018 yshurik // // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // // The use in another cyptocurrency project the code is licensed under // Jelurida Public License (JPL). See https://www.jelurida.com/resourc...
/* * vmnmodel.cpp * HypoModel * * Created by <NAME> * University of Edinburgh 2018 * Released under MIT license, see https://opensource.org/licenses/MIT * */ #include "vmnmodel.h" #include "vmnevofit.h" VMNDat::VMNDat(int size) { input1.setsize(size); input2.setsize(size); noisig.setsize(size); } VMNNeur...
#include "abcmesh.h" #include <GL/glew.h> #include <opensubdiv/far/topologyDescriptor.h> #include <opensubdiv/far/primvarRefiner.h> #include <opensubdiv/far/stencilTableFactory.h> #include "abcutils.h" #include <ImathBoxAlgo.h> using namespace OpenSubdiv; typedef Far::TopologyDescriptor Descriptor; AbcMesh::AbcMesh...
#include <cstddef> #include <cstdlib> #include <cstring> #include <ctime> #include <limits> #include <string> #include <type_traits> #include <cmath> #include <cassert> #define ABSL_FALLTHROUGH_INTENDED #define ABSL_NUMERIC_INTERNAL_HAVE_BUILTIN_OR_GCC(x) 0 #define ABSL_HAVE_BUILTIN(x) 0 // #include "numbers.h" // e...
#include "octotiger/unitiger/hydro_impl/reconstruct_kernel_interface.hpp" #pragma GCC push_options #pragma GCC optimize("unroll-loops") template <> inline double min_wrapper<double>(const double& tmp1, const double& tmp2) { return std::min(tmp1, tmp2); } template <> inline double abs_wrapper<double>(const double...
#include "trackerimpl.h" #include "bitset" #include "opencv2/calib3d/calib3d.hpp" #include "dcf_utils.h" TrackerImpl::TrackerImpl(const Marker& marker, uint64_t code, uint32_t dic_bits, const cv::Mat& image, double psr, int tau_s) { psrThreshold = psr; markerWarpSize = tau_s; cornerPatchSize = cv::Size(tau...
/* * BSIDE-ADM20 helper for FlexBV * * V0.1 - October 4, 2018 * * * Written by <NAME> (<EMAIL>) * */ #include <SDL.h> #include <SDL_ttf.h> #include <signal.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <sys/types.h> #include <sys/stat.h> #inc...
/* Copyright (c) 2009 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed under the BSD (revised) open source license */ #include <fstream> #include <vector> #include <float.h> #include <netdb.h> #include <string.h> #include <stdio.h> #include <assert.h> #inc...
// Include standard headers #include <stdio.h> #include <stdlib.h> #include <string.h> #include <cmath> // Include GLEW #include <GL/glew.h> // Include GLFW #include <glfw3.h> GLFWwindow* window; float width=800.0f; float height=600.0f; // Include GLM #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> us...
#include "sra_stream.h" #include "file_util.h" #include <iostream> #include <unistd.h> // For sleep #include <time.h> // For nanosleep #ifdef _OPENMP #include <omp.h> // For omp_get_num_threads() #endif // _OPENMP // For the num_gen datastructure and helper functions #include <klib/num-gen.h> #include <vdb/manager...
/*** ** * File: Parser.cpp * Created: Dec 12, 2009 4:05 PM * * Author: <NAME> <<EMAIL>> * * Copyright 2009 <NAME>, <NAME>, <NAME> * Copyright 2011-12 <NAME>, <NAME>, <NAME> * * This file is part of Reptile (version 1.1) * * Reptile is free software: you can redistribute it and/or modify * it under ...
/** * @file * @brief Implementation of module TrackingMultiplet * * @copyright Copyright (c) 2020 CERN and the Corryvreckan authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privileges and immun...
/* * This program creates a simple network which uses an ADR algorithm to set up * the Spreading Factors of the devices in the Network. */ #include "ns3/point-to-point-module.h" #include "ns3/forwarder-helper.h" #include "ns3/network-server-helper.h" #include "ns3/lora-channel.h" #include "ns3/mobility-helper.h" #i...
#include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> #include <netinet/in.h> #include <unistd.h> #include <errno.h> #include <stdio.h> #include <arpa/inet.h> #include <string.h> #include <sqlite3.h> #include <string> #include "sqlite_orm.h" #include <iostream> #include <fcntl.h> using namespace std; us...
#include <iostream> #include <fstream> #include <string> #include <cmath> #include <cstdlib> #include <vector> #include <memory> #include <random> #include <omp.h> #include <unistd.h> typedef float Real; template <class T> T clamp(T x, T xmin, T xmax) { if(x < xmin) return xmin; else if(x > xmax) return xma...
/* * bme280.cpp * * Created on: 11.12.2017 * Author: thomas */ #include "include/BME280.h" static char tag[] = "BME280"; #define OVERSAMPLING_SETTINGS UINT8_C(0x07) /* To identify filter and standby settings selected by user */ #define FILTER_STANDBY_SETTINGS UINT8_C(0x18) void BME280::init() { i2cBu...
// Steady 1D Nozzle using SIMPLE and SIMPLER, upwind differencing // See Versteeg, An Introduction to Computational Fluid Dynamics, Example 6.2 // <NAME> #include <math.h> #include <omp.h> #include <string.h> #include <array> #include <iostream> #include <vector> // Uncomment or comment this to enable or disable the...
//===- MipsCallLowering.cpp -------------------------------------*- C++ -*-===// // // 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 // //===---------------------------...
// // BlstmComputerTest.cpp // MNNTests // // Created by MNN on 2020/05/24. // Copyright © 2018, Alibaba Group Holding Limited // #include <memory> #include "MNNTestSuite.h" #include "TestUtils.h" #include "backend/cpu/CPUBackend.hpp" #include "backend/cpu/compute/BlstmComputer.hpp" #include "core/Backend.hpp" u...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
// This program loads images, applies algorithms to them, and saves them. // Use -ld and -st to store images in numbered registers // Copyright <NAME>, 2009-2022. // ImgFix -in in.jpg -despecklering 13 1 190 1 -threshold 189 -blur 3 1 -out out.png // For making alpha cut-out of signature written with black ink on whit...
// View.cpp : implementation of the CView class // ///////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include "View.h" #include "JobManager.h" #include "FormatHelper.h" #include <algorithm> #include "IFrame.h" #include "ClipboardHelper.h" #include "...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAME>....
/* * FileUtil.cc : part of the Mace toolkit for building distributed systems * * Copyright (c) 2011, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are ...
#include "Components/DeformMeshComponent.h" #include "PrimitiveViewRelevance.h" #include "RenderResource.h" #include "RenderingThread.h" #include "PrimitiveSceneProxy.h" #include "Containers/ResourceArray.h" #include "EngineGlobals.h" #include "VertexFactory.h" #include "MaterialShared.h" #include "Materials/M...
#include <iostream> #include <cmath> #include <fstream> #include <vector> #define GLM_FORCE_RADIANS #include <glm/glm.hpp> #include <glm/gtx/transform.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glad/glad.h> //#include <FTGL/ftgl.h> #include <GLFW/glfw3.h> #include <SOIL/SOIL.h> using namespace std; stru...
/******************************************************************************** * * Copyright (c) 2018 ROCm Developer Tools * * MIT LICENSE: * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the So...
#include "VegaMain.h" #include "Tournament.h" extern RoundData TD; extern TeamArchive player[N_PLAYER_MAX+1]; extern VectorMap<String, TeamArchive> db; bool Contains(const String& text, const String& substr) { for(const char *s = text; s <= text.End() - substr.GetLength(); s++) if(strncmp(s, substr, subs...
// Copyright 2015/2016 Yahoo Inc. // Licensed under the BSD license, see LICENSE file for terms. // Written by <NAME> // Mathilda - (Beta) A library for making web tools that scale // Doxygen mainpage /*! \mainpage Mathilda * * \section intro_sec Introduction * * Please see the <a href="md_README.html">README</a>...
//==- IdempotentOperationChecker.cpp - Idempotent Operations ----*- C++ -*-==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------------...
/************************************************************** * * 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 y...
/* * Copyright (c) 2015, 2021, 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 ...
/** *----------------------------------------------------------------------------- * Title : SMuRF Data Processor * ---------------------------------------------------------------------------- * File : SmurfProcessor.cpp * Created : 2019-09-27 *----------------------------------------------...
/* Minetest Copyright (C) 2010-2015 kwolekr, <NAME> <<EMAIL>> Copyright (C) 2010-2015 paramat, <NAME> This program 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 ...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
// -*- compile-command: "g++ -std=c++11 -Wno-pmf-conversions -Wall -Werror -Weffc++ -pedantic -DINCLUDE_PROC_MAIN `mysql_config --cflags` -o procedure procedure.cpp `mysql_config --libs`" -*- #include "procedure.hpp" #include "bindstack.hpp" // This seems like too common a name to not possibly conflict with another A...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #include "cbase.h" #include <KeyValues.h> #include "cs_weapon_parse.h" #include "cs_shareddefs.h" #include "weapon_csbase.h" #include "icvar....
/** @file bench.cpp */ /* * Copyright (C) 2010 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope...
/* * File: ft_index_data.cpp * Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #include "common/sedna.h" #include "tr/ft/ft_index_data.h" #include "common/xptr.h" #include "tr/vmm/vmm.h" #include "tr/executor/base/tuple.h" #ifdef SE_ENABLE_DTSEARCH #include...
//===--- RewriteSystem.cpp - Generics with term rewriting -----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE....
/* Copyright 2008-2009 Uppsala University * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
#include "../../include/Pass/loop_unroll.h" #include <algorithm> #include <map> #include <queue> #include <set> #include <vector> #include "../../include/ir_struct.h" using namespace std; // 展开次数 const int EXTEND_TIME = 16; map<IRBasicBlock*, int> bb_id; map<int, IRBasicBlock*> id_bb; template <...
#include "analysis/ClassHierarchyAnalysis.hh" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/IR/CallSite.h" #include "llvm/IR/Constants.h" #include "llvm/IR/Module.h" #include "llvm/IR/Value.h" #include "llvm/Pass.h" #include "llvm/Support/raw_ostream.h" ...
//===--- PropertyUnification.cpp - Rules added w/ building property map ---===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE....
int K , EE, m, S ,T9 , Gr , kH, xkzM ,/*s*/ aWF //en ,Jl, n7L, k3E , M3T , VaN ,a0R,Q,x9n ,DAGdsd , Hi , Rq , MgIAl , a,at , I1k ,/**/ Keb, YdK , hIzrAjRx,i, wb0V , wQg ,//W wV , ZFezS, XdIS , EejI, LkU , U9iSljq/*q*/, cKe,/*7D*///6nE3 h6Wz , vwQZ//nZ , Jt0 , TF, ehRU,FwZgI,EEa ,o, Kt/*7r*/ ,...
/* Copyright (C) 2018Intel Corporation SPDX-License-Identifier: BSD-3-Clause */ // ROS Includes #include <ros/ros.h> #include <ros/console.h> #include <ros/topic_manager.h> #include "ros/network.h" #include "ros/xmlrpc_manager.h" #include "XmlRpc.h" #include <thread> #include <map> #include <vector> #include <c...
#include "source/GcLib/pch.h" #include "DnhCommon.hpp" #include "DnhGcLibImpl.hpp" #if defined(DNH_PROJ_EXECUTOR) //******************************************************************* //ScriptInformation //******************************************************************* const std::wstring ScriptInformation::DEFAUL...
/* Modified from ex16p.cpp * ref: https://github.com/mfem/mfem/issues/1811 * https://github.com/mfem/mfem/issues/1720#issuecomment-709505317 * * usage: * Explicit: mpirun -np 1 ./inhomogeneousBdc -rs 0 -rp 0 -s 11 -dt 0.001 -o 1 * Implicit: mpirun -np 1 ./inhomogeneousBdc -rs 0 -rp 0 -s 3 -dt 0.0...
/** * GRAPHLAB implementation of Gaussiabn Belief Propagation Code See * algrithm description and explanation in: <NAME>, Gaussian * Belief Propagation: Theory and Application. Ph.D. Thesis. The * Hebrew University of Jerusalem. Submitted October 2008. * http://arxiv.org/abs/0811.2518 By <NAME>, CMU. Send any bug...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ // Copyright 2004-present Facebook. All rights reserved. #include <quic/congestion_control/Rbbr.h> #include <folly/Random.h> #...
#include <stdio.h> #include <dirent.h> #include <string.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> #include <iostream> #include "/opt/rocm/rpp/include/rppi.h" #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <time.h> using namespace ...
/**************************************************************************** ** ** This file is part of the LibreCAD project, a 2D CAD program ** ** Copyright (C) 2010 <NAME> (<EMAIL>) ** Copyright (C) 2001-2003 RibbonSoft. All rights reserved. ** ** ** This file may be distributed and/or modified under the terms of t...
enum collision_ObjectType { COLLISION_OBJECT_CUBOID, COLLISION_OBJECT_CAPSULE, COLLISION_OBJECT_QUADPRISM }; struct collision_Cuboid { Vector3 halfSizeAxes[3]; }; struct collision_Capsule { F32 middleHeight; F32 capRadius; Vector3 up; }; struct collision_QuadPrism { Vector3 up; Vector3 x; Vector3 y; Vecto...
// // animate.cpp // VaporAnimation // // Created by <NAME> on 6/14/12. // Copyright (c) 2012 NCAR. All rights reserved. // #include "glutil.h" // Must be included first #include <iostream> #include "animate.h" #include <math.h> #include<vector> using namespace VAPoR; //constructor animate::animate()...
// // main.cpp // Advance_Lane_Detection // // Created by <NAME> on 2/10/17. // Copyright © 2017 <NAME>. All rights reserved. // #include <iostream> #include <time.h> #include "opencv2/highgui.hpp" #include <opencv2/opencv.hpp> #include "Preprocessing.hpp" #include "Lane.hpp" #include "Fitting_Second_Order.hpp" #in...
/* * Copyright (c) 2012-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: * * * Redistributions of source code must retain the above copyright notice, * this list of condi...
/* NRF24L01 library for use with ST's HAL * Author: <NAME>, <EMAIL> * License: MIT license * Date: February 2020 * Revision: 1.0 * * HOW TO USE * - the library requires one SPI peripheral, two GPIO outputs and one GPIO input * - SPI settings: * - mode: full duplex master * - data size: 8 bits * ...
// Dear ImGui: standalone example application for GLFW + OpenGL2, using legacy fixed pipeline // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top o...
// Extensions #include "Engine/Extensions/Default.h" #include "Engine/Input/Gamepad.h" #pragma region Engine includes // Core engine includes #include "Engine Includes/Core.h" #include "Engine Includes/Models.h" #include "Engine Includes/RenderBuffers.h" #include "Engine Includes/Textures.h" // Audio engine using XAu...
#include "CMutualAdapt.h" #include "CAlscAdapt.h" CMutualAdapt::~CMutualAdapt() { if(m_bDeletePointer){ delete m_pIpL; // ip and descriptor delete m_pIpR; delete [] m_pdAutoShapeParamL; // this is transfrom that change a circle to an ellipse delete [] m_pdAutoShapeParamR; } } C...
#include "interpretation-properties.h" inline string ReturntagToString(const ReturnTag &r) { if (r == ReturnTag::ANS) return "ANS"; else if (r == ReturnTag::REWRITE) return "REWRITE"; else if (r == ReturnTag::REF) return "REF"; else if (r == ReturnTag::NX) return "NX"; ...
/* SuperRead pipeline * Copyright (C) 2012 Genome group at University of Maryland. * * 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...
#include "types.h" #include "og/Screen/ogScreen.h" /* Generated from dpostproc .section .sdata2, "a" # 0x80516360 - 0x80520E40 .global lbl_8051D738 lbl_8051D738: .4byte 0x00000000 .global lbl_8051D73C lbl_8051D73C: .float 0.5 */ namespace og { namespace Screen { /* * --...
#include "bethe.h" #include "state.h" #include <stdio.h> /** exceptions **/ const char* exc_NotGroundBase = "not a ground base "; const char* exc_NegativeHoles = "negative number of holes"; const char* exc_Strings = "argument state must not have strings"; const char* exc_NumberDown = "wrong number of down spins in ar...
//Network.cpp #include "Network.h" #include <iterator> #include <cstdlib> #include <ctime> #include <queue> #include <fstream> #include "Exceptions.h" Network::Network(){ size = 0; } Network::Network(const Network &i){ if(neurons != nullptr){ delete[] neurons; } if(index != nullptr){ delete[] index; } size...
// Copyright (c) 2012 The Chromium OS 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 "installer/inst_util.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #i...
// The main ray tracer. #pragma warning (disable: 4786) #include "RayTracer.h" #include "scene/light.h" #include "scene/material.h" #include "scene/ray.h" #include "parser/Tokenizer.h" #include "parser/Parser.h" #include "ui/TraceUI.h" #include <cmath> #include <algorithm> extern TraceUI* traceUI; #include <iostr...
#include "core.h" #include "log.h" #include "core_model.h" #include "micro_op_performance_model.h" #include "branch_predictor.h" #include "stats.h" #include "core_model.h" #include "dvfs_manager.h" #include "subsecond_time.h" #include "micro_op.h" #include "allocator.h" #include "config.hpp" #include "dynam...
/****************************************************************************** * Copyright (C) 2021, Advanced Micro Devices, Inc. All rights reserved. *******************************************************************************/ /*! @file libflame_hbevx.cc * @brief Test application to validate hbevx_2stage(...
/***************************************************************************************** *** MD5Checksum.cpp: implementation of the MD5Checksum class. *** Developed by Langfine Ltd. *** Released to the public domain 12/Nov/2001. *** Please visit our website www.langfine.com *** Any modifications must be clea...
/** * @file * @brief Implementation of [LCIOWriter] module * @copyright Copyright (c) 2017-2020 CERN and the Allpix Squared authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privileges and immuni...
#include <sstream> #include <string> #include <stdio.h> #include <bson.h> #include <uvw.hpp> #include <easy/profiler.h> #include "draconity.h" #include "abstract_platform.h" #include "phrase.h" #include "server.h" #include "transport/server.h" #define align4(len) ((len + 4) & ~3) void draconity_install(); static Dr...
/*========================================================================= Program: Visualization Toolkit Module: TestCheckerboardWidget.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is ...
/** * * main.cpp textures_usage * * Covers the following: * -creating multiple textures * -loading multiple textures using a staging buffer * -mip-map generation for the textures * -setting up the depth buffer * -enabling MSAA and sample shading * -a simple PBR shader with multiple lights */ #define GLFW_INC...