text stringlengths 3.08k 22k |
|---|
// This renders a cube to an FBO then uses a compute shader to invert that image
// It uses Image load/store to write the image
#include <memory>
#include <vector>
#include "glm/glm/gtc/matrix_transform.hpp"
#include "base_app.h"
#include "glsl_program.h"
#include "camera.h"
// Cube vertices
static const GLfloat c... |
/************************************************************ WorkManager.cc
Copyright (c) 2010 Universite d'Orleans - <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 restrictio... |
#include <vector>
#include "../../util/exception.hpp"
#include "../../geas_object/geas_object.hpp"
#ifdef DEBUG
#include "../../game/game.hpp"
#endif
#include "rectcollider.hpp"
const static float _rect_overlap = 1.0f;
RectCollider::RectCollider(GeasObject *owner, const Vec4 &rect)
: Transform(owner)
... |
#include <iostream>
#include <vector>
#include <array>
#include <math.h>
#include "consts.hpp"
#include "ensemble.hpp"
#include "MT.h"
using namespace std;
//コンストラクタ
Ens::Ens(){
int i, ix, iy;
div_t div_i;
double sum_ux=0, sum_uy=0, r1, r2;
init_genrand(1);
for(i=0; i<NAtom; i++){
div_i = div(i, NInitCo... |
#include <algorithm>
#include <cmath>
#include <cassert>
#include <sys/stat.h>
#include <fstream>
#include <fcntl.h>
#include <iostream>
#include <wait.h>
#include <boost/program_options.hpp>
#include <boost/algorithm/string/trim.hpp>
#include "Util.h"
struct configInfo gConfig;
std::vector<struct blockEventInfo> re... |
#include <iostream>
#include <graphics.h>
#include <Stroke.h>
#include <Util.h>
#include <Ellipses.h>
#include <Pattern.h>
#include <Flower.h>
using namespace std;
//Method untuk menggambar Pattern
void drawCrest()
{
//Konstruksi objek objek pattern
Point point(20,0);
Point point2(-20,0);
Point point3(... |
/*
The MIT License (MIT)
Copyright (c) 2016 delphinus1024
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,... |
#include "helper.h"
#include "mcts.h"
#include "surakarta.h"
#include <arpa/inet.h>
#include <cassert>
#include <cstdlib>
#include <errno.h>
#include <getopt.h>
#include <iostream>
#include <memory>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unordered_map>
#include <utility>
#inclu... |
#include "openglwindow.hpp"
#include <fmt/core.h>
#include <imgui.h>
#include <tiny_obj_loader.h>
#include <cppitertools/itertools.hpp>
#include <glm/gtx/fast_trigonometry.hpp>
#include <glm/gtx/hash.hpp>
#include <unordered_map>
#include <glm/gtc/matrix_inverse.hpp>
// Explicit specialization of std::hash for Verte... |
#include <ncurses.h>
#include <math.h>
#include "rayCaster.h"
/**
* @brief A function to check if player has won
*
* @param currectPosX The current X position of the player
* @param currentPosY The current Y position of the player
* @param exitX The X exit coordinate of the maze
* @param exitY The Y exit coordi... |
/*
* 4Gewinnt.cpp
*
* Created on: 10.04.2017
* Author: Nikola & Natalja
*/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <SDL.h>
#include <SDL_image.h>
using namespace std;
// spielfeld_zeichnen
void spielfeld_zeichnen(int spalte, SDL_Surface *png, SDL_Surface *surf)... |
// 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/intents/cws_intents_registry.h"
#include "base/callback.h"
#include "base/json/json_string_value_serializer.h"
#include "bas... |
#include "driver/utils/utils.h"
#include "driver/config/config.h"
#include "driver/config/ini_defines.h"
#include "driver/driver.h"
#include "driver/environment.h"
#include <odbcinst.h>
#include <list>
#include <string>
#include <cctype>
#include <cstring>
void readDSNinfo(ConnInfo * ci, bool overwrite) {
std::... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test_vector.cpp :+: :+: :+: ... |
#include "tarch/plotter/griddata/unstructured/binaryvtu/BinaryVTUTextFileWriter.h"
#include "tarch/parallel/Node.h"
#include <stdio.h>
#include <fstream>
#include <iomanip>
tarch::logging::Log tarch::plotter::griddata::unstructured::binaryvtu::BinaryVTUTextFileWriter::_log( "tarch::plotter::griddata::unstructured::v... |
#include "libParanumal.hpp"
#include "meshNekReaderHex3D.hpp"
void meshBoxSetupHex3D(int N, mesh_t *mesh) {
mesh->Nfields = 1;
mesh->dim = 3;
mesh->Nverts = 8; // number of vertices per element
mesh->Nfaces = 6;
mesh->NfaceVertices = 4;
// vertices on each face
int faceVertices[6][4] =
{{0,1,2,3... |
#include "ukf.h"
#include "Eigen/Dense"
#include <exception>
using Eigen::MatrixXd;
using Eigen::VectorXd;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during init)
use_laser_ = true;
// if this is false, radar measurements will be ... |
/*
Copyright (C) 2014 Aseman
http://aseman.co
This project is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This... |
#include "debug.h"
#include "parameters.h"
#include "distancefield.h"
#include <vector>
#include <fstream>
#include <functional>
#include <glm/glm.hpp>
#include <iostream>
#include <glm/gtx/string_cast.hpp>
using namespace std;
using namespace glm;
#include "boundingbox.hpp"
#include "mesh.h"
#include "mathUtils.h"... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... |
#include <iomanip>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include <boost/tokenizer.hpp>
#include "global_prototypes.hpp"
#include "ArtifactDumper.hpp"
#include "AttackDumper.hpp"
#include "CharacterDumper.hpp"
#include "ClassManager.hpp"
#include "ColourTextKeys.hpp"
#include "ConductsDumper.hpp"
#in... |
/*
* Authors: <NAME> and <NAME>
* Copyright 2021 Phasecraft Ltd. and <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... |
/*
<NAME>
ewb0020
project4_Brown_ewb0020.cpp
Resources: 1) StackOverflow 2) Friend from UAH
*/
#include <iostream>
#include <cstdlib>
#include <string>
#include <cassert>
using namespace std;
int totalPoints = 0; // Cumulative points throughout the game
struct TriviaNode {
string question;
string ans... |
/* BrainVesselCPR_plugin.cpp
* This is a plugin for Brain Vessel CPR in MRA&MRI image
* 2019-5-14 : by <NAME>
*/
#include "BrainVesselCPR_plugin.h"
#include "BrainVesselCPR_filter.h"
#include "BrainVesselCPR_centerline.h"
#include "BrainVesselCPR_syncview.h"
#include "BrainVesselCPR_sampleplane.h"
void setWLWW(V3... |
#include <iostream>
#include <vector>
#include <algorithm>
#include <memory>
#define N 9
using namespace std;
/**************************************************************
// Two dimentional array for passing numbers to sovler one by one
**************************************************************/
int sudoku[N][N... |
#include "tiny.h"
SDL_Window* window = NULL;
SDL_Renderer* renderer = NULL;
Timer fps_timer;
std::stringstream fpsText;
Texture t_fps;
RawTexture image;
Model* model = NULL;
const int SCREEN_WIDTH = 200;
const int SCREEN_HEIGHT = 200;
bool init() {
bool success = true;
if (SDL_Init(SDL_INIT_VIDEO) != 0){
... |
/*
* Copyright 2001-2005, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* DarkWyrm <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> (<EMAIL>)
* <NAME>, <EMAIL>
*/
#include <AppDefs.h>
#include <List.h>
#include <String.h>
#include <stdio.h>
#include <string.h>
#include <... |
/* -------------------------------------------------------------------------- */
/* ------------- RonClient --- Oficial client for RonOTS servers ------------ */
/* -------------------------------------------------------------------------- */
#include "messages.h"
#include "allocator.h"
#include "game.h"
#include "to... |
#include <vector>
#include <iostream>
#include <cstdlib>
#include <cassert>
#include <cmath>
#include <fstream>
#include <sstream>
using namespace std;
struct Connection
{
double weight;
double deltaWeight;
};
class Neuron;
typedef vector<Neuron> Layer;
class Neuron
{
public:
Neuron(unsigned numOutput... |
#include "wallet.h"
#include <bip39.h>
#define YES 38
#define NO 2
String getWordsInString(String data, char separator, int index)
{
int maxIndex = data.length() - 1;
int j = 0;
String chunkVal = "";
for (int i = 0; i <= maxIndex && j <= index; i++)
{
chunkVal.concat(data[i]);
if (da... |
#include "WebPages.h"
#include <ConfigAttributes.hpp>
#include <LinkedList.hpp>
#include <WifiHandler.hpp>
#include <Util.hpp>
#include <html/setup.h>
const char *selected = "selected";
const char *checked = "checked";
const char *blank = "";
static const char *setupProcessor(const char *var)
{
if (strcmp(var, A_a... |
#include "readgrammar.h"
readgrammar::readgrammar(string filename)
{
gfilename = filename;
nonterm = "<Start>";
map_alpha.push_back(line);
map_beta.push_back(line);
grammar.resize(0);
}
readgrammar::~readgrammar(void)
{
}
void readgrammar::readtext(void)
{
string str_line="";
f_g.open(gfil... |
#include "GoalGraphManager.hpp"
#include "visitorbase.hpp"
#include "VisitorPretty.hpp"
#include "ValueVector.hpp"
GoalGraphManager::GoalGraphManager(bool isFullMatch) : goalRoot(), unionGoalsHash(131072) {
//this->pAllGoals.push_back(&goalRoot);
this->createProgram1stParam = nullptr;
this->pCreateProgram ... |
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... |
/*
* Copyright 2005-2006 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... |
//===============================================================================//
// Name : HMPdetector.cpp
// Author(s) : <NAME>
// Affiliation : University of Genova, Italy - dept. DIBRIS
// Version : 1.1
// Description : Human Motion Primitives and Fall detection system
//=======================================... |
#include "load_data.h"
#include "load_cover.h"
#include <algorithm>
#include <iostream>
#include <assert.h>
using std::cout;
using std::endl;
void buildRangeIndex(const vector<int64_t> &primaryKeyCol, int64_t primarySize, const int64_t * foreignKeyCol,
int64_t foreignSize, RangeIndex rangeInd... |
#include "download_manager.hpp"
#include "http.hpp"
#include "temp_dir.hpp"
#include "include/cef_download_handler.h"
namespace {
pair<string, string> extractExtension(const string& filename) {
int lastDot = (int)filename.size() - 1;
while(lastDot >= 0 && filename[lastDot] != '.') {
--lastDot;
}... |
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/**
* @file gd32_spi.cpp
*
*/
/* Copyright (C) 2021-2022 by <NAME> mailto:<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 th... |
/*
* Copyright © 2012, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use t... |
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <memory.h>
#include <math.h>
#include <cmath>
#include "core.h"
#include "uart.h"
#include "gpu.h"
// Place the offscreen buffer in GPU accessible memory
// This is a 320x200 back buffer to be DMAd to V-RAM
uint8_t *mandelbuffer = (uint8_t*)GRAMSta... |
#include "material.hpp"
#include "gl/shaderUtils.hpp"
#include "light/light.hpp"
#include <GL/glew.h>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <string>
#include <sstream>
Material::Material(glm::vec3 color, float specularCoefficient, float shininess) :
color(color),
specularCoefficient... |
#include <atomic>
#include <chrono>
#include <string>
#include "QPanda.h"
#include <algorithm>
#include "gtest/gtest.h"
#include "ThirdParty/rapidjson/writer.h"
#include "ThirdParty/rapidjson/document.h"
#include "ThirdParty/rapidjson/stringbuffer.h"
#include "ThirdParty/Eigen/Dense"
#include "ThirdParty/Eigen/Sparse... |
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <sys/types.h>
#include <sys/stat.h>
#include "common.hh"
#include "extra.hh"
#include "shear_sim.hh"
// Temperature scale that is used to non-dimensionalize temperatures
const double TZ=21000; // STZ formation energy, ... |
// <NAME>
// CSCI 441
// 11/11/2009
#include <math.h>
#include <stdlib.h>
#include <cmath>
#include <fstream>
#include <iostream>
#include <assert.h>
#include <string>
#include <vector>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
using namespac... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001-2003 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
/*
Copyright (c) 2021 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute,... |
/*!
* Copyright (c) 2018 <NAME>
*
* This program is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
/*!
* @file OnlineRindex_Demo.cpp
* @brief Demonstration for online r-index, index based on Run-length encoded Burrows–Wheeler transform (RLBWT).
* @author <NAME>
* @date 2018... |
// Copyright 2021 SAMURAI TEAM. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <iostream>
#include <fmt/format.h>
#include <samurai/box.hpp>
#include <samurai/field.hpp>
#include <samurai/hdf5.hpp>
#include <samurai/amr/mesh.hpp>
#i... |
#include "openglwindow.hpp"
#include <imgui.h>
#include "abcg.hpp"
void OpenGLWindow::handleEvent(SDL_Event &event) {
// keyboard events
if (event.type == SDL_KEYDOWN) {
if (event.key.keysym.sym == SDLK_SPACE)
m_gameData.m_input.set(static_cast<size_t>(Input::Fire));
if (event.key.keysym.sym == SDL... |
// Author(s): <NAME>
// Copyright: see the accompanying file COPYING or copy at
// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
//
// 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)
//
/// \file transform.c... |
/////////////////////////////////////
// Object.cpp
// The mesh of object.
/////////////////////////////////////
#include "Mesh.h"
#include "D3DClass.h"
#include <fstream>
#include <string>
Mesh::Mesh()
{
m_vertexBuffer = nullptr;
m_indexBuffer = nullptr;
}
Mesh::Mesh(const Mesh &)
{
}
Mesh::~Mesh()
{
}
bool Mesh... |
//
// main.cpp
// SSLServer
//
// Created by <NAME> on 2017. 4. 10..
// Copyright © 2017 <NAME>. All rights reserved.
//
#include <iostream>
#include <stdio.h>
#include <iostream>
#include <ctime>
#include <shan/net_ssl.h>
#include <shan/util/pool.h>
using namespace std;
using namespace shan::net;
class unix_tim... |
// Copyright GREYC - UMR 6072 ; Université de Caen Normandie
// Esplanade de la paix
// CS 14032
// 14032 Caen CEDEX 5
// contributeur :
// <NAME>, 2015
//
// <EMAIL>
//
// Ce logiciel est un programme informatique servant à la comparaison et à l'analyse d'outils de détection de communauté.
//
// Ce logiciel est rég... |
/********************************************************************************
* Copyright 2017 The Robotics Group, The <NAME>-<NAME>ler Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... |
#include "http.h"
#include "util/log.h"
#include "util/timer.h"
#include "platform/pic32/telit_he910.h"
#include <stdio.h>
namespace http = openxc::http;
using openxc::util::time::delayMs;
using openxc::util::log::debug;
using openxc::util::time::uptimeMs;
using openxc::http::httpClient;
using openxc::http::HTTP_STAT... |
// Uses POSIX functions to send and receive data from the virtual serial
// port of a Pololu Simple Motor Controller.
// NOTE: The Simple Motor Controller's Input Mode must be set to Serial/USB.
// NOTE: You must change the 'const char * device' line below.
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#i... |
/*
**++
**
** Copyright (c) 2002 Microsoft Corporation
**
**
** Module Name:
**
** writerconfig.cpp
**
**
** Abstract:
**
** defines classes that encapsulate the Test writer's configuration
**
** Author:
**
** <NAME> [reuvenl] 04-June-2002
**
**
**
** Revision History:
**
**--
*/... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <posit/posit>
#include <iostream>
#include "batch.hpp"
#include "utils.hpp"
#include "defines.hpp"
using namespace std;
using namespace sw::unum;
// const char XDATA[] = "GTCGCGTACCTGTGGTATAAGAGCTTTGGGCTTTCGCAGTCCCGACTAGTCTGAACTTAC... |
/* (c) CiggBit. All rights reserved.
* See license.txt for more information
*/
#include "AOD.h"
#include "Client_Vars.h"
#include "Game_Manager.h"
#include "Network.h"
#include "Player.h"
#include "PulNet_Handler.h"
#include <fstream>
#include <future>
#include <iostream>
#include <mutex>
#include <s... |
#include "stk500sd.h"
stk500sd::stk500sd(stk500 *handler) {
_handler = handler;
reset();
}
void stk500sd::reset() {
_volume.isInitialized = 0;
for (int i = 0; i < SD_CACHE_CNT; i++) {
_cache[i].reset();
}
}
void stk500sd::init(bool forceInit) {
/* Various conditions to check whether w... |
#include<bits/stdc++.h>
// g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 1000000007
#define EPS 1e-6
#define ll long long int
#define ld long double
#define fi first
#define se second
#define all(v) v.begin(),v.e... |
#include <manala/datastream/datastreamdoublefeedback.hpp>
decaf::
DatastreamDoubleFeedback::~DatastreamDoubleFeedback()
{
if(channel_prod_) delete channel_prod_;
if(channel_prod_dflow_) delete channel_prod_dflow_;
if(channel_dflow_prod_) delete channel_dflow_prod_;
if(channel_dflow_) delete channel_dfl... |
//===---------------------------------------------------------------------===//
//
// The ONNC Project
//
// Copyright(c) 2018, The ONNC Team
//
// This file is part of the ONNC Project and is distributed under
// 3-clause BSD license (https://opensource.org/licenses/BSD-3-Clause)
//
// See ... |
#include "FluidSolver.h"
void FluidSolver::buildRhs() {
double scale = 1.0/_hx;
const uint8_t *cell = _d->cell();
const uint8_t *body = _d->body();
for (int y = 0, idx = 0; y < _h; y++) {
for (int x = 0; x < _w; x++, idx++) {
if (cell[idx] == CELL_FLUID) {
_r[id... |
/*********************************************************************/
/* */
/* Nagoya Institute of Technology, Aichi, Japan, */
/* Nara Institute of Science and Technology, Nara, Japan */
/* ... |
/*
* Tencent is pleased to support the open source community by making PaxosStore available.
* Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of... |
/*
* File: File.cpp
* Author: User
*
* Created on 14 Январь 2012 г., 23:35
*/
#include "File.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <libgen.h>
#include <stdlib.h>
#include <io.h>
#include <iostream>
#include <direct.h>
#include <dirent.h>
#include <string.h>
#include <winbase.h>
#include "... |
/* === Doxygen Comment ======================================= */
/*!
* \file preprocessor.cxx
* \copyright (c) 2003 SNIFS-Supernova Factory Experiment
* \date Wed Aug 6 17:44:35 2003
* \author <NAME> <<EMAIL>>
* \version 0.0
* \brief
*
* $Id$
**/
/... |
#include "Blinker.h"
/*****************************************************************************
* Implementation for type : Blinker
*****************************************************************************/
// BEGIN: Code from the c_global annotation Blinker
extern struct Blinker_Instance blinker_var;
bool... |
/*********************************************************************
* This file is distributed as part of the C++ port of the APRIL tags
* library. The code is licensed under GPLv2.
*
* Original author: <NAME> <<EMAIL>>
* C++ port and modifications: <NAME> <<EMAIL>>
********************************************... |
////////////////////////////////////////////////////////////////////////////////
//
// Title: asmt05: Drink Machine Simulator
// Created By: <NAME>
// Course: CS202
//
// Summary: This program simulates a typical vending machine. It displays a
// menu of beverages, and tracks its inventor... |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
/*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics 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 th... |
/// @file
///
/// @brief Gaussian w-sampling
/// @details
/// W-dependent gridders support non-linear sampling in the w-space (through WDependentGridderBase).
/// This class implements IWSampling interface and provides gaussian sampling in the w-space. The
/// class is parameterised with a single parameter being the n... |
//
// calibration.cpp
// emptyExample
//
// Created by its on 2014/09/11.
//
//
#include "calibration.h"
void calibration::menuInit() {
_aveCulcCount = 0;
_caliCulcCount = 0;
_tempCenterX = 0;
_tempCenterY = 0;
_gui.setup();
_gui.add(_colorR.setup("red",0,0,255));
_gui.add(_c... |
/*
//@HEADER
// *****************************************************************************
//
// jacobi1d_vt.cc
// DARMA/vt => Virtual Transport
//
// Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Con... |
#include "global_body_planner/gbpl.h"
using namespace planning_utils;
GBPL::GBPL() {}
int GBPL::connect(PlannerClass &T, State s, const PlannerConfig &planner_config,
int direction, ros::Publisher &tree_pub) {
// Find nearest neighbor
flipDirection(s);
int s_near_index = T.getNearestNeighbor(... |
/**
* @file testPoseWithCovariance.cpp
* @brief Unit test for PoseWithCovariance and calculations
* @author <NAME>
*/
#include <CppUnitLite/TestHarness.h>
#include <random>
#include "KimeraRPGO/utils/geometry_utils.h"
using KimeraRPGO::PoseWithCovariance;
struct normal_rv
{
explicit normal_rv(Eigen::M... |
#pragma once
#include <stdint.h>
#include <atomic>
#include <boost/filesystem.hpp>
#include <unordered_map>
#include <unordered_set>
#include "base/Atomic.hpp"
#include "base/Error.hpp"
#include "base/Logging.hpp"
#include "base/Mutex.hpp"
#include "base/ThreadPool.hpp"
#include "base/WaitGroup.hpp"
#include "block/... |
//
// JPEGENC test app
//
// written by <NAME> (<EMAIL>)
// Project started July 2021
// Copyright (c) 2021 BitBank Software, Inc.
//
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include "../src/JPEGENC.h"
JPEG jpg; // static copy of JPEG encoder class
// If MEM_TO_MEM is defined, the encoder wi... |
#define CXX_USE_NULLPTR
#include <ext/string>
#include <gtest/gtest.h>
TEST(string_test, stoul) {
#if defined(_MSC_VER)
EXPECT_EQ(std::stoul("-12345"), 4294954951);
EXPECT_EQ(std::stoul("12345"), 12345);
EXPECT_EQ(std::stoul("0xffffffff", nullptr, 16),
std::numeric_limits<unsigned long>::max());
... |
#include "window.hpp"
GLuint LoadShaders(const char * vertex_file_path,const char * fragment_file_path){
// Create the shaders
GLuint VertexShaderID = glCreateShader(GL_VERTEX_SHADER);
GLuint FragmentShaderID = glCreateShader(GL_FRAGMENT_SHADER);
// Read the Vertex Shader code from the file
... |
/*
* Copyright (c) 2012, <NAME>
* All rights reserved.
*
* This file is part of kriswuollett/compute.
*
* kriswuollett/compute is free software: you can redistribute it and/or modify
* it under the terms of the BSD 3-Clause License as written in the COPYING
* file.
*/
#include <iostream>
#include <sstream>
#in... |
/***********************************************************************
* Microsoft (R) Debugging Information Dumper
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* File Comments:
*
*
***********************************************************************/
#include "cvdump.h"
#include "debsym.h" ... |
#include "planargraph.hh"
#include "polyhedron.hh"
#include <stdio.h>
//////////////////////////// FORMAT MULTIPLEXING ////////////////////////////
vector<string> PlanarGraph::formats{{"ascii","planarcode","xyz","mol2","mathematica","latex"}};
vector<string> PlanarGraph::input_formats{{"planarcode","xyz","mol2"}}; // ... |
#include "language.h"
using namespace curly_octo_meme;
Lexer* curly_octo_meme::constructLexer() {
Lexer* lexer = new Lexer();
lexer->addToken(TokenType::KW_DO,
std::regex("^(do)\\b"));
lexer->addToken(TokenType::KW_WHILE,
std::regex("^(while)\\b"));
lexer->addToken(Toke... |
#include "wrh264aacst.h"
#include "h264encoder.h"
#include "aacencoder.h"
#include "mp4file.h"
#include "publicbuffer.h"
WrH264AacSt::WrH264AacSt(QObject *parent) : WriteSt(parent) {
mMp4Fi = new Mp4File;
mH264En = new H264Encoder;
mAacEn = new AacEncoder;
connect(mMp4Fi, &Mp4File::errorMp4Fi, this, ... |
#include "pch.h"
#include "texture.h"
#include "FreeImage/FreeImage.h"
GLuint loadDDS(const char * imagepath)
{
unsigned char header[124];
FILE *fp;
/* try to open the file */
fp = fopen(imagepath, "rb");
if (fp == NULL) {
printf("%s could not be opened. Are you in the right director... |
/* Start Header ************************************************************************/
/*!
\file GLHelper.hpp
\project Exale
\author <NAME>, <EMAIL>.foo, 440002318 (100%)
\par <EMAIL>
\date 1 December,2019
\brief This file contains the function definitions for G... |
// Copyright (c) 2017 <NAME> <jdelgado[at]gmx.net>
// https://github.com/jandelgado/jled
//
// 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 limitatio... |
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include "./debug_helper.h"
#include "./gtk_utils.h"
#include "./window_info.h"
#include "include/bitsdojo_window_linux/bitsdojo_window_plugin.h"
namespace bitsdojo_window {
static gboolean onMouseMoveHook(GSignalInvocationHint *ihint,
... |
/* Copyright 2013 Yahoo! Inc. */
/* See LICENSE in the root of the distribution for licensing details. */
// Unit Tests for mdbm_limit_dir_size
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This example code illustrate how to use STL A* Search implementation to find the minimum path between two
// cities given a map. The example is taken from the book AI: A Modern Approach, 3rd Ed., by Rus... |
/*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... |
/*
Author(s): <NAME> (msc37)
Project: sweepc (population balance solver)
Sourceforge: http://sourceforge.net/projects/mopssuite
Copyright (C) 2008 <NAME>.
File purpose:
Implementation of the SinteringModel class declared in the
swp_sintering_model.h header file.
Licence:
This... |
// Copyright 2014 <NAME>.
//
// Author: <NAME> (<EMAIL>)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mo... |
/// Test program for the generic model
#include <string>
#include <iostream>
#include <fstream>
#include <list>
#include <vector>
#include "detModel/Management/Manager.h"
#include "detModel/Management/VrmlSectionsVisitor.h"
#include "detModel/Management/CountMaterial.h"
#include "detModel/Management/IDmapBuilder.h"
#... |
#include "FileSystem.h"
#include "..\\Graphics\\AdapterReader.h"
#include "..\\Graphics\Shaders.h"
#include "..\Editor\Editor.h"
#include "..\Graphics\Graphics.h"
#include "..\\Components\MeshRenderComponent.h"
#include "..\\Components\\EditorSelectionComponent.h"
#include "..\Components\LuaScriptComponent.h"
#include... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.