text stringlengths 5.71k 33.7k |
|---|
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... |
#include <map>
#include <string>
#include <utility>
#include <getopt.h>
#include <math.h>
#include <stdio.h>
extern "C" {
#include "map_align.h"
#include "mia.h"
#include "myers_align.h"
}
/*
* Contamination Checker. Outline:
*
* - read the human reference; this will contain ambiguity codes
* - read maln file, ... |
/*
* Copyright (C) 2012 Research In Motion Limited. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any... |
/*
Programming MIDI: Parsing, Displaying (& Playing) MIDI Files
Relevant Video: https://youtu.be/040BKtnDdg0
*/
#define OLC_PGE_APPLICATION
#include "PGE.h"
#include <fstream>
#include <array>
struct MidiEvent
{
enum class Type
{
NoteOff,
NoteOn,
Other
} event;
uint8_t nKey = 0;
uint8_t nVelocity = 0;... |
/*!
* @file TypeFieldLookup.cpp
* Reverse field lookup used in the decompiler.
*/
#include <algorithm>
#include "third-party/fmt/core.h"
#include "TypeSystem.h"
namespace {
// debug prints for the reverse lookup
bool debug_reverse_lookup = false;
/*!
* Is the actual dereference compatible with the expected?
*/
... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
#include <stdio.h>
#include <opencv/cv.h>
#include <opencv2/core/utility.hpp>
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include <cstdio>
#include <iostream>
#include <map>
#include <string>
#include <array>
#include "PerlinNoise.h"
using namespace cv;
using namespa... |
/**************************************************************
*
* 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... |
// ============================================================================
// SeqAn - The Library for Sequence Analysis
// ============================================================================
//
// Copyright (c) 2006-2018, <NAME> & Freie Universitaet Berlin
// Copyright (c) 2016-2018, <NAME... |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <algorithm>
#include <atomic>
#include <cstdint>
#include <iostream>
#include ... |
/* HappyTree
* version 1.0, January 10th, 2015
*
* Copyright (C) 2015 <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 soft... |
// Copyright <NAME> 2008 - 2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <string>
#include <map>
#include <algorithm>
#include <boost/unordered_map.hpp>
#include <boost/bim... |
/*++
Module Name:
PairedReadMatcher.cpp
Abstract:
Match paired-end reads coming in from different streams
Authors:
<NAME>, November, 2012
Environment:
User mode service.
Revision History:
--*/
#include "stdafx.h"
#include <map>
#include "Compat.h"
#include "Util.h"
#include "Read.h"
#include... |
/* ------------------------------------------------ *
* The MIT License (MIT)
* Copyright (c) 2020 <EMAIL>
* ------------------------------------------------ */
#include "util_tflite.h"
#include "tflite_age_gender.h"
#include <list>
/*
* https://github.com/google/mediapipe/tree/master/mediapipe/models/face_detect... |
// Copyright (c) 2020 Graphcore Ltd. All rights reserved.
#define BOOST_TEST_MODULE ConvPartial1xNSLIC
#include "ConvVertices.hpp"
#include <poplibs_support/TestDevice.hpp>
#include <assert.h>
#include <boost/multi_array.hpp>
#include <boost/optional.hpp>
#include <boost/optional/optional_io.hpp>
#include <boost/progr... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
/**
* @file bucketdb.c
* @author <NAME> <<EMAIL>>
* @date 2014-11-28 17:27:07
*
* @brief
*
*
*/
#include "bucketdb.h"
#include "zmalloc.h"
#include "logger.h"
#include "filesystem.h"
#include "kvdb.h"
#include "object.h"
/* ================ slicedb_new() ================= */
slicedb_t *slicedb_new(uint32_... |
#include <Watty.h>
#include <res.h>
#define LOG(x) std::cout << x << std::endl;
//#define __BUTTERFLY 1
#define __SOUND 1
#define FRAGLITPATH "shaders/basic_lit.frag"
#define FONTPATH "fonts/Roboto-Regular.ttf"
#define FONTITALICPATH "fonts/Roboto-Italic.ttf"
#define FLOORTEXTUREPATH "textures/floor.p... |
#include <iostream>
#include <windows.h>
#include <string.h>
#include <glut.h>
#include <ctime>
#define MINX 0
#define MAXX 1300
#define MINY 0
#define MAXY 700
#define SIZE 4
using namespace std;
int menu();
void draw_vect_dda();
void draw_vect_Bre();
void draw_vect_Vu();
void draw_circle_Bre();
... |
/*
* Copyright 2005-2009, Haiku Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
* <NAME> <<EMAIL>>
*/
#include "WorkspacesView.h"
#include "AppServer.h"
#include "Decorator.h"
#include "Desktop.h"
#include "DrawingEngine.h"
#include "DrawState.h"
#include "InterfaceDefs... |
/*
* desenhos.cpp
*
* Created on: 5 de out de 2017
* Author: henrique.silva
*/
#include <gl/glut.h>
#include <stdio.h>
#include <math.h>
#include "desenhos.h"
void desenhar_aresta(int *p1, int *p2);
inline float get_distancia(int *p1, int *p2);
void ponto_medio(int *pd, int *p1, int *p2);
void desenhar_ci... |
// ======================================================================== //
// Copyright 2017-2018 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
#include <conio.h>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <stdlib.h>
#include <windows.h>
using namespace std;
//TRY THIS:
//http://www.thegeekstuff.com/2012/08/c-linked-list-example/
struct node //A structure, which contains all the data (int + pointer) for... |
#include "raster_tile_source.hpp"
#include "raster_tile_cache.hpp"
#include "logger.hpp"
#include "rectangle.hpp"
#include <cstring>
#include <cmath>
using namespace std;
static void copy_pixels(const uint8_t *src_buf, uint32_t src_stride,
uint32_t srcox, uint32_t srcoy, uint32_t srcwx, uint3... |
/*
Copyright (c) 2010, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclai... |
#include<gl/GLUT.H>
#include<iostream>
#include <algorithm>
#include <stdlib.h>
#include <vector>
#include <math.h>
#include <string>
#include <fstream>
#define PI 3.14159265f
std::fstream file;
bool HaveSquare, HaveTriangle;
struct matrix
{
std::vector<std::vector<float>> M;
matrix multi(matrix M2) {
matrix M3;
... |
#include "argsParser.h"
#include "buffers.h"
#include "common.h"
#include "logger.h"
#include "parserOnnxConfig.h"
#include "sampleEngines.h"
#include "NvInfer.h"
#include <cuda_runtime_api.h>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include "craft_engin.h"
#in... |
/*-------------huffman_vis.cpp------------------------------------------------//
*
* Purpose: To visualize a simple huffman tree for LeiosOS
*
* Notes: This will be using the cairo package, hopefully creating animations
* I could use the subroutine-comic project, but this will be from
* scr... |
// original file: Ex_10_PR
#include "./headers/propagate_intervals.h"
#include "../flowstar-release/Continuous.h"
using namespace std;
using namespace flowstar;
datatype offset_in_constraint_comb = constr_comb_offset;
// So the above data assumes, that this number is
// same for all the networks you have in the sett... |
/* Copyright (c) 2006-2017, Universities Space Research Association (USRA).
* 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
... |
//
// Created by Danielhu on 2018/1/16.
//
#define GLM_FORCE_CTOR_INIT
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <cmath>
#include <ctime>
#include <glm/glm.hpp>
#include <fstream>
#include <iostream>
#include <sstream>
#include <unordered_set>
#include "Mesh.h"
#include "Octree.h"
#include "Topology.h"
... |
#include <gtest/gtest.h>
#include <UDPC.h>
#include <UDPC_Defines.hpp>
#include <cstdio>
#include <cstring>
#include <future>
TEST(UDPC, atostr) {
UDPC::Context context(false);
UDPC_ConnectionId conId;
const char* resultBuf;
for(unsigned int i = 0; i < 16; ++i) {
conId.addr.s6_addr[i] = (i ... |
// Copyright 2015 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 <brillo/message_loops/message_loop.h>
// These are the common tests for all the brillo::MessageLoop implementations
// that should conform to... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bwtgap.h"
//#include "bwtaln.h"
#include "jigsawaln.h"
#define STATE_M 0
#define STATE_I 1
#define STATE_D 2
#define aln_score(m,o,e,p) ((m)*(p)->s_mm + (o)*(p)->s_gapo + (e)*(p)->s_gape)
gap_stack_t *gap_init_stack(int max_mm, int max_gapo, int ma... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2014, Image Engine Design Inc. All rights reserved.
//
// Copyright 2010 Dr D Studios Pty Limited (ACN 127 184 954) (Dr. D Studios),
// its affiliates and/or its licensors.
//
// Copyright (c) 2012, <NAME>. All right... |
/* Copyright 2016 The Science and Technology Facilities Council (STFC)
*
* Authors: <NAME> (STFC)
*
* IMPORTANT: This file is NOT licenced under the BSD licence. If you wish to
* licence this code, please contact STFC via <EMAIL>
* (We are currently deciding what licence to release this code under if it
* proves... |
// Copyright © 1996-2018, Valve Corporation, All rights reserved.
#include "sceneimage.h"
#include "choreoscene.h"
#include "cmdlib.h"
#include "iscenetokenprocessor.h"
#include "lzma/lzma.h"
#include "scenefilecache/SceneImageFile.h"
#include "scriplib.h"
#include "tier1/UtlSortVector.h"
#include "tier1/UtlStringMap... |
/*
See the header file for detailed explanations
of the below functions.
*/
#include "range_based_roof_localizer.hh"
RangeBasedRoofLocalizer::RangeBasedRoofLocalizer(int max_iter, double xyz_tol, double rot_tol){
_cloud = pcl::PointCloud<pcl::PointXYZ>().makeShared();
_cloud_aligned = pcl::PointClou... |
/*! \file testJetFinalStage.cpp
* \brief Procedural unit-test code for the L1GctJetFinalStage class.
*
* This is code that tests each public method of the L1GctJetFinalStage
* class. It takes data from a file to test the methods against known
* results. Results are also output to file to allow debugging.
*
... |
/*RF implementation: setting up the transceiver AX5042
* It uses the SPI library
*
* The circuit:
* - Pins 2, 7, 20, 26 of AX5042 connected to 2,5V Power Supply
* - Pins
* - Pin 16 (MISO)of AX5042 connected to MISO (digital pin 50)
* - Pin 17 (MOSI)of AX5042 connected to MOSI (digital pin 51)
* - Pin 15 (CLK) ... |
#include <fileobserver.hpp>
#include <unistd.h>
#include <getopt.h>
#include <SDL.h>
#include <SDL_image.h>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <string>
#include <memory>
//#include <regex>
#include <sstream>
#include <utility>
//example usage:
//spriteview -w 16 -h 16 -s 2 -f 16 -i 0:16 -t... |
// To complete the VEXcode V5 Text project upgrade process, please follow the
// steps below.
//
// 1. You can use the Robot Configuration window to recreate your V5 devices
// - including any motors, sensors, 3-wire devices, and controllers.
//
// 2. All previous code located in main.cpp has now been commented out... |
int bqf
,
V0Y, KRa,
gUA ,//u
tttg//AJ
,Vni,
dz5v,rBi,
zBBE,aVn
,n8Rh, JFN1T
,//d5sr
UvGxk2,A,
nt ,au
,
/*ybG*//*MnIy*/pQUArBs,U81
//18s
//i
,//ZH
ug,qA, W3K7, NhMG ,
uDX
,JY//
,ZG //x
, tsP
,o ,VXPv , rmHF
,zd,er0k
,quI6,
qcwx
,kG7X ,fAYz
,k0, qmhY4 , /*t*/ csxX9V ,h5DQ, LTiC5 ;void
f_f0 (){
{ {if
( tru... |
//------------------------------------------------------------------------------
// Copyright 2007-2014 by <NAME> and George Mason University
// See the file "LICENSE" for more information
//------------------------------------------------------------------------------
#include "model.h"
#include "modelgraph/ModelGr... |
/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published... |
#include <algorithm>
#include <bsoncxx/builder/stream/array.hpp>
#include <bsoncxx/builder/stream/document.hpp>
#include <bsoncxx/builder/stream/helpers.hpp>
#include <bsoncxx/json.hpp>
#include <chrono>
#include <cstdio>
#include <fmt/core.h>
#include <fmt/format.h>
#include <mongocxx/client.hpp>
#include <mongocxx/in... |
/*
patterndisp.cpp
Copyright (c) 2014, 2015, 2016 <NAME>
This file is distributed under the terms of the MIT license.
Please see the file 'LICENCE.txt' in the root directory
or http://opensource.org/licenses/mit-license.php for information.
*/
#include <iostream>
#include <iomanip>
#include "patterndisp.h"
#include ... |
#include <iostream>
#include <cmath>
#include "XLong.h"
#include <iomanip>
int counter = 0;
Multiplier * XLong::currType = new KaratsubaMult();
void XLong::setType(Multiplier * a) {
currType = a;
}
bool isOk(){
return true;
}
XLong::XLong(){
l = 0;
}
XLong::XLong(int a) {
l = a;
}
XLong::XLong(std::string n) {
... |
#include "shape_model.h"
shape_model::shape_model(){}
cv::Mat shape_model::procrustes(const cv::Mat &X, const int itol, const float ftol){
cv::Mat Co, P = X.clone();//copy
for (int i = 0; i < N; i++) {
cv::Mat& p = P.col(i);//i'th shape
cv::Point2f center_of_mass = find_center_of_mass(p);
for (int j ... |
// See LICENSE_CELLO file for license and copyright information
/// @file enzo_EnzoEOSIdeal.cpp
/// @author <NAME> (<EMAIL>)
/// @date Thurs May 2 2019
/// @brief [\ref Enzo] Implementation of EnzoEOSIdeal
#include "cello.hpp"
#include "enzo.hpp"
// #define DEBUG_MATCHING_ARRAY_SHAPES
//---------------... |
/*###############################################################################
#
# This software is distributed under the following ISC license:
#
# Copyright © 2017 BRAZILIAN SYNCHROTRON LIGHT SOURCE <<EMAIL>>
# <NAME> <<EMAIL>>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpos... |
// Copyright 2018 AYUDO SAS
//
// 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 wr... |
#pragma once
/*
MIT License
Copyright (c) 2017 ZetaChain_Native
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... |
#include<SFML/Graphics.hpp>
#include<SFML/Audio.hpp>
#include<iostream>
#include<list>
using namespace std;
using namespace sf;
//Window size set using only modes supporting fullscreeen
unsigned int xWin = 1280, yWin = 600;
//Framerate setting
unsigned int FRLimit = 60;
//All media files
string playerAnim = "resources... |
/**
* \file EANetworkParser.cpp
* The Implementation of the parser
* Contains the methods for parsing the EAN and the passengers.
*/
#include <iostream>
#include <iterator>
#include <fstream>
#include <stdlib.h>
#include "RepastProcess.h"
#include "EANetworkParser.h"
#include "Passenger.h"
#include "PathCalculator... |
//===========================================================================
/*
This file is part of the CHAI 3D visualization and haptics libraries.
Copyright (C) 2003-2010 by CHAI 3D. All rights reserved.
This library is free software; you can redistribute it and/or modify
it under the terms o... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <queue>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
#include <boost/atomic.hpp>
#include "lrslib.h"
#include "plrs.hpp"
#include <sys/time.h>
using namespace std;
//Synynchrochronization Variables
boost::mutex ... |
// My Grapple!
#include "extdll.h"
#include "enginecallback.h"
#include "util.h"
#include "cbase.h"
#include "entity_state.h"
#include "soundent.h"
#include "studio.h"
#include "bot.h"
#include "avdll.h"
#include "sadll.h"
#include "avgrapple.h"
#include "avdamage.h"
extern GETENTITYAPI other_GetEntityAPI;
extern en... |
#include "Camellia.h"
uint8_t Camellia::SBOX(const uint8_t s, const uint8_t value){
if (s == 1){
return Camellia_SBox[value];
}
else if (s == 2){
return ROL(Camellia_SBox[value], 1, 8);
}
else if (s == 3){
return ROL(Camellia_SBox[value], 7, 8);
}
else{//(s == 4)
... |
/*
* Copyright (C) 2009 Advanced Micro Devices, Inc. All Rights Reserved.
*/
/*
* Copyright (C) 2007. PathScale, LLC. All rights reserved.
*/
/*
* Copyright (C) 2007. QLogic Corporation. All Rights Reserved.
*/
/*
* Copyright 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*
* This program is free so... |
/*
* Copyright 1993-2010 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 related... |
// =============================================================================
// VIZA656/CSCE647 Image Synthesis at Texas A&M University
// Project 10: Distributed Ray Tracing
// Created by <NAME> based from <NAME>'s template
// 05.23.2011
//
// This file is supplied with an associated makefile. Put both files in th... |
/*
* spGPU - Sparse matrices on GPU library.
*
* Copyright (C) 2010 - 2014
* <NAME> - University of Rome Tor Vergata
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundati... |
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
// window.cc for Epistrophy - a key handler for NETWM/EWMH window managers.
// Copyright (c) 2002 - 2002 <NAME> <ben at orodu.net>
//
// Modified for use and inclusion in bbkeys by Jason 'vanRijn' Kasper
//
// Permission is hereby granted, free of charge, ... |
//-------------------------------------------------------------------------------
// YD3DVertexCache.cpp
// <NAME>
// <EMAIL>
// Copyright (c) 2011
//-----------------------------------------------------------------------
//Desc: Implementation of the YD3DVertexCacheManager and YD3DVertexCache
//--------------... |
#include "RgbtSkewPolytope.h"
#include "utility.h"
#include <algorithm>
#include <fstream>
#include <iostream>
#include <set>
using namespace std;
using namespace cv;
RgbConvexhull RgbtSkewPolytope::SlicePolyhedronForFrame(int fid, bool record_slice_info) {
//frames in the same block have the same topology, it is... |
#include"ros/ros.h"
#include"sensor_msgs/LaserScan.h"
#include"std_msgs/Time.h"
#include"std_msgs/Header.h"
#include"std_msgs/String.h"
#include"Eigen/Core"
#include<vector>
#include<cmath>
#include<pangolin/pangolin.h>
#include <pcl/common/common_headers.h>
#include <pcl/features/normal_3d.h>
#include <pcl/io/pcd_io.... |
#include "possion2dhybrid.hpp"
#include <math.h>
#include <cstring>
#include <fstream>
#include <iostream>
#include <stdexcept>
/*
for (j = 0; j < ny; j++)
{
y = (double)(j) / (double)(ny - 1);
for (i = 0; i < nx; i++)
{
x = (double)(i) / (double)(nx - 1);
if (i == 0 || i == nx - 1 || j =... |
//===--- Bitcode/NaCl/TestUtils/NaClBitcodeMunge.cpp - Bitcode Munger -----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
Deterministic Bayesian Sparse Linear Mixed Model (DBSLMM)
Copyright (C) 2019 <NAME> and <NAME>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option)... |
#include "webcamframework.h"
#include <stdlib.h>
double COMPONENTE_NUEVA = 0.7;
double COMPONENTE_ANTERIOR = 0.3;
double DUREZA_ACTUA = 0.3;
double UMBRAL = 20.0;
int RESOLUTION_W = 64;
int RESOLUTION_H = 48;
int MOVEMENT_EXPLORE = 3;
int MSPERFRAME = 20000;
int RESOLUTION_W_SHOW = 256;
int RESOLUTION_H_SHOW = 256;
#... |
//-----------------------------------------------------------------------------
// Copyright 2012 <NAME>,
// Copyright 2018 <NAME>
//
// Band-aperiodicity estimation on the basis of the idea of D4C.
//-----------------------------------------------------------------------------
#include "d4c.hpp"
#include <cmath>
#in... |
/****************************************************************************
*
* Copyright (c) 2012-2018 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... |
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
... |
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "OrderedFileMaintenance.h"
inline double get_density(list_t* list, int index, int len) {
int full = 0;
for (int i = index; i < index+len; i++) {
full += (! list->items[i]->empty());
}
double full_d = (double) full;
return full_d/le... |
/*
* Low-Order finite element preconditioner computed with HYPRE's AMG solver
*/
#include <platform.hpp>
#include <math.h>
#include <limits>
#include "_hypre_utilities.h"
#include "HYPRE_parcsr_ls.h"
#include "_hypre_parcsr_ls.h"
#include "HYPRE.h"
#include "gslib.h"
#include "ellipticBuildSEMFEM.hpp"
#include <uno... |
// See LICENSE_CELLO file for license and copyright information
/// @file problem_MethodFluxCorrect.cpp
/// @author <NAME> (<EMAIL>)
/// @date 2020-03-19
/// @brief Implementation of the flux_correct method
#include "problem.hpp"
#include "charm_simulation.hpp"
#include "test.hpp"
//--------------------... |
#include "llvm/Pass.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llv... |
/****************************************************************************/
/// @file AGCity.cpp
/// @author <NAME>
/// @author <NAME>
/// @author <NAME>
/// @author <NAME>
/// @author <NAME>
/// @date July 2010
/// @version $Id$
///
// City class that contains all other objects of the city: in particular... |
/**
* @file
* @brief Implementation of Geant4 geometry visualization module
* @copyright Copyright (c) 2017-2020 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 priv... |
/*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... |
/*
* librdkafka - Apache Kafka C library
*
* Copyright (c) 2014, <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:
*
* 1. Redistributions of source code must retain the above copy... |
//
// M A R I A D B + +
//
// Copyright <NAME> 2013,
// <NAME> 2015,
// The ViaDuck Project 2016 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#inclu... |
#include "tposutils.h"
#include "wallet/wallet.h"
#include "utilmoneystr.h"
#include "policy/policy.h"
#include "coincontrol.h"
#include "validation.h"
#include "tpos/merchantnode-sync.h"
#include "tpos/merchantnodeman.h"
#include "tpos/activemerchantnode.h"
#include "consensus/validation.h"
#include <sstream>
#include... |
// nnetbin/nnet-train-mpe-sequential.cc
// Copyright 2011-2013 Brno University of Technology (author: <NAME>); <NAME>
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lic... |
#include <examples.h>
namespace proto2 {
//************************* TYPEDEF / USING / HELPER ***********************/
using namespace game;
using namespace std;
using namespace sf;
using Key = sf::Keyboard::Key;
using KinematicShape = game::Shape<KinematicShapePhysics>;
using DynamicShap... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
//****************************************************//
//********** CastorDigiMonitor: ******************//
//********** Author: <NAME> *************//
//********** Date : 29.08.2008 (first version) ******//
////---- digi values in Castor r/o channels
//// last revision: 31.05.2011 (Panos Katsas) to remove selecti... |
/*
* PDFedit - free program for PDF document manipulation.
* Copyright (C) 2006-2009 PDFedit team: <NAME>,
* <NAME>,
* <NAME>
* Former team members: <NAME>
*
* This program is free software; you can redistribute it a... |
/*
* arduino_node.cpp
* Copyright (c) 2017, Robot Mitya.
* 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
* ... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
#include "SearchEngine.h"
#include <vector>
#include <string>
#include <cstring>
#include <set>
#include <cmath>
#include <unordered_map>
#include <fstream>
#include <ctime>
#include <math.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xmlstring.h>
#include "Document.h"
#include "Term.h"
#in... |
#include <stdexcept>
#include "Types.h"
#include "ArmsDealerInvInit.h"
#include "Item_Types.h"
#include "Arms_Dealer_Init.h"
#include "Debug.h"
#include "Weapons.h"
#include "Campaign.h"
#include "BobbyR.h"
#include "LaptopSave.h"
#include "ShopKeeper_Interface.h"
#include "Random.h"
#include "Items.h"
#include "Cali... |
#include "ros/ros.h"
#include "realsense_camera/StreamSensor.h"
#include "display.hpp"
// Global buffers for sensor data retrieval
int frame_width = 640;
int frame_height = 480;
bool cloud_buffer_loaded = false;
float * cloud_buffer_pts = new float[frame_width * frame_height * 3];
uint8_t * cloud_buffer_rgb = new uint... |
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include "support.h"
#include "Event.h"
#include "ResultDatabase.h"
#include "OptionParser.h"
using namespace std;
// ****************************************************************************
// Function: addBenchmarkSpecOptions
//
// Purpose:
// Add be... |
//===----- CGCUDANV.cpp - Interface to NVIDIA CUDA Runtime ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "ros/ros.h"
#include "sensor_msgs/LaserScan.h"
#include "visualization_msgs/MarkerArray.h"
#include "std_msgs/String.h"
#include "intersection_recognition/Hypothesis.h"
#include "tf2_ros/transform_broadcaster.h"
#include "tf2/LinearMath/Quaternion.h"
#include "tf2_geometry_msgs/tf2_geometry_msgs.h"
#include <m... |
#include "cgstd.h"
#include "cgframe.h"
#include "cgallocregs.h"
#include "cgutil.h"
#include "cgdebug.h"
#include "cgint64.h"
typedef map<string,CGExp*> IdExpMap;
CGFrame::CGFrame( CGFun *_fun ):fun(_fun),flow(0),int64ret(0){
asm_it=assem.end;
big_endian=!(little_endian=env_config.count("x86")?true:false);
}
CG... |
#include <cmath>
#include <string.h>
#include "proctree.h"
#include "mesh_builder.h"
#include <functional>
#include <iostream>
struct Branch {
Branch *child_1 = nullptr;
Branch *child_2 = nullptr;
Branch *parent = nullptr;
glm::vec3 head{};
glm::vec3 tangent{};
float length = 1;
int trunktype = 0;
std::vecto... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.