text
stringlengths
5.71k
33.7k
#include "../nanoprintf.h" #include "CppUTest/TestHarness.h" #include <limits.h> #include <cmath> #include <cstring> TEST_GROUP(conformance){}; namespace { char conformance_buf[256]; void CheckConformance(char const *output, char const *fmt, ...) { std::string expected; { va_list v; va_start...
/* MANGO Multimedia Development Platform Copyright (C) 2012-2018 Twilight Finland 3D Oy Ltd. All rights reserved. */ #include <mango/image/compression.hpp> namespace { using namespace mango; /****************************************************************************** @File PVRTDecompre...
//Written by <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, distribute, sublicens...
//---------------------------------------------------------------------------------------------- // This file is part of the HAMLS software. // // MIT License // // Copyright (c) 2019 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated ...
// // Created by veyry_p on 7/11/15. // #include <iostream> #include <chrono> #include <numeric> #include <SFML/Graphics/Sprite.hpp> #include <SFML/Graphics/Texture.hpp> #include <SFML/Graphics/RectangleShape.hpp> #include <SFML/Graphics/RenderTexture.hpp> #include <boost/filesystem.hpp> #include <boost/algorithm/stri...
/* * 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 n...
/** ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
/* // Copyright (c) 2000-2010, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
#include <vector> #include <deque> #include <string> #include <algorithm> #include <iostream> #include <fstream> #include <ctime> using namespace std; #include <boost/program_options.hpp> using namespace boost; namespace po = boost::program_options; #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.h...
/* MIT License Copyright (c) 2017 <NAME> (https://morf.lv) 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, modif...
// Based on the work by DFRobot #include "LiquidCrystal_I2C_Hangul.h" #include <inttypes.h> #if defined(ARDUINO) && ARDUINO >= 100 #include "Arduino.h" #define printIIC(args) Wire.write(args) inline size_t LiquidCrystal_I2C_Hangul::write(uint8_t value) { send(value, Rs); return 1; } #else #include "WProgram.h" #...
#include <gtest/gtest.h> #include "f3c/qgates/RotationTFXYMatrix.hpp" #include "f3c/qgates/RotationTFXY.hpp" template <typename T> void test_f3c_qgates_RotationTFXYMatrix() { using R = qclab::real_t< T > ; const R pi = 4 * std::atan(1) ; const R eps = std::numeric_limits< R >::epsilon() ; { f3c::qgates::...
/** * Btor2Tools: A tool package for the BTOR format. * * Copyright (c) 2019 <NAME>. * * All rights reserved. * * This file is part of the Btor2Tools package. * See LICENSE.txt for more information on using this software. */ #include <cassert> #include <cstdarg> #include <cstring> #include <iostream> #in...
#include <iostream> #include <string> #include <Windows.h> #include "colours.h" std::string user_input;//user input string std::string output_str;//output ciphertext int x;//loop counter int corres_num[1500000] = {};//corresponding number according to alphabets int cipher_value;//the cipher rotation value s...
/* * Copyright 2010, * <NAME>, * <NAME>, * * CNRS/AIST * */ /* --------------------------------------------------------------------- */ /* --- INCLUDE --------------------------------------------------------- */ /* --------------------------------------------------------------------- */ /* --- SOT --- */ #incl...
// Copyright 2010 Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and...
/* The MIT License (MIT) Copyright (c) 2020 <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, publi...
#include "StBbcGeom.h" #include "TMath.h" #include <iostream> using namespace std; ClassImp(StBbcGeom); StBbcGeom::StBbcGeom(){ InitializeGeometry(); } StBbcGeom::~StBbcGeom(){ /* no-op */ } void StBbcGeom::InitializeGeometry(){ double h=9.65; // height of the hexagonal inner tiles, in cm. double zBBC...
#include "CLI/CLI.hpp" #include "Channel.hpp" #include "Event.hpp" #include "TCanvas.h" #include "TFile.h" #include "TH1F.h" #include "TROOT.h" #include "TSpectrum.h" #include "TTree.h" #include "TTreeReader.h" #include <algorithm> #include <iostream> #include <map> #include <utility> #include <vector> int NbrEventTo...
#include "Fraction.h" #include <cfloat> #include <assert.h> #include <time.h> #include <random> #include "../utilities/fractions_extra.h" void someInfo() { cout << "Range of positive doubles: " << DBL_MIN << " to " << DBL_MAX << endl; cout << "Range of positive fraction: " << FRAC_MIN << " to " << FRAC_MAX << end...
// Copyright 2020 <NAME>. All rights reserved. // Use of this source code is governed by the MIT license that can be found in // the LICENSE file. #include <iostream> #include <map> #include <queue> #include <sstream> #include <string> #include <vector> #include "screen/Screen.h" #include "translator/Translator.h" #in...
#include <iostream> #include "VerticalDetector.h" #include <list> #include <opencv_workbench/utils/ColorMaps.h> #include <opencv_workbench/wb/WB.h> #include <opencv_workbench/wb/Cluster.h> #include <opencv_workbench/wb/ClusterProcess.h> #include <opencv_workbench/wb/NDT.h> #include <opencv_workbench/utils/OpenCV_Help...
/* File: JackBridge.h MIT License Copyright (c) 2016-2018 <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, c...
//=--ConstraintBuilder.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 // //===---------------------------...
//run using g++ -std=c++11 Dijkstras.cpp #include<bits/stdc++.h> //#include <graphviz/gvc.h> #include <unistd.h> #include <sys/types.h> #include <errno.h> #include <stdio.h> #include <sys/wait.h> #include <stdlib.h> using namespace std; template<typename T> class Graph { map<T, list<pair<T,float> > > m; public: ...
#include "stdafx.h" #include "command.h" #include "media.h" #include "context.h" #include "core/core.h" #include "core/exception.hpp" #include "core/verify.hpp" #include <boost/process/args.hpp> #include <boost/process/exe.hpp> #include <boost/process/search_path.hpp> #include <boost/process/system.hpp> #include <boost...
#include "DQM/SiStripCommissioningAnalysis/interface/OptoScanAlgorithm.h" #include "CondFormats/SiStripObjects/interface/OptoScanAnalysis.h" #include "DataFormats/SiStripCommon/interface/SiStripHistoTitle.h" #include "DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h" #include "DQM/SiStripCommissioningAnalys...
#include <stdlib.h> #include <math.h> #include "n_body.h" //#include <omp.h> using namespace std; #define FRAC_IMP 3. // factor divided into H at each improvement step #define KMAX 8 // DO NOT CHANGE #define COPY(a,b,N) for (int i=0; i<N; i++) for (int j=0; j<3; j++) {b[i][j] = a[i][j];} #define SGN(a) (a < 0 ? -1 ...
#include "blurUvWrap.h" #include "uvQuery.h" #include "mayaQuery.h" #include <vector> #include <array> #include <algorithm> #include <memory> #include <unordered_set> #include <unordered_map> #include <utility> #include <maya/MItGeometry.h> #include <maya/MFloatVectorArray.h> #include <maya/MGlobal.h> ...
/* Copyright [2011] [<NAME>, <NAME>, <NAME>, <NAME> / Carnegie Mellon 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 ...
#include <string.h> #include <mcheck.h> #include "nativeCamera.h" #include "sqliteTest.h" #include "easypr/core/plate_locate.h" #include "easypr/core/plate_judge.h" #include "easypr/core/plate.hpp" #include "easypr/core/plate_recognize.h" #include "easypr/core/plate_detect.h" #include "configenv.hpp" #include <gtk/gt...
/** * Each thread has its own 'arena' where it can allocate 'new' blocks of what ever size it needs (buckets). After * a thread is done with memory it places it in a garbage collection queue. * * The garbage collector follows each threads trash bin and moves the blocks into a recycled list that * all other...
#include <gtk/gtk.h> #include <gdk/gdkx.h> #include <X11/extensions/XShm.h> #include <X11/extensions/Xv.h> #include <X11/extensions/Xvlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include "gtk_display.h" #include "gtk_display_driver_xv.h" static int get_inv_shift (uint32 mask, int bpp) { int i; /* Find m...
//无人机追踪目标(此处先直接用目标位置进行追踪) //无人机吊舱根据视觉算法的反馈调节角度,保证目标在相机中心位置 //ROS 头文件 #include <ros/ros.h> #include <iostream> #include "mission_utils.h" #include "gimbal_control.h" #include "message_utils.h" using namespace std; using namespace Eigen; #define NODE_NAME "gimbal_control_demo" #define PI 3.1415926 #define VISION_THRES_...
#include "RigidBody.h" using namespace Physics; namespace { /// <summary> /// Helper method to check for the intersection of two bounding boxes given /// the min and max global values /// </summary> /// <param name="maxA"></param> /// <param name="minA"></param> /// <param name="maxB"></pa...
int EN,//Fl /*yOX*//*FK*/tkf//0K ,YkU ,M, mg ,qnK,//h kCKC, sMWg, ni7 , fDN, W , ddK, Yc , L3cx , FUjX2,SGDyJH ,dp , vihf , df1, esO ,R7 , o,/*p*/ XpcH , gYdtl,uUMWN//A , /*o*/MP6p,kpdTA , Dx/*FXp*/, TCC , Sb , zEg,o5kk ,u , qQ5 , q// ,D6 , i2C,ixqP, jD ,wX, DQS; void f_f0 /*WN*/ (){ for(...
#include "FragmentShader.h" #include <vector> #include "MathsFunc.h" #include <SDL.h> #include <stdio.h> #include <iostream> #include "Vector3D.h" #include "Texture2D.h" #include "Tex_Loader.h" #include "MTL_Loader.h" #include <time.h> #include "VertexShader.h" #include "Obj_Loader.h" #include <array> #include <map> #i...
//#ifdef _MSC_VER //# pragma warning(disable: 4267 4311 4305) //#endif #include <algorithm> #include <iomanip> #include <iostream> #include <sstream> #include <QApplication> #include <QCursor> #include <QDateTime> #include <QImage> #include <QMenu> #include <QMouseEvent> // -------------------- //#in...
/// @file fdwt53.cu /// @brief CUDA implementation of forward 5/3 2D DWT. /// @author <NAME> (<EMAIL>) /// @date 2011-02-04 13:23 /// /// /// Copyright (c) 2011 <NAME> /// All rights reserved. /// /// Redistribution and use in source and binary forms, with or without /// modification, are permitted provided t...
// vtk2itk2fem.cxx // Adapted from vtk2itk.cxx and Brian's code // TS, 1/27/04 // Disable warning for long symbol names in this file only #ifdef _MSC_VER #pragma warning ( disable : 4786 ) #endif #include <iostream> #include "itkMesh.h" #include "itkTriangleCell.h" #include "itkQuadrilateralCell.h" #include "itkTetrah...
#include <QWidget> #include "launcher.h" #include "timewidget.h" #include <QPropertyAnimation> QVector<std::tuple<QString, QString, QStringList, QString, QIcon, QStringList, QStringList, ...
///////////////////////////////////////////////////////////////////////////////////////////////// // Some test code #include "CUDAHelpers.h" #include "ExprImplementations.h" #include "ExprTools.h" #include "IntervalImplementations.h" #include "MathIndividual.h" #include "NonaryExprSubclasses.h" #include <Math/BinaryR...
/** \copyright * Copyright (c) 2018, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of...
/*************************************************************************** nePLC-LRR Library A library for RFM95 by Hoperf Electronic Copyright (c) 2017, Deft Dynamics All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the f...
/********************************************************************* * This file is distributed as part of the C++ port of the APRIL tags * library. The code is licensed under GPLv2. * * Original author: <NAME> <<EMAIL>> * C++ port and modifications: <NAME> <<EMAIL>> ********************************************...
// Copyright (c) 2012-2018 LG Electronics, 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...
/* _ _ * _ __ ___ (_)_ __ | | __ * | '_ ` _ \| | '_ \| |/ / * | | | | | | | | | | < * |_| |_| |_|_|_| |_|_|\_\ * * SPDX-License-Identifier: MIT * */ #include <mink_config.h> #include <gdt.h> #include <gdt_stats.h> #include <getopt.h> #include <iomanip> #include <mink_utils.h> #include <sstr...
/* UPCxx_DepSpawn: UPC++ Data Dependent Spawn library Copyright (C) 2021-2022 <NAME>. Universidade da Coruna Distributed under the MIT License. (See accompanying file LICENSE) */ /// /// \file lu.cpp /// \brief Main implementation file for LU /// \author <NAME> <diego.andrade@udc.es> //...
/************************************************************** * * 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...
#include "qbmove_multiple.hh" #include <boost/bind.hpp> #include <gazebo/gazebo.hh> #include <gazebo/physics/physics.hh> #include <gazebo/common/common.hh> #include <gazebo/common/PID.hh> #include <stdio.h> #include <gazebo/transport/transport.hh> #include <gazebo/msgs/msgs.hh> #include <gazebo/math/gzmath.hh> #include...
#include "LibBigInt.h" #include <iostream> #include <windows.h> #include <sstream> //This function creates its own copy of the data, so you are responsible for deallocating your own data LibBigInt::LibBigInt(char *c_string, int length) { char *string_my = this->noSpaces(c_string, length); char *string_my_deal...
/*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>, <NAM...
#include "MidiFile.h" #include <iostream> #include <vector> #include <regex> #include <time.h> using namespace std; using namespace smf; class MidiPart { public: void init(int _type, int _tick, int _key, int _volume); int type; int tick; int key; int volume; }; void MidiPart::init(int _type, int _tick, int _key,...
// MAIN CODE FOR KELPIE SYNTHESIZER // WRITTEN BY <NAME> (WWW.KENNETHMARUT.COM) // THIS PROJECT CAN BE FOLLOWED HERE: https://hackaday.io/project/166460-kelpie-synth-module-for-keyboard-controllers #include <Arduino.h> #include <MIDI.h> #include <Audio.h> #include <audioConnections.h> #include <KelpieHelpers.h> #inclu...
// Copyright (c) 2014-2019 <NAME> // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <base58.h> #include <coins.h> #include <consensus/validation.h> #include <init.h> #include <interfaces/chain.h> #include <key_io.h> #...
// Copyright (c) 2017-2017 The Bitcoin Core developers // Copyright (c) 2017-2019 The Raven Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <assets/assets.h> #include <script/standard.h> #include <util.h...
/* * Software License Agreement (BSD License) * * Copyright (c) 2012-, Open Perception, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code...
#include "rar.hpp" // We used "Screaming Fast Galois Field Arithmetic Using Intel SIMD // Instructions" paper by <NAME>, <NAME> // and <NAME> for fast SSE based multiplication. // Also we are grateful to <NAME> and <NAME> // for samples and ideas allowed to make Reed-Solomon codec more efficient. RSCoder16::RSCoder16...
// // Created by <NAME> on 05.04.19. // #include <future> #include "../api/File.h" #include "../fieldTypes/HullType.h" #include "../fieldTypes/MapType.h" #include "../fieldTypes/SingleArgumentType.h" #include "../streams/FileOutputStream.h" #include "DataField.h" #include "DistributedField.h" #include "EnumPool.h" #...
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkEdge.h" #include "SkFDot6.h" #include "SkMath.h" /* In setLine, setQuadratic, setCubic, the first thing we do is to convert the poin...
/* * AdjustSync defines two methods for fixing the sync. * * The first method adjusts either the song or the machine by the * average offset of the user's steps. In other words, if the user * averages to step early by 10 ms, either the song or the global * offset is adjusted by 10 ms to compensate for that. The...
#include <limits> #include "caffe2/core/logging.h" #include "caffe2/opt/converter.h" #include "nomnigraph/Graph/Algorithms.h" #include "nomnigraph/Support/Casting.h" #include "nomnigraph/Support/Pointer.h" using namespace nom; namespace { std::vector<int> getStrides(std::map<std::string, caffe2::Argument> argMap)...
// C++ headers #include <string> #include <cstring> // boost headers #include <boost/regex.hpp> // Root headers #include <TH1F.h> // CMSSW headers #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/Run.h" #include "FWCore/Framework/...
// // Copyright 2021 Intel (Autonomous Agents Lab) // // 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...
#define _CRT_SECURE_NO_WARNINGS #include <ctime> #include "loopndisplay.hpp" class clock_program : protected lnd::looper { private: lnd::group_vertex<2> sec_needle; lnd::program sec_program; lnd::group_vertex<2> min_needle; lnd::group_color<3> min_needle_color; lnd::program min_program; lnd::program min_cont...
// MFEM Example 1 // // Compile with: make ex1 // // Sample runs: ex1 -m ../data/square-disc.mesh // ex1 -m ../data/star.mesh // ex1 -m ../data/escher.mesh // ex1 -m ../data/fichera.mesh // ex1 -m ../data/square-disc-p2.vtk -o 2 // ...
// Recommended Compilation Command: // g++ -O3 -march=native #include <algorithm> #include <array> #include <chrono> #include <cmath> #include <cstring> #include <iostream> #include <fstream> #include <random> #include <unordered_set> #include <vector> using namespace std; const float BOX_SIZE = 10.0; ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <memory> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #include "Debug.h" #incl...
/////////////////////////////////////////////////////////////////////////// // // MOOS - Mission Oriented Operating Suite // // A suit of Applications and Libraries for Mobile Robotics Research // Copyright (C) 2001-2005 Massachusetts Institute of Technology and // Oxford University. // // This soft...
/******************************************************************************* * Copyright (c) 2007, 2008, CerroKai Development * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribu...
/* Copyright(c) 2002-2020 <NAME>(anatoliy_kuznetsov at yahoo.com) 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 o...
/*************************************************************************** SocNetV: Social Network Visualizer version: 1.9 Written in Qt webcrawler.cpp - description ------------------- copyright : (C) 2005-2015 by <NAME> email ...
// A Single Component's data #include "stdafx.h" #include "Component.h" //#include "DefaultPath.h" #include "Feature.h" #include "filename.h" #include "Guid.h" #include "PFFdirectories.h" #include "PMFdirectories.h" #include "Product.h" #include "Resources.h" #include "WixUtilities.h" #include "WixApp.h" static TCc...
#include <asm/unistd.h> #include <fstream> #include <iostream> #include <list> #include "pin.H" using std::list; using std::ofstream; using std::string; // taint a specific unique address, 标记内存地址 std::list<UINT64> addressTainted; // contains all registers controlled by the user input // 标记由用户输入控制的寄存器 std::list<REG> re...
// TODO: Implement memory deallocation #include "NvInfer.h" #include "NvUtils.h" #include "/usr/people/bodun/include/cuda_runtime_api.h" #include <cassert> #include <cmath> #include <ctime> #include <cstring> #include <fstream> #include <iostream> #include <map> #include <set> #include <sstream> #include <sys/stat.h> ...
/** XR Vessel add-ons for OpenOrbiter Space Flight Simulator Copyright (C) 2006-2021 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later v...
// ************************************************************************* // Copyright (C) 2014 by <NAME> // You may not use this file except in compliance with the License. // You obtain a copy of the License in the LICENSE file. // Unless required by applicable law or agreed to in writing, software // distributed...
#include "blurt.h" #include "upsample.h" #include "util.h" #include <algorithm> #include <numeric> #include <random> #include "audioLoopback.h" #include <chrono> #include <cstring> static const double delay = .005; mutex cerr_mutex; using std::random_device; using std::mt19937; using std::uniform_int_distribution; us...
/* * xs1-reorder.cpp * LLAMA Graph Analytics * * Copyright 2014 * The President and Fellows of Harvard College. * * Copyright 2014 * Oracle Labs. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
/* * File: base.cpp * Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #include <fstream> #include "common/base.h" #include "common/u/ugnames.h" #include "common/u/uhdd.h" #include "common/u/uprocess.h" #include "common/errdbg/d_printf.h" #include "common/u/u...
// Copyright 2013-2014 [Author: <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 ...
/** * @file tsm.cpp * @author <NAME>, <NAME>, <NAME> * @date January, 2022 */ #include "tsm.hpp" #include "families/normal.hpp" // Normal #include "hessian.hpp" // hessian #include "lbfgspp/LBFGS.h" // LBFGSpp::LBFGSParam, LBFGSpp::LBFGSSolver #include "optimizer_function.hpp" // OptimizerFun...
//===- unittests/dump/test_mcrepo.cpp -------------------------------------===// //* * //* _ __ ___ ___ _ __ ___ _ __ ___ * //* | '_ ` _ \ / __| '__/ _ \ '_ \ / _ \ * //* | | | | | | (__| | | __/ |_) | (_) | * //* |_| |_| |_|\___|_| \___| .__/ \___/ * //* ...
// 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...
/* * Copyright (C) 2012 University of Washington * * 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 ...
/* * (c) Copyright 2019 Xilinx, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
#include "GeneticAlgorithms.h" int(*Pathptr)[2] = oliver30; //選擇路徑 //=================================================================================================== //定義路徑 typedef struct TagPathA { double FitnessValue; //適應值Z double Length[SIZE]; //每個點的距離 int Coor[SIZE]; //座...
//======================================================================= // Copyright <NAME> 2011-2016. // Distributed under the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //======================================================================= #include <vector>...
#include <stdlib.h> #include <stdio.h> #include "types.h" #include "snrom.h" #include "dataio.h" // // // struct SNRomCountryT { Char *pName; SNRomVideoE eVideoType; }; struct SNRomLicenseT { Uint8 uCode; Char *pName; }; // // // static SNRomCountryT _SNRom_Country[]= { ...
/** * @file SQLExec.cpp - implementation of SQLExec class * @author <NAME> * @see "Seattle University, CPSC5300, Spring 2021" */ #include "SQLExec.h" #include "EvalPlan.h" #include <iostream> using namespace std; using namespace hsql; // define static data Tables *SQLExec::tables = nullptr; Indices *SQLExec::indi...
/* XMRig * Copyright 2010 <NAME> <<EMAIL>> * Copyright 2012-2014 pooler <<EMAIL>> * Copyright 2014 <NAME> <https://github.com/lucasjones> * Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet> * Copyright 2016 <NAME> <<EMAIL>> * Copyright 2017-2019 XMR-Stak <https://github.com/f...
/* resdef_parser_material.cc -- Copyright (c) 2013 <NAME>. All rights reserved. See COPYING under the project root for the source code license. If this file is not present, refer to <https://raw.github.com/nilium/snow/master/COPYING>. */ #include "resdef_parser.hh" #include "../renderer/material.hh" #include "../...
/* * Adplug - Replayer for many OPL2/OPL3 audio file formats. * Copyright (C) 1999 - 2008 <NAME>, <<EMAIL>>, et al. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * vers...
// Copyright 2016, National University of Defense Technology // Authors: <NAME> <<EMAIL>> #include <vector> #include <string.h> #include "common.h" #include "pr.h" #include <timer.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <CL/opencl.h> #define SPMV_VARIANT "ocl_base" cl_platform_id cpPlatfor...
#include "EJFont.h" #include "EJCanvasContext.h" #include "lodefreetype.h" #include "EJApp.h" #define PT_TO_PX(pt) ceilf((pt)*(1.0f+(1.0f/3.0f))) EJFont::EJFont() : font_info(0), font_index(0), font_size(16) { } EJFont::EJFont(NSString* font, NSInteger size, BOOL usefill, float contentScale) : font_info(0), font_in...
//////////////////////////////////////////////////////////////////////////////// // Copyright © 2018 <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, includin...
/* modified by <NAME> <NAME> Princeton University gl_camera.cc Manages OpenGL camera and trackball/arcball interaction */ #include "common.hpp" #include "gl_camera.hpp" #include "trackball.hpp" using namespace std; #define DOF 10.0f #define MAXDOF 10000.0f #define TRACKBALL_R 0.8f #define WHEEL_MOVE 0.2f // Mouse ...
#include "morphslice.h" #include <QPainter> #include <QLabel> #include <QImage> MorphSlice::MorphSlice() { m_startSlice = 0; m_endSlice = 0; m_nX = 0; m_nY = 0; m_layout = 0; } MorphSlice::~MorphSlice() { clearSlices(); } void MorphSlice::clearSlices() { if (m_startSlice) delete [] m_startSlice; if...
/* Heatflow -- program to solve the heat equation in 1/2/3d * with variable and temperature dependent physical properties. * * Heat equation is solved with finite difference method * (forward euler in time), discretized to account for * temperature dependent material properties (see H.D.Baehr & * <NAME>, Heat a...
#include <iostream> #include <stdio.h> #include <string> #include <stdlib.h> typedef struct MUSICA{ std::string nomeMusica; struct MUSICA *proximoElmusica; }MUSICA; typedef struct PLAYLIST{ std::string nomePlaylist; struct MUSICA *nome; struct PLAYLIST *proximoElplaylist; ...