text stringlengths 3.08k 22k |
|---|
// This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include <assert.h>
#include <sys/types.h>
#include <dirent.h>
#include <fstream>
#include <iostream>
#include <set>
#include "graph_library.hpp"
#include "lgedgeiter.hpp"
#include "pass.hpp"
#include "lgraph.hpp"
LGraph::LGraph(... |
// Copyright 2018 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_elf/third_party_dlls/logs.h"
#include <windows.h>
#include <assert.h>
#include <vector>
#include "chrome_elf/sha1/sha1.h"
namespace ... |
#include "anchorsampler.h"
#include "bbox.h"
#include <iostream>
#include <random>
AnchorSampler::AnchorSampler(const Params& params)
: allowed_border_(params.rpn_allowed_border),
num_batch_(params.rpn_batch_rois),
fg_fraction_(params.rpn_fg_fraction),
fg_overlap_(params.rpn_fg_overlap),
b... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/os2/dialog.cpp
// Purpose: wxDialog class
// Author: <NAME>
// Modified by:
// Created: 10/14/99
// Copyright: (c) <NAME>
// Licence: wxWindows licence
///////////////////////////////////////////////////... |
#include <iostream>
#include "ukf.h"
using Eigen::MatrixXd;
using Eigen::VectorXd;
UKF::UKF() {
Init();
}
UKF::~UKF() {
}
void UKF::Init() {
}
/**
• https://youtu.be/GYQeizoj09E
• Goal coding Quiz is to predict the mean and the covariance of a radar
measurement.
• Expect Radar measurement →... |
#include "Pch.h"
#include "Notifications.h"
#include "Input.h"
static const Int2 notification_size(350, 80);
//=================================================================================================
void Notification::Close(float t)
{
assert(t >= 0.f);
if(t == 0.f)
{
if(state == State::Showing)
t2 ... |
/*
Copyright (c) 2012, <NAME>, UGO VARETTO, SWISS NATIONAL SUPERCOMPUTING CENTRE (CSCS)
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 copyrig... |
//#include <limits>
//#include "rosic_ModalSynthesizer.h"
//using namespace rosic;
//=================================================================================================
// class ModalFilter:
ModalFilter::ModalFilter()
{
g = 1.0;
b1 = a1 = a2 = 0.0;
reset();
}
void ModalFilter::setModalParameters... |
#include "contact_with_obstacle_node.hpp"
#include "max_contact_with_obstacle_playout.hpp"
#include "placement.hpp"
#include "globals.hpp"
#include "lower_bound.hpp"
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
using namespace procon26;
ContactWithObstacleNode::ContactWithObstacleNo... |
// Copyright 2013 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 appl... |
#include <string>
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <fstream>
using namespace std;
/////////////////////////////// generation with open volume mesh //////////////////////
#define INCLUDE_TEMPLATES
#include <OpenVolumeMesh/Geometry/VectorT.hh>
#include <OpenVolumeMesh/Mesh... |
// Declares clang::SyntaxOnlyAction.
#include "clang/AST/ASTConsumer.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Tooling.h"
// Declares llvm::cl::extrahelp.
#include "llvm/Support/CommandLine.h"
#inclu... |
/**
* @file mmhost.cpp
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <gmp.h>
#include "../common/utility.h"
#include "../common/benchmarkoptions.h"
using namespace std;
double multiplyWithFPGA(cl_context ctx,
cl_command_queue queue,
... |
/**
* The MIT License (MIT)
*
* Copyright (C) 2017 Bacon2D Project
*
* 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 ... |
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <iostream>
#include <fstream>
#include <iostream>
#include <map>
#include <cstdint>
#include <unistd.h>
using namespace std;
// ***************************************... |
/*
This file is a part of NNTL project (https://github.com/Arech/nntl)
Copyright (c) 2015-2021, Arech (<EMAIL>; https://github.com/Arech)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redi... |
#include <iostream>
#include <fstream>
#include <vector>
#include <unordered_map>
#include <map>
#include <queue>
#include <algorithm>
static const int INF = (1 << 30);
static const int vert[] = {0, 0, -1, 1};
static const int oriz[] = {-1, 1, 0, 0};
enum Color {
BLACK,
WHITE,
};
enum Direction {
LEFT,
... |
/*
This file is part of the UrgBenri application.
Copyright (c) 2016 <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain th... |
#include <iostream>
#include <fstream>
#include <string>
#include <time.h>
using namespace std;
int random_number(int min, int max){
srand(time(NULL));
return rand() % max + min;
}
int main(int argc, char *argv[]){
ifstream rf;
rf.open(argv[1], ifstream::in);
ofstream wf;
wf.open("output.cpp", ... |
/* ----------------------------------------------------------------- */
/* The Toolkit for Building Voice Interaction Systems */
/* "MMDAgent" developed by MMDAgent Project Team */
/* http://www.mmdagent.jp/ */
/* -------------------------... |
#include <cmath>
#include "BSPTree.h"
#include "scene.h"
#include "light.h"
#include "../ui/TraceUI.h"
extern TraceUI* traceUI;
using namespace std;
void BoundingBox::operator=(const BoundingBox& target)
{
min = target.min;
max = target.max;
}
// Does this bounding box intersect the target?
bool BoundingBox::in... |
///////////////////////////////////////////////////////////////////////
// FESproutBodyForce.cpp
///////////////////////////////////////////////////////////////////////
#include "StdAfx.h"
#include "FECore/FECoreKernel.h"
#include "FESproutBodyForce.h"
#include "FECore/FEModel.h"
#include "FEBioMech/FEElasticM... |
#pragma once
#include <stdint.h>
#include <array>
#include <vector>
#include <string>
#ifndef byte
using byte = uint8_t;
#endif
// SHUT UP MSVC
#pragma warning ( disable : 4244 )
#pragma warning ( disable : 4267 )
#pragma warning ( disable : 4305 )
#pragma warning ( disable : 4309 )
#pragma warning (... |
/** @file
A brief file description
@section license License
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 und... |
/* Copyright (c) 2015, <NAME>, <NAME>,
<NAME> & MariaDB Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list o... |
/**
* \file src/maths/PolyhedronExploration.cpp
* \brief Implementation of polyhedron's points listing
* \author <NAME>
* \version 0.1
*
* \todo l.213: throw an exception instead of error printing
*
* \todo l.247: throw an exception instead of error printing
*
* \todo l.256: throw an exception instead of erro... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
#include <list>
#include <vector>
#include <unordered_map>
#include <iostream>
#include <array>
#include <string>
#include <functional>
#include <memory>
#include <glad/glad.h>
#include <SDL.h>
#include <SDL_rwops.h>
#include <SDL_net.h>
#include <SDL_thread.h>
#include <physfs.h>
#include <scheme-private... |
//
// Created by <NAME> and <NAME> on 27/12/2019.
//
#include "Lexer.h"
#include <string>
#include <fstream>
#include <sstream>
#include <cstring>
//defines for strings with quote
#define quote "\""
#define quoteAndComma "\","
#define parenthesisAndQuote "(\""
#define quoteAndParenthesis "\")"
//delimiter defines
#d... |
// gfsp - Gabor Filter Sig Pyramid
// gabor filters 0 45 90 135 over pyramid
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
using namespace cv;
using namespace std;
/// Global variables
Mat src, dst, tmp, tmp1, tmp2;
Mat ch[3];... |
//! @file Frame.hpp
#pragma once
#include "../main.hpp"
#include "Font.hpp"
#include "Widget.hpp"
#include <memory>
class Field;
class Button;
class Field;
class Slider;
//! A container for a gui (ie, a window)
//! When a frame's size is smaller than its actual size, sliders will automatically be placed in the fra... |
// #include "decl.hpp"
#include "codegen.hpp"
#include "node.hpp"
#include <llvm/IR/Value.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Type.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/GlobalValue.h>
#include <llvm/ExecutionEngine/GenericValue.h>
#include <llvm/IR/LegacyPassManager.h>
#include <llvm/Executio... |
/*******************************************************************************
+
+ LEDA 6.3
+
+
+ integer_test.c
+
+
+ Copyright (c) 1995-2010
+ by Algorithmic Solutions Software GmbH
+ All rights reserved.
+
*******************************************************************************/
#include <LEDA/nu... |
#include <ctime>
#include <iostream>
#include <ros/ros.h>
#include <boost/foreach.hpp>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <cmath>
#include <ctime>
#include <pcl/common/common.h>
#include <pcl/console/print.h>
#include <pcl/search/search.h>
#include <pcl/search/kdtree.h... |
/**
* @author <NAME>
* @file mix_phrasetables.cc
* @brief Produce an interpolated combination of any kind of (text)
* phrasetable, using given weights.
*
* COMMENTS:
*
* Technologies langagieres interactives / Interactive Language Technologies
* Inst. de technologie de l'information / Institute for Informat... |
// Copyright (c) 2017 Graphcore Ltd. All rights reserved.
#include <popsolver/Model.hpp>
#include "Constraint.hpp"
#include "Scheduler.hpp"
#include <poplibs_support/logging.hpp>
#include <boost/optional.hpp>
#include <algorithm>
#include <cassert>
#include <limits>
#include <ostream>
using namespace popsolver;
s... |
#include <mpi.h>
#include <array>
#include <complex>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <vector>
#include "CLI/CLI.hpp"
#include "memory/allocator_collection.hpp"
#include "memory/buffer.hpp"
#include "memory/pool_allocator.hpp"
#include "mpi_util/m... |
#include"PointTests.hpp"
// Sphere
// Checks if point is inside the sphere
bool CheckPoint(glm::vec3 point, Sphere& sphere) {
// Square magnitude of the line between the sphere center and the point
float magSq = glm::dot(point - sphere.position, point - sphere.position);
// Square radius of the sphere
float radSq ... |
#include <Neural.h>
#include <imgui.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
class ExampleLayer : public Neural::Layer
{
public:
ExampleLayer()
: Layer("Example"), m_Camera(-1.6f, 1.6f, -0.9f, 0.9f),
m_CameraPosition(0.0f, 0.0f, 0.0f),
m_color(0.0f, 0.3f, 0.5f), m_deltaPos(... |
//
// BaseAssetScriptingInterface.cpp
// libraries/networking/src
//
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
#include "BaseAssetScriptingInterface.h"
#include <QJsonDocum... |
//
// ReadProfile.cpp - Routine to parse a windows Profile file and setup globals
//
#include "precomp.hxx"
#include "global.h"
#include "winspool.h"
#include <Tchar.h>
// Pre-defined section names
#define SECTION_CONTROL "Control"
#define SECTION_FONT "Font"
#define SECTION_RENDER "Ren... |
// C++ standard headers
#include <exception>
#include <string>
// Boost headers
#include <boost/shared_ptr.hpp>
// ROS headers
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <actionlib/client/simple_action_client.h>
#include <sensor_msgs/CameraInfo.h>
#include <geometry_msgs/Po... |
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
#include "CGBL_dmesh.h"
#include "FoldMask.h"
#include "dmesh.h"
#include "InSectionOverlap.h"
#include "ImageIO.h"
#include "Inspect.h"
#include "Timer.h"
#include "Memory.h"
#include <stdlib.h>
/* --------------------------------------------------------------- */
/* Types ----------------------------------------... |
#include "main.h"
int main(int argc, char **argv) {
ReadConfiguration(argc, argv);
CallGTP();
// DoSomething();
std::cerr << "finished.\n";
return 0;
}
void ReadConfiguration(int argc, char **argv){
// Get working directory path.
char buf[1024] = {};
#ifdef _WIN32
GetModuleFileName(NULL... |
#include "../build.hpp"
#include <Btk/font/system.hpp>
#include <Btk/font/font.hpp>
#include <Btk/exception.hpp>
#include <cstring>
#include <new>
namespace Btk::Ft{
FT_Library Ft2Library = nullptr;
Font::Font(const char *filename,Uint32 idx){
GlobalCache().load_face(face,filename,idx);
}
Font:... |
#include "gbm.hpp"
#include "thread.hpp"
int _gbm_bo_write(lua_State* const state)
{
return 0;
}
int _gbm_bo_set_user_data(lua_State* const state)
{
return 0;
}
int _gbm_bo_get_user_data(lua_State* const state)
{
return 0;
}
int luaopen_gbm(lua_State* const state)
{
lua::thread env(state);
/**... |
// Copyright(c) 2021, Intel Corporation
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the ... |
// File : main.cpp
// Created : Tue Mar 16 2021 9:46:31 am CET (+0100)
// Author : <NAME>
// Description: Benchmarking suit for quantifying Laplacian kernel performance
// Copyright 2021 ETH Zurich. All Rights Reserved.
#include "Cubism/Block/FieldLab.h"
#include "Cubism/Grid/Cartesian.h"
#include "Cubis... |
/*
* 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 ... |
/*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
using namespace std;
#define ... |
//
// Bench_CIFAR_base.cpp
// GA
//
// Created by <NAME> on 16/12/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
// Contains a class Bench_CIFAR_base that derives from FitnessFunction.
// This class is meant to process the results of the NAS Benchmark
// that Arkadiy and Marco created.
//
#include "B... |
// -*- C++ -*-
//
// Package: EcalCommonData
// Module: EcalTrapezoidParameters
//
// Description: Do trigonometry to figure out all useful dimensions/angles
//
// Implementation: Compute everything in constructor, put in member data
//
// Author: <NAME>
// Created: Wed Aug 12 09:24:56 EDT 1998
//
#i... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include <cstring>
#include <cmath>
//#include <iostream>
#include "lunar.h"
#include "lunar_ssq.h"
#include "../eph/eph0.h"
#include "../tool.h"
void init_ob()
{
oba::init();
obb::init();
ssq::init();
}
/*返回公历某一个月的'公农回'三合历*/
OB_LUN yueLiCalc(int By, int Bm)
{
int i, j, k, D, Bd0, Bdn, xn;
//日历物件初始化
Date JD = {... |
/* Copyright 2021 iwatake2222
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 writing, software
dis... |
/*
Copyright (C) 2018 <NAME>. - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
* You should have received a copy of the MIT license with
* this file. If not visit https://opensource.org/licenses/MIT
*/
#include "evolvent.hpp"
#include <cassert>
#include <cma... |
/*
* ImagePatch.cpp
* OpenCV
*
* Created by <NAME> on 7/11/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "ImagePatch.h"
#include "FeatureRegressor.h"
#include "BoxFeature.h"
#include <iostream>
#include <math.h>
#include <fstream>
#include <opencv2/imgproc/imgproc.hpp>
using na... |
/*****************************************************************************
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... |
#include "EditorLayer.h"
#include <ImGui/imgui.h>
#include <glm\glm\gtc\type_ptr.hpp>
static int sprites = 0;
EditorLayer::EditorLayer()
: Layer("EditorLayer"), m_CameraController(1920.0f / 1080.0f), gameRunning(false)
{
}
void EditorLayer::OnAttach()
{
m_Textures["map"] = Paperworks::Texture2D::Create("assets/te... |
#include "Arduino.h"
#include "LoraNode.h"
#include "QList.h"
//Todo: Jeder Node kann immer nur einem Gateway zugeordnet sein.
//Bisher ist diese Zuordnung per #define fest im Code verankert.
//Spaeter koennte diese Zuordnung per Eeprom-Konfiguration festgelegt werden.
#define DEVICE_LORA_GATEWAY (DEVICE_C... |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 <NAME>. All rights reserved. *... |
#include "halfgates_prp_client.h"
#include "../aes_processors/aesni_halfgate_processors.h"
#include "../aes_processors/vaes_halfgate_processors.h"
#include "../cpu_features/include/cpuinfo_x86.h"
#include <emmintrin.h>
static const cpu_features::X86Features CPU_FEATURES = cpu_features::GetX86Info().features;
bool Ha... |
// ParallaxScene.cpp
// GLM Includes
#include <glm/gtc/matrix_transform.hpp>
// STL Includes
#include <iostream>
// Project Includes
#include "Geometry.hpp"
#include "Globals.hpp"
#include "ParallaxScene.hpp"
ParallaxScene::ParallaxScene() :
m_LightPosition(2.0f, 1.0f, -2.0f)
{
}
bool ParallaxScene::Initialize()
{... |
/***************************************************************************
qgscredentialdialog.cpp - description
-------------------
begin : February 2010
copyright : (C) 2010 by <NAME>
email : jef at norbit ... |
# include "so_model.h"
SoModel::SoModel()
{
_numpoints = 0;
_phong = false;
}
void SoModel::init ()
{
// Load programs:
_vshgou.load_and_compile ( GL_VERTEX_SHADER, "../vsh_smtl_gouraud.glsl" );
_fshgou.load_and_compile ( GL_FRAGMENT_SHADER, "../fsh_gouraud.glsl" );
_proggouraud.init_and_link ( ... |
/*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
using namespace std;
void Pa... |
/*
Copyright (c) 2014 Aerys
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,
sublicens... |
/************************** TRICK HEADER ***********************************************************
@copyright Copyright 2019 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
PURPOSE:
(Class for the GUNNS Pump Cavita... |
/*
* UserInterface.cpp
*
* Created on: 25 Kas 2017
* Author: sefa
*/
#include "UserInterface.h"
#include <iostream>
#include "Board.h"
#include "Cell.h"
#include <string>
#include <cstdlib>
#include <fstream>
#include <sstream>
using namespace std;
UserInterface::UserInterface() {
// TODO Auto-generated ... |
/*
Authorization Server code for CMPT 276, Spring 2016.
As defined in ServerUrls.h, the URI for this server is
http://localhost:34570.
*/
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
#include <cpprest/http_listener.h>
#include <cpprest/json.h>
#include <was/common.h>
#include... |
#include <git2.h>
#include <cstdint>
#include <iostream>
#include <cassert>
#include <vector>
#include <array>
#include <string>
#include <stdexcept>
#include <functional>
#include <chrono>
#include "wrappers.hpp"
inline std::string make_oid_str(const git_oid& oid) {
std::string target;
target.resize(41);
... |
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This utility program exists to process the False Start blacklist file into
// a static hash table so that it can be efficiently queried by Chrome.
... |
#include "tph/foo/foo.h"
#include <algorithm>
#include <cstring>
#include <functional>
#include <future>
#include <iostream>
#include <mutex>
#include <thread>
#include <fftw3.h>
static std::mutex fftw_mtx;
static std::mutex io_mtx;
static int FftwInitThreads() {
#if 1
static std::once_flag flag;
static int res... |
#include "chap2.h"
Eigen::Vector3f PHOTOMETRIC_STEREO::getLightDirecFromSphere(const cv::Mat &Image, const cv::Rect &boundingbox) const {
const float radius = boundingbox.width / 2.0f;
cv::Mat Binary;
threshold(Image, Binary, THRESH, 255, CV_THRESH_BINARY);
cv::Mat SubImage(Binary, boundingbox);
... |
// Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#define BOOST_TEST_MODULE Region0Test
#include <boost/test/unit_test.hpp>
#include <vector>
#include <popart/region.hpp>
using namespace popart;
BOOST_AUTO_TEST_CASE(Region_Scale0) {
view::Region r0({0, 0}, {3, 3});
view::Region r1({3, 3}, {6, 6});
BOOS... |
/* [Tab/Indent: 8/8][Line/Box: 80/74] (CustomStatusBar.cpp) *
********************************************************************************
Contents Description: Implementation of the CustomStatusBar class for a
sample program demonstrating an expanded use of the status bar within
th... |
#include "FloorRow.h"
#include "Utils.h"
#include "Coin.h"
#include "Stalker.h"
#include "Player.h"
using namespace glm;
inline bool applyConstraints(uint meshIndex, uint numAdjacents, vector<uint>& adjacentRow, uint position) {
if (position + numAdjacents < adjacentRow.size() && adjacentRow[position + numAdjacents -... |
#include "falconn/lsh_nn_table.h"
#include <Eigen/Dense>
#include <chrono>
#include <cstdint>
#include <iostream>
#include <memory>
#include <random>
#include <stdexcept>
#include <thread>
using std::cerr;
using std::cout;
using std::endl;
using std::exception;
using std::fixed;
using std::mt19937_64;
using std::nor... |
#include "gamepch.h"
#include "TradeGoods.h"
#include "Planet.h"
#include "Faction.h"
#include "Random.h"
#include "Star.h"
#include "Util.h"
void TradeGoods::addSupply(const std::string& item, float num) {
m_items[item].supply += num;
}
float TradeGoods::removeSupply(const std::string& item, float num, bool noDeman... |
#include "mexwrap.h"
#include "mex2main.h"
using namespace std;
// First define mexErrMsgTxt
// In this setup, just terminate the application in case mexErrMsgTxt is invoked
// (in Matlab, of course, only the current command is stopped)
void mexErrMsgTxt(const char* text)
{
fprintf(stderr, "An error ocurred : ");
f... |
/* ----------------------------------------------------------------------------
ex7.C
mbwall 19jan95
Copyright 1995-1996 Massachusetts Institute of Technology
DESCRIPTION:
This example functions the same way as example 3, but this example shows
how to use some of the other member functions in the GA library... |
#include "ISFVideoSource.h"
#include <QFile>
#include "AudioController.h"
#include "ISFController.h"
using namespace VVGL;
using namespace VVISF;
ISFVideoSource::ISFVideoSource(QObject *parent) {
Q_UNUSED(parent);
//scene = nullptr;
ISFController *isfc = GetISFController();
QThread *renderThread = isf... |
/*
* Copyright 2016 <NAME>, The University of Edinburgh
*
* 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 appl... |
/*
* LedControl.cpp - A library for controling Leds with a MAX7219/MAX7221
* Copyright (c) 2007 <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
* re... |
#include <iostream>
#include <vector>
#include <bitset>
#include <random>
#include "utils.h"
#include "SC.h"
//using Eigen::MatrixXd;
std::vector< std::vector<double> > SC_true_abs_err;
std::vector< std::vector<double> > SC_LFSR_abs_err;
std::vector< std::vector<double> > SC_LD_abs_err;
std::vector<double> SC_true_... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 NorthScale, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
#include "wx/wxprec.h"
#include "wx/string.h"
#include "wx/font.h"
#include <wx/fontutil.h>
#include "wx/dc.h"
#include <wx/dcbuffer.h>
#include <wx/dcmemory.h>
#include <wx/dcscreen.h>
#include <wx/gdicmn.h>
#include <wx/settings.h>
#include <wx/stattext.h>
#ifdef __WXMSW__
#include "wx/msw/private.h"
#... |
#include <iostream>
#include "QuakeToGenesis.h"
#include "../utils/StringTokenizer.h"
GenesisMap QuakeToGenesis::convert(QuakeMap qMap) {
GenesisEntity gEnt;
GenesisBrush gBrush;
GenesisFace gFace;
QuakeBrush qBrush;
GenesisMap gMap;
for (const auto& ent : qMap) {
entToGenesis(ent, gEnt);
if (gEnt.getNum... |
//===---- ELF_x86_64.cpp -JIT linker implementation for ELF/x86-64 ----===//
//
// 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
//
//===-------------------------------... |
/*
* {_ {__ {__{_______ {__ {__
* {_ __ {_ {__ {___{__ {__ {__ {__
* {_ {__ {__ {__ { {__{__ {__ {__ {__ {__
* {__ {__ {__ {__ {__{_ {__ {_ {__ {__
* {______ {__ {__ {_ {__{__ {__ {_____ {__... |
/*
$Id: minmeanmax.cc,v 1.9 2010/08/27 00:05:07 mp Exp $
AutoDock
Copyright (C) 2009 The Scripps Research Institute. All rights reserved.
AutoDock is a Trade Mark of The Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Publ... |
#define ARMA_64BIT_WORD 1
#include <RcppArmadillo.h>
#include "mvp_omp.h"
#include <iostream>
#include <bigmemory/BigMatrix.h>
#include <bigmemory/MatrixAccessor.hpp>
#include <R_ext/Print.h>
#include <progress.hpp>
#include "progress_bar.hpp"
// [[Rcpp::plugins(cpp11)]]
// [[Rcpp::depends(bigmemory, BH)]]
// [[Rcpp::... |
#include <tbb\tbb.h>
#include <iostream>
#include <atomic>
#include "Log.h"
#include "Ray.h"
#include "Scene.h"
#include "AABVH.h"
#include "Mesh.h"
#include "Camera.h"
#include "Material.h"
#include "Renderer.h"
namespace
{
struct WorkerData
{
const Scene *m_scene;
const Camera *m_camera;
Color *m... |
#include "fglMesh.h"
#include "fglModel.h"
#include "fglScene.h"
void fglMesh::call(fglEvent& poEvent)
{
if (poEvent.name == fglEVENT_transformByBones) { transformByBones(); return; }
fglVisual::call(poEvent);
}
fglMesh::fglMesh(void)
{
_nFaces = 0;
_nIndsPerFace = 0;
_nFaceMode = 0;
renderImp... |
////////////////////////////////////////////////////////////////////////////
// Created : 29.01.2008
// Author : <NAME>
// Description : world class
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "physics_world.h"
#include "shell.h"
#include "element.h... |
#include "globals.h"
#include "vehiclestructure.h"
#include "vehiclemake.h"
// custom data structure - used to help create wheels
#include "NxWheelDesc.h"
/*
PHY CREATE VEHICLE%L%?dbPhyCreateVehicle@@YAXH@Z%
PHY ADD VEHICLE BODY%LFFFFFF%?dbPhyAddVehicleBody@@YAXHMMMMMM@Z%
PHY ADD VEHICLE WHEEL%LLFFFFFLL%?dbPhyAd... |
//This cpp file has function for scaling the control mesh and thus the model mesh accordingly
//the mean value coordinates
#include "meshDeform.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define INF_D (std::numeric_limits<float>::infinity())
//This funtion takes the mesh and returns t... |
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#include <iostream>
#include <thread>
#include "Client.h"
#include "Gizmos.h"
#include "Input.h"
#include "Renderer2D.h"
#include "Font.h"
#include "Texture.h"
enum GameMessages {
ID_SERVER_TEXT_MESSAGE = ID_USER_PACKET_ENUM + 1,
ID_USER_TEXT_MESSAGE, ID_SET_NAME_MESSA... |
#include "bme280.hpp"
bme280::bme280(hwlib::i2c_bus& i2c_bus, uint8_t address) :
i2c_bus(i2c_bus),
address(address)
{
control_measurement_data = static_cast<uint8_t>(OVERSAMPLING::OVER_04) | static_cast<uint8_t>(MODE::NORMAL);
}
void bme280::configure() {
device_id = read_dev_id_reg();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.