text
stringlengths
5.71k
33.7k
/* Copyright (c) 1996-2004, Adaptec 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...
#include "ProtocolHandler.h" #include "NodeDiscovery.h" #include <chrono> #include <glog/logging.h> #include <pthread.h> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include "lichtenstein_proto.h" #include "LichtensteinUtils.h...
// Copyright 2015 PDFium 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 <limits> #include <string> #include "core/fxcrt/fx_coordinates.h" #include "fpdfsdk/fpdfview_c_api_test.h" #include "public/fpdfview.h" #include "test...
/// @file /// @brief Project Azalea Kernel - Main entry point. #define ENABLE_TRACING #include <stdint.h> #include "klib/klib.h" #include "processor/processor.h" #include "processor/timing/timing.h" #include "mem/mem.h" #include "syscall/syscall_kernel.h" #include "acpi/acpi_if.h" #include "object_mgr/object_mgr.h" ...
// ------------------------------------------ // File abscissa.cc // ------------------------------------------ #include <string> #include "a.h" #include "abc.h" #include "absurdum.h" #include "ack.h" #include "abscissa.h" // ------------------------------------------ int* alls(int hundralapp, std::string* hur) { ...
//------------------------------------------------------------------------------ // SqueezeNetOnFPGA //------------------------------------------------------------------------------ // // File: unittests.cpp // // Unit Tests for FPGA Modules // // (c) <NAME>, 2016 // //-----------------------------------------------...
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2009 <NAME> http://bulletphysics.org 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 a...
#include "CEncoder.h" #include <algorithm> #include <chrono> #include <exception> #include <memory> #include <sstream> #include <openvr_driver.h> #include <stdexcept> #include <stdlib.h> #include <string> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include "ALVR-common/packet_types.h" #include "a...
#include "defines.h" //parameters for Hershel Plus matching #define HP_JITTER_LOSS_THRESHOLD 4 //how many seconds of jitter we can tolerate when figuring out loss combinations #define HP_JITTER_MEAN 0.5 #define HP_JITTER_LAMBDA (1 / HP_JITTER_MEAN) #define HP_GAMMA_SHAPE 2.0 #define HP_GAMMA_MEAN 0.5 #defi...
int WMTz , KT//EQ , c , ya ,qCA7coC , WXo3m , v , MVz8 ,hwyU,//S0M UTE, xEw, bnDd,vi/*kKEKz*/ ,/*E*/nCLx /*na*/ , VX , NK2 , U8P,Uah,qcuqC, dal,rNu/*ZsJ*/,Ost , rrk , SC ,sQR, H7uR,SAN, tLG43,zmv , /*y*/ //n L9 ,// maL , JNdm , bxpZ , Dy,dP/*k*/, /*1OD*/S85,/*A*/CP ,L6 ,/*BwL*/ ZSR , BznyJj ...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <randomenv.h...
/* ------------------------------------------------------------------ * Copyright (C) 2008 PacketVideo * * 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/li...
// SPDX-License-Identifier: Apache-2.0 // ---------------------------------------------------------------------------- // Copyright 2011-2020 Arm Limited // // 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 ...
//===--- Mips.cpp - Tools Implementations -----------------------*- 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 // //===---------------------------...
//#include "../Data/Kenya/CSVReader.h" //#include "../Data/Kenya/CSVReader.cpp" // Relevant files loaded at execution time static std::string contactMatrixFile = "../../../Data/Test/Contacts/TestContactMatrix"; static std::string ageGroupEsriFile = "../../../Data/Test/Setup/Test_%dkm_%d.dat"; static std::string ...
// Copyright 2016 The Chromium OS 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 "patchpanel/multicast_forwarder.h" #include <arpa/inet.h> #include <errno.h> #include <net/if.h> #include <netinet/ip.h> #include <string.h> ...
// Copyright 2019 The JIMDB Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
//==========================================================================// // Copyright 2009 Google Inc. // // // // Licensed under the Apache License, Version 2.0 (the "License"); // ...
#include <cstddef> #include <cstdint> #include <iomanip> #include <iostream> #include <random> #include <string> #include <vector> #include "tuner_api.h" #if defined(_MSC_VER) # define KTT_KERNEL_FILE "../examples/conv_3d/conv_3d.cl" # define KTT_REFERENCE_KERNEL_FILE "../examples/conv_3d/conv_3d_reference.cl" #else...
#include "keycodec.h" #include "gothic.h" #include <cstring> std::initializer_list<KeyCodec::K_Key> KeyCodec::keys = { {Tempest::Event::K_A, 0x1e00}, {Tempest::Event::K_B, 0x3000}, {Tempest::Event::K_C, 0x2e00}, {Tempest::Event::K_D, 0x2000}, {Tempest::Event::K_E, 0x1200},...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2019 <NAME> This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modi...
#include "includes.h" LagCompensation g_lagcomp{};; bool LagCompensation::StartPrediction( AimPlayer* data ) { // we have no data to work with. // this should never happen if we call this if( data->m_records.empty( ) ) return false; // meme. if( data->m_player->dormant( ) ) return false; // compute the tr...
#include "core.h" #include "uiscreen-eldmirror.h" #include "configmanager.h" #include "Widgets/uiwidget-image.h" #include "eldframework.h" #include "eldtargetmanager.h" #include "irendertarget.h" #include "wbevent.h" #include "eldmesh.h" #include "irenderer.h" #include "meshfactory.h" #include "shadermanager.h" #includ...
#ifndef __WFM3D_H #define __WFM3D_H #include <Draw3D.H> #define WireFrame 0x8000 #define Overlapped 0x4000 #define LoopBackInner 0x2000 #define LoopBackOuter 0x1000 #define InnerCurves 0x0800 #define OuterCurves 0x0400 #define ShowCtrlPts 0x0200 #define ShowEdges 0x0100 #define MaskObjOff ...
#include "thermal.h" using namespace dramcore; using namespace std; extern "C" double *steady_thermal_solver(double ***powerM, double W, double Lc, int numP, int dimX, int dimZ, double **Midx, int count, double Tamb_); extern "C" double *transient_thermal_solver(double ***powerM, double W, double L, int numP, int ...
#include "anchor_generator.h" void print_crect2f(crect2f_t* cr) { printf("rect %f %f %f %f\n", cr->val[0], cr->val[1], cr->val[2], cr->val[3]); } void print_anchor(anchor_t anchor) { printf("--finalbox %f %f %f %f, score %f\n", anchor.finalbox.x1, anchor.finalbox.y1, anchor.finalbox.x2, anchor.finalbox.y2, anchor.s...
#include <onnxruntime_cxx_api.h> #include <array> #include <cstdlib> #include <exception> #include <filesystem> #include <fstream> #include <memory> #include <string> #include <unordered_set> #include "nlohmann/json.hpp" #define VOICEVOX_CORE_EXPORTS #include "core.h" #define NOT_INITIALIZED_ERR "Call initialize() ...
/** * v8cgi app file. This class represents generic V8 embedding; cgi binary and apache module inherit from it. */ #include <sstream> #include <vector> #include <stdlib.h> #include <string.h> #include <v8.h> #ifdef FASTCGI # include <fcgi_stdio.h> #endif #include "app.h" #include "system.h" #include "macros.h" #in...
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmGlobalGhsMultiGenerator.h" #include "cmsys/SystemTools.hxx" #include "cmAlgorithms.h" #include "cmDocumentationEntry.h" #include "cmGeneratedFileStream.h" #in...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
#include <iostream> #include <stdlib.h> #include <time.h> #include <set> #include <GLX.h> #include <glxTrackpad.h> #include "Draggers/WorldPalette.h" #include "debug.h" using namespace std; int R=3,C=3; struct Rect { Rect(void){ lo[0]=hi[0]=lo[1]=hi[1]=0; } Rect(int l[2],int h[2]){ lo[0]=l[0]; hi[...
#include "py/module.hh" #include "py/dynamic.hh" #include "chart/v3/chart.hh" #include "chart/v3/styles.hh" // ---------------------------------------------------------------------- namespace ae::py { // static inline std::vector<double> get(const ae::draw::v2::offset_t& offset) // { // return std::ve...
#include "lib_pv_shade_loss_mpp.h" #include <functional> // std::greater #include <algorithm> // std::sort #include <math.h> // logarithm function #include <cstring> // memcpy #include "lib_miniz.h" // decompression #include "DB8_vmpp_impp_uint8_bin.h" // char* of binary compressed file // define the following t...
/** * \file dnn/test/naive/convolution.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS...
/** @page LICENSE Copyright 2010-2012, <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...
// // Framework for a raytracer // File: scene.cpp // // Created for the Computer Science course "Introduction Computer Graphics" // taught at the University of Groningen by <NAME>. // // Authors: // <NAME> // <NAME> // <NAME> // <NAME> // // This framework is inspired by and uses code of the raytrace...
/** * @file llleap.cpp * @author <NAME> * @date 2012-02-20 * @brief Implementation for llleap. * * $LicenseInfo:firstyear=2012&license=viewerlgpl$ * Copyright (c) 2012, Linden Research, Inc. * $/LicenseInfo$ */ // Precompiled header #include "linden_common.h" // associated header #include "llleap.h" // ...
#include "reconstructor.h" #ifdef WIN32 #include <windows.h> #else #include "port_ini.h" #endif #include <vnl/algo/vnl_matrix_inverse.h> #include <vnl/vnl_sym_matrix.h> #include "fltfile_utils.h" #include "spherical_harmonics.h" bool Reconstructor::ReadSignal(unsigned i, vnl_vector <float> &S) { if (b2Dslice) { ...
/* Atari kernel platform code. */ #include <arch_platform.h> #include <new> #include <util/kernel_cpp.h> #include <KernelExport.h> #include <boot/kernel_args.h> #include <arch/cpu.h> //#include <platform/openfirmware/openfirmware.h> #include <platform/atari_m68k/MFP.h> #include <platform/atari_m68k/platform_atari_...
// // M5Bala & Tilt Servo Robot Demo // #include <M5Stack.h> #include <M5StackUpdater.h> #include <M5TreeView.h> #include <MenuItemNumeric.h> #include <Preferences.h> #include <vector> //#define BLYNK #ifdef BLYNK #define BLYNK_PRINT Serial #define BLYNK_DEBUG #define BLYNK_BLE // comment out when using Wifi #ifnd...
/* * Copyright (c) 2019, 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, publis...
/* * Copyright 2001 <NAME> <<EMAIL>> */ /* This file is part of Ragel. * * Ragel 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 later v...
/* * $Id: DXVADecoderMpeg2.cpp 2682 2013-05-11 22:27:04Z exodus8 $ * * (C) 2006-2013 see Authors.txt * * This file is part of MPC-BE. * * MPC-BE 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 ...
/// /// \class l1t::L1TStage1Layer2Producer /// /// Description: Emulator for the stage 1 jet algorithms. /// /// /// \author: <NAME> MIT /// // system include files #include <memory> // user include files #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #inclu...
#include "MPU6050_6Axis_MotionApps20.h" // I Simplified this: uint8_t MPU6050::dmpInitialize() { // reset device DEBUG_PRINTLN(F("\n\nResetting MPU6050...")); reset(); delay(30); // wait after reset // enable sleep mode and wake cycle /*Serial.println(F("Enabling sleep mode...")); setSleepEnabled(true); Seri...
/* Copyright (c) 2003, 2005-2007 MySQL AB 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 of the License. This program is distributed in the hope that it will be useful, but...
// First include the required header files for the VTK classes we are using. #include "vtkCubeSource.h" #include "vtkTubeFilter.h" #include "vtkGeometryFilter.h" #include "vtkElevationFilter.h" #include "vtkPointDataToCellData.h" #include "vtkAxes.h" #include "vtkConeSource.h" #include "vtkSphereSource.h" #i...
#include "CNCServo.h" //<<constructor>> //possible timer values: 3 or 4 //for direction, use 1 for normal dirSignal or -1 to invert //multiplier is inverse of microstep. e.g. 10x microstep would be 0.1 CNCServo::CNCServo(int _timer, float _rampRate, int _direction, float _encoderPPR, float multiplier) { speedCMD = 0;...
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "tabletnode/remote_tabletnode.h" #include <boost/bind.hpp> #include "gflags/gflags.h" #include "glog/logging.h" #include "tabletnode/tabletnode_...
#include <iostream> #include <vector> #include <string> #include <functional> #include <string.h> #include <algorithm> #include <typeinfo> #include <fstream> #include <memory> #include <map> #include <llvm/ADT/STLExtras.h> #include <boost/spirit/include/lex_lexertl.hpp> using namespace std; namespace lex = boost::spiri...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
/* Copyright (c) 2015-2016 <NAME> 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, including commercial applicatio...
// __BEGIN_LICENSE__ // Copyright (C) 2006-2010 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ /// \file FileIO/DiskImageResourceOpenEXR.cc /// /// Provides support for the OpenEXR file format. /// #ifde...
#include <sstream> #include <string> #include <iostream> #include <string> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <cv.h> #include <opencv2/opencv.hpp> #include <math.h> #include <opencv2/imgproc/imgproc.hpp> //#include <opencv2/ml/ml.hpp> using namespace cv; using namespace st...
#include <memory> #include <chrono> #include <unistd.h> #include <gflags/gflags.h> #include <string.h> #include <math.h> #include "drake/solvers/snopt_solver.h" #include "drake/systems/analysis/simulator.h" #include "drake/systems/framework/diagram.h" #include "drake/systems/framework/diagram_builder.h" #include "drak...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "spline.h" using namespace std; // for convenience using json = nlohmann::json...
#include<iostream> #include<string> #include<cmath> using namespace std; string hex_to_bin(int inp) { string op = ""; int a[4],i=0; for(int j=0;j<4;j++) a[j]=0; if(inp>=97) inp = inp-87; else if(inp>=65) inp = inp-55; else inp = inp-48; int num=inp; while(num>0&&i<4) { a[i++]=(...
/* ES20r.cpp - Library for ES20r Sensing Platform Created by <NAME> and <NAME> Active Learning Labs last revised 28 April 2022 */ #include "Arduino.h" #include "ES20r.h" SdFat _sd; SdFile _file; Adafruit_BNO08x _bno08x(BNO08X_RESET); Adafruit_NeoPixel _pixel(1, ES20r_NEOPIX, NEO_GRB + NEO_K...
/// \author <NAME> /// \date 2021/02/02 #pragma once #include "dispatch.hpp" #include "platform.hpp" #include <fmt/format.h> template <typename RouterFunc, typename DemandGeneratorFunc> Platform<RouterFunc, DemandGeneratorFunc>::Platform(PlatformConfig _platform_config, ...
/* * This file is part of the Visual Computing Library (VCL) release under the * MIT license. * * Copyright (c) 2014 <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 r...
/* Copyright (C) 2009-2010 ProFUSION embedded systems Copyright (C) 2009-2010 Samsung Electronics This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of t...
// // owoval.cpp // OwO // // Created by BlueCocoa on 15/11/13. // Copyright © 2015 OwOlang. All rights reserved. // #include "owoval.h" #include "pico/stdlib.h" #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <errno.h> #include <cmath> #include "mpc.h" const char * owotype_name(int t) { ...
//===- InstructionSimplify.cpp - Fold instruction operands ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "cluster_manager.h" #include <algorithm> #include <cmath> #include "rmsd.h" #ifdef WITH_MPI #include "mpi.h" #include "mpicoordinator.h" #include "mpimessaging.h" #endif /* * We just need the protein collection to initialize an instance */ cluster_manager::cluster_manager(vector<vector<atom> >* proteins)...
#include <atomic> #include <cstdio> #include <fstream> #include <exception> #include <iostream> #include <mutex> #include <streambuf> #include <string> #include <thread> #include "common/alloc.h" #include "common/except.h" #include "common/static_map.h" #include "graph/filtergraph.h" #include "graph/graphbuilder.h" #in...
#include "unicorn/string.hpp" #include "unicorn/unit-test.hpp" using namespace RS; using namespace RS::Unicorn; using namespace std::literals; void test_unicorn_string_compare_basic() { StringCompare<Strcmp::equal> cmp_e; StringCompare<Strcmp::less> cmp_l; StringCompare<Strcmp::triple> cmp_t; TEST(c...
// HaulinCube.cpp : Defines the entry point for the application. // #include "pch.h" #include "vv12.h" #include "stb_image.h" #include "Buffer.h" #include "Shader.h" GLFWwindow* window; glm::mat4 view; double x, y, z, tempX, tempY; double oldXPos, oldYPos; glm::quat rotationQuat; bool hold; float deltaX, deltaY; v...
// Fill out your copyright notice in the Description page of Project Settings. #include "ProceduralGeometry.h" #include "Engine.h" // Sets default values AProceduralGeometry::AProceduralGeometry() { ThisScene = CreateDefaultSubobject<USceneComponent>(TEXT("Root")); RootComponent = ThisScene; ThisMesh = CreateDef...
/* * PartitionedConvolve * * PartitionedConvolve performs FFT-based partitioned convolution. * * Typically PartitionedConvolve might be used in conjuction with TimeDomainConvolve for zero-latency convolution with longer impulses. * * Copyright 2012 <NAME>. All rights reserved. * */ #include "Convolve...
#include "sensor_nxp_fxos8700_fxas21002.h" #include <RemoteDebug.h> #include "sensesp.h" //#define AHRS_DEBUG_OUTPUT //output diagnostics from sensor read and filter #define MIN_PRINT_INTERVAL_MS \ (200) // when result printing is requested, it won't happen // any more frequently than this, // ...
#include<iostream> #include<string> #include<vector> #include<cstdlib> #include<ctime> #include<iomanip> //numbers used for directions #define horizontal 0 #define vertical 1 #define diagonal2 2 //diagonal from the bottom #define diagonal1 3 //diagonal from the top using namespace std; class puzzle { private: str...
/*========================================================================= Program: Visualization Toolkit Module: vtkOpenGLRayCastImageDisplayHelper.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This ...
/* * Copyright (c) 2013, <NAME>, 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 ...
#include "app.hpp" #include "colors.hpp" #include "graphics.hpp" #include "io.hpp" #include "keyboard.hpp" #include "parser.hpp" #include <SDL.h> #include <chrono> #include <iomanip> #include <iostream> #include <optional> #include <sstream> #include <string.h> constexpr int user_event_code_stat = 123; constexpr int ...
/* Minetest Copyright (C) 2015-2017 paramat Copyright (C) 2015-2016 kwolekr, <NAME> <<EMAIL>> This program 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 version 2.1 of the License, or (at your opt...
#include <libusb-1.0/libusb.h> #include <string> #include <string.h> #include <list> #include "spdlog/spdlog.h" #define USB_TMC_HEADER_SIZE 12 /**< length of a USBTMC header */ #define USB_TMC_DATA_MAX_SIZE 10*1024 #define TMC_BULK_BUFFER_SIZE (USB_TMC_DATA_MAX_SIZE+USB_TMC_HEADER_SIZE+3) typedef struct usb_dev_in...
#include "test_util.h" #include "EGL/egl.h" #include "EGL/eglext.h" #include <dlfcn.h> #include <android/hardware_buffer.h> #include <asm-generic/mman-common.h> #include <sys/mman.h> using namespace ge; using namespace std; using namespace hiai; using namespace test_case; using namespace test_util; using namespace ir_...
#include "AppHdr.h" #include "ng-setup.h" #include "adjust.h" #include "decks.h" #include "dungeon.h" #include "end.h" #include "files.h" #include "food.h" #include "god-abil.h" #include "god-companions.h" #include "hints.h" #include "invent.h" #include "item-name.h" #include "item-prop.h" #include "items.h" #include...
// // Created by daniel on 27/11/2021. // #include "BoundSwapPivot.h" #include "SimplexMCMC.h" BoundSwapPivot::BoundSwapPivot(SimplexMCMC &simplex) : simplex(simplex), i(-1), j(0), logAcceptanceContribution(0.0), tableauRows(simplex.nBasic()+1,glp::SparseVec()), ...
/* * Copyright 2017 <NAME> * * 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 ...
/************************************************************************** * Copyright(c) 2008-2010, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
/* * Copyright (c) 2019 <NAME> * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include <vector> #include <deque> #include "delfem2/cad2_dtri2.h" #include "delfem2/mat3.h" ...
#include <clue/meta.hpp> #include <gtest/gtest.h> namespace meta = clue::meta; #define CHECK_META_F1(R, F, A) ASSERT_EQ(R::value, (F<A>::value)) #define CHECK_META_F2(R, F, A, B) ASSERT_EQ(R::value, (F<A, B>::value)) using i1 = meta::int_<1>; using i2 = meta::int_<2>; using i3 = meta::int_<3>; using i4 = meta::int_<...
//// DspLogcl - Display logical text // // Shows logical characters and selection range in backing store order and fixed width. #include "precomp.hxx" #include "global.h" //// DottedLine // // Draws a horizontal or a vertical dotted line // // Not the best algorithm. v...
#include "gui/editor-widget.h" #include <exception> struct NoMoreKeyvalException : public std::exception { const char * what () const throw () { return "No more keyval. (This is not an error)"; } }; string_view NextToken(string_view& data) { auto tmp = data; size_t n = 0; while (!data.empty() && data[0] ...
// Copyright (c) 2013-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 2021 <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, sublicense, ...
/*! * \file lms1xxmex.cc * \brief A Matlab mex interface for working w/ the Sick LMS 1xx * family of laser range finders. * * Code by <NAME> and <NAME> * Contact jasonder(at)seas(dot)upenn(dot)edu * * The Sick LIDAR Matlab/C++ Toolbox * Copyright (c) 2008, <NAME> and <NAME> * All rights reserved. * *...
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # =============================================================================. */ #include <sstream> #include "coreneuron/nrnconf.h" #incl...
/*************************************************** This is a library for the Adafruit 1.8" SPI display. This library works with the Adafruit 1.8" TFT Breakout w/SD card ----> http://www.adafruit.com/products/358 The 1.8" TFT shield ----> https://www.adafruit.com/product/802 The 1.44" TFT breakout ----> https://w...
/* * Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt. */ #in...
/* * GLUtils.cpp * * Created on: Nov 28, 2012 * Author: <NAME> */ #include "GLUtils.h" #include <duke/gl/GL.h> #include <stdexcept> #include <fstream> #include <sstream> #include <vector> const char* getInternalFormatString(GLint internalFormat) { switch (internalFormat) { case GL_DEPTH_COMPONENT: re...
/** *MIT License * * Copyright (c) 2017 Automa��o-IOT * 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, modi...
/** * @file src/bin2llvmirtool/bin2llvmir.cpp * @brief Converts binary file into LLVM IR bitcode (*.bc). * @copyright (c) 2017 Avast Software, licensed under the MIT license * * Optimizations may be specified an arbitrary number of times on the command * line, They are run in the order specified. * * Created by...
/*************************************************************************** dcsp.cc - description ------------------- begin : Thu Mar 22 2006 copyright : (C) 2005 by <NAME> email : <EMAIL> *******************...
/*=auto========================================================================= Portions (c) Copyright 2010 Brigham and Women's Hospital (BWH) All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Program: 3D Slicer ========================================...
/////////////////////////////////////////////////////////////////// // generated by ./generate_reason_codes.sh, do not edit manually! /////////////////////////////////////////////////////////////////// #import <Foundation/Foundation.h> #pragma once extern const NSInteger NO_REASON_CODE; extern const NSInteger INVALI...
// // Copyright 2016 MIT Lincoln Laboratory, Massachusetts Institute of Technology // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with // the License. // // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2....
// // Tensor.hpp // // Created by <NAME> on 5/14/13. // // Simplified C++ replica of torch.Tensor. Up to 3D is supported. // #pragma once #include "TorchData.hpp" #include "Utils/InputStream.hpp" #include <iomanip> #include <iostream> #include <cfloat> #include <cmath> #include <string> #include <fstream> #inc...
/* * u-cuDNN: A wrapper library for NVIDIA cuDNN library. * Copyright (c) 2018 ETH-Zurich and Tokyo Institute of Technology. All rights reserved. * See LICENSE for license information. */ #include <iostream> #include <assert.h> #include <stdint.h> #include <cudnn.h> #include "convParam.h" #include "optimizer.h" ...