text
stringlengths
3.08k
22k
// Copyright [2020] <Copyright Kevin, <EMAIL>> #include <unistd.h> #include <fstream> #include "fmt/format.h" #include "ft/utils/config_loader.h" #include "ft/utils/misc.h" #include "spdlog/spdlog.h" #include "trader/risk_management/etf/etf.h" #include "xtp_trader_api.h" const char* XtpMaketStr(XTP_MARKET_TYPE mark...
/** * @file src/unpackertool/unpacker.cpp * @brief Main function and help. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include <cstddef> #include <iostream> #include <memory> #include "retdec/utils/conversion.h" #include "retdec/utils/filesystem_path.h" #include "retdec/utils/memory.h...
#include <stdlib.h> #include <fstream> #include <iostream> #include <string> #include <sstream> #include <map> #ifdef WIN32 #include <Windows.h> #else #include <unistd.h> #endif #include "SDL.h" #include "SDL_net.h" #include "net_shared.h" #include "gameplay_defines.h" #include "game_io.h" #include "game_play.h" #i...
#include <dev/bus/PciBus.hpp> #include <iob.h> #include <string.h> #include <malloc.h> #include <dev/bus/pci_list.hpp> #include <cxx/stl.hpp> #include <string.h> using namespace dev; using namespace dev::bus; #define PCI_CONFIGURATION_ADDRESS 0x0CF8 #define PCI_CONFIGURATION_DATA 0x0CFC pci_bus::pci_bus() : dev::...
#include "cdcl_trans_similarity2d.h" #include <vnl/algo/vnl_svd.h> #include <vnl/vnl_transpose.h> //: // \file // \brief 2D similarity transformation. // \author <NAME> // \date May 2006 // Default construct similarity transformation, default is identity. cdcl_trans_similarity2d::cdcl_trans_simila...
//////// // // class to store the 96-bit track word produced by the L1 Track Trigger. Intended to be inherited by L1 TTTrack. // packing scheme given below. // // author: <NAME> // modified by: <NAME> // created: April 9, 2019 // modified: March 9, 2021 // /////// #include "DataFormats/L1TrackTrigger/interface...
/* * iaf_psc_exp.cpp * * This file is part of NEST. * * Copyright (C) 2004 The NEST Initiative * * NEST is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (a...
/* * File: cam_plug.cpp * Author: vinod (<EMAIL>) * File purpose: * This class implements the plug flow model * Licence: * This file is part of "Camflow". * * Camflow is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Fre...
#include "game.h" #include <algorithm> Font font; vector<float> calculate_trajectory(float kp, float kd, float &score) { float y0 = 0.0f; float v0 = 0.0f; float t = 0.0f; float dt = 0.01f; float T = 10.0f; float y = y0; float v = v0; vector<float> trajectory; float error1 = 0.0f; float error2 = 0.0f; while...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------...
/* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ * \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/ *...
/**************************************************************************** * Copyright 2016 BlueMasters * * 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...
// -*- C++ -*- // // ====================================================================== // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright ...
/* 综合题 马踏棋盘 国际象棋的棋盘为8*8的方格棋盘。 现将“马”放在任意指定的方格中,按照“马”走棋的规则,将“马”进行移动。 要求每个方格只能进入一次,最终使得“马”走遍棋盘的64个方格。 编写一个C程序,实现马踏棋盘操作, 要求用1~64这64个数字标注马移动的路径, 也就是按照要求出的行走路线, 将数字1,2,...64一次填入棋盘的方格中,并输出。 */ #include <iostream> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include <ve...
#include <Arduino.h> //code inspired - basically copied ;) from <NAME>'s fantastic 8bit computer series //which references A Malvino's Digital Computer Electronics. #define SHIFT_DATA_OUT A0 #define SHIFT_DATA_IN A1 #define SHIFT_CLK A3 #define SHIFT_MODE0 10 #define SHIFT_MODE1 11 #define EEPROM_WRITE_ENABLE A4 #...
#include <Arduino.h> //relay #define RELAY_PIN 5 // #include <AccelStepper.h> // #define STEP_MODE_CONSTANT_VEL (0xDE00 + 0x01) #define STEP_MODE_ACCELERATING (0xDE00 + 0x02) // #define STEP_MODE STEP_MODE_CONSTANT_VEL // #define STEP_MODE STEP_MODE_ACCELERATING // NOTE: --> well.. accel...
/* * StdLib.cpp * * Created on: Feb 17, 2015 * Author: belyaev */ #include "Executor/ExecutionEngine.h" #include "Logging/tracer.hpp" #include "Codegen/intrinsics.h" #include "Config/config.h" #include <cmath> #include <lib/typesig/typesig.hpp> #include <llvm/Target/TargetLibraryInfo.h> using namespace b...
#include <array> #include <chrono> #include <future> #include <iostream> #include <math.h> #include <stdint.h> #include <vector> #include "keypoints.h" #include "constants.h" #include "resize.h" using std::array; using std::async; using std::cout; using std::endl; using std::future; using std::max; using std::min; us...
// Filename: ml.cpp // Version: Standalone C++ Version // Date: May 10, 2022 // // Author: <NAME> // Mathematical Institute // University of Tuebingen // Germany // <EMAIL> // // Random number generator for the Mittag-Leffler distribution // // Please compile this file usi...
// un fichier où seront placés les tests de digeo // pour le moment un endroit où stocker des fonctions en vrac pour ne pas les perdre bool compare_digeo( const list<DigeoPoint> &i_list, const vector<DigeoPoint> &i_vector ) { if ( i_list.size()!=i_vector.size() ) return false; size_t i = i_vector.size(); list<Digeo...
/******************************************************************************* * Copyright (c) 2016 manxinator * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, includi...
#include "math.h" #include "class_handle.hpp" #include <Opcode.h> using namespace Opcode; #define DEBUG 0 // Copyright (c) 2013 <NAME> //struct Mesh { // int *faces; // float *vertices; //}; // static void trivertsCallback(udword trix, VertexPointers& triangle, void* data) // { // Mesh *fv = (Mesh*)data; // ...
#include <iostream> #include <fstream> #define NORTH 1 #define SOUTH 2 #define WEST 3 #define EAST 4 void get_direction(int command, int& dx, int & dy) { switch(command) { case NORTH: dx=0;dy=1;break; case SOUTH: dx=0;dy=-1;break; case WEST: dx=-1;dy=0;break; case EAST: dx=1;dy=0;b...
/* * Copyright (c) 2010-2013 BitTorrent, Inc. * * 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, merg...
/** * @file main.cc * @author <NAME> (yawning at schwanenlied dot me) * @brief obfsclient main entry point */ /* * Copyright (c) 2014, <NAME> <yawning at schwanenlied dot me> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provi...
#include <bits/stdc++.h> using namespace std; enum LexType { LEFT_BRACKET, RIGHT_BRACKET, NUMBER, FUNCTION, BINARY_OPERATOR, UNARY_OPERATOR }; class Lexeme { private: LexType _type; string _value; public: Lexeme(LexType type, string value): _type(type), _value(value) {} ~Lexem...
// // Created by moriya on 19/02/17. // #include "CircuitConverter.hpp" #include <vector> void CircuitConverter::convertBristolToScapi(string bristolFileName, string scapiFileName, int numParties, bool isMultiParty){ int inFan, outFan, input0 , output, numberOfGates, numberOfOutputs, numberOfWires; v...
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ File: configdata.cpp Description: Date: 7/28/97 Version: 1.0 Module: Notice: Copyright 1997 Qualcomm Inc. All Rights Reserved. Copyright (c) 2016, Computer History Museum All rights reserved. Redistribution ...
/**** , [ Worker.cc ], Copyright (c) 2010 <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 restriction, including without limitation the rights to use, copy, modify, m...
#include <unistd.h> #include <mpi.h> #include "works.h" #include "master.h" #include "work.h" #include "communicator.h" #include "macros.h" #include "solution.h" #include "pbab.h" #include "ttime.h" #include "log.h" #include "gmp.h" #include "gmpxx.h" #define MAX_INTERVALS 16384 //max buffersize master::master(pb...
// // MIT License // // Copyright 2019 // // 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...
// ======================================================================== // // Copyright 2009-2016 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define gc getchar() #define pc(x) putchar(x) template<typename T> void scan(T &x){x = 0;bool _=0;T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x=_?-x:x;} template<typename T> void print...
/* * Package: nova_gps * Filename: GPSInterfaceNode.cpp * Author: <NAME> * Email: <EMAIL> * Copyright: 2021, Nova UTD * License: MIT License */ #include <chrono> #include <functional> #include <iostream> #include <string> #include "nova_gps/GPSInterface.hpp" #include "nova_gps/ConcreteGPSInterface.h...
#include <iostream> #include "FinDetector.h" #include <opencv_workbench/utils/OpenCV_Helpers.h> #include <opencv_workbench/syllo/syllo.h> #include <opencv2/video/video.hpp> using std::cout; using std::endl; FinDetector::FinDetector() { output_file_.open("/home/syllogismrxs/fins.csv"); //o...
// RUN: %check_clang_tidy -std=c++20 %s readability-container-contains %t // Some *very* simplified versions of `map` etc. namespace std { template <class Key, class T> struct map { unsigned count(const Key &K) const; bool contains(const Key &K) const; void *find(const Key &K); void *end(); }; template <clas...
// This tests: // Behavior of EventSelector functions testSelectionOverlap and // maskTriggerResults // Note - work in progress - only very cursory testing is done right now! #include "FWCore/Framework/interface/EventSelector.h" #include "DataFormats/Common/interface/TriggerResults.h" #include "FWCore/ParameterS...
/**************************************************************************** Copyright (c) 2012-2013 cocos2d-x.org http://www.cocos2d-x.org 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 withou...
#include <list> #include <string> #include <iostream> #include <chrono> #include "lcaTree.hpp" #include "generateRandTrees.hpp" #include "lcaMultilevel.hpp" using std::chrono::high_resolution_clock; using std::chrono::duration_cast; using std::chrono::duration; using std::chrono::microseconds; using std::chrono::nanos...
/****************************************************************************** File: image.cpp Description: Object Memory management image save method definitions for Dolphin Smalltalk ******************************************************************************/ #include "ist.h" #if defined(TO_G...
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
#include <algorithm> #include <chrono> #include <cmath> #include <fstream> #include <iostream> #include <iterator> #include <string> #include <vector> #include "Light.h" #include "Vec3f.h" constexpr int WIDTH = 2048; constexpr int HEIGHT = 2048; using Color = Vec3f; using namespace std::chrono; struct Sphere { ...
#include <Arduino.h> #include "tft.h" TFT_eSPI tft = TFT_eSPI(); // Invoke custom library #define TFT_LED 16 // Return the minimum of two values a and b #define minimum(a,b) (((a) < (b)) ? (a) : (b)) void initTFT(){ // Initialise the TFT screen tft.init(); // Turn on Backlight pinMode(TFT_LED, O...
#include <Arduino.h> // ---------------------------------------------------------------------------- // uncomment lines to your taste: //#define FORCE_COLDSTART // ---------------------------------------------------------------------------- #define USB Serial #define GPS Serial2 // cfg-tp5 message: time pulse parame...
/** * @file opl-util.cpp * @brief Utility functions related to OPL chips. * * Copyright (C) 2010-2015 <NAME> <<EMAIL>> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3...
//////////////////////////////////////////////////////////////////////////////// // 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 // // http://w...
// Copyright (c) 2017-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...
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ #include "blingfire-compile_src_pch.h" #include "FAConfig.h" #include "FAParsedRegexp2TrBrMaps.h" #include "FAAllocatorA.h" #include "FARegexpTree.h" #include "FARegexpTree2Funcs.h" #include "FAMultiMap...
// // Created by nima on 16/11/17. // #include <image_transport/image_transport.h> #include <custom_conversions/Conversions.h> #include "ManipulatorToWorldCalibration.h" ManipulatorToWorldCalibration::ManipulatorToWorldCalibration( Manipulator *manip) :manipulator(manip) { ros::NodeHandle n("~");...
/** * 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 ...
/***************************************************************************** * * XVID MPEG-4 VIDEO CODEC * - Prediction module - * * Copyright (C) 2001-2003 <NAME> <<EMAIL>> * 2001-2003 <NAME> <<EMAIL>> * * This program is free software ; you can redistribute it and/or modify * it under t...
/* * CTextViewer.cpp * * Created on: 12.08.2009 * Author: gerstrong */ #include <fstream> #include <base/CInput.h> #include "CTextViewer.h" #include "graphics/GsGraphics.h" #include <base/video/CVideoDriver.h> #include <base/utils/FindFile.h> #include <base/GsLogging.h> CTextViewer::CTextViewer(int x, int...
/* Copyright (c) 2006, <NAME> and <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following ...
#include<stdio.h> #include<windows.h> #include<conio.h> #include<stdlib.h> #include<time.h> #define LEN 30 #define WID 25 FILE * fp; int Snake[LEN][WID]= {0}; char Sna_Hea_Dir='a'; char Sna_Hea_X,Sna_Hea_Y; int Snake_Len=3; clock_t Now_Time; int Wait_Time; int Eat_Apple=1; int Level; int All_Score=-1; int Apple_Num=...
#include <cmath> #include "tilescolorscheme.h" QColor hsl(double h, double s, double l) { return QColor::fromHslF(h, s, l); } QColor mix(QColor a, QColor b, double m = 0.5) { qreal ha, sa, la; qreal hb, sb, lb; a.getHslF(&ha, &sa, &la); b.getHslF(&hb, &sb, &lb); constexpr double twopi = 6.28318530717958647688;...
// Copyright (c) 2021 PaddlePaddle 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...
#include <rapidcheck.h> #include "driver/AirPacket.hpp" #include "common/SafeQueue.hpp" #include "common/convert.hpp" #include "driver/VerifyHash.hpp" #include "FileUtils.hpp" // #include "schedule.h" #include <algorithm> #include <iostream> #include <iomanip> #include "cpp_utils.hpp" #include "../data/packet_vector...
#include "MacroscopicProperties.H" #include "Utils/WarpXUtil.H" #include "WarpX.H" #include <AMReX_Array4.H> #include <AMReX_BoxArray.H> #include <AMReX_Config.H> #include <AMReX_DistributionMapping.H> #include <AMReX_Geometry.H> #include <AMReX_GpuLaunch.H> #include <AMReX_IndexType.H> #include <AMReX_IntVect.H> #in...
// Copyright (c) 1999 <NAME> // // $Id$ // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, version 2 // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY W...
#include <assert.h> #include <linux/futex.h> #include <sys/syscall.h> #include <limits.h> #include <unistd.h> #include <immintrin.h> #include <errno.h> #include <thread> #include <time.h> #include "futex_mutex.h" #define atomic_load(addr) __atomic_load_n(addr, __ATOMIC_CONSUME) #define atomic_store(addr, val) __atomi...
/* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any l...
// The MIT License (MIT) // // Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project // // 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 wit...
#pragma once /*----------------------------------------------------------------------------*/ /* */ /* Copyright (c) Innovation First 2020 All rights reserved. */ /* Licensed under the MIT license. ...
// =============================================================== // Generic Ampl interface to facilitate usage from other languages // <NAME> // Vancouver, April 2014. // Montreal, February 2015. // =============================================================== #include "aslinterface.h" // Module functions. stati...
#include <stdlib.h> #include <GL/glut.h> #include "RgbImage.h" GLfloat xRotated, yRotated, zRotated; GLuint texture[3]; // Storage For One Texture ( NEW ) /* * Read a texture map from a BMP bitmap file. */ void loadTextureFromFile(char *filename,int index) { glClearColor (0.0, 0.0, 0.0, 0.0); glS...
/* * This file is part of MICA, a Pin tool to collect * microarchitecture-independent program characteristics using the Pin * instrumentation framework. * * Please see the README.txt file distributed with the MICA release for more * information. */ /* MICA includes */ #include "mica_init.h" /* * Setup MICA lo...
// Copyright 2018 <NAME>. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include "mredis/AsyncClient.hpp" #include "tools/Log.hpp" #include "tools/Random.hpp" #include <boost/config.hpp> #include <boost/asi...
// Created by <NAME> on 20/03/2018. // Copyright © 2018 <NAME>. All rights reserved. // #include "SpatialGaussianStimulus.hpp" SpatialGaussianStimulus::SpatialGaussianStimulus(NeuronPopSample *neur,std::vector<std::string> *input,GlobalSimInfo * info):Stimulus(neur,info){ //***********************...
// written by <NAME> 2008 - 2014 // this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important. // i do not offer support, so don't ask. to be used for inspiration :) #include "utils.hpp" #include "log.hpp" #include "math/vector3.hpp" #include "ma...
// Copyright (c) 2021 Graphcore Ltd. All rights reserved. // // This custom operator implements the CTC loss // #include <algorithm> #include <iostream> #include <memory> #include <numeric> #include "ctcloss_utils.hpp" #include <poplar/Engine.hpp> #include <poplar/Graph.hpp> #include <poplar/IPUModel.hpp> #include ...
// Run like this //./generate --data competition/S1a/S1b_short_dataset1_training.csv // This code will forecast 4 unknown parameters of the Matern covariance matrix // Developed by <NAME> (RWTH Aachen) and <NAME> (MIS MPG Leipzig) // Based on the HLIBPro library (v. 2.9) www.hlibpro.com // No warranties. #in...
/* Copyright (c) 2006, NIF File Format Library and Tools All rights reserved. Please see niflib.h for license. */ //-----------------------------------NOTICE----------------------------------// // Some of this file is automatically filled in by a Python script. Only // // add custom code in the designated areas o...
/* * Copyright (c) 2020-2021 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 */ #include "ProjMgr.h" #include "ProjMgrTestEnv.h" #include "RteFsUtils.h" #include "gtest/gtest.h" #include <fstream> using namespace std; class ProjMgrUnitTests : public ProjMgr, public ::testing::Test { pro...
/* // Copyright (c) 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
#include "stats.h" #include <iostream> #include "gmock/gmock.h" #include "Cube.h" #include "FileName.h" #include "ImageHistogram.h" #include "Pvl.h" #include "SpecialPixel.h" using namespace Isis; class MockCube : public Cube { public: MOCK_CONST_METHOD0(bandCount, int()); MOCK_CONST_METHOD0(fileName, QS...
#include "stdafx.h" #include "PmxModel.h" #include "KeyFrameAnimation.h" #include "Model.h" #include "Pmx.h" #include "CompiledShaders/PmxColorVS.h" #include "CompiledShaders/PmxColorPS.h" using namespace Utility; using namespace Graphics; namespace { const std::wstring ToonList[10] = { L"toon01.bmp", ...
//================================================================================================= // Copyright (c) 2014, <NAME>, WUT //Faculty of Power and Aeronautical Engineering (MEiL)/ZTMiR Laboratory // All rights reserved. //======================================================================================...
/* @file TkrSplitsSvc.cxx @brief keeps track of the left-right splits of the tracker planes @author <NAME> $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/TkrUtil/src/TkrSplitsSvc.cxx,v 1.23 2011/12/14 18:49:45 heather Exp $ */ #include "src/TkrSplitsSvc.h" #include "GaudiKernel/MsgStream.h" #include "Gau...
/** @file @author <NAME> @copyright Copyright (c) 2008-2020 Regents of the University of California @brief Member functions projected_hess_determinant,iget_particular_grad, prof_minimize for class function_minimizer. */ #include <admodel.h> #include <df1b2fun.h> #include <adrndeff.h> #ifdef ISZERO #undef ISZERO #en...
/* (c) 2016 Jyamiti Group, CSE, OSU */ #include "SimPersWrapper.hpp" extern std::vector<int> complexSizes; extern std::vector<int> accumulativeSizes; extern int accumulativeSize; extern float fThreshold; extern vector<float> vecFiltrationScale; extern SimplicialTree<bool> domain_complex; //extern SimplicialTree<bool>...
// Copyright (C) 2003, International Business Machines // Corporation and others. All Rights Reserved. #include "ClpSimplex.hpp" #include "ClpFactorization.hpp" #include "VolVolume.hpp" #include "Presolve.hpp" //############################################################################# class lpHook : public VOL_...
#include <iostream> #include <string> #include <vector> #include <time.h> using namespace std; class leaf { private: int id; string information; leaf *left, *right; public: leaf(); leaf(int id_, string information_); ~leaf(); // Setters void set_id(int id_) { this->id = id_; } void set_information(string ...
/* * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ #include "ObjectTestSupport.hpp" #include <thread> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "Natives.h" using namespace kotlin; namespace { stru...
#include "dcpots/dcnode/dcnode.h" #include "dcpots/base/logger.h" #include "orm/proto/pborm.pb.h" #include "orm/pborm_msg.h" #include "pborm_api.h" #define MAX_ORM_MSG_BUFF_SIZE (2*1024*1024) static struct pborm_ctx_t { dcnode_t *dc;//receiver from pborm_cb_t cb; void ...
/******************************************************************************* * Copyright (c) 2012-2013, The Microsystems Design Labratory (MDL) * Department of Computer Science and Engineering, The Pennsylvania State University * Exascale Computing Lab, Hewlett-Packard Company * All rights reserved. * * This sourc...
/****************************************************************************** ** Copyright (c) 2014-2015, Intel Corporation ** ** All rights reserved. ** ** ** ...
/* * Name: <NAME> * Final Project - Library Simulator * Course: CSI218 (Fall 2018) * Date: 12/2/18 (Started) @v1 12/17/18, 12/17/18 (Due) * Description: This program simulates a library. * A Reader attempts to borrow multiple Books from the library, * looks thru them, and then returns those books back to the lib...
/* * Copyright 2008-2009 NVIDIA 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 <NAME> http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is ...
#include "SVDcalculator.h" #include "Eigen/Dense" #include "libVcf/libVcfFile.h" #include <Error.h> #include <fstream> #include <unordered_map> #include <unordered_set> using namespace libVcf; using namespace Eigen; SVDcalculator::SVDcalculator() { numIndividual = 0; numMarker = 0; } SVDcalculator::~SVDcalcul...
// // Copyright 2007 OpTrip, Inc. // // Author: <NAME> // #include <mutex> #include <netdb.h> // openssl headers #include <openssl/bio.h> #include <openssl/ssl.h> #include <openssl/err.h> #include "util/network/sslclient.h" #include "util/network/dnslookup.h" #include "util/string/strutil.h" // singleton class that...
bool is_square; LL a, b, c; LL c_root; struct Lattice { LL s, t; Lattice(): s(0), t(0) {} explicit Lattice(int it) { if (it == 0) s = b, t = 0; else if (it == 1) s = a, t = 0; else if (it == 2) s = 0, t = 1; else if (it == 3) s = a*b, t = 0; else assert(0...
/**************************************************************************** ** ** Copyright (C) 2016 <NAME> ** ** "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 ...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
#include "all.h" #include "C_music.h" #include <math.h> //---------------------------- //temp: extern LOADER *firstloader; //---------------------------- static short lin2log(dword val){ if(!val) return 0; // 1..64 -> 0..10000 logarithmic */ ...
/* Copyright (C) 2005-2011, <NAME> <<EMAIL>> Copyright (C) 2008-2011, <NAME> <<EMAIL>> 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...
// ordShell.cpp // A program shell for the ordered linked list lab, Lesson 33 #include <iostream> #include <iomanip> #include <fstream> //#include <bool> //#include <apstring.h> #include <stdlib.h> #include <string> using namespace std; const string SOURCE = ("C:\\Users\\041123\\Documents\\Visual Stud...
// Created by Heresy @ 2015/02/10 // Blog Page: https://kheresy.wordpress.com/2015/02/11/k4w-v2-part-6-draw-with-opengl/ // This sample is used to show Kinect data in triangles form. // Standard Library #include <array> #include <iostream> // freeglut header #include <GL/freeglut.h> // Kinect for Windows SDK Header ...
#include <string> #include <ctype.h> #include <stdio.h> #include <string.h> #include <GL/glew.h> #include <GLFW/glfw3.h> #include <soil/SOIL.h> #include "scene.h" #include "vboindexer.h" #include "object3d.h" #include "entityloader.h" #include "tangentspace.h" #include "game.h" EntityLoader::EntityLoader() { lo...
// Copyright 2014 The Souper 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...