text stringlengths 8.71k 38.4k |
|---|
#include "rote.hpp"
#ifdef PROFILE
#ifdef BGQ
#include <spi/include/kernel/memory.h>
#endif
#endif
using namespace rote;
using namespace std;
void Usage() {
std::cout << "./DistTensor <gridOrder> <gridDim0> <gridDim1> ... <n_o> <n_v> <block_size> <testIter> \n";
std::cout << "<gridOrder> : order of computin... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the demonstration applications of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees ... |
//===- BufferPlacement.cpp - the impl for buffer placement ---------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------... |
/*
* Copyright 2019 Open Source Robotics Foundation
*
* 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 applicab... |
//==--- InstrEmitter.cpp - Emit MachineInstrs for the SelectionDAG class ---==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "application_solar.hpp"
#include "launcher.hpp"
#include "utils.hpp"
#include "shader_loader.hpp"
#include "model_loader.hpp"
#include "texture_loader.hpp"
#include "planet.hpp"
#include "structs.hpp"
#include <glbinding/gl/gl.h>
// use gl definitions from glbinding
using namespace gl;
//dont load gl bindi... |
//
// modelMR.cpp
// FluTransmissionProject
//
// Created by <NAME> on 27/01/2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include "modelMR.hpp"
#include <math.h>
#include <iostream>
#include "misc.h"
#include <limits>
using namespace std;
ModelMR::ModelMR() : Model() { }
ModelMR::~ModelMR() { }
v... |
#include "sepanta_msgs/NodeAction.h"
#include "sepanta_msgs/ListAvailable.h"
#include "sepanta_msgs/ListLoaded.h"
#include "sepanta_msgs/NodeEvent.h"
#include <ros/ros.h>
#include <ros/console.h>
#include <ros/package.h>
#include <map>
#include <string>
#include <utility>
#include <fstream>
#include <boost/thread/mutex... |
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <vector>
#include <array>
#include <cmath>
#include <numeric>
#include <algorithm>
#include <cassert>
#include <chrono>
#include <thread>
#include <GraphMol/SmilesParse/SmilesParse.h>
#include <GraphMol/FileParsers/MolSupplier.h>
#incl... |
/**
* switch.cpp
*
* @author <NAME> (nklapste)
* @version 0.0.0
*/
#include <chrono>
#include <ctime>
#include <assert.h>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <regex>
#include <signal.h>
#include <string>
#include <sys/stat.h>
#include <sys/signalfd.h>
#include <sys/types.h>
#include <... |
/*
* Copyright (c) 2021 <NAME>
* Licensed under: MIT License
*/
#include "ms_editor.h"
#include <Input.hpp>
#include <InputEventKey.hpp>
#include <InputEventMouse.hpp>
#include <InputEventMouseButton.hpp>
#include <InputEventMouseMotion.hpp>
typedef GlobalConstants GC;
#define IS_KEY_PRESSED(key) Input::get_sin... |
// Copyright 2018 <NAME>
#include "level.h"
#include "car.h"
#include "enemycar.h"
#include "animatedgameobject.h"
#include "../res/stringmgr.h"
#include "../engine/renderer.h"
#include "../res/sprites.h"
#include "../game.h"
Level::BackgroundLayer* Level::bgLayers[] = {
new BackgroundGradient(0, 28, 5, 9, 7, 26,... |
/****************************************************************************
*
* Copyright (c) 2013-2020 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:
*
* 1. Red... |
//===- OutputSections.cpp -------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include <fstream>
#include <cmath>
#include <string>
#include <vector>
#include "../test/gtest.h"
#include <arbor/cable_cell.hpp>
#include <arbor/morph/morphexcept.hpp>
#include <arbor/morph/morphology.hpp>
#include <arbor/morph/primitives.hpp>
#include <arbor/morph/segment_tree.hpp>
#include <arborio/swcio.hpp>
#... |
//
// Copyright <NAME> 1997 - 2016.
// 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)
//
// Boost Software License - Version 1.0 - August 17th, 2003
//
// Permission is hereby granted, free of... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of... |
int //9yj4or
Fh0w, p4 , Hft,
d
, //A
vqaV
, J45
,bB, YfB48
,
ftt,I , Fd, Y3 , MR ,
PNjsvJ ,jMqW//0
,qHUrl
,ImOwAX ,Crp,
lW,V5a,
ixO0,
xq
, H1zbr , a
,L00l ,pDt , FzlR
,
M52veL ,LvTo ,T ,LmOFDp,//ZsN
N8kq ,Px
,
H/*hLX*/,
B ,bJX
/*6*/
,
V3
, M7Ml,hsjG ,XRj , N8D,lEgw7
, jxT5,//IQ
L8B,KE ,
KD
... |
// This file contains member functions for interface class
#include "interface.h"
#include "functions.h"
void INTERFACE::set_up(double salt_conc_in, double salt_conc_left, double salt_conc_right, int salt_valency_in,
int salt_valency_left, int salt_valency_right, double bx, double by, double bz... |
// Copyright 2020 <NAME>, 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.apache.org/licenses/LICENSE-2.0
// or in the the file LICENSE-2.0.txt in the ... |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <fstream>
#include <iostream>
#include <map>
#include <memory>
#include <set>
#include <string>
#include <gemmi/cif.hpp>
#include <gemmi/mmcif.hpp>
#define GEMMI_WRITE_IMPLEMENTATION
#include <gemmi/to_cif.hpp>
#undef GEMMI_WRITE_IMPLEMENTATION
#inclu... |
// main.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdlib.h>
#include <stdint.h>
#include <memory.h>
#ifndef WIN32
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <getopt.h>
#endif
#include "crc.h"
#include "i2c.h"
#include "gff.h"
const ch... |
#include "Communication.hpp"
#include <cmath>
#include <cassert>
#include <algorithm>
#include <strings.h>
// Apply the Unbalanced Recursive Bisection (URB) algorithm to establish the boxes
// (parts of the computational domain) that are assigned to MPI processes. The result
// is stored within dis.ulist data structur... |
#include "Hungarian.h"
int _Verbose;
int _Plot;
void
Hungarian::HungarianAlgo(BipartiteGraph& _bg, vector<VID>& _S, vector<VID>& _T,
vector<VID>& _N, vector<EID>& _EG, vector<EID>& _M){
PlotGraph plot;
if(_Plot){
//remove all previous temp files in /tmp
//if(system("rm /tmp/gnuplo... |
/*
* RIPEMD160.c - European RIPE Message Digest, 160 bit (RIPEMD-160)
*
* The algorithm is by <NAME>, <NAME>, and <NAME>.
*
* The code below is based on the reference implementation by Bosselaers.
* It is available at the time of writing from
* http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html
*
* Hacked... |
#include "imageprocess.h"
const char* ImageProcess::NODEPATH[ImageProcess::NumOfMat] = {
"CameraIntrincyMatrix",
"DistortExtrincyMatrix",
"CordinatesRotateMatrix",
"CordinatesTranferMatrix",
"CordinatesScaleMatrix",
"AlphaParameter",
"BetaParameter",
"GammaParameter",
"ThreshBinaryP... |
// TODO Change File Class to hold fs::path, add better symlink support, show symlinks with a
// different color, greenish for dirs orangish for files. and add an '@' maybe?
// TODO Follow symlink and show where it goes in ls -l
// FIXME: isatty() check and assume the default width is 80(?)
// FIXME: Unicode character... |
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... |
/**
* @file Main
* @brief
* @author <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <fstream>
#include <iterator>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <iterator>
#include <numeric>
#include <map>
#include <eigen3/Eigen/Dense>
#include <... |
/*
* executing Python code
*
* src/pl/plpython/plpy_exec.c
*/
#include "postgres.h"
#include "knl/knl_variable.h"
#include "access/xact.h"
#include "catalog/pg_type.h"
#include "commands/trigger.h"
#include "executor/spi.h"
#include "funcapi.h"
#include "utils/builtins.h"
#include "utils/rel.h"
#include "utils/re... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2010 Interactive Visualization and Data Analysis Group.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Softwar... |
//===------------------- include/Reader/abisignature..cpp -------*- C++ -*-===//
//
// LLILC
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
//
//===--------------------------------------------------------------... |
/* Copyright (C) 2010 Ion Torrent Systems, Inc. All Rights Reserved */
#include <assert.h>
#include <math.h>
#include <iostream>
#include "EmptyTrace.h"
#include "BkgTrace.h"
#include "Stats.h"
EmptyTrace::EmptyTrace ( const CommandLineOpts &clo )
{
imgFrames = 0;
// imgCols = 0;
// imgRows = 0;
neg_bg_buffer... |
/***************************************************************************
*
* 22.locale.ctype.narrow.cpp - tests exercising the narrow() and widen()
* member functions of the ctype facet
*
* $Id$
*
***************************************************************************
*
* L... |
#include "stdafx.h"
#include "xrEngine/Render.h"
#include "xrRenderCommon/ResourceManager.h"
#include "xrRenderCommon/tss.h"
#include "xrRenderCommon/blenders/blender.h"
#include "xrRenderCommon/blenders/blender_recorder.h"
// adopt_compiler don't have = operator And it can't have = operator
#pragma warning(push)
#pra... |
//===- Fusion.cpp - Implementation of linalg Fusion -----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include "jackengine.h"
#include <assert.h>
#include <jack/jack.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <atomic>
#include <iostream>
#include <sstream>
#include <vector>
#include <spug/RCBase.h>
#include <spug/RCPtr.h>
#include "mawb.pb.h"
#include "wavetree.h"
using namespace awb;
u... |
/*
* Copyright (c) 2011 <NAME>
* This source code is distributed under the MIT license.
* See the accompanying file LICENSE.MIT.txt for details.
*/
#include <wexus/MarkDown.h>
#include <QDebug>
#include <wexus/Widgets.h>
using namespace wexus;
namespace { class MatchTerm {
public:
enum {
Want_Titl... |
#include "BatteryApp.h"
#include "GLFW/glfw3.h"
#include "utility/IOUtility.h"
#include "render/MeshObject.h"
#include "render/VolumeRaycaster.h"
#include "render/Shader.h"
#include <fastlib/volume/VolumeIO.h>
#include <fastlib/utility/RandomGenerator.h>
#include <fastlib/geometry/GeometryIO.h>
#include <fastlib/... |
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <getopt.h>
#include <fstream>
#include <map>
#include <set>
#include <vector>
#include <sstream>
#include <string>
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <dirent.h>
#incl... |
#define WIN32_LEAN_AND_MEAN
#pragma comment(lib, "glaux.lib")
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
#pragma comment(linker, "/subsystem:console")
#include "windows.h"
#include <mmsystem.h>
#include <gl/gl.h> // standard OpenGL include
#include <gl/glu.h> // Open... |
/*
* Copyright (c) 2004,2011-2012,2014 Apple Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file excep... |
/****************************************************************************
lexecdbg.cpp -- tracing and spy point support
Copyright (c) 1992-2009 by Amzi! inc. All Rights Reserved.
* 12/03/98 Ray Added breaks to InitDebug
****************************************************************************/
... |
#include "v2/index_merger.h"
#include "v2/merge_insert.h"
#include <mutex>
#include <numeric>
#include <random>
#include <omp.h>
#include <cstring>
#include <ctime>
#include <timer.h>
#include <iomanip>
#include <atomic>
#include "aux_utils.h"
#include "mem_aligned_file_reader.h"
#include "utils.h"
#ifndef _WINDOWS
... |
#include "Globals.h"
#include "Application.h"
#include "ModuleImport.h"
#include "ModuleWindow.h"
#include "ModuleTextures.h"
#include "ModuleFileSystem.h"
#include "ModuleScene.h"
#include "ModuleEditor.h"
#include "ComponentMesh.h"
#include "ComponentMaterial.h"
#include "ComponentTransform.h"
#include "ComponentCol... |
// SketchUp Ruby API Debugger. Copyright 2013 Trimble Navigation Ltd.
// Authors:
// - <NAME>
//
#include "./Server.h"
#include "./DebuggerSettings.h"
#include "./FindSubstringCaseInsensitive.h"
#include "./Log.h"
#include <Common/BreakPoint.h>
#include <Common/StackFrame.h>
#include <ruby.h>
#include <ruby/debug.h>
... |
// Generated from .\Query.g4 by ANTLR 4.8
#include "QueryLexer.h"
using namespace antlr4;
using namespace pt::PQL;
QueryLexer::QueryLexer(CharStream *input) : Lexer(input) {
_interpreter = new atn::LexerATNSimulator(this, _atn, _decisionToDFA, _sharedContextCache);
}
QueryLexer::~QueryLexer() {
delete _inte... |
// This file is part of VecGeom and is distributed under the
// conditions in the file LICENSE.txt in the top directory.
// For the full list of authors see CONTRIBUTORS.txt and `git log`.
/// \brief Unit test for the Orb.
/// \file test/unit_tests/TestOrb.cpp
/// \author <NAME>
// ensure asserts are compiled in
#und... |
// Copyright (c) 2012 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/browser/ui/panels/panel_drag_controller.h"
#include "base/logging.h"
#include "chrome/browser/ui/panels/detached_panel_collection.h"... |
#include "gameObject.hpp"
/*
(void) configureGameObject takes some (gameObjectInfo) objectInfo as an
argument and configures the current GameObject instance using that information.
Before a GameObject can be rendered in the scene, it MUST first be configured
using this method. See documentation in gameObject.hpp f... |
// -*- C++ -*-
//
// Package: GeneratorInterface
// Class: EvtGenTestAnalyzer
//
//
// Description: Module to analyze Pythia-EvtGen HepMCproducts
//
//
// Original Author: <NAME>
// Created: April 26, 2007
//
#include <iostream>
#include <fstream>
#include "SimDataFormats/GeneratorProducts/interface... |
// ====================================================================
// This file is part of FlexibleSUSY.
//
// FlexibleSUSY 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 Licens... |
/**
* @example rc_balance
*
* Reference solution for balancing EduMiP
**/
#include <stdio.h>
#include <unistd.h> // for isatty()
#include <stdlib.h> // for strtof()
#include <math.h> // for M_PI
#include <robotcontrol.h>
#include "rc_balance_defs.h"
#include <ros/ros.h>
#include <std_msgs/String.h>
#include <geometr... |
#include "CodeGen.h"
#include <string>
#include <iostream>
#include "ASTNode.h"
#include "Messages.h"
//This is how we will determine if a variable was already declared or not
struct CodeGenerator::Scope {
struct CodeGenerator::Scope * parent_scope;
std::vector<std::string> * variables;
}program_scope;
//Type... |
/*
* This source code is a product of Sun Microsystems, Inc. and is provided
* for unrestricted use. Users may copy or modify this source code without
* charge.
*
* SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING
* THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
... |
/*
This file is part of Kismet
Kismet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Kismet is distributed in the ... |
/* Copyright 2001, 2019 IBM Corporation
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following d... |
/*
* 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... |
/*
Copyright (c) 2004-2016 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modi... |
/*
* Copyright (c) 2008-2009, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT... |
int
NpPPa
,//2
ila/*VDP*/ ,
Rbz1K ,ZCWhUq
, Admb, qkc, //3
Ih , wMs,
BTT ,
qG
, OaY ,ACv0 ,Kk
,c0X9B
, IevT, Jjn ,w8Qf,
ozi ,Xps ,fa0 ,
zlhZc,
VInS
,
v ,
SL1E//sB9
,O
,
Ey , kwt ,NTX,iW
,
Ex , //C1
acT, //SEZl
h
,
So,/*ni*/ wjPX,
zsI,
mVk
, PL0
,
vlW
,
vMhACL
,
veVGr ,//Ugf0S
z3k ,
Fmw , cQ... |
#include "RPSkewness.h"
#include "AscGrid.h"
#include "BasicGrids.h"
#include "GridWriter.h"
#include <cmath>
#include <cstdio>
float cs[] = {
-3.0, -2.9, -2.8, -2.7, -2.6, -2.5, -2.4, -2.3, -2.2, -2.1, -2.0,
-1.9, -1.8, -1.7, -1.6, -1.5, -1.4, -1.3, -1.2, -1.1, -1.0, -0.9,
-0.8, -0.7, -0.6, -0.5, -0.4, -0... |
#include "GNSSambres.hpp"
#include "acsConfig.hpp"
#define SMP2RESET 10
map<E_Sys, bool> sys_solve;
int NumEpocAR = 0;
int NumEpocNL = 0;
int NEPOC2NL = 120;
bool NLinactive = true;
bool AR_initialization = true;
bool AR_Iono_meas = false;
bool ENDUSR_MODE = false;
double biasOutrate = 0;
KF... |
#include "chibicc.h"
typedef enum {
FILE_NONE, FILE_C, FILE_ASM, FILE_OBJ, FILE_AR, FILE_DSO,
} FileType;
StringArray include_paths;
bool opt_fcommon = true;
bool opt_fpic;
static FileType opt_x;
static StringArray opt_include;
static bool opt_E;
static bool opt_M;
static bool opt_MD;
static bool opt_MMD;
static b... |
#include "gtest/gtest.h"
//#include "../parser/MaxPeriodParser.h"
//#include "../lookups/RuleStringsHardCodedNA.h"
#include "../modules/SoulHealerModule.h"
#include "../parser/LogFileUtility.h"
#include "testLog/TemporaryLogFile.h"
#include "../lookups/ApChart.h"
class ApModuleTest: public ::testing::Test{
protected:... |
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <cmath>
#include <ctime>
#ifndef CLOCKS_PER_SEC
#define CLOCKS_PER_SEC 1000.0
#endif
//#ifndef WIN32
// #define WIN32
//#endif
#include <GL/GLee.h>
#include <GL/glut.h>
#if !defined(GLUT_WHEEL_UP)
# define GLUT_WH... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.cpp
* Author: kamyar
* Email: <u>kamyarnemati at gmail.com</u>
*
* Created on 18 February 2017, 19:16
* C++ 1... |
// Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#include <algorithm>
#include <boost/algorithm/string.hpp>
#include <boost/range/algorithm.hpp>
#include <onnx/onnx_pb.h>
#include <poprithms/logging/timepartitionlogger.hpp>
#include <popart/ces/constexpr.hpp>
#include <popart/ces/onnxconstexpr.hpp>
#include ... |
#include <Eigen/Core>
#include <Eigen/Eigenvalues>
#include <iostream>
#include <iomanip>
#include "riemann_filter.h"
bool debug=0;
bool debug2=0;
#define halfpi 3.141593f/2.f
#define c_speed 299792458
#define max_nop 8
using namespace std;
using namespace Eigen;
... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... |
/****************************************************************************
*
* Copyright (c) 2013 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:
*
* 1. Redistri... |
/***
Assignment-3: Geometric Modeling of a Scene
Name: <NAME>
Collaborators: <NAME>; <NAME>
** Note: although the assignment should be completed individually
you may speak with classmates on high level algorithmic concepts. Please
list their names in this section
Project Summary: First used unit planes to con... |
/****************************************************************************//*
* Copyright (C) 2019 <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... |
//
// Created by hrens on 5/4/18.
//
#include "stats.h"
#include "sdtree.h"
#include "samplers/random.h"
#include <stack>
#include <random>
#include <iostream>
#include <cmath>
#include <ctime>
using namespace pbrt;
using namespace std;
Point2f mapping::DirToPlane(const pbrt::Vector3f &d) {
if (!isfinite(d.x)... |
/* -*- C++ -*- */
/*=============================================================================
// //
// This file is part of the TypeAccess/C-Super-Script software package. //
// //
// Copyright (C) 1995 <NAME>, <NAME>, //
// <NAME>, and Carnegie Mellon University ... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (c) 2021 <NAME> <<EMAIL>>
*/
#include <hidapi.h>
#include <libusb.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <string.h>
#include <unistd.h>
#include <iostream>
#include <map>
#include <stdexcept>
#include <string>
#include <vector>
... |
#include <jni.h>
#include <EGL/egl.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <android/sensor.h>
#include <android/log.h>
#include <android_native_app_glue.h>
#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "native-activity", __VA_ARGS__))
#define LOGW(...) ((void)__android_log_print... |
//////////////////////////////////////////////////////////////////////
// FILE: dgl_dlllowleveldebugger.cpp
// PURPOSE: in here are the lowlevel debugroutines.
//////////////////////////////////////////////////////////////////////
// SHORT DESCRIPTION:
// Lowlevel debug routines for the DemoGL dll itself. it will ... |
/*****************************************************************************\
* Lunar.cpp
*
* Luna is a class that can calculate lunar fundmentals for any reasonable
* time.
*
* author: <NAME> (<EMAIL>)
* Based on <NAME>'s open-source code at projectpluto.com
*
\************************************... |
#include <fstream>
#include <ctime>
#define _USE_MATH_DEFINES // VC++でもM_PIを使えるようにする(cmathより前で定義)
#include <cmath>
#include <windows.h>
#include <GLEW/glew.h>
#include <GLFW/glfw3.h>
#include "conv_hsv.h"
namespace {
const bool IS_FULL_SCREEN = true; // フルスクリーンかどうか
const GLint FORM_WIDTH... |
/**
* @file cageDeformerARAP.cpp
* @brief Cage Deformer with ARAP mod plugin for Maya
* @section LICENSE The MIT License
* @section requirements: Eigen 3: http://eigen.tuxfamily.org/
* @section Autodesk Maya: http://www.autodesk.com/products/autodesk-maya/overview
* @section (included) AffineLib: https://github... |
/*
VS_DELOGO Copyright(C) 2003 MakKi, 2014-2015 msg7086
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 2
of the License, or(at your option) any later version.
This program is distr... |
#include "ui.h"
#include <fstream>
#include <sstream>
#include <chrono>
#include <ctime>
#include <iomanip>
#include <SDL.h>
#include "imgui.h"
#include "imgui_sdl.h"
#include "interface.h"
#include "runtime/common.h"
#include "runtime/image.h"
#include "runtime/color.h"
#define CULL_BAD_COLOR
#define CATCH_BAD_CO... |
#include "StEEmcDisplay.h"
#include "StEEmcUtil/EEmcGeom/EEmcGeomSimple.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TMarker.h"
#include "TLine.h"
#include "TCanvas.h"
#include "TPaveText.h"
#include "TLatex.h"
#include "StMessMgr.h"
ClassImp(StEEmcDisplay);
StEEmcDisplay::StEEmcDisplay( const Char_t *name, co... |
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#include "globalincs/linklist.h"
#include "io/timer.h"
#include "object/... |
/*! \file trainTMVAforGammaHadronSeparation.cpp
\brief use TMVA methods for gamma/hadron separation
*/
#include "TChain.h"
#include "TCut.h"
#include "TEventList.h"
#include "TFile.h"
#include "TH1I.h"
#include "TH1D.h"
#include "TMath.h"
#include "TSystem.h"
#include "TTree.h"
#include "TMVA/Config.h"
#includ... |
/**
* This script is for modifying the VisGrab task files such that
* 1. collision models for the point cloud data is generated
* 2. the collision models are used to filter away initially colliding tasks
* 3. change tasks to have correct CloseQ and correct TauMax
*
*/
#include <sstream>
#include <vector>
#inc... |
/*
* Copyright 2013 <NAME>
* Copyright 2014 Canonical Ltd.
* Authors:
* <NAME>
* <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; version 3.
*
* This program is dist... |
// Filename: cubicCurveseg.cxx
// Created by: drose (04Mar01)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You sho... |
int Oetw2,SWx ,
S6 , Bme2s
//r
,YnQa, t3U/*vMI*/,
IJ9s ,MLn,
t9Ll
,//g
CYaW ,
DsYH /*ZlAPA*/
, WfXe//
, XnkE ,
gACZb
, KL
,AG //
,Ijw,SPqu ,AO,CqmPV,LX
,A1P, NxP ,
//W
Lj ,
iVh, QDps , un
,SJ ,
YkjT ,
tx /*nt*/
,Q ,wO,BR4 ,yuC5ZW,/*wf*/tpe1e
//Mw
,
f9cd,
kG0
,/*zfeL*/Xh
, PL,
Kld7 , hY
/*EbH*/,
... |
//#define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
#include <vector>
#include <array>
#include <string>
#include <iostream>
#include <fstream>
#include <cstdint>
#include <stdint.h>
#include <algorithm>
#include "OpenGL.h"
#include "json.hpp"
#include <sstream>
#include "Asset.hpp"
#include "gunzip.hpp"
#include "Chun... |
/*
* IrMedia.cpp
*
* Created on: Mar 9, 2021
* Author: ductu
*/
/***********************************************************************************************************************
* Pragma directive
***************************************************************************************************... |
// Copyright (c) 2009 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 <fcntl.h>
#include <sys/socket.h>
#include <sys/uio.h>
#include <unistd.h>
#include <string>
#include "base/command_line.h"
#include "base/... |
//-*-mode:c++; mode:font-lock;-*-
/*! \file VSASVD.cpp
Singular Value Decomposition
\author <NAME> \n
UCLA \n
<EMAIL> \n
\version 0.1
\date 12/02/2007
*/
#include <stdexcept>
#include <VSASVD.hpp>
using namespace VERITAS;
... |
/*
* 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 "src/gpu/ccpr/GrGSCoverageProcessor.h"
#include "src/gpu/GrMesh.h"
#include "src/gpu/glsl/GrGLSLFragmentShaderBuilder.h"
#include "src/gpu/glsl/GrGLSLVertexGeoBuilde... |
#include "FWCore/Framework/interface/EDProducer.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "SimMuon/RPCDigitizer/src/RPCDigiProducer.h"
#include "SimMuon/RPCDigitizer/src/RPCDigitizer.h"
#include "Geometry/Records/interface/MuonGeometryRecord.h"
#includ... |
/*
* Copyright (c) <NAME> 2013.
* The following source file belongs to the open-source project Pikifen.
* Please read the included README and LICENSE files for more information.
* Pikmin is copyright (c) Nintendo.
*
* === FILE DESCRIPTION ===
* Leader class and leader-related functions.
*/
#include <algorithm>... |
/* MPU9250 Basic Example Code
by: <NAME>
date: April 1, 2014
license: Beerware - Use this code however you'd like. If you
find it useful you can buy me a beer some time.
Modified by <NAME> July 19, 2016
Demonstrate basic MPU-9250 functionality including parameterizing the register
addresses, initializing the se... |
//===- ScopHelper.cpp - Some Helper Functions for Scop. ------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, UC Regents
* Copyright (c) 2011, <NAME>, ETH Zurich, Autonomous Systems Lab (modifications)
* All rights reserved.
*
* Redistribution and use in source and binary forms, w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.