text
stringlengths
5.71k
33.7k
/* * Copyright (C) 2014 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 agree...
/* * Copyright (c) 2020, NVIDIA CORPORATION. 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 "global.h" #include "helper.h" #include <iostream> #include <algorithm> #include <iterator> #include <thread> void print_usage() { printf("[usage]:\n"); printf("\t-pINT ; PART_CNT\n"); printf("\t-vINT ; VIRTUAL_PART_CNT\n"); printf("\t-tINT ; THREAD_CNT\n"); printf("\t-qINT ; QUER...
#include "kb.h" #include "isr.h" #include "x86.h" #include <string.h> #include <task.h> enum KB_ENCODER_IO { KB_ENC_INPUT_BUF = 0x60, KB_ENC_CMD_REG = 0x60 }; enum KB_CTRL_IO { KB_CTRL_STATS_REG = 0x64, KB_CTRL_CMD_REG = 0x64 }; enum KB_CTRL_STATS_MASK { KBC_STATS_MASK_OUT_BUF = 0...
/* * MIT License * * Copyright (c) 2017 Intel Corporation * * 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...
#include "amftest.hpp" #include "amf.hpp" #include "types/amfbool.hpp" #include "types/amfdouble.hpp" #include "types/amfinteger.hpp" static void isEqual(const std::vector<u8>& expected, int value) { isEqual(expected, AmfInteger(value)); } TEST(IntegerSerialization, PositiveInteger1Byte) { isEqual(v8 { 0x04, 0x00 ...
// dear imgui: Platform Binding for SDL2 // This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) // (Info: SDL2 is a cross-platform general purpose library for handling windows, inputs, graphics context creation, etc.) // (Requires: SDL 2.0. Prefer SDL 2.0.4+ for full feature support.) // Im...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
#include "Scalar.h" #include "gtest/gtest.h" TEST(Scalar, DefaultConstructor) { const Scalar s; EXPECT_EQ(0, s.Order()); EXPECT_EQ(Rational(1,1), s.get_coefficient()); EXPECT_EQ("1", s.ToString()); } TEST(Scalar, CopyConstructor) { const Scalar s(Rational(-7, 88), 9); const Scalar s2(s); EXPECT_EQ(s...
#include <stdio.h> #include <iomanip> #include <stdlib.h> #include <string.h> #include "contpaqiproxy.h" #include "c2sproxy.h" #include "adminpaq.h" #include "c2sutils.h" #include <string> #include <curl/curl.h> #include <nlohmann/json.hpp> #include <thread> #include <iostream> #include <tinyutf8.h> #include <locale> #...
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the demonstration applications of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$...
#define BOOST_TEST_MODULE luacxx #include "main.hpp" #include "thread.hpp" #include "stack.hpp" #include "algorithm.hpp" #include "load.hpp" #include "reference.hpp" #include "convert/string.hpp" #include "convert/char.hpp" #include "convert/callable.hpp" #include "convert/numeric.hpp" #include <boost/test/unit_test...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2019 ArangoDB GmbH, Cologne, Germany /// /// 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...
#include "half.hpp" // #define USE_FP16C // #define TEST_FP16 #if defined(USE_FP16C) || defined(TEST_FP16) // #include <emmintrin.h> #include <immintrin.h> #endif // defined(USE_FP16C) || defined(TEST_FP16) constexpr static inline uint32_t float_to_bits(float f) { union{float f; uint32_t i;} u{f}; return u.i; }...
#include "L1Trigger/L1TMuonBarrel/interface/L1TMuonBarrelKalmanSectorProcessor.h" L1TMuonBarrelKalmanSectorProcessor::L1TMuonBarrelKalmanSectorProcessor(const edm::ParameterSet& iConfig, int sector) : verbose_(iConfig.getParameter<int>("verbose")), sector_(sector) { std::vector<int> wheels = iConfig.getParameter...
#include "pch.h" #include "lime\LimeSuite.h" #include <string> #include <windowsx.h> #define _USE_MATH_DEFINES #include <math.h> #include <stdlib.h> #include <iostream> #include <fstream> #define TX_BUFFER_SIZE 2 * 1024 * 16 #define CP 0x7fff using namespace std; typedef struct { short re; short...
//------------------------------------------------- // // \class L1MuGMTLUT /** * A general-purpose Look-Up-Table Class * Base class for all LUTs in the GMT * */ // // // Author : // <NAME> HEPHY Vienna // // Migrated to CMSSW: // <NAME> // //-----------------------------------------------...
#include "MetaImageImporter.hpp" #include "FAST/Exception.hpp" #include "FAST/Data/Image.hpp" #include "FAST/Utility.hpp" #include <fstream> #include <set> #include <zlib/zlib.h> using namespace fast; MetaImageImporter::MetaImageImporter() { m_filename = ""; mIsModified = true; createOutputPort(0, "Image")...
#include <sstream> #include <iomanip> #include <playback.hpp> #include <dendmaker.hpp> //node_forest make_test_nf() std::vector<std::string> make_test_nf_config() { fprintf(stdout, "\n\nTESTING NODE FOREST\n\n"); //node_forest nf; //REV: these are "permanent" settings. Sometimes I want to "add" etc. Assume ...
#include <iostream> #include <stdio.h> #include <fstream> #include <math.h> #include <vector> #include <algorithm> #include "Peril.h" int Peril::FNcross(int x1, int y1, double x2, double y2) { int a = (x1*y2)-(y1*x2); return a; } void Peril::Intersect(int x1, int y1, int x2, int y2, double x3, double y3, int x4, i...
// // // MIT License // // Copyright (c) 2017 Stellacore Corporation. // // 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 ...
/* * @copyright Copyright (c) 2017 CERN and the Allpix Squared authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an * Intergovern...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> /* @data:marzo 2022 @auhor: classe 3CI as 2021/22 @scopo:� legge i file misure.csv e posizioni.csv e produce in output il file out.csv mettendo insieme i dati dei due file, controllando le vicinanze del timestamp e prendendo l...
// 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 <stdarg.h> #include <stddef.h> #include <stdint.h> #include <initializer_list> #include <memory> #include <string> #include <vector> #inclu...
/* * Copyright 2019 <<NAME>> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
/* * Thinkpad backlight service * * Copyright (c) 2020 <NAME> * * Disables the thinkpad keyboard backlight when is not needed * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the S...
#include <unordered_map> //std::unordered_map #include <map> //std::unordered_map #include <iostream> //std::cout std::cerr #include <fstream> //std::ofstream #include <string> //std::string #include <vector> //std::vector #include <cmath> // std::ceil #include <sstream> //std::stringstream #include <set> //std::set #i...
//////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2017 christmann informationstechnik + medien GmbH & Co. KG // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to ...
#include "hls_design_meta.h" const Port_Property HLS_Design_Meta::port_props[]={ Port_Property("ap_clk", 1, hls_in, -1, "", "", 1), Port_Property("ap_rst_n", 1, hls_in, -1, "", "", 1), Port_Property("m_axi_m00_axi_AWVALID", 1, hls_out, 0, "m_axi", "VALID", 1), Port_Property("m_axi_m00_axi_AWREADY", 1, hls_in, 0, "m...
/* $KAME: sha1.c,v 1.3 2000/02/22 14:01:18 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistri...
/* * Copyright (c) 2011, Laminar Research. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merg...
//=========================================================================== /* CS277 - Experimental Haptics Winter 2010, Stanford University You may use this program as a boilerplate for starting your homework assignments. Use CMake (www.cmake.org) on the CMakeLists.txt file to generate project files for the...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <malloc.h> uint16_t BranchIP(int pc, int8_t offset) { int addr; addr = (pc+2) + offset; return addr; } int Disassemble6502(unsigned char *codebuffer, int pc, char *output_buffer) { char opstr[256]; uint8_t *opcodes = &...
// Copyright (C) 2015 <NAME> (<EMAIL>) // License: Boost Software License See LICENSE.txt for the full license. #include <dlib/python.h> #include <dlib/geometry.h> #include <pybind11/stl_bind.h> #include "indexing.h" #include "opaque_types.h" #include <dlib/filtering.h> using namespace dlib; using namespace std; n...
/* * Copyright © 2012 Intel Corporation * * 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, pub...
/** * Weighted dcpagerank with C interface. It takes a weighted and undirected graph with CSR representation * and some seed vetrices as input and computes the approximate pagerank vector on the double cover of the graph. * Choose the appropriate C interface for the data type of your input. * * INPUT: * n ...
#include "moab/Core.hpp" #include "moab/Range.hpp" #include "MBTagConventions.hpp" #include <iostream> #include <fstream> #include <limits> #include <cstdlib> #include <math.h> /* Exit values */ #define USAGE_ERROR 1 #define READ_ERROR 2 #define WRITE_ERROR 3 #define SURFACE_NOT_FOUND 4 #define OTHER_ERROR 5 static v...
#include "read_linker_output.h" //////////////////////////////////////////////////////////////////////////////////////////////////////// bool is_file_exist(std::string filename ) { std::ifstream infile(filename); return infile.good(); } ///////////////////////////////////////////////////////////////////////////////...
#include <string.h> #include <stdio.h> #include <math.h> #include <sys/time.h> #include <iostream> using std::ostream; #include "constants.hpp" #include "gTime.hpp" ostream& operator <<(ostream& stream, const GTime& time) { stream << time.time << ": " << time.sec; return stream; } /* string to number -----------...
/* * Copyright 2019 The Open GEE Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
// // main.cpp // TestLibeventServer // // Created by youdone-ndl on 2021/9/8. // // MARK: - socket: event #include<stdio.h> #include<string.h> #include<errno.h> #include<iostream> #include<unistd.h> #include<event.h> #include<arpa/inet.h> using namespace std; void socket_read_cb(int fd, short events, void *ar...
#include "Mekong-Utils.h" #include <llvm/Support/Casting.h> // instead of: //#include <llvm/IR/TypeBuilder.h> // adapt with llvm version? #include "llvm/IR/CFG.h" #include "llvm/Support/VersionTuple.h" #include <llvm/IR/IRBuilder.h> #include <llvm/IR/Instructions.h> #include <llvm/IR/Module.h> #include <llvm/Support/r...
/********** Copyright (c) 2018, Xilinx, 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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
//------------------------------------------------------------------------------------------------- // File : main.cpp // Desc : Main Entry Point. // Copyright(c) Project Asura. All right reserved. //------------------------------------------------------------------------------------------------- //------------...
#include "montecarlo.h" #include "main.h" #include "rng.h" #include "class_tic_toc.h" void metropolis( struct Node* Site, struct MC_parameters &MCp, struct H_parameters &Hp, double my_beta){ double l, phi, d_theta, d_A, rand; unsigned int ix=0, iy=0, iz=0, alpha=0, vec=0, i; double acc_rate=0.5, acc_l=0....
// This file is part of Notepad2. // See License.txt for details about distribution and modification. //! Lexer for Kotlin. #include <cassert> #include <cstring> #include <vector> #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #i...
/****************************************************************/ /* Parallel Combinatorial BLAS Library (for Graph Computations) */ /* version 1.6 -------------------------------------------------*/ /* date: 6/15/2017 ---------------------------------------------*/ /* authors: <NAME>, <NAME> ------------------------...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2019, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2018, STEREOLABS. // // All rights reserved. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIE...
#include "b-star.h" #include <assert.h> #include <stdlib.h> #include <algorithm> #include <deque> #include <functional> #include <memory> #include <vector> #include "boundaries.h" using namespace std; BStar::BStar() : nodes(vector<unsigned>()), pin_list_ptr(nullptr) {} // static unsigned parent(unsigned index) { ...
#include "rgbdsensor.hpp" #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc_c.h> #include <cmath> #include <iostream> namespace{ unsigned char* convertTo8Bit(float* in, unsign...
/* ----------------------------------------------------------------------- * qp.c: * * Synopsis: * [x,QP,QD,exitflag,nIter] = qp(H,f,b,uint32(I),uint8(S),x0,MaxIter,TolAbs,TolRel...
#include <xapian.h> #include <dirent.h> #include <cstdio> #include <cstring> #include <regex> #include <algorithm> #include <exception> #include <cstdarg> #include <liquid/liquid.h> #include "ngx_xapian_search.h" using namespace std; using namespace Xapian; bool has_error = false; char error_buffer[1024]; const cha...
/****************************************************************/ /********************Image Pixel Vakues********************/ /****************************************************************/ template<typename PtsT> class PixVals { VectorXd &pix_vals; const EigImgType &img; const PtsT &pts; int h, w; ...
#include "Codegen.h" #include "Exp.h" #include "FuncDef.h" #include "Program.h" #include "Stmt.h" #include "Visitor.h" #include <llvm/IR/Argument.h> #include <llvm/IR/IRBuilder.h> #include <llvm/IR/LLVMContext.h> #include <llvm/IR/Module.h> #include <llvm/Support/raw_ostream.h> using namespace llvm; /...
#include "host/baseline.h" #include "host/ocl.h" #include <malloc.h> #include <stdio.h> #include <dirent.h> #include <cstdlib> #include <ctime> #include "bwa/bwa.h" #define BWT_SIZE 775451201 uint64_t time_total = 0; bool first_time = true; timespec diff(timespec& start, timespec& end) { timespec temp; if ((end....
// Copyright 2016 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 i...
/** @file MODULE : MotionEstimatorImpl1 TAG : MEI1 FILE NAME : MotionEstimatorImpl1.h DESCRIPTION : A standard motion estimator implementation of squared error distortion measure. Access via a IMotionEstimator interface. REVISION HISTORY : COPYRIGHT : ...
// // main.cpp // audio_feature_extractor // // Created by <NAME> on 9/16/17. // Copyright © 2017 fidenz. All rights reserved. // #include <iostream> #include <fstream> #include <dirent.h> #include "mfcc.cpp" #include <gflags/gflags.h> #include <glog/logging.h> #include <google/protobuf/text_format.h> #if define...
// // main.cpp // Benchmark // // Created by <NAME> on 2013-05-10. // Copyright (c) 2013 <NAME>. All rights reserved. // #include "clockprovider.h" #include "bufferfactory.h" #include <audio/trace.h> #include <audio/rawbuffer.h> #include <audio/stage.h> #include <audio/host/mac/coreaudioendpoint.h> #include <ve...
#include <string> #include "ora.hh" #include "gtest/gtest.h" using namespace ora::lib; using namespace ora; using namespace ora::daytime; using std::string; double constexpr NaN = std::numeric_limits<double>::quiet_NaN(); //------------------------------------------------------------------------------ // Class Day...
/* Copyright 2007-2008 Haiku, Inc. All rights reserved. Distributed under the terms of the MIT license. Authors: <NAME> 2007-2008 */ #include "accel.h" #include <create_display_modes.h> // common accelerant header file #include <string.h> #include <unistd.h> void InitCrtcTimingValues(const DisplayModeEx& mo...
#include "SimulationCore_pcp.h" #include "Model_S2D_CHM_MPM_s.h" Model_S2D_CHM_MPM_s::Model_S2D_CHM_MPM_s() : Model("Model_S2D_CHM_MPM_s"), nodes(nullptr), node_x_num(0), node_y_num(0), pcls(nullptr), pcl_num(0), bfx_num(0), bfy_num(0), bfxs(nullptr), bfys(nullptr), tx_num(0), ty_num(0), txs(nullptr), tys(nul...
#include <vector> #include <cstdlib> #include <ctime> #include <iostream> #include <fstream> #include <sstream> #include <cstdio> #include <string> #include <cmath> //#define SMALL 0.0001 using namespace std; /* Symbol Conventions: ** X, Y, Z: True coordinates (including lower case) ** A, B, C: Number of...
#include "registration_analysis.h" using namespace texpert; /* Constructor @param window_width, window_height - size of the opengl window in pixel. @param window_name - string containing the label for the opengl window. */ FMEvalApp::FMEvalApp(int window_height, int window_width, string window_name): _window_height...
/* * BtleCom.cpp * * Created on: Apr 10, 2017 * Author: Zarnowski */ #include "BtleCommWrapper.h" #include <functional> #include <exception> #include <stdint.h> #include <unistd.h> #include <string.h> #include <algorithm> #include "BluetoothGuard.h" #include "HciWrapper.hpp" extern "C" { #include "libgat...
#include "template.h" #include "gist.h" #include "parameters.h" #include <boost/lexical_cast.hpp> #include <glog/logging.h> /* Design: this class can sample it's own state based on the underlying DP, however it is up to the controlling class to register the new state with the DP */ /* constructor ( with random init...
#include <string> #include <sstream> #include <map> #include <boost/algorithm/string.hpp> #include <boost/filesystem.hpp> #include <boost/foreach.hpp> #include <boost/format.hpp> #include <framework/misc.h> #include <framework/framework.h> #include <framework/colour.h> #include <framework/graphics.h> #incl...
#include <iostream> #include <fstream> #include <algorithm> #include <cmath> #include <cstring> #include "FaceLandmarkerPrivate.h" #ifdef _WIN32 #include <WinSock2.h> #else #include <arpa/inet.h> #endif #ifdef _WIN32 #pragma comment(lib, "Ws2_32.lib") #endif FaceLandmarkerPrivate::FaceLandmarkerPrivate(const char *m...
// this code comes from https://www.youtube.com/watch?v=alhpH6ECFvQ // "Coding Challenge #132: Fluid Simulation" // it has been adapted to the "Pixel Game Engine" from Javidx9 // https://community.onelonecoder.com/ // // build & run // cmake -A x64 .. && cmake --build . --config Release && Release\fluid.exe #include "...
/* file: main.cpp */ #include <iostream> #include <iomanip> #include <string> #include <random> #include <fstream> #include <map> #include <sstream> #include "../include/game.hpp" #include "../include/rndGen.hpp" #include "../include/gamePlay.hpp" #define RESET "\033[0m" #define BLACK "\033[30m" /* Black */...
//****************************************************************************** // // Copyright (c) Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during i...
/****************************************************************************** * Name: jlp_process_images.cpp * * Purpose: simple image processing used by JLP_iGDev_wxWID and JLP_wx_iGDProc1 * * Author: JLP * Version: 27/12/2015 ******************************************************************************...
/* * Copyright (c) 2008 <NAME>, <NAME>, <NAME> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include <iostream> #include <fstream> #include <set> #include <unordered_set> #include <limits> #include <sstream> #include <iomanip> #include "../nlohmann/json.hpp" using namespace std; using json = nlohmann::json; // begin trivial helper ...
/* -*-C++-*- (c) Copyright 2004-2005, Hewlett-Packard Development Company, LP See the file named COPYING for license details */ /** @file some string utilities */ #define __STDC_LIMIT_MACROS #include <cctype> // #include <ctype.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <sys/t...
/* * Copyright (C) Cvitek Co., Ltd. 2019-2020. All rights reserved. * * File Name: TgPermuteKernel.cpp * Description: */ #include "TgPermuteKernel.hpp" #include "CviBackendContext.h" #include <llvm/Support/Debug.h> #include <llvm/Support/Format.h> #include <llvm/Support/raw_ostream.h> #define DEBUG_TYPE "cvi_bac...
/** * @file Display.cpp * @author <NAME> * @brief * @version 0.1 * @date 2019-10-21 * * Copyright (c) 2020 <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 restri...
/* Fitting Formulae for CDM + Baryon + Massive Neutrino (MDM) cosmologies. */ /* <NAME> & <NAME>, Institute for Advanced Study */ /* There are two primary routines here, one to set the cosmology, the other to construct the transfer function for a single wavenumber k. You should call the former once (per cosmology) an...
// // Simu5G // // Authors: <NAME>, <NAME>, <NAME> (University of Pisa) // // This file is part of a software released under the license included in file // "license.pdf". Please read LICENSE and README files before using it. // The above files and the present reference are part of the software itself,...
/* * Copyright 2016 -- 2021 IBM 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 o...
// Copyright (c) 2014-2020, <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 above copyright notice, this // list of condit...
#include <common.h> #include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <iostream> #include <cassert> #include <cmath> #include <string> #include <queue> #include <set> #include <map> #include <cstdlib> #include <chrono> #include <random> using namespace std; struct MySolver : public...
#include <ros/ros.h> #include <ros/package.h> #include <stdio.h> #include <unistd.h> #include <string> #include <vector> #include <unordered_map> #include <iostream> #include <memory> #include <tuple> #include <set> #include <sstream> #include <thread> #include <atomic> #include <mutex> #include <future> #include <exc...
#include "cxxopts.h" #include <niu2x/gfx.h> #include <niu2x/log.h> #include <math.h> #define PI 3.1415926 namespace gfx = nx::gfx; namespace math = nx::math; static gfx::program_t* program = nullptr; static gfx::program_t* program000 = nullptr; static gfx::program_t* ambient_program = nullptr; static gfx::render_...
/* Software SPAMS v2.1 - Copyright 2009-2011 <NAME> * * This file is part of SPAMS. * * SPAMS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any...
// ------------------------------------------------------------------------------------------------ // Copyright (c) <NAME>. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ---------------------------------------------------------------------------...
#include "Renderer.h" Renderer::Renderer(int windowWidth, int windowHeight) { this->windowWidth = windowWidth; this->windowHeight = windowHeight; init(); } Renderer::Renderer() { init(); } Renderer::~Renderer() { } ///@brief Update the current deltatime of the frame, at the end of the frame void Renderer::updat...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
/*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...
// AUTHOR: <NAME> (https://github.com/seanmarks) #include "Wham.h" #include "Bias.h" #include "LogSumExp.hpp" Wham::Wham( const OrderParameterRegistry& op_registry, const std::vector<Simulation>& simulations, const std::vector<OrderParameter>& order_parameters, const std::vector<Bias>& biases, const std::vector<d...
/************************************************************************ * * test_issue16717.cpp - regression test for Onyx issue #16717 * * $Id$ * ************************************************************************ * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor li...
/* * File: lottie_export.cpp * Author: sot * * Created on 26 sep 2019 y., 20:38 */ #include "lottie_export.h" int write_png(byte *buffer, size_t w, size_t h, FILE *out_file) { png_structp png_ptr = nullptr; png_infop info_ptr = nullptr; png_byte **row_pointers; png_ptr = png_create_write_struct(PNG_LIBPN...
/* * Copyright (c) 2008-2009 <NAME>, 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 b...
/* Copyright (c) <2003-2019> <Newton Game Dynamics> * * 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 granted to anyone to use this software for any purpose, * includi...
//===- tools/seec-cc/main.cpp ---------------------------------------------===// // // SeeC // // This file is distributed under The MIT License (MIT). See LICENSE.TXT for // details. // //===----------------------------------------------------------------------===// /// /// \file Mos...
// Copyright (C) 2018-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /** * \brief The entry point for the Inference Engine Human Pose Estimation demo application * \file human_pose_estimation_demo/main.cpp * \example human_pose_estimation_demo/main.cpp */ #include <vector> #include <inference_engin...
/************************************************************************** * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...