text stringlengths 3.08k 22k |
|---|
// -----------------------------------------------------------------------------
// Copyright : (C) 2014-2017 <NAME>
// License : MIT (see the file LICENSE)
// Maintainer : <NAME> <<EMAIL>>
// Stability : experimental
//
// Renderer
// -----------------------------------------------------------------------------
... |
/*
* File: DataFormats/Scalers/src/LumiScalers.cc (W.Badgett)
*/
#include "DataFormats/Scalers/interface/LumiScalers.h"
#include "DataFormats/Scalers/interface/ScalersRaw.h"
#include <cstdio>
#include <ostream>
LumiScalers::LumiScalers()
: trigType_(0),
eventID_(0),
sourceID_(0),
bunchNum... |
/// @file core/PluginManager.cpp
/// @brief Implementation of dm::PluginManager
/// @author <NAME> <<EMAIL>>
#include <boost/algorithm/string.hpp>
#include <dlfcn.h>
#include <dmlite/cpp/authn.h>
#include <dmlite/cpp/base.h>
#include <dmlite/cpp/catalog.h>
#include <dmlite/cpp/dmlite.h>
#include <dmlite/cpp/inode.h>... |
// BlenderDefault.cpp: implementation of the CBlender_LmEbB class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#pragma hdrstop
#include "blender_Lm(EbB).h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
/... |
/**
@file
@brief GUNNS Fluid Flow Orchestrator implementation
@copyright Copyright 2019 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
LIBRARY DEPENDENCY:
((core/GunnsFluidLink.o)
(core/GunnsBasicFlowOrchestr... |
#include "mainbranch.hpp"
void mainBranch::init(std::vector<glm::vec3> waypoints, int gen){
root = waypoints[0];
end = waypoints[1];
tree.push_back(node(0, root, glm::normalize(end - root), true));
charges.push_back(end);
genCharges(gen);
grow();
if (waypoints.size() > 2) {
... |
#include "stdafx.h"
#include "HQDataBase.h"
#include "sqlite3/CppSQLite3.h"
#include "ProductAdvertise.h"
#include "Questions.h"
// questions
const std::string createQuestionsTableSql =
"CREATE TABLE IF NOT EXISTS questionsTable"
"("
" [id] INTEGER NOT NULL PRIMARY KEY,"
" [content] TE... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// This is the provider DLL side of the provider API to let providers be built as a DLL
#include "provider_api.h"
#include <assert.h>
#include <mutex>
#include <iostream> // For std::cout used in a stub
#define PROVIDER_... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "SetGrids.H"
#include "AMRIO.H"
#include "BCFunc.H"
#include "BRMesh... |
// $Id$
// Main authors: <NAME> & <NAME>: 2006, 2007
/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. ... |
#include "Matrix3.hpp"
Matrix3::Matrix3(){
c[0] = 1.0f;
c[1] = 0.0f;
c[2] = 0.0f;
c[3] = 0.0f;
c[4] = 1.0f;
c[5] = 0.0f;
c[6] = 0.0f;
c[7] = 0.0f;
c[8] = 1.0f;
}
Matrix3::~Matrix3(){
}
Matrix3 Matrix3::set(double n11,double n12,double n13,double n21,double n22,double n23,double n31,double n32,double n33)... |
#include <numeric>
#include <stdexcept>
#include "matching2D.hpp"
using namespace std;
/**
* Find the match for keypoints in two camera images using the descriptors.
*
* @param kPtsSource <std::vector<cv::KeyPoint>> Source keypoints.
* @param kPtsRef <std::vector<cv::KeyPoint>> Reference keypoints.
* @param des... |
// 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 2.0 (the
// "License"); you may... |
//
// Create.cpp
// Code to Create Table...
//
#include <stdafx.h>
#define FS_DB
#include "dbhdr.h"
// Code that creates a base cursor. (Clear to close it).
int dbf::creaCursor(char *fn, char *fld)
{
if(!createTable(fn, fld)) return 0;
fh.xCursor();
flags.iscursor = 1;
return 1;
}
... |
#include "src/view-module/viewHidden.h"
#include "src/odysseyGameEngine.h"
#include "math2D.hpp"
#include "physic.h"
#include <cstring>
static std::vector<physic*> staticColliders = {};
static std::vector<physic*> dynamicColliders = {};
void physic::update() {
for(physic* pd : dynamicColliders) {
}
}
int sgn(... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// 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. Redistr... |
#include "ofxCvContourFinder.h"
//--------------------------------------------------------------------------------
static bool sort_carea_compare( const CvSeq* a, const CvSeq* b) {
// use opencv to calc size, then sort based on size
float areaa = cvContourArea(a, CV_WHOLE_SEQ);
float areab = cvContourArea(b, CV... |
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2004-2009 Kitware, Inc.
Copyright 2004 <NAME> (<EMAIL>)
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This s... |
#include "spinnaker_driver_ros/synced_stereo_nodelet.h"
#include <functional>
// ROS
#include <pluginlib/class_list_macros.h>
#include "cv_bridge/cv_bridge.h"
#include "mavros_msgs/CommandTriggerControl.h"
#include "mavros_msgs/CommandTriggerInterval.h"
PLUGINLIB_EXPORT_CLASS(spinnaker_driver_ros::SyncedStereoNodel... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "base/base64.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h... |
#include <algorithm>
#include <iterator>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <cmath>
#include <map>
#include <set>
#include "FWCore/Utilities/interface/Exception.h"
#include "SimDataFormats/GeneratorProducts/interface/LesHouches.h"
#include "SimDataFormats/GeneratorPro... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestPickingManagerSeedWidget.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is dis... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrCCTriangleShader.h"
#include "glsl/GrGLSLFragmentShaderBuilder.h"
#include "glsl/GrGLSLVertexGeoBuilder.h"
using Shader = GrCCCoverageProcessor::Shader;
void Gr... |
/* ========================================================================= *
* *
* OpenMesh *
* Copyright (c) 2001-2015, RWTH-Aachen University *
* ... |
#include "AABB.h"
#include <stdint.h>
#include <algorithm>
#include <iostream>
AABB::AABB(void) : Min(FLT_MAX), Max(-FLT_MAX) {}
void AABB::ExtendMax(const glm::vec3& Val) {
Max = glm::max(Max, Val);
}
void AABB::ExtendMin(const glm::vec3& Val) {
Min = glm::min(Min, Val);
}
void AABB::Extend(const glm::vec3& Pos)... |
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/net/gaia/gaia_auth_fetcher.h"
#include <string>
#include <utility>
#include <vector>
#include "base/string_split.h"
#include... |
/*
* Copyright (C) 2006 The Android 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
#include <iostream>
#include <fstream>
#include <cgv/base/register.h>
#include <cgv/render/context.h>
#include <cgv/render/shader_code.h>
#include <cgv/render/shader_program.h>
#include <cgv_gl/gl/gl_context.h>
#include <cgv/render/texture.h>
#include <cgv/render/textured_material.h>
#include <cgv/utils/scan.h... |
#include <algorithm>
#include <assert.h>
#include <fstream>
#include <iostream>
#include <mpi.h>
#include <random>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <vector>
/*
* =============================
* Parameters
* =============================
*/
#define DATASET_PATH "... |
//
// json_printer_asset_test.cpp
// agent_test
//
// Created by <NAME> on 3/28/19.
//
#include <cstdio>
//
// Copyright Copyright 2009-2019, AMT – The Association For Manufacturing Technology (“AMT”)
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not... |
/************************************************************************
4x4 Matrix class
$Id: mat4.cxx,v 1.4 2000/12/04 06:18:37 garland Exp $
************************************************************************/
#include <gfx/gfx.h>
#include <gfx/mat4.h>
Mat4 Mat4::I()
{
return Mat4(... |
// Copyright 2017 Yahoo Inc.
// Licensed under the terms of the Apache 2.0 License. See LICENSE file in the project root for terms.
#include <arpa/inet.h>
#include <err.h>
#include <linux/if_ether.h> // ETH_P_IP = 0x0800, ETH_P_IPV6 = 0x86DD
#include <linux/if_packet.h>
#include <net/if.h>
#include <netdb.h>
#include... |
#include "toonz/tbinarizer.h"
#include "tpixelutils.h"
namespace {
//
// computeColor: RGB => colore(0=Black, 1=Red,2=Green,3=Blue), valore
// (=max(r,g,b)), croma (= max(r,g,b)-min(r,g,b))
//
inline void computeColor(int &color, int &value, int &chroma,
const TPixel32 &pix) {
int c[3] =... |
#include "core/animation_system.hpp"
#include "core/assert.hpp"
#include "core/scene.hpp"
#include "core/time.hpp"
#include "components/animation_component.hpp"
#include "components/skinned_renderer.hpp"
#include "graphics/debug_marker.hpp"
#include "graphics/render_system.hpp"
#include "graphics/vulkan.hpp"
#include "... |
// Copyright 2017 Google Inc.
// Copyright 2020 The Open GEE Contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unle... |
#include <stdio.h>
#include <ctype.h>
#include <string.h>
typedef struct
{
char line[128];
char words[128][128];
bool used[128];
int numWords;
} Sentence;
bool repeatSeen;
bool debug=false;
bool isSymbol(char c)
{
// Return whether this character is a symbol
switch (c)
{
case ... |
#include "worker.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <list>
#include <cctype>
#include <utility>
#include <algorithm>
#include <glog/logging.h>
#include "redis_request.h"
#include "redis_connection.h"
#include "server.h"
#include "util.h"
Worker::Worker(Server *svr, Config *config, bool repl) ... |
//
// COCOA class implementation file
//Id: ALIFileIn.cc
//CAT: Model
//
// History: v1.0
// <NAME>
#include "Alignment/CocoaUtilities/interface/ALIFileIn.h"
#include <cstdlib>
#include <strstream>
//#include <strstream.h>
//#include <algo.h>
std::vector<ALIFileIn*> ALIFileIn::theInstances;
... |
#include "feature_frontend/feature_lib/frontendStereo/frontendstereo.h"
using namespace frontend;
FeatureStereoTracker::FeatureStereoTracker( std::string left_cam_file,
std::string right_cam_file,
std::string left_feature_file,
... |
//
// CSaB - Counter-Strike Bot based on YaPB by jeefo.
// Copyright © 2021-2022 CSaB Project <<EMAIL>>.
//
// SPDX-License-Identifier: MIT
//
#include <csab.h>
ConVar cv_chat ("cb_chat", "1", "Enables or disables bots chat functionality.");
ConVar cv_chat_percent ("cb_chat_percent", "30", "Chances bot will send rand... |
//
// GlyphRendererOutline.cpp
// PinkTopaz
//
// Created by <NAME> on 11/7/17.
//
//
#include "Fonts/GlyphRendererOutline.hpp"
#include "FreeTypeException.hpp"
#include "SDLException.hpp"
#include "SDL.h"
GlyphRendererOutline::~GlyphRendererOutline()
{
FT_Stroker_Done(_stroker);
}
GlyphRendererOutline::Glyp... |
/* *****************************************************************************
Copyright (c) 2016-2021, The Regents of the University of California (Regents).
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are... |
// Media Server - Host or proxy live multimedia streams.
// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apa... |
#include <iostream>
#include <vector>
#include <boost/program_options.hpp>
#include <boost/functional/hash.hpp>
#ifndef HAVE_OLD_CPP
# include <unordered_map>
#else
# include <tr1/unordered_map>
namespace std { using std::tr1::unordered_map; }
#endif
#include "prob.h"
#include "tdict.h"
#include "ns.h"
#include "file... |
/*-
* Copyright (c) 2012-2013 <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 copyright notice,
* this list of con... |
/* __ ___ ____ _____ ______ _______ ________ _______ ______ _____ ____ ___ __
//
// Copyright (C) 1993-2012, ART+COM AG Berlin, Germany <www.artcom.de>
//
// This file is part of the ART+COM Standard Library (asl).
//
// It is distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_... |
/*
Udp.cpp - UDP class for Raspberry Pi
Copyright (c) 2016 <NAME> All right 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.1 of the License, or (at you... |
/**
Copyright 2018-2020 Red Anchor Trading Co. Ltd.
Distributed under the Boost Software License, Version 1.0.
See <http://www.boost.org/LICENSE_1_0.txt>
*/
#include <odin/app.hpp>
#include <odin/credentials.hpp>
#include <odin/group.hpp>
#include <odin/nonce.hpp>
#include <odin/odin.hpp>
#include <odin/... |
#include <iostream>
#include <math.h>
#include <vector>
#include <iterator>
#include <fstream>
#include "src/matplotlibcpp.h" //Graph Library
using namespace std;
namespace plt = matplotlibcpp;
// Map class
class Map {
public:
const static int mapHeight = 300;
const static int mapWidth = 150;
vector<vecto... |
/*-------------------------------------------------------------------------
*
* sampling.c
* Relation block sampling routines.
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* src/backend... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "DoubleCartesianRotateCS.H"
#include "CartesianBlockRotateCS.H"
#inc... |
#include <assert.h>
#include <string.h>
#include "src/nnet/nnet-feature-api.h"
#include "src/nnet/nnet-util.h"
int DnnPitchFeat::Init(const char*cfgPath,const char *sysDir)
{
_stream_pitch = new StreamPitch(_pitch_opts, _process_opts);
_feat_ext = new FeatureExtractor;
return _feat_ext->Init(cfgPath,sysDir);
}
voi... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "createdump.h"
#include <asm/ptrace.h>
#ifndef __GLIBC__
typedef int __ptrace_request;
#endif
#define FPR... |
// Package: RPCDqmClient
// Original Author: <NAME>
#include "DQM/RPCMonitorClient/interface/RPCDqmClient.h"
#include "DQM/RPCMonitorDigi/interface/RPCBookFolderStructure.h"
#include "DQM/RPCMonitorDigi/interface/utils.h"
//include client headers
#include "DQM/RPCMonitorClient/interface/RPCDeadChannelTest.h"
#incl... |
//
// Copyright (c) 2017 The Khronos Group 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 la... |
#include "Memory.h"
#include "Randomizer.h"
#include "Panels.h"
#include "PuzzleList.h"
#include <string>
#include <iostream>
#include <numeric>
void Randomizer::GenerateNormal(HWND loadingHandle) {
std::shared_ptr<PuzzleList> puzzles = std::make_shared<PuzzleList>();
puzzles->setLoadingHandle(loadingHandl... |
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <limits>
#include <cassert>
#include "constants.h"
#include "tools.h"
#include "vector3.h"
// Constants
const Vector3 Vector3::ZERO(0.0f, 0.0f, 0.0f);
const Vector3 Vector3::UNIT_X(1.0f, 0.0f, 0.0f);
const Vector3 Vector3::UNIT_Y(0.0f, 1.0f, 0.0f);
const... |
#include <iostream>
#include <iomanip>
#include <cstring>
#include <string>
#include <thread>
#include <librealsense2/rs.hpp>
#include <mutex>
#include <cstdlib>
#include <cstdio>
#include <algorithm>
#include "example.hpp"
#include <opencv2/core.hpp>
#include <opencv2/calib3d.hpp>
#include "opencv2/imgproc.hpp"
#inclu... |
/*
Copyright (C) 2011 by <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,... |
///////////////////////////////////////////////////////////////////////////////
//
// @@@ START COPYRIGHT @@@
//
// 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 o... |
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this file
* that are no... |
#include <exception>
#include <stdexcept> // std::runtime_error
#include <cstdlib> // EXIT_FAILURE
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include <algorithm> //find()
// #include "inc/tinyxml/tinyxml.h"
// #include "inc/tinyxml/tinystr.h"
#include "ti... |
// A raytracer
#include <memory>
#include <vector>
#include <iostream>
#include "glm/glm/gtc/matrix_transform.hpp"
#include "base_app.h"
#include "glsl_program.h"
#include "camera.h"
class RayTracer : public Application
{
private:
// UBO structs
// These use `alignas` to avoid needing to pad the structs
struct ... |
//**********************************************************************;
// Copyright (c) 2015, Intel 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:
//
// 1. Redistributions of s... |
#include "leds.h"
// TLC59116 Setup
TLC59116Manager tlcmanager(Wire, 30000L);
TLC59116* driver = NULL;
// LED state
int mH = 0;
int mS = 255;
int mB = 0;
unsigned int ma = 61;
// Targets for fading
target_color target = {mH, mS, mB, 0};
int target_maLevel = 1;
long fade_dH = 0, fade_dS = 0, fade_dV = 0;
unsigned l... |
#include <iostream>
#include <vsg/all.h>
class UpdateImage : public vsg::Visitor
{
public:
double value = 0.0;
template<class A>
void update(A& image)
{
using value_type = typename A::value_type;
float r_mult = 1.0f / static_cast<float>(image.height() - 1);
float r_offset = 0... |
#include "ofxBonjourIp.h"
ofxBonjourIp::ofxBonjourIp(){
deviceHostName = "";
deviceIp = "";
serverIp = "";
serverHostName = "";
connectedToService = false;
netService = NULL;
netServiceBrowser = NULL;
}
ofxBonjourIp::~ofxBonjourIp(){
stopService();
stopDiscoverService();
}
... |
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <Windows.h>
#include <ctime>
#include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
using namespace cv; // The new C++ interface API is inside this namesp... |
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <openenclave/edger8r/enclave.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/report.h>
#include <openenclave/internal/syscall/arpa/inet.h>
#include <openenclave/interna... |
// WEBSOCKET INTERFACE
// For interface, see socket.hpp
#include "socklib/socket.hpp"
sc::WebSocket::WebSocket() : sc::Socket() {
this->handshaked = false;
this->fragment = "";
}
sc::WebSocket::WebSocket(sc::Socket sock) : sc::Socket(sock) {
this->handshaked = false;
this->fragment = "";
}
bool sc::... |
/*
* Copyright (C) 2015, <NAME>
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
*/
#include <map>
#include <set>
#include <mve/image_... |
#include "App.h"
#include "Render.h"
#include "Scene.h"
#include "Scene_Editor.h"
#include "Textures.h"
#include "Ground_Tile.h"
GroundTile::GroundTile()
{
}
GroundTile::GroundTile(iPoint pos, iPoint coords)
{
groundTex = app->tex->Load("Assets/Tilesets/ground_tileset.png");
position = pos;
coordinates = coords;
... |
#include "parameters.h"
#include "unique_sqlite.hpp"
#include "result.h"
#include <iostream>
#include <string>
// Defines some helper overloads to ease sqlite resource management
namespace {
template <typename UNIQUE_T>
class sqlite_proxy {
typename UNIQUE_T::pointer S;
UNIQUE_T &owner;
public:
sqlite_proxy(UN... |
/**
* @file densityMatrix.cpp
*
* @brief Implementation for the routines related to the calculation of the
* reduced density matrix
*
* @author <NAME>
* @author <NAME>
* @date $Date$
*
* $Revision$
*/
#include "blitz/array.h"
#include "exceptions.h"
#include "tred3.h"
#include "tqli2.h"
#include "densit... |
/*
* ConnectedPhone.cpp
* PixelPhones02
*
* Created by <NAME> on 23/06/2011.
* Copyright 2011 seb.ly. All rights reserved.
*
*/
#include "ConnectedPhone.h"
ConnectedPhone::ConnectedPhone(ofFbo * labelfbo) {
labelFbo = labelfbo;
labelImage.allocate(labelfbo->getWidth(), labelfbo->getHeight(), OF_IMAGE... |
#include "Camera.h"
#include <math.h>
#include <iostream>
#define SQR(x) (x*x)
#define NULL_VECTOR F3dVector(0.0f,0.0f,0.0f)
SF3dVector F3dVector ( float x, float y, float z )
{
SF3dVector tmp;
tmp.x = x;
tmp.y = y;
tmp.z = z;
return tmp;
}
float GetF3dVectorLength( SF3dVector * v)
{
return (float)(sqrt(SQR(v... |
// projet_benders.cpp : définit le point d'entrée pour l'application console.
//
#include "launcher.h"
#include "Worker.h"
#include "BendersOptions.h"
#include "BendersFunctions.h"
#include "JsonWriter.h"
#include "Timer.h"
#include "ortools_utils.h"
//@suggest: create and move to standardlp.cpp
// Initialize static... |
#include <iostream>
#include <vector>
#include <string>
#include <random>
#include <fstream>
#include "Unit.h"
#include "Range.h"
#include "Bro.h"
#include "Magikoopa.h"
#include "Flying.h"
#include "Paratroopa.h"
#include "Boo.h"
#include "Melee.h"
#include "Chomp.h"
#include "Goomba.h"
#include "Squad.h"
using names... |
#include <pybind11/pybind11.h>
#include "modules/bio_base/seq_position.h"
#include "python/biograph/reference.h"
////////
// This is part of the public python API.
//
// Note that all ranges are 0-based internally
////////
// Make a new reference_range. If use_exact_loci is false, attempt to move the
// start or end... |
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <string.h>
#include <stdexcept>
# include <sys/time.h>
using namespace std;
const int max_chromosome_length = 1 << 29; //maximum length of a chromosome
const int hash_table_length = 1 << 20; // maximum length of hash table
int encoded_reference_sequen... |
#include "../common/zlib.h"
#include "../common/showmsg.h"
#include <vector>
#include <string>
#include <cstring>
#include <cassert>
#if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) || \
(defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN) || \
defined(__BIG_ENDIAN__) || \
defined... |
/*
* Copyright (C) 2017, <NAME>.
* See LICENCE.md
*/
#pragma once
#include <maths.hpp>
#include <cstdint>
#include <cinttypes>
#include <cstdarg>
enum ControllerButton
{
CENTRAL,
LEFT_CONTROL,
RIGHT_CONTROL,
Y,
X,
A,
B,
LEFT_STICK,
RIGHT_STICK,
D_LEFT,
D_RIGHT,
D_UP,
D_DOWN,
LEFT_BUMPE... |
#include "rothberg.h"
#include "abort_callback.h"
#include <cmath>
#include <limits>
#include <algorithm>
orcs::Rothberg::Rothberg(ProblemData* problem, SolutionPool* pool,
const cxxproperties::Properties* params) :
problem_(problem), submip_(problem->env, problem->filename), pool_(pool)
{
// Heu... |
#include "core.h"
#include "wbcompeldfrobber.h"
#include "wbeventmanager.h"
#include "wbcompeldtransform.h"
#include "wbcompeldcollision.h"
#include "wbcompeldfrobbable.h"
#include "wbcompeldcamera.h"
#include "wbcomponentarrays.h"
#include "configmanager.h"
#include "segment.h"
#include "aabb.h"
#include "collisioninf... |
#include "IAlgorithm.h"
#include <string>
#include "GraphMLReporter.h"
#include <stdio.h>
#include <cstring>
#include <map>
const char* xmlStart = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n \
<graphml xmlns=\"http://graphml.graphdrawing.org/xmlns\"\n \
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-insta... |
/*
Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
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 i... |
/*
* Copyright (c) 2012-2019, The University of Oxford
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this ... |
/* File: linalg.cpp */
#include "linalg.h"
int fact(int n){
if (n < 0)
return 0;
if (n == 0)
return 1;
else{
return n * fact(n-1);
}
}
double rms(double* seq, int n){
double avg = 0.0;
for (int i = 0; i < n; i++){
avg += seq[i];
}
avg = avg/n;
double rms = 0.0;
for (int... |
#include "input.hpp"
#include "ffmpeg.hpp"
#include <fstream>
#include <sstream>
#include <nlohmann/json.hpp>
#include <lodepng/lodepng.h>
namespace {
const std::string SEPARATOR = "/";
using json = nlohmann::json;
// Format strings in printf style.
template<typename ... Args>
std::string stringFormat(const std:... |
/*
* This file is part of FFmpeg.
*
* FFmpeg 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 option) any later version.
*
* FFmpeg is distributed... |
#include <RecalboxConf.h>
#include "views/gamelist/BasicGameListView.h"
#include "views/ViewController.h"
#include "Renderer.h"
#include "themes/ThemeData.h"
#include "systems/SystemData.h"
#include "games/FileSorts.h"
#include "Settings.h"
#include "utils/locale/LocaleHelper.h"
#include "SystemIcons.h"
#include <recal... |
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#include "AP_Mount_Servo.h"
extern const AP_HAL::HAL& hal;
// init - performs any required initialisation for this instance
void AP_Mount_Servo::init(const AP_SerialManager& serial_manager)
{
if (_instance == 0) {
_roll_idx = RC... |
//----------------------------------*-C++-*----------------------------------//
// Copyright 2021 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... |
#include <wmrde/collision.h>
//update WheelContactGeom by discretizing wheel surface into points, selecting the point for which dz is minimized
void updateWheelContactGeomDiscretize(const SurfaceVector& surfaces, const HomogeneousTransform HT_wheel_to_world, const Real radius, //input
WheelContactGeom& contact) { //... |
//-----------------------------------------------------------------------------
//@file
// JuceAudio.cpp
//
//@author
// <NAME> aka 'martignasse'
//
//@brief
// Utils defs and methodes to glue juce and usine types.
//
//HISTORIC
// 2013/05/15
// first release for Hollyhock CPP SDK 6.00.226
//
//IMPORTANT
// Th... |
/*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... |
/* ============================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
-----------------
ViennaSHE - Th... |
#pragma once
#include <string.h>
#include <cstdint>
#include <stdatomic.h>
#include "Os.hpp"
#include "RbTree.hpp"
#include "Common.hpp"
#include "Mutex.hpp"
#define CHUNKSIZE 2*1024*1024
struct arena;
// when we take a chunk from arena,
// header of this chunk should be embedded into the start of this chunk.
// b... |
/*
Original Author:
<NAME> (2009-2010)
Modified and refactored by
<NAME> (2015-2016)
*/
#include <iostream>
#include <vector>
#include <algorithm>
#include "dataset.h"
#include "Log.hpp"
using namespace std;
// ref: http://stackoverflow.com/questions/9694838/how-to-implement-2d-vector-array
#define vect... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.