text
stringlengths
3.08k
22k
#include "ppl/cv/x86/cvtcolor.h" #include "ppl/cv/x86/test.h" #include <memory> #include <gtest/gtest.h> #include "ppl/cv/debug.h" enum Color2GrayMode {BGR2GRAY_MODE, RGB2GRAY_MODE}; template<typename T, int32_t nc, Color2GrayMode mode> void Color2GRAYTest(int32_t height, int32_t width) { std::unique_ptr<T[]> src(...
// Memory-backed files used for disk images #include "SAMdisk.h" #include "MemFile.h" #ifdef HAVE_ZLIB #include <zlib.h> #include "unzip.h" #endif #ifdef HAVE_BZIP2 #define BZ_NO_STDIO #include <bzlib.h> #endif #ifdef HAVE_LZMA #include <lzma.h> #endif std::string to_string(const Compress& compression) { switc...
/******************************************************************************* ** ** UNIT ** ** Version: 2.1 ** ** Author: 10/30/02 ** ** Date: 02/10/30 ** ** File: IM_JoinUpMax.cc ** ******************************************************************************* ** ** DESCRIPTION routines fo...
/********************* */ /*! \file bv_to_bool.cpp ** \verbatim ** Original author: <NAME> ** Major contributors: none ** Minor contributors (to current version): none ** This file is part of the CVC4 project. ** Copyright (c) 2009-2013 New York University a...
/* * Utils.cpp * * Created on: Mar 28, 2014 * Author: <NAME> */ #include <iostream> #include <cmath> #include "PnPProblem.h" #include "Utils.h" #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/calib3d/calib3d.hpp> // For text int fontFace = cv::FONT_ITALIC; // For circles int lineType = 8; int ...
#include <errno.h> #include <fcntl.h> #include <getopt.h> #include <libgen.h> #include <linux/can.h> #include <linux/can/raw.h> #include <linux/if_tun.h> #include <net/if.h> #include <signal.h> #include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #inc...
// Copyright (c) 2012-2017 <NAME> <<EMAIL>> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, pu...
// Copyright (c) 2021-2022 Gaia Platform LLC // SPDX-License-Identifier: MIT #include <memory> #include <cmath> #include <cstdlib> #include "rclcpp/rclcpp.hpp" #include "rclcpp/logger.hpp" #include "rclcpp_components/register_node_macro.hpp" #include "tf2/utils.h" #include "iac_common/pubsub.hpp" #include "lgsvl_m...
#include<stdio.h> #include<string.h> #include<stdlib.h> typedef struct{ char l[1000]; int ln; }s2; void file_reading(s2 file[],int* linecount); void chk(s2 file[],int*intf,int *curve, int*prntf ,int*scnf,int*fpts,int*fgts ,int*ffloat, int*fscnf, int*curly, int*straight,int*flot, int*nt, int*chr, int*pts,i...
/* * gTexture.cpp * * Created on: May 10, 2020 * Author: noyan */ #include "gTexture.h" #include <iostream> #if defined(WIN32) || defined(LINUX) #include <GL/glew.h> #include <GL/gl.h> #include <GL/glu.h> #endif #if defined(APPLE) #include <OpenGL/gl.h> #include <GL/glew.h> #include <OpenGL/glu.h> #include ...
#pragma once //#include "math3d.hpp" #include "wpch.hpp" #include "AeroMath.hpp" #include "../../../VBS3_Git/lib/Debug/debugGui.hpp" #define _DEBUG_AEROSURF (1 && _ENABLE_CHEATS) float const lowSpeedCuoff = 1e-8; #if _DEBUG_AEROSURF void drawWing(Vector3 pos, Matrix3 rot, float a, float aspectRatio );...
/* ----------------------------------------------------------------------------- This source file is part of EOS Multimedia Scripting System For the latest info, see https://github.com/ultimoistante/eos-multimedia-scripting The MIT License (MIT) Copyright (c) 2014-2019 of <NAME> aka ultimoistante of StartupSolutions ...
/* $Id: VBoxDispVrdpTxt.cpp $ */ /** @file * VBox XPDM Display driver */ /* * Copyright (C) 2011-2012 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the...
// <NAME> // Solution to https://www.spoj.com/problems/FLLM/ #include <bits/stdc++.h> using namespace std; typedef long long ll; const ll MOD1 = 1e9 + 9; const ll prime1 = 999983; const ll MOD2 = 1e9 + 7; const ll prime2 = 999979; const ll invprime1 = 943912055; const ll invprime2 = 672490127; const ll MOD3 = 1e9 + 21;...
#include <iostream> #include <fstream> #include <iomanip> using namespace std; const int MAX_SIZE = 50; struct Guest { string DNI; string name; string surname; char confirmation; }; typedef Guest Guests[MAX_SIZE]; typedef struct { int counter; Guests guests; } GuestList; void fileStatus(if...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "wireguardutilswindows.h" #include "leakdetector.h" #include "logger.h" #include "platforms/windows/windo...
// SPDX-License-Identifier: Apache-2.0 // Copyright 2020 Verizon Media /** @file Example of a variant of IPSpace optimized for fast loading. This will build the flat files if given the --build option. This will look up addresses from the flat files given the --find option. Build flat files from "da...
/** * \file rdc_planes_eff.cpp * \brief Computes RDC planes efficiency given input rawtree file * */ #include "TROOT.h" #include "TPDF.h" #include "TPaveStats.h" #include "cli.hpp" #include "init_ds.hpp" #include "consts.hpp" #include "rootscript.hpp" static s13::misc::CliOptions cli_opts; class RdcEff { ...
#include "tests.h" #include <chrono> #include <fstream> #include <iomanip> #include "cublas_v2.h" #include "gpu_func.h" #include "mpi.h" #include "types.h" using namespace std; #define SCALE 1 // Factor to SCALE the GEMM problem size by #define NUM_ITERS 10 // Number of GEMMs run for timing purposes #ifdef U...
/// Copyright (c) 2019 <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, modify, merge, publish, ...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <csetjmp> #include <base/os.h> #include <base/test/task_test_util.h> #include <cmn/agent_cmn.h> #include <cmn/agent_factory.h> #include <init/agent_param.h> #include <cfg/cfg_init.h> #include <ovs_tor_agent/ovsdb_client/ovsdb_route_pee...
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); /* Paleta de colores para los botones, dependiendo del jugador */ paletteWinner.setColor(QPalette::ButtonText, Qt::black); paletteWinner...
#include <net/ethernet.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/ip6.h> #include <netinet/tcp.h> #include <netinet/udp.h> #include <net/ethernet.h> // #include <netinet/sctp_header.h> #include <linux/if_ether.h> #include "protos.hpp" #define GTPU_MIN_HDR_LEN 8 typedef struct ...
// Copyright 2018 Bloomberg Finance L.P // // 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 agr...
#define WIN32_LEAN_AND_MEAN #include <algorithm> #include <cstdio> #include <cwchar> #include <cwctype> #include <iostream> #include <string> #include <tuple> #include <fcntl.h> #include <io.h> #include <windows.h> #include <tlhelp32.h> // Needs to be after windows.h. using namespace std::literals; const wchar_t EVE...
// Copyright (c) 1999-2018 <NAME> // See the file COPYING for more information #include <sqlrelay/sqlrserver.h> #include <rudiments/domnode.h> #include <rudiments/stdio.h> //#define DEBUG_MESSAGES 1 #include <rudiments/debugprint.h> #include <config.h> #ifndef SQLRELAY_ENABLE_SHARED extern "C" { #include "sqlrtr...
/* <dory/metadata_fetcher.cc> ---------------------------------------------------------------------------- Copyright 2013-2014 if(we) 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 ...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2014 <NAME>. All rights reserved. *...
/* * Course: Elaborazione delle Immagini * Univeristy: Padova (IT) * Student: <NAME> (486228-sin) */ #include "ProcessRGBInterleaved.h" #include <iostream> /* used by the convolution pixel */ int ProcessRGBInterleaved::pixel(unsigned char** imageS, int x, int y, int color) { int u, v; int a; int p = 0; fo...
//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2020, <NAME>, <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 res...
/* -------------------------------------------------------------------------- * * OpenMM * * -------------------------------------------------------------------------- * * This is part of the OpenMM molecular simulation toolkit originating from * ...
#include "AORenderer.h" #include <array> float lerp(float a, float b, float f) { return a + f * (b - a); } GLuint Blocks::SSAORenderer::GenerateSSAOKernelTexture() { std::uniform_real_distribution<float> RandomGenerator(0.0, 1.0); std::default_random_engine generator; std::array<glm::vec3, 64> SSAOKe...
//LIC// ==================================================================== //LIC// This file forms part of oomph-lib, the object-oriented, //LIC// multi-physics finite-element library, available //LIC// at http://www.oomph-lib.org. //LIC// //LIC// Copyright (C) 2006-2022 <NAME> and <NAME> //LIC// //LIC// This lib...
/* * Copyright 2016 The Kythe Authors. 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...
// Copyright (C) 2011 <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, modify, merge, publish, d...
/** @file cmp.c * @brief Algoritmo CMP * * @author <NAME> (theorangewill). */ #ifndef SEISMICUNIX_H #include "seismicunix.h" #define SEISMICUNIX_H #endif #ifndef SEMBLANCE_H #include "semblance.h" #define SEMBLANCE_H #endif #ifndef MATH_H #include <math.h> #define MATH_H #endif #ifndef STRING_H #include <stri...
#include <Arduino.h> #include <WiFi.h> #include <ESPAsyncWebServer.h> //Library for the creation of the Async server, which has superior performance to the "standard" ESP32 server lib and it's able to //handle several users at the same time without a drop in performance. Something that the standard server lib can not....
#include <vector> #include <list> #include <map> #include <set> #include <queue> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cst...
// Copyright 2020 Dow, 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 wr...
#ifndef INCLUDED_STDDEFX #include "stddefx.h" #define INCLUDED_STDDEFX #endif #ifndef INCLUDED_CALC_LDDGRAPH #include "calc_lddgraph.h" #define INCLUDED_CALC_LDDGRAPH #endif // Library headers. #ifndef INCLUDED_STACK #include <stack> #define INCLUDED_STACK #endif #ifndef INCLUDED_LIMITS #include <limits> #define INCL...
// Use of this source code is governed by a BSD-style license // that can be found in the License file. // // Author: <NAME> (chenshuo at chenshuo dot com) #include "muduo/base/FileUtil.h" #include "muduo/base/Logging.h" #include "muduo/base/Types.h" #include <assert.h> #include <errno.h> #include <fcntl.h> #include ...
/*! \class VPointing \brief get telescope pointing direction */ #include "VPointing.h" VPointing::VPointing( unsigned int iTelID ) { fTelID = iTelID; fPointingTree = 0; fPointingDB = 0; fUseDB = false; fPointingType = 0; fTelAzimuthDB = 0.; fTelElevationDB = 0.; fNEvents...
#include <future> #include <stdio.h> #include <iostream> #include <stdlib.h> #include <string.h> #include <malloc.h> #include <vector> #include <time.h> #include <unistd.h> #include "FPTree.h" using namespace std; //#define INPUT_NUM 1000000 int latency=0; extern unsigned long long search_time_in_insert; extern unsi...
#include "QuadTree.h" using namespace rle; std::vector<QuadNode> QuadTree::MakeQuadTree(const std::vector<shape::Triangle> map_tris) { std::vector<QuadNode> quads; std::vector<QuadNode> quadsToDevide; QuadNode northEast, southEast, southWest, northWest; DirectX::XMFLOAT3 avg = DirectX::XMFLOAT3(0, 0, 0); bool ke...
#include "Registry.h" #include "../Dialog/Dialog_Main/Dialog_Main.h" #include "../Dialog/Dialog_Setting/Dialog_Setting.h" #include "../Main.h" #include "../Text/Text.h" const std::wstring Registry::Path_NetSpeed_ = L"Software\\NetSpeed"; const std::wstring Registry::Path_Network_ = L"SYSTEM\\CurrentControlSet\\Contro...
// $Id: RLECompressorTest.cpp 95546 2012-02-23 08:01:58Z johnnyw $ #include "ace/Log_Msg.h" #include "ace/High_Res_Timer.h" #include "ace/Compression/rle/RLECompressor.h" #include "tao/ORB.h" #include "tao/objectid.h" #include "tao/Compression/Compression.h" #include "tao/Compression/rle/RLECompressor_Factory.h" /* ...
// // BaseScriptEngine.cpp // libraries/script-engine/src // // Created by <NAME> on 02/01/17. // Copyright 2017 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "BaseScriptEngine.h" #i...
#include "cxxopts.hpp" #include "fmt/format.h" #include "tiropp/api.hpp" #include <cstdio> #include <exception> #include <filesystem> #include <optional> #include <string> #include <variant> #include <vector> namespace { struct OptionsError { std::string message; }; struct ShowHelp { std::string content; };...
#include <RcppArmadillo.h> #include <RcppArmadilloExtensions/sample.h> #include "utilities.h" #include <cassert> #include <algorithm> #ifdef _OPENMP #include <omp.h> #endif using namespace Rcpp; using namespace arma; using namespace std; // EVALUATION =================================================================...
#include "quad.h" void quad::gaussian_elimination(float *input, int n) { // ported to c from pseudocode in // http://en.wikipedia.org/wiki/Gaussian_elimination float * A = input; int i = 0; int j = 0; int m = n-1; while (i < m && j < n) { // Find pivot in column j, starting in ...
/* PROJECT: Medo * AUTHORS: <NAME>, Melbourne Australia * COPYRIGHT: Zen Yes Pty Ltd, 2019-2021 * DESCRIPTION: Output Preview */ #include <cstdio> #include <vector> #include <cassert> #include <interface/View.h> #include <interface/Bitmap.h> #include "OutputView.h" #include "TimelineView.h" #include "MedoWind...
/* Sequence Generator - seq-gen, version 1.3.2 <NAME> & <NAME> Department of Zoology, University of Oxford The code in this file is covered by the license and copyright message given below. Any feedback is very welcome. http://evolve.zoo.ox.ac.uk/software/Seq-Gen/ email: <EMAIL> */ /...
#include <iostream> #include "Point.hpp" #include <assert.h> #include "Curves.hpp" double _pad_num_ = 0; Point::Point(DistanceMetric distMetric):distMetric(distMetric), dims(0), marked(false), initial(NULL){} Point::Point(string id, int dims, DistanceMetric distMetric) : distMetric(distMetric), id(id), dims(dims),m...
/* Copyright (c) 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 condit...
// Authors: <NAME>, <NAME> #include <iostream> #include <opencv2/opencv.hpp> #include <chrono> #include <thread> void write_video(std::vector<cv::Mat> video, std::string filename, bool is_color=false) { cv::VideoWriter writer{filename, CV_FOURCC('M', 'J', 'P', 'G'), 24, video[0].size(), true}; for (auto& fram...
#include "main.h" using namespace pros; // Motor & Ports // Fork Motor fork_left(14); Motor fork_right(4); Motor lock(11); Motor lock_lift(12); // Movement Motor move_right_top(3); Motor move_right_bottom(1); Motor move_left_bottom(15); Motor move_left_top(13); ADIDigitalIn sensor(8); ADIDigitalIn sensor2(2); // Varia...
///////////////////////////////////////////////////////////////////////////////////////////// // Copyright 2017 Intel Corporation // // 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 // ...
/* Authors: <NAME> Copyright: Copyright (c) 2020 Microsoft Research 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, modify...
#include "../includes.hpp" struct null_internal_t { null_internal_t(const TagLib::FileRef* ref) { throw std::logic_error("not implemented"); } }; using supported_file_types = brigand::list< TagLib::MPEG::File, TagLib::Ogg::Vorbis::File, TagLib::Ogg::FLAC::File, TagLib::FLAC::File, TagLib::MPC::File, TagLib:...
#include <list> #include <iostream> #include <vector> #include <string.h> #include <iomanip> using namespace std; typedef unsigned long ULONG; #define HASH_MAX_STRING_LEN 128 #define AlignSize 16 class HashTable { protected: struct Assoc { Assoc() { count = 0; ...
#include "ProcessModel.h" #include "GraphWidget.h" #include <LibCore/CFile.h> #include <fcntl.h> #include <stdio.h> #include <pwd.h> ProcessModel::ProcessModel(GraphWidget& graph) : m_graph(graph) , m_proc_all("/proc/all") { if (!m_proc_all.open(CIODevice::ReadOnly)) { fprintf(stderr, "ProcessManag...
/* 2D Geometry: Circle tangents ================================================================= Description: Given a circle (defined by a center point and radius) and a point strictly outside the circle, returns the two points of tangency. Complexity: O(1) -------------...
#include "nmc/def.h" #include "nmc/LU.h" #include "nmc/CSM.h" #include "nmc/BiCGSTAB.h" #include "nmc/Vector2D.h" #include "nmc/FMCSM2D.h" #include "nmc/FMCSM2D_Helmholtz_Kernel.h" #include "nmc/FMCSM2D_Laplace_Kernel.h" #include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #inclu...
#include "StudentWorld.h" #include "GameConstants.h" #include <string> #include "Actor.h" #include <iostream> #include <sstream> #include <iomanip> #include <cmath> #include <algorithm> using namespace std; // StudentWorld.cpp // This file contains class and function implementations. // // Built for CS32 //...
/********************************************************************* * _ _ _ * _ __ | |_ _ | | __ _ | |__ ___ * | '__|| __|(_)| | / _` || '_ \ / __| * | | | |_ _ | || (_| || |_) |\__ \ * |_| \__|(_)|_| \__,_||_.__/ |___/ * * www.rt-labs.com * Copyright 2018 rt-labs AB, Sweden. ...
#include <stdio.h> #include <math.h> #include <QGraphicsView> #include <QPen> #include <Eigen/Dense> #include <libbwcnc/bwcnc.h> #include <libbwcnc/stdtforms.h> #include "mainwindow.h" //using namespace BWCNC; static struct cmdline_params { int cols; int rows; int nested; double nested_spacing; ...
/* @(#)cvb.c 6.1.1.2 (ESO-IPG) 9/23/93 15:13:40 */ /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .COPYRIGHT (c) 1993 European Southern Observatory .IDENTIFIC cvb.c .LANGUAGE C .AUTHOR <NAME> ESO/IPG .KEYWORDS binary number conversion, IEEE-754, floating point .PURPOSE convert ...
/* Part of Newcastle University's Game Engineering source code. Use as you see fit! Comments and queries to: richard-gordon.davison AT ncl.ac.uk https://research.ncl.ac.uk/game/ */ #include "Matrix3.h" #include "Matrix2.h" #include "Matrix4.h" #include "Vector3.h" #include "Quaternion.h" Matrix3::Matrix3(void) { fo...
/**_________________________________________________________________ class: JetCombinatorics.cc package: Analyzer/TopTools author: <NAME>, Fermilab (<EMAIL>) version $Id: JetCombinatorics.cc,v 1.3 2009/07/30 06:02:21 jengbou Exp $ ________________________________________________________________**/ #inclu...
#include "ofMain.h" #include "PlotUtilities.h" #include "LinePlot.h" #include "ZoomableRegion.h" #include "Markers.h" // 5th order high pass butterworth filter at 1.5 Hz from mkfilter 60Hz samplerate #define NZEROS 5 #define NPOLES 5 #define GAIN 1.289795686e+00 static float highPassFilter(float input) { static...
#include <tests/Base.hh> #include <aleph/containers/PointCloud.hh> #include <aleph/geometry/BruteForce.hh> #include <aleph/geometry/CechComplex.hh> #include <aleph/geometry/VietorisRipsComplex.hh> #include <aleph/geometry/distances/Euclidean.hh> #include <aleph/persistentHomology/Calculation.hh> #include <aleph/per...
/* $Id: USBProxyServiceOs2.cpp $ */ /** @file * VirtualBox USB Proxy Service, OS/2 Specialization. */ /* * Copyright (C) 2005-2012 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute i...
/* <NAME> Design & Analysis of Computer Algorithms CS 575 - FALL 17 Programming Assignment 4: Imlementation of Prim`s and Kruskal`s Minimum Spanning Tree algorithms. For Prim`s algorithm, a priority queue is used to hold vertices and array for data structure. For Kruskal`s algorithm, again arrays are used fo...
///////////////////////////// //FILE NAME: DirectedGraph.cpp// ///////////////////////////// //////////////// //Contributers// //////////////// /////////////////////////////////////////////// // NAME DATE CHANGE // <NAME> 08-28-2017 Initial Commit // <NAME> 09-01-2017 ...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include "chainparams.h" #include "core.h" #include "main.h" #include "uin...
/* * 作者:_JT_ * 博客:https://blog.csdn.net/weixin_42462202 */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include "Rtp.h" #define H264_FILE_NAME "vms.264" #define CLIENT_IP "127.0.0.1" ...
#include <stdio.h> #include<time.h> #include"ntt.h" #include <stdint.h> #include<malloc.h> #include<assert.h> #include"xntt_ips.h" #include <stdio.h> #include "xil_printf.h" #include "xaxidma.h" #include"xparameters.h" #include "xtime_l.h" XNtt_ips doGain; XNtt_ips_Config *doGaing_cfg; XAxiDma axiDMA; ...
#include <algorithm> #include <math.h> #include <iostream> #include <sys/time.h> #include <opencv2/opencv.hpp> #include "mtcnn.h" #include "utils.h" bool cmpScore(orderScore lsh, orderScore rsh){ if(lsh.score<rsh.score) return true; else return false; } MTCNN::MTCNN(){ } MTCNN::MTCNN(const ...
/****************************************************************************/ /// @file ROMAFrame.cpp /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @date Sept 2002 /// @version $Id$ /// // Sets and checks options for ma-routing /**********************************************...
/*IMa2p 2009-2015 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <NAME> */ #undef GLOBVARS #include "imamp.hpp" /* calculate marginal likelihood */ /* implement thermodynamic integration over a large number of intervals we want the marginal likelihood under the model p(D) for p_Bi(D|G) where Bi is a heating value i...
#include "pluginactionbatch.h" #include <QJsonArray> PluginActionBatch::PluginActionBatch(QList<QSharedPointer<const ActionStep>> actionSteps) : m_actionSteps(actionSteps) { } QSharedPointer<PluginActionBatch> PluginActionBatch::fromLineage(QSharedPointer<const PluginActionLineage> lineage, int batchMode) { ...
/* * Copyright (c) 1997 University of Southern California. * 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...
// Copyright 2020 The "Oko" project authors. All rights reserved. // Use of this source code is governed by a MIT license that can be // found in the LICENSE file. #include <ncurses.h> #include <boost/format.hpp> #include <boost/program_options.hpp> #include <chrono> #include <filesystem> #include <future> #include <i...
#include <iostream> #include <vector> #include <memory> #include <string> #include "shape.h" #include "rect.h" #include "ball.h" #include "graphics.h" using namespace std; GLdouble width, height; int wd; const color black(0.0, 0.0, 0.0); const color white(1.0, 1.0, 1.0); // game settings & data Screen screen; vec...
#include "message.h" #include<QDateTime> #include<QDebug> Message::Message(QObject *parent) : QObject(parent) { _membersModel = new MembersModel(); _clothesModel = new ClothesModel(); _clientsModel = new ClientsModel(); QString description1,description2,description3,description4,description5; des...
#include <ros/ros.h> #include "../include/gps_conversions.h" #include <sensor_msgs/NavSatFix.h> #include <geometry_msgs/PoseStamped.h> #include <geometry_msgs/PointStamped.h> #include <geometry_msgs/TransformStamped.h> #include <sensor_msgs/Imu.h> #include <sensor_msgs/PointCloud2.h> #include <visualization_msgs/Marker...
#include "softrenderer_camera.h" Camera::Camera(vec3 eye,vec3 at,vec3 up): RenderCamera(), _eye(eye), _at(at), _up(up) { updateLookAt(); init(); } Camera::Camera(): RenderCamera(), _eye(vec3(0,0,0)), _at(vec3(0,0,-1)), _up(vec3(0,1,0)) { updateLookAt(); init(); } Camera::Camera( const float fovy, const ...
#include "funset.hpp" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cJSON.h" // Blog: https://blog.csdn.net/fengbingchun/article/details/81606432 #ifdef _MSC_VER #include <Windows.h> void utf8_to_gbk(const char* utf8, char* gbk) { const int maxlen = 256; wchar_t unicode_str[maxlen]; int outl...
/* <NAME> CS162 @ Portland State University 3/2/13 Assignment #4 Part of the Command Line Awesome Posting System, or CLAPS */ #include "class.h" /* struct node { char * title; //hold title char * description; //holds desc char * location; //holds location char * email; //holds email char * compensation; //h...
/* ** Copyright 2014-2016 Centreon ** ** 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 t...
/* * Copyright (C) 2018 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
//2014.07.25 - 2014.07.26 Gustaf-37 - CTG. /* PROBLEM : T R A C K I N G A N U N K N O W N Q U A N T I T Y O F S TU D E N T R E C O R D S In this problem, you will write a class with methods to store and manipulate a collection of student records. A student record contains a student number and a grade,...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> * Completed on: June 29, 2019 * Completed by: zhao-zh10 */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector>...
//<NAME> ru:2379525 #include <iostream> #include <vector> #include <ctime> #include "Jogador.h" using namespace std; void enfrentar(Jogador& jogadorA, Jogador& jogadorB); bool jaSeEnfrentaram(const Jogador& jogador, const Jogador& jogadorB); int main() { srand(time(NULL)); int maisVitorias = -1; int ...
/** mpcontrol.cpp Implement player controls during play match menu; one player at a time is in control of cursor while setting up their team, and their controls are sent over to other player and all of the potential watchers. */ #include "mpcontrol.h" #include "mplobby.h" #include "mppacket.h" #include "m...
/* * Copyright (c) 2022 Samsung Electronics Co., Ltd. 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...
#include "brownian.h" using namespace BROWNIAN; double BROWNIAN:: OMP_time_evolution_Euler(TRAJECTORY& TRAJ, const MKL_LONG index_t_now, const MKL_LONG index_t_next, POTENTIAL_SET& POTs, MATRIX* force_random, RNG_BOOST& RNG, const MKL_LONG N_THREADS_BD, COND& given_condition, BROWNIAN_VARIABLE& VAR) {...
/******************************************************************************* * app/generate_kagen.cpp * * Copyright (C) 2016-2017 <NAME> <<EMAIL>> * Copyright (C) 2017 <NAME> <<EMAIL>> * * All rights reserved. Published under the BSD-2 license in the LICENSE file. ********************************************...
/* * Copyright (c) 2021, Red Hat, Inc. 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 Software Foundation. ...
// <NAME> // Solution to https://dmoj.ca/problem/dmpg15g3 #include <bits/stdc++.h> #define LSOne(S) (S & (-S)) using namespace std; typedef pair<int,int> ii; typedef tuple<int,int,int,int> quadra; const int MAXN = 2*1e5 + 10; int N,LK,RK,LC,RC; int tam[MAXN],block[MAXN],kinako[MAXN],croissant[MAXN],bit[MAXN],tamanho_c...