text
stringlengths
3.08k
22k
#include <iostream> #include <vector> #include <string> #include <exception> #include <fstream> #include <sstream> #include <unordered_map> #include <unistd.h> #include <dirent.h> #include <algorithm> #include "json.hpp" using namespace std; using json = nlohmann::json; #include "Partition.h" #include "Report.h" #in...
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2002 Ramshankar (aka Teknomancer). // Copyright (c) 2011 <NAME>. // All rights reserved. #include "AboutWindow.h" #include "AppConstants.h" #include "CommonStrings.h" #include "MsgConstants.h" #include "UIConstants.h" #include <Alert.h> #include <Application.h...
/* Copyright 2003-2017 GBDI-ICMC-USP <<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 required by applicable law or agr...
#include "all.h" #include "iostream" using namespace std; #include "myteacher.h" #include "circle_for_dot.h" #include "dynamic_array.h" class mycircle { private: double m_r; double m_s; public: double get_r(void) { return m_r; } void set_r(double r) { m_r = r; } double get_s(void) { m_s = pi * m_r * m_...
/* * * Copyright 2015 gRPC 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 agree...
/*========================================================================= Library: TubeTK Copyright 2010 Kitware Inc. 28 Corporate Drive, Clifton Park, NY, 12065, USA. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
#include <algorithm> #include <iostream> #include <iterator> #include <map> #include <set> #include <vector> #include <queue> #include <stack> struct UG { using vertex_t = int; using edge_t = int; using weight_t = int; std::map<edge_t, weight_t> edge_weights; std::set<vertex_t> vertices; // A...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include "helper_functions.h" using std::string; using ...
/* * LSGL - Large Scale Graphics Library * * Copyright (c) 2013 - 2015 Advanced Institute for Computational Science, *RIKEN. * All rights reserved. * */ #include <cassert> #include <cstring> #include "gles_render_graph.h" #include "../render/render_matrix.h" #include "../render/stack_container.h" using namesp...
#include "NinjaTrap.hpp" NinjaTrap::NinjaTrap() : ClapTrap(60, 60, 120, 120, 1, "No name", 60, 5, 0) { std::cout << "(default Ninja constructor) " << get_health() << ": " << creation_list[std::rand() % creation_list_len] << std::endl; } NinjaTrap::NinjaTrap(std::string const & name) : ClapTrap(60, 60, 1...
/* ================================================================ * * AtlasWerks Project * * Copyright (c) <NAME>, <NAME>, <NAME>, * <NAME>. All rights reserved. See Copyright.txt or for details. * * This software is distributed WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or ...
/* * File: Sprite.cpp * Author: brandon * * Created on May 7, 2011, 1:07 PM */ #include "Sprite.h" #include "GameLibrary.h" /** * currently not used */ Sprite::Sprite() { easing = false; corner1 = Vector2f(-0.4, -0.4); corner2 = Vector2f(0.4, 0.4); size = 0; state = 0; color = Vecto...
// Copyright 2019 The Fuchsia 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 <getopt.h> #include <lib/syslog/cpp/macros.h> #include <zircon/errors.h> #include <zircon/syscalls.h> #include <zircon/syscalls/object.h> #include...
#include "UnitData.h" #include "UnitUtil.h" using namespace UAlbertaBot; // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- UnitInfo::UnitInfo() : unitID(0) , updateFrame(0) , lastHP(0) , lastShields(0) , player(nullptr) , unit(nullptr) , lastPosition...
/* * Copyright (c) 2013, HUST-Renesas Lab, Huazhong University Of Science And Technology * Copyright (c) 2010, Arizona Robotics Research Group, University of Arizona * Copyright (c) 2008, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, a...
#include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "MPC.h" #include "json.hpp" // for convenience using json = nlohmann::json; namespace { double deg2rad(double x) { return x * M_PI /...
#include <builder/trt_builder.hpp> #include <infer/trt_infer.hpp> #include <common/ilogger.hpp> #include "app_yolo/yolo.hpp" #include "app_yolo/multi_gpu.hpp" using namespace std; static const char* cocolabels[] = { "person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", "truck", "boat", "traff...
#include "Arduino.h" #include <Wire.h> #include "Adafruit_MPR121.h" #include <Servo.h> #ifndef _BV #define _BV(bit) (1 << (bit)) #endif #define enterThreshold -4 #define leaveThreshold 4 #define filteredEnterThreshold -3 #define filteredLeaveThreshold 2 #define startPin 1 #define sensePins 4 #...
#include "PeekApp.h" #include <string.h> #include <Roster.h> #include <StorageKit.h> #include <Alert.h> #include <List.h> #include <image.h> PeekApp::PeekApp() : BApplication("application/x-vnd.Peek") { // set up the Setup object setup = new Setup(); if (LoadSetup()) { SetDefaults(); setup->SaveSetting...
#include "mFuncts.h" #include "neural.h" #include <ctime> #include <cstdlib> #include <fstream> #include <iostream> #include <sstream> #include <string> net::net(std::vector<int> layersi, double alphaI,double momentumI, std::vector<int> actFunctionNI, double neuronWMi, int testItersi) { //Set the initial values of t...
/* Copyright 2018 Hadean Supercomputing 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 a...
#include <time.h> #include <iostream> #include <stdlib.h> #include <errno.h> #include <limits.h> // for INT_MAX #include <omp.h> #include <string.h> #include "matrix.h" #include "fishsharks.h" /** * The function generate a string with formatted date time * * @return String yyyymmdd_hhMMss */ char* _getCurrentT...
#include <QtTest/QtTest> #include <QCoreApplication> #include <QObject> #include "tChartStyle.h" #include "tColormapPickWidget.h" #include "tContrastWidget.h" #include "tDisplaySettings.h" #include "tFileIO.h" #include "tMiscSmallWidgets.h" #include "tROIs.h" #include "tROIStyle.h" #include "tTraceChartWidget.h" #inclu...
/* * Generic USB HID Plugin LID for OPAL * * Copyright (C) 2006 Post Increment, All Rights Reserved * * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * ...
#include "ArcNet.hpp" #include <math.h> void IntSecPtOfLines ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, double *xM, double *yM ) { *xM = ( (x1*y2-y1*x2)*(x3-x4) - (x1-x2)*(x3*y4-y3*x4) ) / ( (x1-x2)*(y3-y4) - (y1-y2)*(x3-x4) ); *yM = ( (x1*y2-y1*x2)*(y3-y4) - (y1-y...
#include "DQM/RPCMonitorDigi/interface/RPCLinkSynchroStat.h" #include "CondFormats/RPCObjects/interface/LinkBoardSpec.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include <algorithm> #include <sstream> #include <iostream> #include <iomanip> bool RPCLinkSynchroStat::LessLinkName::operator()(const Boa...
/* -*- c++ -*- */ ///////////////////////////////////////////////////////////////////////////// // // Font.cpp -- Copyright (c) 2006 <NAME> // last modification: mar. 3, 2006 // // This code is licenced under the MIT license. // // This software is provided "as is" without express or implied // warranties. You may free...
/** * Implements the fiwalk plugin API * the fiwalk plugin configuration file is a text file that contains multiple lines of: * <glob> (dgi|jvm) command * * <glob> specifies which matching files should be called for the plugin; use * to call for * for all files. * * dgi means use the digitial fo...
/** * Copyright (c) 2021 <NAME> * * This software is released under the MIT License. * See the LICENSE file in the project root for more information. */ #include <fstream> #include <iostream> #include <map> #include <list> #include <numeric> #include <opencv2/opencv.hpp> #include <boost/algorithm/string.hpp> #i...
/* Copyright (c) 2014, The Linux Foundation. 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 co...
#include "rt3dreconstworker.h" RT3DReconstWorker::RT3DReconstWorker(QObject *parent) : QObject(parent) { //qRegisterMetaType< FrameExtd >("FrameExtd"); m_isEpochSet = false; m_isReady = false; m_keepReconstructing = false; m_abort = false; m_mutex = new QMutex(QMutex::Recursive); m_volume...
#include <iostream> #include <fstream> #include "TFile.h" #include "TTree.h" #include "TMath.h" #include "TH1D.h" #include "TH2D.h" #include "TRandom.h" #include "TRandom3.h" #include "TLorentzVector.h" #include "TVector3.h" #include "v0dst.h" using namespace std; TChain* ChainThem(char* filelist, char* treename, int...
////////////////////////////////////////////////////////////////////// // // risempi.cpp - This uses MPI to render a scene in parallel, except // this uses a better scheme of dividing up the data, such that // there is better load balancing. // // Author: <NAME> // Date of Birth: September 28, 2002 // Tabs: 4 // ...
/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /*====== This file is part of PerconaFT. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. PerconaFT is free software: you can redistribute it and/or modif...
#include "simulation/ElementCommon.h" #include "../ModTools.h" static int update(UPDATE_FUNC_ARGS); static void create(ELEMENT_CREATE_FUNC_ARGS); void Element::Element_GAS() { Identifier = "DEFAULT_PT_GAS"; Name = "GAS"; Colour = PIXPACK(0xE0FF20); MenuVisible = 1; MenuSection = SC_GAS; Enabled = 1; Advectio...
#include "patDisplay.h" #include "patNBParameters.h" #include "patErrMiscError.h" #include "patArcTransition.h" #include <xmlwrapp/xmlwrapp.h> patNBParameters::patNBParameters(patString fname) { } patNBParameters::patNBParameters() { } patNBParameters* patNBParameters::ins=NULL; patNBParameter...
// Authorship: <NAME> (a1648090) & <NAME> (a1646624) // Main function for CG 2017 final project. #include <cassert> #include <cmath> #include <chrono> #include <glm/gtc/constants.hpp> //#include <thread> #include <stdio.h> #define MAIN_FILE #include "core.hpp" #include "LightSource.hpp" #include "Console.hpp" #includ...
#include "graphics.h" #include <algorithm> #include <SDL.h> #include "ant.h" #include "constants.h" #include "font.h" #include "food.h" #include "pheromone.h" #ifdef _MSC_VER #pragma comment(lib, "SDL2.lib") #endif static const Uint32 INIT_FLAGS = SDL_INIT_VIDEO; static SDL_Window* window = nullptr; static SDL_Re...
/****************************************************************************** * Copyright 2020 ETC 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/l...
#include <soundProviderVorbis.h> #include <iostream> #include <cmath> #include <cstring> #include <memory> #include <limits.h> extern "C" { #include <stdio.h> #include "esp_log.h" } static const char* TAG = "Vorbis"; #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #define ...
#include "pushhelper.h" #include "../common/auxdb/avatarmaptable.h" #include "i18n.h" #include <QApplication> #include <QDebug> #include <QDir> #include <QFile> #include <QJsonDocument> #include <QJsonArray> #include <QStringList> #include <iterator> #include <QStandardPaths> PushHelper::PushHelper(const QString appId...
#include <cstdlib> #include <fstream> #include <set> #include <xargs.hpp> #include <format.hpp> #include <journal.hpp> #include <json.hpp> #include <strex.hpp> #include <launchdb/config.h> #include <context.hpp> #include <postgres/postgres.hpp> #include <postgres/render.hpp> #include <postgres/type_conversion.hpp> #i...
/****************************************************************************************** * Project Name: five * * Honbey, <EMAIL> * Created On 2020-02-22 * Copyright (c) 2020. All rights reserved. * * Date: 2019-02-22 * * Description: the 5th learning record of OpenCV. * C++ program for learning OpenCV. ...
// Ensure the setting is correct in the LMIC config file located in // LMIC library/project_config/lmic_project_config.h // These two defines have no more effect than creating an error if the library setting // is not correct #define CFG_eu868 1 #define CFG_sx1276_radio 1 #include <lmic.h> #include <hal/hal.h> #include...
/* * Copyright © 2017-2018 <NAME>, Inc. * All rights reserved. * * Use and disclosure subject to the following 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 Software without res...
/*** * * Copyright (c) 1996-2001, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * object ...
// -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*- /*********************************************************************** * * store/benchmark/retwisClient.cc: * Retwis benchmarking client for a distributed transactional store. * **********************************************************************/ ...
// // Created by roy_shilkrot on 8/27/18. // #include "opencv2/face.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgcodecs.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/objdetect.hpp" #include "opencv2/videoio.hpp" #include <boost/format.hpp> #include <fstream> #include <iostream> #include <istream> #...
#include <Arduino.h> // #define serial_debuging #define DIP_SWITCH_TEST 2 // dip switch pin #define BUILDIN_LED 13 // ------------------------------ External ADC --------------------------------- // external AD for pots, can not use analogRead with audio lib #include <Wire.h> #include <Adafruit_ADS1015.h> Adafruit_A...
#include "h264_parser.h" #include "spdlog/spdlog.h" #include <stdlib.h> #include <string.h> typedef enum { NALU_PRIPORITY_DISPOSABLE = 0, NALU_PRIORITY_LOW = 1, NALU_PRIORITY_HIGH = 2, NALU_PRIORITY_HIGHTEST = 3, a } NaluPriority; typedef struct { int startcodeprefix_len; //! 4 for parameter s...
#include "Validation/Geometry/interface/MaterialBudgetCastorHistos.h" #include "DetectorDescription/Core/interface/DDFilter.h" #include "DetectorDescription/Core/interface/DDLogicalPart.h" #include "DetectorDescription/Core/interface/DDSplit.h" #include "DetectorDescription/Core/interface/DDValue.h" #include "FWCore/U...
/* INCLUDES FOR THIS PROJECT */ #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <vector> #include <cmath> #include <limits> #include <fstream> #include <opencv2/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/features2d.hpp...
/* * 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 may ...
/* Copyright 2012 <NAME> 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 writing, software distributed und...
#include <iostream> #include <string> #include <cstring> #include <fstream> #include <map> #include "networking.h" #include "UlltraProto.h" #include "Discovery.h" #include "SimpleUdpReceiver.h" #ifndef _WIN32 #include <dirent.h> #endif #include <rtt.h> std::ostream& operator<<(std::ostream &str...
//************************************************************************ // * // Copyright (C) 2004 * // University Corporation for Atmospheric Research * // All Rights Reserved * // * //**********************************************************...
// // This source file is a part of borsch.3d // // Copyright (C) borsch.3d team 2017-2018 // // 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 limitat...
/// LSU EE X70X GPU Prog / Microarch -*- c++ -*- // /// Find pairs of objects that are in contact. #include "boxes.h" #include "world.h" #include "phys-obj-ball.h" #include "phys-obj-box.h" #include "phys-obj-tile.h" int World::contact_pairs_proximity_check (int idx9, double lifetime_delta_t, bool verify) { /// Fi...
/* Copyright (c) 2011, 2019, 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, version 2.0, as published by the Free Software Foundation. This program is also distributed with cer...
//===-- llvm-spirv.cpp - The LLVM/SPIR-V translator utility -----*- C++ -*-===// // // // The LLVM/SPIRV Translator // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // // Permission is hereby granted, free of charge, to any person o...
auto HitachiDSP::read(uint24 addr) -> uint8 { if((addr & 0x40ec00) == 0x006c00) { //$00-3f,80-bf:6c00-6cff,7c00-7cff return dspRead(addr, 0x00); } if((addr & 0x40e000) == 0x006000) { //$00-3f,80-bf:6000-6bff,7000-7bff return dramRead(addr, 0x00); } if((addr & 0x408000) == 0x008000) { //$00-3f,80-bf...
/* * @file qot.cpp * @brief Userspace C++ API to manage QoT timelines * @author <NAME> and <NAME> * * Copyright (c) Regents of the University of California, 2015. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that th...
#include"possion.h" CvScalar POSSION::sub(CvScalar a, CvScalar b) { a.val[0] -= b.val[0]; a.val[1] -= b.val[1]; a.val[2] -= b.val[2]; a.val[3] -= b.val[3]; return a; } CvScalar POSSION::add(CvScalar a, CvScalar b) { a.val[0] += b.val[0]; a.val[1] += b.val[1]; a.val[2] += b.val[2]; a.val[3] += b.val[3]; re...
// S6TradeIn // Samsung SW Test - Advanced, 20 Jan 2016 #include <iostream> using namespace std; const int maxN = 105; const int maxTestCases = 51; const int maxType = 5+3; const int checkX[4] = { 0, 1, 0, -1}; const int checkY[4] = {-1, 0, 1, 0}; int mainMap[maxN][maxN]; bool visitedMap[maxN][maxN], visitedZero[m...
/* ============================================================================== This file is part of the iPlug 2 library. Copyright (C) the iPlug 2 developers. See LICENSE.txt for more info. ============================================================================== */ #include "IPlugAAX.h" #include "...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */ /*--------------...
/* * Summary: X-SAMPA extension for libxslt * Description: XPath extension function for X-SAMPA to * Unicode (UTF-8) conversion. * * Copy: This file is distributed with the same * MIT-like licence as libxslt. * * Author: <NAME> */ #include "sampa.h" #include <libxslt/extensions.h> #inclu...
#include <stdlib.h> #include <stdio.h> #include <fstream> #include "lenet.h" #include "dimensions.h" //#define TOP 3 //COMMENT THIS FOR TOP-1 ACCURACY #define ERROR_THRESHOLD 0.1 #define MAX_ERROR_COUNT 5 #define MIN_ACCURACY 90 #define TEST_INPUTS_NUMBER 100 //#define CURRENT_PATH "C:\\Users\\George\\Documents\\Wor...
#include <iostream> #include <iomanip> #include <cmath> #include <omp.h> #ifdef USE_FMT_LIBRARY #include <fmt/core.h> #endif // Can use the fmt library for formatting the printed output // (C++20 compatible) https://github.com/fmtlib/fmt const double pi = M_PI; const int ndim = 6; // Define the integrand double m...
/* * vector_test.cpp -- simple tests for vector class implementation * * Copyright 2020 <NAME> <<EMAIL>> * * 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...
// Copyright 2018-2019 <NAME> University. See LICENSE file for terms. #include <rose.h> #include <gtest/gtest.h> #include <libpharos/typedb.cpp> #include <libpharos/descriptors.hpp> #include <libpharos/ir.hpp> #include <libpharos/wp.hpp> #include <libpharos/path.hpp> #include <libpharos/descriptors.hpp> #include <lib...
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; // 998244353; // 998244853; template <typename T> struct modular { constexpr modular() : val(0){} constexpr modular(const modular<T>& _m) : val(_m.val) {} template <typename U> constexpr modular(const U& _r = U()) { val = -M...
/* * Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
#include <gtest/gtest.h> #include <mirheo/core/interactions/factory.h> #include <mirheo/core/interactions/pairwise/base_pairwise.h> #include <mirheo/core/logger.h> #include <mirheo/core/mirheo.h> #include <mirheo/core/snapshot.h> #include <mirheo/core/utils/config.h> #include <mirheo/core/utils/type_traits.h> using na...
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2013/06/09 // Author: <NAME> // // Copyright 2013 Quantcast Corp. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Version 2.0 // (the "License"); you may not use this file e...
/*******************************************************************\ Module: Generates string constraints for Java functions dealing with code points Author: <NAME>, <EMAIL> \*******************************************************************/ /// \file /// Generates string constraints for Java functions d...
#include "ParticleFileParserComponent.h" #include <QJsonArray> #include <QDebug> #include <QFileInfo> #include <QDir> #include <QDomDocument> #include <QDomElement> #include <QDomNodeList> #include <QDomNode> #include <project/SEProject.h> #include <timeline/command/PropertyEditCommand.h> #include <base/utils/fileut...
#include "lfm.h" using namespace skunk; using namespace std; LFM::LFM(SparseMatrix* _matrix, int _type, int _num_factor, double _sigma){ matrix = _matrix; type = _type; num_factor = _num_factor; sigma = _sigma; mu = 1.0 * matrix->sum() / matrix->size(); P0 = (double*) malloc(matrix->rows()->size() * num_...
#include "types_and_vars.h" typedef int32_t (*fref)(int32_t arg0, int32_t arg1, int32_t *arg2); static int32_t intsum(int32_t arg0, int32_t arg1, int32_t *arg2); static bool boolsum(bool arg0, bool arg1, bool *arg2); static std::string stringsum(const char *arg0, const char *arg1, std::string *arg2); static fref fref...
// // DynamicSimulator.cpp // GPcode01_01_xcode // // Created by <NAME> on 3/27/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #include "DynamicSimulator.h" #include <stdlib.h> #include <math.h> double rand(double min, double max) { return (max-min)*(double(rand()%10001)/10000.0)+min; } CDynamicSi...
#include <cstdlib> #include <iostream> #include <fstream> #include <string> #include <iomanip> #include <opencv2/opencv.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/opencv_modules.hpp> #include <opencv2/nonfree/features2d.hpp> #include <opencv2/nonfree/nonfree.hpp> #include <opencv2/highgui...
/** * Copyright (c) 2019 Horizon Robotics. All rights reserved. * @File: example_do_pose_lmk.cpp * @Brief: * @Author: zhengzheng.ge * @Email: <EMAIL> * @Date: 2019-04-15 14:27:05 * @Last Modified by: zhengzheng.ge * @Last Modified time: 2019-04-15 15:18:10 */ #include <stdint.h> #include <fstream> #include <m...
/* propagate.c - */ /* CellProfiler is distributed under the GNU General Public License. * See the accompanying file LICENSE for details. * * Developed by the Whitehead Institute for Biomedical Research. * Copyright 2003,2004,...
#include "AssimpLoader.h" #if defined(USE_ASSIMP) && USE_ASSIMP #include <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/postprocess.h> #include <assimp/pbrmaterial.h> #endif #include <Engine/Scene/SObj.h> #include <Engine/Scene/CmptMaterial.h> #include <Engine/Scene/CmptTransform.h> #include <Engin...
#include "hackbase.h" D3D10Renderer::D3D10Renderer(IDXGISwapChain* SwapChain) { this->rectCreated = false; this->pSwapChain = SwapChain; pSwapChain->GetDevice(__uuidof(this->pDevice), (void**)&(this->pDevice)); if(this->CreateRect()) { #ifdef DEBUGLOG logln("D3D10Renderer::CreateRect failed!"); #endif } } D3...
#include <cassert> #include "operaciones.h" #include "logger.h" #include "colormod.h" void Exit::execute(){ continuar_loop=false; } // Muestra los comandos disponibles void Ayuda::execute(){ cout<<"Comandos disponibles:"<<endl; for(vector<string>::iterator it=v_comandos.begin(); it!=v_com...
/* * ______ __ __ __ * / __/ /_ ____ __ / //_/__ _______ ___ / / * / _// / // /\ \ / / ,< / -_) __/ _ \/ -_) / * /_/ /_/\_,_//_\_\ /_/|_|\__/_/ /_//_/\__/_/ * * copyright (c) 2021 <NAME> (aka corigan01) * * Permission is hereby granted, free of charge...
/** $lic$ * Copyright (C) 2012-2015 by Massachusetts Institute of Technology * Copyright (C) 2010-2013 by The Board of Trustees of Stanford University * * This file is part of zsim. * * zsim is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as publishe...
/* * * Copyright (C) Huawei Technologies Co., Ltd. 2020-2099. All Rights Reserved. * Description: 数据读取 * Author: Atlas * Create: 2020-02-22 * Notes: This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A...
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
#include "PanelAnimationEvent.h" #include "Application.h" #include "ModuleScene.h" #include "GameObject.h" #include "ComponentAnimationEvent.h" #include "ComponentAnimation.h" #include "ModuleResourcesManager.h" #include "ResourceAnimation.h" #include "Component.h" #include "FileSystem.h" #include "GameObject.h" Panel...
#include <aleph/math/KahanSummation.hh> #include <aleph/persistenceDiagrams/Norms.hh> #include <aleph/persistenceDiagrams/PersistenceDiagram.hh> #include <aleph/persistentHomology/Calculation.hh> #include <aleph/topology/filtrations/Data.hh> #include <aleph/topology/io/Function.hh> #include <aleph/topology/Simplex...
/* * 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...
#include "data/quaternion.hpp" Quaternion::Quaternion(Vector3F rotation_axis, float angle): Vector4F(rotation_axis.x * std::sin(angle / 2.0f), rotation_axis.y * std::sin(angle / 2.0f), rotation_axis.z * std::sin(angle / 2.0f), std::cos(angle / 2.0f)){} Quaternion::Quaternion(Vector3F euler_rotation) { const float si...
/******************************************************************************* * Copyright (c) 2014 <NAME>, <NAME>, <NAME>, <NAME>, CNRS and Université Joseph Fourier. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "build/build_config.h" #include "chrome/browser/search_engines/template_url_fetcher.h" #include "base/string_number_conversions.h" #include...
struct Mega32X : Cartridge { auto name() -> string override { return "Mega 32X"; } auto extensions() -> vector<string> override { return {"32x"}; } auto load(string location) -> bool override; auto save(string location) -> bool override; auto analyze(vector<u8>& rom) -> string; auto analyzeStorage(vector<u8...
/** * @file goal_guided_multivariate_gaussian.cpp * @brief This class generates noisy trajectories to an under-constrained cartesian goal pose * * @author <NAME> * @date Jun 14, 2016 * @version TODO * @bug No known bugs * * @copyright Copyright (c) 2016, Southwest Research Institute * * @par License * Softw...