text stringlengths 5.71k 33.7k |
|---|
/************************************************************************************************************************************
Copyright 2017 Autodesk, 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>
#include <sys/time.h>
#include <float.h>
#include <apollo/Apollo.h>
#include <apollo/Region.h>
#include <assert.h>
#define REAL float
#define FILTER_HEIGHT 5
#define FILTER_WIDTH 5
#define PROBLEM_SIZE 256
#define TEAM_SIZE 128
#define PROFIL... |
/*
* 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 ... |
#include <stdio.h>
/**************************************************************************
exif.cpp -- A simple ISO C++ library to parse basic EXIF
information from a JPEG file.
Copyright (c) 2010-2013 <NAME>
<EMAIL>
All rights reserved (BSD License).
See exif.h for version history.
... |
#include <algorithm>
#include <cmath>
#include <vector>
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "DataFormats/RecoCandidate/interface/RecoCandidate.h"
#include "DataFormats/R... |
// vscycle.cpp
//
// By <NAME>, 2004.
//
// $Author$
// $Date$
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <baclibrary.h>
#include "vscycle.h"
using namespace std;
VSCycle::VSCycle(BACOptions &poptions, int pn, Formulation::SolutionType solutiontype)
: Problem(poptions, Formulation::MAXIMIZA... |
#include "gui.hpp"
#include "frame.hpp"
#include "light.hpp"
#include "sector.hpp"
#include "app.hpp"
#include "scene.hpp"
#include "camera.hpp"
#include "stats.hpp"
#include "vfs.hpp"
#include "logger.hpp"
#include "single_mesh.hpp"
#include "imgui_ansi.hpp"
#include "IconsFontAwesome5.h"
#include "ImGuizmo.h"
#incl... |
/*
// Copyright (c) 2018 Intel Corporation
//
// 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... |
/***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
#include <iostream>
#include <cstdlib>
#include <poplar/Engine.hpp>
#include <poplar/IPUModel.hpp>
#include <poputil/TileMapping.hpp>
#include <poplar/DeviceManager.hpp>
#include <poplar/CycleCount.hpp>
#include <popops/AllTrue.hpp>
#include <popops/ElementWise.hpp>
#include <popops/Fill.hpp>
#include <popops/codelets.... |
/*
* DESCRIPTION
* The executive action server, is the main business logic for autonomous
* operation. It is initialized at system startup, and is commanded by the
* distributed mission control node.
*
* The autonomous operation starts when commence autonomous operation
* command gets called. This will cont... |
//===-- CSKYISelLowering.cpp - CSKY DAG Lowering Implementation ----------===//
//
// 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 <utility>
#include <iostream>
#include <vector>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <assimp/Importer.hpp>
#include <imgui.h>
#include <imgui_demo.cpp>
#include <implementation/imgui_impl_opengl3... |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [<NAME>][EPFL-LNCO] ... |
/*
2015.4.23------------------------------
つーか倍率magniはいらない
いるのは、人物IDの一位と二位の関係
リクエストがあったら、その人物の順位を記録する。
そして、ファイル出力する。
もしその順位記録ファイルがあったら、それを参考にして人物認識をする
もしなければ、別にそれは使わないでいいと思う
でもいまは、そういう学習機能はいらないかな。
ファイルに順位を書き出しておくぐらいで。
そのファイルを自動作成できるようにするのは、また後でやる。
あと、このモジュールも複数起動させられるようにしておくべきか?
だとしたらd_idを文字列にするか、あるいはそもそも廃止するか
今後の... |
#include<iostream>
#include<iomanip>
#include<string>
#include<fstream>
#include<cmath>
#include<stack>
#include<map>
#include<vector>
#include<sstream>
#include<string.h>
#include<stdlib.h>
#include"myfunctions.h"
using namespace std;
//EXPRESSION FUNCTIONS
expression::expression(){} //ask odmaa what is the need ... |
#ifndef FFT_ALG_H
#include "FFT_Alg.h"
#endif
#include "pch.h" // use stdafx.h in Visual Studio 2017 and earlier
// Definitions for the fft class
fft::fft()
{
// Default constructor
arr_size = 0;
}
// Methods
// Users can only access these methods because they have exception handling
void fft::_four1(std::vector... |
/**
* @file raVerifier.cc
* @author
* @brief implement the interface of raVerifier
* @version 0.1
* @date 2021-05-22
*
* @copyright Copyright (c) 2021
*
*/
#include "../../include/raVerifier.h"
RAVerifier::RAVerifier(SSLConnection* dataSecurityChannel) {
dataSecurityChannel_ = dataSecurityChannel;
... |
/*
* Copyright (c) 1991,1993 Regents of the University of California.
* 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
... |
// https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
#include "AESfunctions.h"
#include "AEStables.h"
#include "AESkeys.h"
void KeyExpansionCore(unsigned char* in4, unsigned short i) {
// RotWord rotates left
// SubWord substitutes with S - Box value
unsigned char t = in4[0];
in4[0] = s_box[in4[1]];
in4... |
//
// HAPPluginRCSwitch.cpp
// Homekit
//
// Created on: 20.12.2019
// Author: michael
//
#include "HAPPluginRCSwitch.hpp"
#include "HAPServer.hpp"
#include "HAPWebServerBodyParserMultipart.hpp"
#include "HAPWebServerBodyParserURLEncoded.hpp"
#if !HAP_WEBSERVER_USE_SPIFFS
#include "HAPWebServerFiles.hpp"
#end... |
/* -*- mode:C++; c-basic-offset:4 -*-
Shore-kits -- Benchmark implementations for Shore-MT
Copyright (c) 2007-2009
Data Intensive Applications and Systems Labaratory (DIAS)
Ecole Polytechnique Federale de Lausanne
All Rights Reserved.
... |
/*******************************************************************\
Module: Symbolic Execution of ANSI-C
Author: <NAME>, <EMAIL> <NAME>,
<EMAIL>
\*******************************************************************/
#include <algorithm>
#include <cassert>
#include <goto-symex/execution_state.h>
#include... |
#include "NvInfer.h"
#include "cuda_runtime_api.h"
#include "logging.h"
#include <fstream>
#include <iostream>
#include <map>
#include <sstream>
#include <vector>
#include <chrono>
#include <cmath>
#define CHECK(status) \
do\
{\
auto ret = (status);\
if (ret != 0)\
{\
... |
// Copyright (c) Electronic Cats. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// Based in the work of <NAME>, thanks https://github.com/sandeepmistry/arduino-LoRa
#include "pxt.h"
#include "SPI.h"
#include <string>
#include <stdlib.h>
// ... |
/*
* Author: <NAME>
* Copyright (c) 2018, Private Octopus, Inc.
* All rights reserved.
*
* Permission to use, copy, modify, and 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.
*
* THIS SOFTWARE ... |
//==========================================================================================
// + + + This Software is released under the "Simplified BSD License" + + +
// Copyright F4GKR <NAME> . All rights reserved.
//
//Redistribution and use in source and binary forms, with or without modification, are
//pe... |
// Copyright 2009 Google 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... |
/* Copyright (C) 2019-2020 <NAME>, TKJ Electronics. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the MIT License
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warrant... |
#include "test_tensor.h"
CPPUNIT_TEST_SUITE_REGISTRATION(TestTensor);
void TestTensor::setUp(){
TestFixture::setUp();
// shape4 = new pico_cnn::naive::TensorShape();
// shape4->set_num_dimensions(6);
// for(int i = 0; i < 6; i++) {
// shape4->set_shape_idx(i, i+1);
// }
//
// shape5 = new p... |
/**
* Copyright (c) 2013 <NAME> <EMAIL>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* inclu... |
/******************************************************/
// THIS IS A GENERATED FILE - DO NOT EDIT //
/******************************************************/
#line 1 "c:/Users/Nerdom/Desktop/capstone/src/capstone.ino"
#include <google-maps-device-locator.h>
#include "Particle.h"
#include "application.h"
#... |
/**
* \file dnn/test/arm_common/elemwise.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "... |
/*
* @file main.cpp
*/
/*****************************************************************************
** $Id: main.cpp 3591 2006-10-18 21:23:25Z andrew $
**
** This is part of the dxflib library
** Copyright (C) 2000-2001 <NAME>
**
** This program is free software; you can redistribute it and/or modify
** it unde... |
#include "internal.h"
#include "base58.h"
#include "ccan/ccan/crypto/sha256/sha256.h"
#include "ccan/ccan/endian/endian.h"
#include "wally_crypto.h"
/* Temporary stack buffer sizes */
#define BIGNUM_WORDS 128u
#define BIGNUM_BYTES (BIGNUM_WORDS * sizeof(uint32_t))
#define BASE58_ALL_DEFINED_FLAGS (BASE58_FLAG_CHECKSUM... |
/* -------------------------------------------------------------------------- *
* OpenSim: testContactGeometry.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... |
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <stdio.h>
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
//Constants for screen size, player size, enemy type enum
#include "Constants.h"
//My header files
#include "Player.h"
#include "Enemy.h"
#include "... |
/*****************************************************************************
*
* MiniOSC
*
* Autor: <NAME> 2015-2016
*
*****************************************************************************
*
* Biblioteka GUI - inicjalizacja i renderowanie graficznego interfejsu uzytkownika
*
************************... |
////////////////////////////////////////////////////////////////////////////////
//Disclaimer:
//
//The source code is shared to the research community as copyrighted freeware
//for research purpose only. The authors own the copyright of the source code.
//The freeware is provided as-is with no warranty or suppo... |
// ConfigMenu.cc for Fluxbox Window Manager
// Copyright (c) 2015 - <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
//... |
#include "world.h"
world::world() {
;
}
world::world(setInput &m_inputData) {
render = m_inputData.GetBoolOpt("render"); // boolean
saveData = m_inputData.GetBoolOpt("saveData"); // boolean
RodLength = m_inputData.GetScalarOpt("RodLength"); // meter
helixradius =... |
/*----------------------------------------------------------------------
PuReMD - Purdue ReaxFF Molecular Dynamics Program
Copyright (2010) Purdue University
<NAME>, <EMAIL>
<NAME>, <EMAIL>
<NAME>, <EMAIL>
<NAME>, <EMAIL>
Please cite the related publication:
<NAME>, <NAME>, <NAME>, <NAME>,
"Parallel... |
#include "RenderBackendVulkan.hxx"
#include <iostream>
#include <SDL.h>
#include <SDL_vulkan.h>
#include <algorithm>
#include "vulkan/DeviceInfo.hxx"
#undef min,max
constexpr uint8_t FrameCount = 2;
constexpr uint8_t Contexts = 4;
constexpr uint8_t CommandLists = 16;
namespace BrokenBytes::Cyanite::Engine::Rendering ... |
//*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: See top LICENSE.txt file.
//
// Author: <NAME>
//
// Description:
//
// Calls Geotrans Equidistant Cylinder projection code.
//******************************************************************... |
#include "viewwidget.h"
#include "taichi.h"
ViewWidget::ViewWidget(QWidget* parent)
: QWidget(parent)
{
ui.setupUi(this);
draw_status_ = false;
shape_ = NULL;
setSource = false;
type_ = Shape::kDefault;
current_color=Qt::black;
current_width=1;
current_vel.clear();
current_vel.push_back(0.0);
current... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
/*****************************************************************/
/* NAME: <NAME>, <NAME>, and <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: SimEngine.cpp */
/* DATE: Mar 8th, 2005 just another day at CSAIL */
/* ... |
// Copyright (c) Facebook, Inc. and its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... |
/* neuron_completeness_plugin.cpp
* This is a test plugin, you can use it as a demo.
* 2019-2-25 : by <NAME>
*/
#include "v3d_message.h"
#include <vector>
#include <algorithm>
#include <iostream>
#include "neuron_completeness_plugin.h"
#include "neuron_completeness_funcs.h"
#include "../../../released_plugins/v3d_... |
#include "ComponentParticles.h"
#include "Glew/include/glew.h"
#include "SDL/include/SDL_opengl.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "MathGeoLib/Math/MathAll.h"
#include "ComponentTransform.h"
#include "ComponentCamera.h"
#include "ModuleScene.h"
#include "ModuleCamera3D.h"
#include "Importe... |
#include <algorithm>
#include <array>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <stdio.h>
#include <time.h>
template <typename value_type, size_t x, size_t y>
using two_array = std::array<std::array<value_type, y>, x>;
unsigned char s_array[8][64] = {
{14, 4, ... |
/*
Copyright (c) 2007 <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
Unless require... |
/*
* 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 "bmpman/bmpman.h"
#include "freespace.h"
#include "gamesnd/ga... |
/*
* MIT License
*
* Copyright (c) 2018 <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, m... |
/*-------------------------------------------------------------------------------------*/
/* NOMAD - Nonlinear Optimization by Mesh Adaptive Direct search - version 3.7.1 */
/* */
/* Copyright (C) 2001-2015 <NAME> - the... |
// Data_structure_linklist.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <cstring>
#define debug
#define outt(x) cout<<#x<<" = "<<x<<" "
#define hh cout<<endl
... |
/*
* tracking.cpp
*
* Created on: 27-Mar-2014
* Author: ubuntu
*/
#include <stdio.h>
#include "utils.h"
#include "Object.h"
/* namespace
*/
using namespace cv;
using namespace std;
/*
* Method declarations
*/
void filterContours(vector< vector<Point> > &contours,
vector< vector<Po... |
//*****************************************************************************
// Copyright 2021 Intel Corporation
//
// 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.ap... |
//
// Codegen.cpp
// play
//
// Created by <NAME> on 2020/2/19.
// Copyright © 2020 <NAME><<EMAIL>>. All rights reserved.
//
#include <vector>
#include "llvm/IR/DerivedTypes.h"
#include "Codegen.hpp"
#include "GlobalVars.hpp"
static vector<DIScope *> LexicalBlocks;
const std::string& FunctionAST::getName() const... |
/*=============================================================================
Name : fmecityjsonreader.cpp
System : FME Plug-in SDK
Language : C++
Purpose : IFMEReader method implementations
Copyright (c) 1994 - 2018, Safe Software Inc. All rights reserved.
Redistribution and use ... |
#include "render.h"
#include "intersection.h"
#include "util.h"
#include "sampler.h"
#include "disney.h"
//#include "lambert.h"
#define kBsdfSamples 1.0f
#define kProbeSamples 1.0f
#define kRayEpsilon 0.0001f
namespace
{
// trace a ray against the scene returning the closest intersection
inline bool Trace(const Sc... |
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <math.h>
#include <vector>
#include "TestLapDataGenerator.h"
using namespace std;
using namespace gwDainese;
void TestLapDataGenerator::outputPair(pair<vector<double>, vector<double>> latLongs) {
cout << "\n lats ";
outputVector(latLongs.f... |
#include "lut_3d.hpp"
#include "raw_image.h"
#include <core/image_util.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb/stb_image.h>
#include <core/math/vector4f.h>
#include <core/math/rect2f.h>
#include <core/http/basen.hpp>
#include <core/util.h>
#include <core/serializebin.hpp>
#include <core/serializable_contai... |
/* **
* Note:
* Some functions are borrowed from Cufflinks: https://github.com/cole-trapnell-lab/cufflinks
* **/
#include <libgen.h>
#include <math.h>
#include <algorithm>
#include <iostream>
#include <errno.h>
#include "common.h"
bool SINGLE_END_EXP = true;
bool BIAS_CORRECTION = false;
int kMaxGeneLength = 2500... |
/*
* MeshUp - A visualization tool for multi-body systems based on skeletal
* animation and magic.
*
* Copyright (c) 2011-2018 <NAME> <<EMAIL>>
*
* Licensed under the MIT license. See LICENSE for more details.
*/
#include "GL/glew.h"
#include "Animation.h"
#include "SimpleMath/SimpleMathGL.h"
#include "string... |
// license:LGPL-2.1+
// copyright-holders:<NAME>, <NAME>, <NAME>
/* sha1.h
*
* The sha1 hash function.
*/
/* nettle, low-level cryptographics library
*
* Copyright 2001 <NAME>, <NAME>, <NAME>
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser G... |
/* \class L2MuonSeedGeneratorFromL1TkMu
*
* L2 muon seed generator:
* Transform the L1TkMuon informations in seeds
* for the L2 muon reconstruction
* (mimicking L2MuonSeedGeneratorFromL1T)
*
* Author: <NAME>
* Modified by <NAME>
*/
// Framework
#include "FWCore/Framework/interface/stream/EDProd... |
//
// The MIT License (MIT)
//
// Copyright 2020 Karolpg
//
// 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 <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <string>
#include <omp.h>
#include "vectorclass/vectorclass.h"
#include "mex.h"
#include "matrix.h"
#define MAX(X,Y) ((X)>(Y)?(X):(Y))
#define MIN(X,Y) ((X)<(Y)?(X):(Y))
#define BOUND(X,A,B) MIN(MAX(X,A),B)
//#define THREADS MIN(MAXTHREA... |
#include "dreamsengine.h"
#include "engine/core/CBehaviorEngine.h"
#include "engine/core/VGamepads/vgamepadsimple.h"
#include "engine/keen/KeenEngine.h"
#include <base/GsLogging.h>
#include <base/GsTimer.h>
#include <base/GsApp.h>
#include <fileio/CExeFile.h>
#include <fileio/KeenFiles.h>
#include <fileio/CPatcher.h>
... |
#include "wMap.h"
#include <string>
#include <sstream>
#include <cmath>
const float PPM = 32.f;
sf::Rect<float> WeaponArea(sf::Vector2f(0.f, (576-128-90-80)),sf::Vector2f(220.f, 170.f)); //(position, dimensions) rectangle for weapon area
std::string player_name;
//**********************************************wMa... |
#include "Game.h"
#include "../Control/States/OptionsState.h"
#include "GameObjectGenerator.h"
#include <cmath>
void Game::updateCameraPos()
{
Vector2D<double> v = { round(player_->getPosition().getX() - getWindowWidth() / 2), round(player_->getPosition().getY() - getWindowHeight() / 2) };
mCamera_->... |
#include "stdafx.h"
// --------------------------------------------
#include "City.h"
#include "Unit.h"
#include "Board.h"
#include "Orders.h"
#include "Hexagon.h"
// ************
// *** City ***
// ************
void C35::City::Tick()
{
Board* b = owner->game;
culture += Capital()?1:0;
float shieldsFactor = ... |
#include <livox_handler.hpp>
// extern shared_ptr<sensor_msgs::msg::PointCloud2> pc2_msg;
extern rclcpp::Publisher<sensor_msgs::msg::PointCloud2>::SharedPtr publisher_pc2;
typedef enum {
kDeviceStateDisconnect = 0,
kDeviceStateConnect = 1,
kDeviceStateSampling = 2,
} DeviceState;
typedef struct {
uint8_t h... |
/*
* Copyright (C) 2018, SICK AG
* Copyright (C) 2018, Ing.-Buero Dr. <NAME>
* Copyright (C) 2016, DFKI GmbH
* 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 s... |
/* Fractal Surface for COMP 471
* <NAME> (1997)
*/
#include <GL/glut.h>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <sstream>
#include <iomanip>
#include <windows.h>
using namespace std;
/* These constants determine the size of the arrays.
* If the program gives an overflow error... |
/* MAIN.cpp
* by Lut99
*
* Created:
* 11/06/2021, 18:03:12
* Last edited:
* 9/20/2021, 8:15:45 PM
* Auto updated?
* Yes
*
* Description:
* Entry point to the rasterizer executable
**/
#ifdef _WIN32
#define NOMINMAX
#include <windows.h>
#endif
#include <string>
#include <chrono>
#define _USE_MATH_D... |
/*-------------------------------------------------------------
Student's Name: <NAME>
Student's email address: <EMAIL>
Last modification:05/05/2016
-------------------------------------------------------------*/
#include <cstdio>
#include <iostream>
#include <signal.h>
#include <SDL/SDL_config.h>
#include <SDL/SDL.h>
... |
/// @file
///
/// @brief This class is used inside the measurement equation object implementing
/// pre-averaging (or pre-summing to be exact) algorithm for calibration. Strictly
/// speaking it is not an adapter and it doesn't behave as an accessor. However, it
/// mimics the accessor interface, so we can reuse the e... |
// Copyright 2020 Google LLC
//
// 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 ... |
/*
* Copyright (c) 1997, 1998 The Regents of the University of California.
* 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 copyr... |
/// \copyright Simmypeet - Copyright (C)
/// This file is subject to the terms and conditions defined in
/// file `LICENSE`, which is part of this source code package.
#include <Axis/Core>
#include <Axis/Graphics>
#include <Axis/System>
#include <Axis/Window>
#include <optional>
using namespace ... |
#include "Application.h"
#include "ModuleImGui.h"
#include "imgui-1.65/imgui_impl_sdl.h"
#include "imgui-1.65/imgui_impl_opengl2.h"
#include "imgui-1.65/imgui_internal.h"
#include "imgui-1.65/imgui_dock.h"
#include "MathGeoLib/Geometry/GeometryAll.h"
#include "GameObject.h"
//RAM and CPU usage
#include "Windows.h"
... |
#include "lpps_adapter.h"
#include "pipes.h"
#include "pps_config.h"
#include "pps_service.h"
#include "pps_api_lua.h"
#include "lpps_lua_seri.h"
#include "pps_timer.h"
#include "pps_net_api.h"
#include "pps_api_lua_socket.h"
#include "pps_api_lua_3rd.h"
#include "pps_worker.h"
extern "C" {
#include "lua.h"
#include ... |
#include "Validation/RecoVertex/interface/BSvsPVHistogramMaker.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CommonTools/UtilAlgos/interfac... |
#include "canvas.h"
#include "../context/timings.h"
#include "../context/rendercontext.h"
#include "qpainterwrapper.h"
#include <cstdlib>
#include <iostream>
#include <cmath>
#include <QQuickWindow>
#include <QScreen>
#ifdef _WIN32
/**
* Export these symbols to signal to use dedicated graphics card on laptops.
*/
ex... |
// VSDNLP.cpp
// Last Modified: <NAME>, 31-Jan-2016
// Derived from the following example: hs071_nlp.cpp
// Authors: <NAME>, <NAME> IBM 2005-08-16
#include "VSDNLP.h"
#include <cassert>
#include <iostream>
using namespace Ipopt;
// constructor
VSDNLP::VSDNLP(){
m_startingPointSuppliedFlag = false;
m_nu... |
//
// Copyright (c) 2017, 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:
//
// Redistributions of source code must retain the above copyright notice, this
// list of conditi... |
/*
@file TrgConfigSvc.cxx
@brief keeps track of the GEM trigger configuration
@author <NAME>
$Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/ConfigSvc/src/ConfigSvc.cxx,v 1.8.244.1 2010/10/08 16:20:23 heather Exp $
*/
#include "./ConfigSvc.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/SvcFac... |
// content-based cowdancer-like file system.
//
// At mount time it would:
// - hard-links same file based on content
// - gc to eliminate files no longer referenced.
//
// While mounted it would:
// - try to unlink the hardlinks before modification.
#define FUSE_USE_VERSION 32
#include <assert.h>
#include <fcntl.h>
#... |
// -*- mode: c++ -*-
// Weather fetch/process
//
// The MIT License (MIT)
//
// Copyright (c) 2021 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including... |
#include <iomanip>
#include <iostream>
#include <typeinfo>
#include <tr1/functional>
#include "SwapScheduling.hpp"
#include "../DCCon_in.hpp"
#include "../ParseCommandLine.hpp"
using namespace std;
using namespace std::tr1;
static const double epsilon = 1e-5;
void SwapScheduling::buildTaskTable(char *filename) {
... |
//#define ARMA_NO_DEBUG
#include <iostream>
#include <armadillo>
#include <float.h>
#include <ctime>
using namespace std;
using namespace arma;
typedef double (*callback_type)(int, double[]);
typedef bool (*is_terminate_type)(long, int, double); // runid, iter, value -> isTerminate
static uvec inverse(... |
/*
* Copyright (C) 2003-2011 <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 cond... |
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "./ED_FM_Template.hpp"
#include "./ED_FM_Utility.hpp"
Vec3 common_moment;
Vec3 common_force;
Vec3 center_of_gravity;
Vec3 wind;
Vec3 velocity_world_cs;
double throttle = 0;
double stick_roll = 0;
double stick_pitch = 0;
... |
//----------------------------------------------------------------
// File: patGpsPoint.cc
// Author:
// Creation:
//----------------------------------------------------------------
#include "patGpsPoint.h"
#include "patArc.h"
#include "patConst.h"
#include "patCoordinates.h"
#include <math.h>
#include "patDisplay.h"
... |
/*
Copyright (c) 2010-2012, <NAME> - All rights reserved.
This code is intended for use with the Cinder C++ library: http://libcinder.org
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following conditions are met:
* Redistributions of sour... |
/*
ckmame.c -- main routine for ckmame
Copyright (C) 1999-2018 <NAME> and <NAME>
This file is part of ckmame, a program to check rom sets for MAME.
The authors can be contacted at <<EMAIL>>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the fol... |
#include <iostream>
#include <chrono>
#include "Bitboard.h"
#include "Moves.h"
#include "Chessboard.h"
#include "BoardConcepts.h"
uint64_t KnightMoves[64];
uint64_t KingMoves[64];
uint64_t PawnAttacks[2][64];
uint64_t PawnMoves[2][64];
uint64_t RaysArray[64][8];
int BitboardPieceOffsets[12][8] = {{-9,-7}, {9,7,-9,-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.