text stringlengths 3.08k 22k |
|---|
//AHHHHH HELP WHAT HAVE I GOTTEN MYSELF INTO?!?!?!?!!?!?!?!!?!?
// File: Neural_Network_Parallel.cpp
//
// Author: <NAME>
// Course: CIS-363
// Assignment: Neural network letter recognition
//
// Puropose: Trains perceptrons in neural network to differentiate
// between letters and allow user to check validi... |
/** Copyright (C) 2018-2019 SAU Network Communication Research Room.
* This program is 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... |
/*
Copyright 2019 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... |
/**
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and relate... |
//=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... |
#include "graph.hpp"
#include <algorithm> // sort, min, max
#include <iostream> // cout, endl
std::bitset<MAX_NVERTEX> usable[MAX_NVERTEX];
short bestSolution;
std::ostream& operator<<(std::ostream& out, const TVertex& v) {
out << "<" << v.vertex() << ", "
<< v.dsat() << ", "
<< v.degree() << ">... |
// Copyright 2018 <NAME>
// Copyright 2019 Smarter Grid Solutions
//
// 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... |
/* LICENSE>>
Copyright 2020 <NAME> (CaptainYS, http://www.ysflight.com)
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 t... |
#pragma once
#include <tuple>
/*
Generates class serialization helper for specified type:
namespace foo {
struct Bar { int x; float y; bool z; };
}
JSON5_CLASS(foo::Bar, x, y, z)
*/
#define JSON5_CLASS(_Name, ...) \
template <> struct json5::detail::class_wrapper<_Name> { \
static constexpr const char* nam... |
#include "TaxonomyAnnotation.h"
#include <fstream>
#include <sstream>
#include <algorithm>
#include <map>
#include <set>
#include <boost/algorithm/string/predicate.hpp>
#include <queue>
#include <regex>
#include "ResultIO.h"
#include "IOUtil.h"
#include "Opts.h"
#include "Logger.h"
YAML::Emitter & operator << (YAML:... |
//==========================================================================================
// + + + This Software is released under the "Simplified BSD License" + + +
// Copyright 2014-2017 F4GKR <NAME> . All rights reserved.
//
//Redistribution and use in source and binary forms, with or without modification,... |
/*
* U3ASM
* $Header: /cvsroot/uuu/devtool/u3asm/main.cc,v 2.6 2003/06/18 04:18:32 daboy Exp $
* Copyright 2003 by <NAME>; see file "License".
*/
/** \file main.cc
*
* definition of \c main(). */
#include "assembler.h"
#include <iostream>
Mem_stats mem_stats;
int main( int argc, char *argv[] )
{
mem_... |
#include "wave.h"
#include <Tempest/File>
#include <Tempest/MemReader>
#include <Tempest/MemWriter>
#include <Tempest/Log>
#include <stdexcept>
#include <memory>
using namespace Dx8;
static const int16_t msAdpcmIcoef[7][2] = {
{ 256, 0},
{ 512,-256},
{ 0, 0},
{ 192, 64},
{ 240, 0},
{ 460,-208},... |
#include <bits/stdc++.h>
#include <SFML/Graphics.hpp>
float zoom = 1.0f;
sf::Texture trash_can;
class WireWorld: public sf::Drawable, public sf::Transformable
{
public:
enum CellType : unsigned char {Empty, Conductor, ElectronHead, ElectronTail};
public:
WireWorld(int rows, int co... |
/*****************************************************************************
* tableau.cpp
*
* Definitions for the generic tableau.
*****************************************************************************/
#include <cstdio>
#include <algorithm>
#include <iterator>
#include <string>
#include <cassert>
#in... |
#include "bfinterpretor.h"
#include <cassert>
void BFInterpretor::process(std::string moo) {
this->_check_dead_syntax(moo);
this->_find_function_definitions(moo);
this->_check_function_calls(moo);
}
void BFInterpretor::_check_function_calls(std::string& moo) {
// #2 : Detect calls
for (size_t i = 0; i < moo.leng... |
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=10010;
const int maxM=100100*2;
const int inf=2147483647;
class Splay_Data
{
public:
int key,mx;
int fa,ch[2],rev;
Splay_Data()
{
... |
// This is a simple example application for using CVTT's ETC kernels to compress ETC textures.
// It only compresses a single texture level.
#include <string.h>
#include <algorithm>
#include "stb_image/stb_image.h"
#include "ktxheader.h"
#include "etc2packer.h"
#include "../ConvectionKernels.h"
static v... |
//
// Created by alex on 3/21/20.
//
#include "watchpoint.h"
#include <csignal>
#include <cassert>
#include <sys/mman.h>
#include <cstdint>
#include <optional>
#include <utility>
#include <algorithm>
#include <Zydis/Zydis.h>
#include "mapped_memory_areas.h"
#include "instruction_buffer.h"
#include "byte_literal.h"
... |
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <string>
#include <cctype>
#include <vector>
#include <limits>
#include <algorithm>
#include <map>
#include <getopt.h>
#include <common.h>
#include <resolver.h>
#include <md5.h>
#include <redis.h>
#include <json.h>
const char *progname = "check_app_... |
/*
* Copyright 2015 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
///step03
/// \class l1t::Stage1Layer2EGammaAlgorithm
///
/// Description: interface for MP firmware
///
/// Implementation:
///
/// \author: <NAME> - Fermilab
///
#include "L1Trigger/L1TCalorimeter/interface/Stage1Layer2EGammaAlgorithmImp.h"
#include "DataFormats/L1TCalorimeter/interface/CaloRegion.h"
#include "DataF... |
/* -*- mode: c++; c-default-style: "bsd"; -*- */
/* Copyright (c) 2020-2022 <NAME> <<EMAIL>> */
/* SPDX-License-Identifier: ISC OR Apache-2.0 */
#include <gtest/gtest.h>
#include "../util_hidden.h"
/*
* easprintf
* base64
* explicit_bzero
* getpagesize
* getprogname
* SHA256Init
* SHA256Update
* SHA256Final
... |
#include "bme280.h"
#include <stdio.h>
#include <errno.h>
#include <time.h>
#include <math.h>
#include <wiringPiI2C.h>
#include <stdint.h>
#include <unistd.h>
#include "plog/include/plog/Log.h"
bme280::bme280(){
_fd = -1;
}
bme280::bme280(int bme280_addr){
_fd = wiringPiI2CSetup(bme280_addr);
if(_fd < 0) {... |
#include "optimizer.h"
#include <sstream>
#include <iostream>
using namespace std;
Optimizer* Optimizer::ChooseOptimizer(const config::Optimizer& config) {
Optimizer* opt = NULL;
switch (config.optimizer_type()) {
case config::Optimizer::STOCHASTIC_GRADIENT_DESCENT :
opt = new SGDOptimizer(config);
... |
// -*- C++ -*-
//
// Package: ElectronIsoAnalyzer
// Class: ElectronIsoAnalyzer
//
/**\class ElectronIsoAnalyzer
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>
// system include files
#include <memory>
// user include files
#include "... |
/*
* gr_checker.cpp
*
* Created on: 04.01.2015
* Author: schlund
*/
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
#include <boost/program_options.hpp>
#include "datastructs/matrix.h"
#include "datastructs/equations.h"
#include "polynomials/commutative_polynomial.h"
#include "... |
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics.hpp>
#include <cmath>
#include <fstream>
#include <sstream>
#include <vector>
////////////////////////////////////////////////////////////
// Obj model
////////... |
#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <limits>
#include <algorithm>
#include <memory>
#include <stdio.h>
#include <assert.h>
using namespace std;
// And now for something completely different...
//
// This uses a (naive) implementation of BDDs. Probably it would be
// reasonabl... |
////////////////////////////////////////////////////////////////////////////////
//
// Filename : Tokenizer.cpp
// Purpose : Tokenizer declerations
//
// Project : WordBreakers
// Component: English word breaker
//
// Author : yairh
//
// Log:
//
// Jan 06 2000 yairh creation
// Ap... |
#include <gen/ResourceLoader.hpp>
#include <IsometricPlaceholder.h>
#include <MathHelper.h>
#include <IsometricServer.h>
#include <gen/Texture.hpp>
using namespace godot;
void IsometricPlaceholder::_register_methods() {
register_property("placeholder_type", &IsometricPlaceholder::setPlaceholderType,
&... |
#include "Vehicle.h"
extern vector<double> getXY(double s, double d, const vector<double> &maps_s,
const vector<double> &maps_x,
const vector<double> &maps_y);
extern double deg2rad(double x);
Vehicle::Vehicle() {
}
Vehicle::Vehicle( vector<double> map_wp_x,
... |
/* The MIT License
Copyright (c) 2014 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mo... |
#include "romeo_grasper/modeledobject.h"
#include <ros/console.h>
#include <math.h>
#include <tf/transform_broadcaster.h>
#include <tf_conversions/tf_eigen.h>
#include <eigen_conversions/eigen_msg.h>
ModeledObject::ModeledObject(ros::NodeHandle *nh_, moveit_visual_tools::MoveItVisualToolsPtr &visual_tools, const std:... |
#include "Container.h"
#include <QTextStream>
struct Node {
Node(unsigned int id, bool leaf)
: id(id)
, isLeaf(leaf)
{
}
const unsigned int id;
const bool isLeaf;
};
struct InnerNode : public Node {
InnerNode(unsigned int id, unsigned char axis, float sp,
Node* l, Node* r)
: Node(id, false)
, axi... |
/**
* Copyright (c) 2016, <NAME> <<EMAIL>>
*
* Boost Software License - Version 1.0
*
* Permission is hereby granted, free of charge, to any person or organization
* obtaining a copy of the software and accompanying documentation covered by
* this license (the "Software") to use, reproduce, display, distribute,
... |
#include "MatrixMath.h"
#define PI 3.1415926f
//Function for multiplying 2 matrixes
void MatrixMath::matrixMult4x4(GLfloat (*result)[4][4], GLfloat (*m1)[4][4], GLfloat (*m2)[4][4])
{
GLfloat interMatrix[4][4];
MatrixMath::makeIdentity(&interMatrix);
interMatrix[0][0] = (*m1)[0][0] * (*m2)[0][0] + (*m1)[1]... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
#include <math.h>
#include <assert.h>
#include <iostream>
#include <fstream>
#include <utility>
#include <vector>
#include <stdexcept>
#include <algorithm>
#include <string>
#include <sstream>
#include "./common.h"
#include "../opencl/vec.h"
#include "../opencl/segment.h"
#include "../opencl/geom.h"
// #include "../ka... |
/*
* dfstatus.cpp
*/
#include <curses.h>
#ifndef LINUX_BUILD
#include <windows.h>
#endif
#include <time.h>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <climits>
#include <vector>
#include <cstring>
#include <string>
//#include <conio.h> //to break on k... |
#include "../lsgc.h"
#include <sstream>
#include "gtest/gtest.h"
#include "../../test_helpers/bart_test_helper.h"
class LSGCTest : public ::testing::Test {
protected:
void SetUp() override;
template <int dim>
void AQDataTest();
template<int dim>
void InitRefBCAndOutput();
template<int dim>
void Ini... |
/*******************************************************************************************
*
* Ground Zero | Town data model
*
* This program has been created using raylib 1.8 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
****************************... |
// $Header: /nfs/slac/g/glast/ground/cvs/CalXtalResponse/src/CalCalib/AsymMgr.cxx,v 1.12 2007/10/09 19:05:40 fewtrell Exp $
/** @file
@author Z.Fewtrell
*/
// LOCAL INCLUDES
#include "AsymMgr.h"
// GLAST INCLUDES
#include "CalibData/Cal/Xpos.h"
// EXTLIB INCLUDES
// STD
#include <algorithm>
using namespace std;... |
#include "CExportGameDialog.h"
#include "ui_CExportGameDialog.h"
#include "CProgressDialog.h"
#include "UICommon.h"
#include <Common/Macros.h>
#include <Core/GameProject/CAssetNameMap.h>
#include <Core/GameProject/CGameExporter.h>
#include <Core/GameProject/CGameInfo.h>
#include <Core/Resource/Script/CGameTemplate.h>
... |
#include <cstdint>
#include <cstring>
#include <condition_variable>
#include <mutex>
#include <thread>
#include <chrono>
#include "flexible_log.h"
#include "file_linux.h"
#include "key_value.h"
#include "mapped_pages_ro.h"
#include "record.h"
Status FlexibleLog::Get(const uint64_t address, Key &key_in, Value &value_re... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2019, Case Western Reserve University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... |
/// @file WDependentGridderBase.cc
///
/// @brief Gridder taking w-term into account
/// @details
/// This is a base class for all gridders taking w-term into account. It manages sampling
/// in w-space (which may be non-linear, if so chosen by the user)
///
/// @copyright (c) 2007,2016 CSIRO
/// Australia Telescope Na... |
/*
* main.cpp
*
* Created on: May 20, 2019
* Author: lorenzo
*/
#include "System.h"
#include "CumulativeHistogram.h"
#include <nlopt.hpp>
#include <algorithm>
#include <random>
#include <cstdlib>
#include <iostream>
#include <cmath>
// this is the function that calculates the radius of the largest sphere... |
/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2000 <NAME> & <NAME>
* <EMAIL> <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 v... |
#include "aos/vision/image/reader.h"
#include <errno.h>
#include <fcntl.h>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include "aos/logging/logging.h"
#include "aos/time/tim... |
#include <cstdio>
#include <cstdlib>
#include <pthread.h>
//#include "carbon_user.h" /*For the Graphite Simulator*/
#include <time.h>
#include <sys/timeb.h>
#include <string.h>
#define MAX 100000000
#define INT_MAX 100000000
#define BILLION 1E9
//Thread Structure
typedef struct
{
int* loca... |
/*
Copyright 2019 <NAME>
Splay tree.
7_2. Солдаты Сплей
Ограничение времени 1 секунда
Ограничение памяти 500Mb
Ввод стандартный ввод или input.txt
Вывод стандартный вывод или output.txt
В одной военной части решили построить в одну шеренгу по росту.
Т.к. часть была далеко не образцовая, то солдаты часто приходили не ... |
/*
* Cream Library
* Copyright (C) 2013 <NAME>, CICM - Université Paris 8
* All rights reserved.
* Website : https://github.com/CICM/CreamLibrary
* Contacts : <EMAIL>
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/
... |
// Copyright 2017-2018 VMware, Inc.
// SPDX-License-Identifier: BSD-2-Clause
//
// The BSD-2 license (the License) set forth below applies to all parts of the
// Cascade project. You may not use this file except in compliance with the
// License.
//
// BSD-2 License
//
// Redistribution and use in source and binary fo... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
#include "collision_detection.hpp"
CollisionTestResult checkCircleRectangleCollision(CollidableAdapter const& circle, CollidableAdapter const& rect, bool isCirclePrimary) {
CollisionTestResult result = CollisionTestResult();
auto rotCirclePos = rotateInverse(circle.position, rect.rotationVec);
auto rotRectPos = ro... |
// Copyright (c) 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, distri... |
/*
Copyright (C) 1999,2000,2001 <NAME> (RWTH Aachen - Lehrstuhl fuer Informatik VI)
This file is part of GIZA++ ( extension of GIZA ).
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 v... |
/*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... |
/* platform - application framework base on picasso
*
* Copyright (C) 2009 <NAME>
* Contact: <EMAIL>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <QApplication>
#include <QPainter>
#include <QSize>
#include <QResizeEvent>
#include <QWidget>
#include <QMainWindow>
#include <QImage>
#inc... |
#ifdef ONLINE_JUDGE
#pragma GCC optimize(2)
#pragma GCC diagnostic error "-std=c++11"
#pragma GCC target("avx")
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-f... |
// Ardumower Sunray
// Copyright (c) 2013-2020 by <NAME>, Grau GmbH
// Licensed GPLv3 for open source use
// or Grau GmbH Commercial License for commercial use (http://grauonline.de/cms2/?page_id=153)
#include "AmRobotDriver.h"
#include "../../config.h"
#include "../../helper.h"
#include "../../robot.h"
#include "..... |
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include "helper.h"
#if 0
#define HKLOG(x,...) DLOG(x,__VA_ARGS__)
#else
#define HKLOG(x,...)
#endif
typedef struct __HOOK_FUNCTION
{
CHAR moduleName[64];
CHAR name[64];
DWORD_PTR pointer;
DWORD_PTR original;
DWORD_PTR ... |
/**
* @file abc244-e.cpp
* @brief ABC244 Problem E
* @author <NAME>
* @date 2022-03-20
* @copyright MIT License
* @details https://atcoder.jp/contests/abc244/tasks/abc244_e
*/
// # Solution
#include <iostream>
#include <vector>
#include <algorithm>
#include <stack>
#include <queue>
#include <utility>
namespace nrs {
... |
/*
* Copyright (c) 2018 Trail of Bits, 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 applica... |
/******************************************************************************
* *
* Copyright 2020 Lawrence Livermore National Security, LLC and other *
* Whole Cell Simulator Project Developers. See the top-level COPYRIGHT *
... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <pow.h>
#include <arith_uint256.h>
#include <chain.h>
#include <primitives/block.... |
#include "glew\glew.h"
#include "freeglut\freeglut.h"
#include "glm\glm\glm.hpp"
#include "glm\glm\gtc\matrix_transform.hpp"
#include "Shader_Manager.h"
#include "btBulletDynamicsCommon.h"
#include "Point.h"
#include "TriangleMesh.h"
#include <list>
#include <iostream>
#include <time.h>
clock_t t;
float redrawtime;
... |
#include "boiler_frame.h"
#include <cstdlib>
#include <ctime>
using namespace deadeye;
using namespace std;
BoilerFrame::BoilerFrame(std::shared_ptr<cpptoml::table> config)
: logger_(spdlog::get("boiler")),
hsv_lower_(80, 100, 100),
hsv_upper_(100, 255, 255) {
LoadConfigSettings(config);
}
/** Pro... |
#include <iostream>
#include <vector>
#include <cstdint>
#include <functional>
#include <cstring>
#include "./vec4.h"
#include "./matrix4x4.h"
#include "./gradient.h"
#include "./color.h"
#include "./timeline.h"
#include "./fixture.h"
#include "./artnet.h"
namespace ledstickler {
static uint64_t frame_time_us = 10'0... |
//2840482013025/<NAME>
//Maquina de vendas automatica na qual você tem vários produtos, a pessoa insere o dinheiro e recebe o produto/troco
//Dois modos
// ADM:Repor estoque, listar inventario, listar o quanto faturou e o quanto ainda pode faturar
// USU:Listagem com valores e nome dos produtos assim como estoq... |
// MIT License
//
// 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 restriction, including without limitation the rights
// to use, copy, modify, merg... |
#include <Sigma/proc/elf.h>
#include <Sigma/proc/initrd.h>
#include <Sigma/mm/pmm.h>
#include <Sigma/mm/vmm.h>
#include <Sigma/proc/syscall.h>
#include <Sigma/arch/x86_64/cpu.h>
using namespace proc::elf;
static bool load_executable(const char* initrd_filename, auxvals* aux, proc::process::thread* thread, char** l... |
#include "RecoLocalCalo/HcalRecAlgos/interface/HFTimingTrustFlag.h"
#include "DataFormats/METReco/interface/HcalCaloFlagLabels.h"
namespace HFTimingTrust {
// Template class checks HF timing, sets rechit
// timing status bits according to its uncertainty;
double timerr_hf(double rectime, double ampl);
templa... |
/*!
* @file test.cc
* @brief This is a bit of test code
* @version $Revision: 1.32 $ $Author: stephen $
* @version Copyright (C) 2012 Trinity College Dublin
This is the NI URI library developed as
part of the SAIL project. (http://sail-project.eu)
Specification(s) - note, versions may change
http://tools.iet... |
/****************************************************************************//*
* Copyright (C) 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, includ... |
/*
MIT License
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 restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... |
#include "pe_cluster_tb.h"
#include "pe.h"
#include "hls_stream.h"
#ifndef __SYNTHESIS__
#include <iostream>
#include <iomanip>
#include <vector>
#endif
template<unsigned num_PE>
void data_feeder(
UPDATE_PLD_T input_buffer[num_PE][IN_BUF_SIZE],
hls::stream<UPDATE_PLD_T> to_pes[num_PE]
) {
for (unsigned PE... |
//
// Copyright (c) 2016 - 2017 Mesh Consultants 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, ... |
/*
* \class TSFit
*
* \author: <NAME> - CEA/Saclay
*/
#include <CalibCalorimetry/EcalLaserAnalyzer/interface/TSFit.h>
#include <cstdio>
#include <cmath>
#include <cstring>
//ClassImp(TSFit)
//------------------------------------------------------------------------
// TSFit provide fitting methods of pulses w... |
#include "tunnel_db.h"
#include <json/json.h>
#include "common/basic_utils.h"
#include "arpa/inet.h"
#include "trex_client_config.h"
#include "tunnels/tunnel_factory.h"
/************************************************* CClientCfgEntryTunnel ****************************************************************************/... |
#include <petsc.h>
#include "adolc/adolc.h"
static char help[]="nonlinear reaction-diffusion PDE in 1D.\n\n\n";
typedef struct{
PetscReal rho, M, alpha, beta;
PetscBool noRinJ;
adouble *u_a, *f_a;
} AppCtx;
extern PetscErrorCode InitialAndExact(DMDALocalInfo*, PetscReal*, PetscReal*, AppCtx*);
extern PetscErrorC... |
#include "win32glgrdriver2d.h"
#include "../win32font/win32font.h"
static Win32Font *_font;
Win32GLGrDriver2D win32GLGrDriver2D;
static int GLFontQid=bbAllocQueryID( "GLFont" );
class GLFont : public BBResource{
protected:
~GLFont();
public:
int listbase;
GLFont( Win32Font *p );
void *query( int qid );
};
... |
/*
Copyright (c) 2018-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 restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sub... |
//
//
// 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 ... |
// STImage_png.cpp
#include "STImage.h"
#include "st.h"
#include <png.h> // libpng header
#include <setjmp.h> // must follow png.h
#include <stdio.h>
#include <string>
//
// Create an STImage from the contents of a PNG file via the libpng API
//
void STImage::LoadPNG(const std::string& file... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
#include "config.h"
std::ostream& operator<<(std::ostream& strm, const Vehicle &a) {
return strm << "Vehicle(id " << a.id << ") in (lane = "
<< a.lane << ") x= (" << a.x << ") y= (" << a.y << ") (s= " << a.s << ") (v= "
<< a.v_magnitude << ")" ;
}
std::ostream& operator<<(std::ostream&... |
/* LBFGSB - A simple MEX Interface to L-BFGS-B NLP Solver
* Copyright (C) <NAME> 2011 (I2C2)
*/
// Based largely on parts by Dr. <NAME>
#include "mex.h"
#include "lbfgsb.h"
#include "lbfgsb_program.h"
#include <exception>
#include "opti_util.h"
#ifdef LINK_MKL
#include "mkl.h"
#endi... |
#include "../../include/commands/show_text_command.hpp"
#include "../../include/commands/timed_command.hpp"
#include "../../include/commands/update_canvas_command.hpp"
#include "../../include/xd/audio/sound.hpp"
#include "../../include/game.hpp"
#include "../../include/camera.hpp"
#include "../../include/canvas.hpp"
#i... |
#define DRAW_TRIANGLE_TEXELP(TARGET, X, Y) (&((DRAW_TRIANGLE_TEXEL_TYPE *) TARGET->pixels)[(Y) * TARGET->width + (X)])
#ifndef DRAW_TRIANGLE_COLOR_TO_TEXEL
#define DRAW_TRIANGLE_COLOR_TO_TEXEL(V) (V)
#endif
#ifndef DRAW_TRIANGLE_TEXEL_TO_COLOR
#define DRAW_TRIANGLE_TEXEL_TO_COLOR(V) (V)
#endif
#if DRAW_TRIANGLE... |
/*
* Copyright (C) 2013- <NAME> <<EMAIL>>
*
* Provide the intermediate variable g(nroots,i,j,k,l,[xyz])
*/
#pragma once
#include "cint_const.hpp"
#include "g1e.hpp"
#ifndef HAVE_BC
#define HAVE_BC
struct _BC {
double c00[MXRYSROOTS*3];
double c0p[MXRYSROOTS*3];
double b01[MXRYSROOTS];
... |
/*!
LTC2373: 16/18-bit 1Msps 8 channel SAR ADC
LTC2372: 16/18-bit 500ksps 8 channel SAR ADC
LTC2374: 16 bit 1.6Msps 8 channel SAR ADC
@verbatim
The LTC2373_16/18 are pin-compatible, 16/18-bit A/D converters with
serial I/O, and an internal reference.
@endverbatim
http://www.linear.com/product/LTC2373-16... |
#include <stdio.h>
#include <iostream>
#include "cv.h"
#include "highgui.h"
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#include <unistd.h>
using namespace std;
int fd1;
int fd2;
char *buff, *buffer, *bufptr;
int wr, rd, nbytes, tries;
int h = 480;
int w = 64... |
/*
* Copyright (C) 2019, unclearness
* All rights reserved.
*/
#include <filesystem>
#include <fstream>
#include <iomanip> // std::setw(int), std::setfill(char)
#include <ios> // std::left, std::right
#include <iostream>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#ifdef SIMPLET... |
/**
* fdtd2d.c: This file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*/
#include <cassert>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <ma... |
#include <Engine/MeshEdit/CParameterize.h>
#include <Engine/MeshEdit/ASAP.h>
#include <Engine/Primitive/TriMesh.h>
#include <Engine/Scene/CmptGeometry.h>
#include <Engine/Scene/CmptMaterial.h>
#include <Engine/Material/BSDF_Frostbite.h>
using namespace Ubpa;
using namespace Eigen;
ASAP::ASAP(Ptr<SObj> triMeshObj, Pt... |
/*
MIT LICENSE
Copyright 2014-2018 Inertial Sense, Inc. - http://inertialsense.com
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 u... |
#define CGLTF_IMPLEMENTATION
#include <celib/macros.h>
#include "include/cgltf/cgltf.h"
static inline bgfx_attrib_t _to_bgxfx_attr(cgltf_attribute_type attr) {
switch (attr) {
case cgltf_attribute_type_invalid:
break;
case cgltf_attribute_type_position:
return BGFX_ATTRIB_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.