text stringlengths 5.71k 33.7k |
|---|
/*
* Copyright (C) 2011-2017 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
//
// Program to generate Modular Polynomials, as required for fast
// implementations of the Schoof-Elkies-Atkins algorithm
// for counting points on an elliptic curve Y^2=X^3 + A.X + B mod p
//
// Implemented entirely from the description provided in:
// 1. "Distributed Computation of the number of points on an ellip... |
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 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
//
... |
/*
* Copyright 2015 Georgia Institute of Technology
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
///
/// Copyright (C) 2015-2019, Cyberhaven
///
/// 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, me... |
// ==============================================================
// ORBITER VISUALISATION PROJECT (OVP)
// Copyright (C) 2006-2016 <NAME>
// Dual licensed under GPL v3 and LGPL v3
// ==============================================================
// ==============================================================
... |
#include <iostream>
#include <fstream>
#include <random>
#include "opencv2/opencv.hpp"
#include "posemapper.h"
#include "lbs.h"
using namespace cv;
struct smpl_model
{
Mat model;
// Mat J_regressor_prior;
Mat pose;
Mat hands_components;
Mat f;
Mat J_regressor;
Mat betas;
Mat kintree_tab... |
/*
* Copyright (c) 2018-2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <AK/Atomic.h>
TEST_CASE(construct_empty)
{
EXPECT(Atomic<bool>().load() == false);
EXPECT(Atomic<u32>().load() == 0);
EXPECT(Atomic<u16>().load() == 0);
EXPECT(Atomic... |
#include "Isis.h"
#include <cmath>
#include <QtGlobal>
#include <QList>
#include <vector>
#include <SpiceUsr.h>
#include "BundleAdjust.h"
#include "BundleResults.h"
#include "BundleSettings.h"
#include "BundleSolutionInfo.h"
#include "Camera.h"
#include "CameraFactory.h"
#include "ControlMeasure.h"
#include "Control... |
/*
* See header file for a description of this class.
*
* \author <NAME> INFN Padova
*
*/
//-----------------------
// This Class' Header --
//-----------------------
#include "HeavyFlavorAnalysis/RecoDecay/interface/BPHKinematicFit.h"
//-------------------------------
// Collaborating Class Headers --
//-----... |
/*
-- MAGMA (version 1.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@author <NAME>
*/
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <complex>
// includes, project
#... |
#include "sort.hpp"
#include "storage/segment_iterate.hpp"
#include "utils/timer.hpp"
namespace {
using namespace opossum; // NOLINT
// Given an unsorted_table and a pos_list that defines the output order, this materializes all columns in the table,
// creating chunks of output_chunk_size rows at maximum.
std::sha... |
//(c) 2016 by Authors
//This file is a part of ABruijn program.
//Released under the BSD license (see LICENSE file)
#include "multiplicity_inferer.h"
#include "graph_processing.h"
#include "../common/disjoint_set.h"
#include "../common/utils.h"
#include <cmath>
//Estimates the mean coverage and assingns edges multip... |
//-*****************************************************************************
//
// Copyright (c) 2009-2012,
// <NAME> Imageworks, Inc. and
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or wit... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during init)
use_laser_ = true;
// if this... |
/** @file
@brief Example program that uses the OSVR direct-to-display interface
and OpenGL to render a scene with low latency.
@date 2015
@author
<NAME> <<EMAIL>>
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "Lic... |
#include <iostream>
#include <vector>
#include <thread>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/search/search.h>
#include <pcl/search/kdtree.h>
#include <pcl/features/normal_3d.h>
#include <pcl/visualization/cloud_viewer.h>
#include <pcl/filters/passthrough.h>
#include <pcl/segmentation/re... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include <torch/extension.h>
#include <ATen/cuda/CUDAContext.h>
#include <nccl.h>
#include <vector>
#include <dlfcn.h>
#include <cuda_runtime.h>
#include <cuda_fp16.h>
#include <cuda.h>
#include <nvrtc.h>
#undef CHECK_EQ
#undef CHECK_NE
#und... |
#include "hull.hpp"
#include <algorithm>
#include <cstring>
#include <numeric>
#include <random>
#include <tuple>
// Forward Declarations
std::vector<Hull::Triangle> init_hull3D(const std::vector<vec3>& pts);
void add_coplanar(
const std::vector<vec3>& pts, std::vector<Hull::Triangle>& hull,
const int& pointID... |
/*
** EPITECH PROJECT, 2020
** B-YEP-400-MAR-4-1-indiestudio-iliam.amara
** File description:
** Game.cpp
*/
#include "Game.hpp"
#include "Engine/GraphicMgr.hpp"
#include "Engine/Entity.hpp"
#include "Save.hpp"
#include "localTools/Sound.hpp"
#include "localTools/Music.hpp"
#include "localTools/ScoreBoard.hpp"
#include... |
#include "catalog/catalog_entry/table_catalog_entry.hpp"
#include "common/exception.hpp"
#include "common/helper.hpp"
#include "common/vector_operations/vector_operations.hpp"
#include "storage/data_table.hpp"
#include "transaction/transaction.hpp"
#include "transaction/version_info.hpp"
#include "storage/table/transie... |
#include "mordor/pch.h"
#ifdef HAVE_CONFIG_H
#include "autoconfig.h"
#endif
#include "mordor/exception.h"
#include "mordor/streams/deflate.h"
#include "mordor/streams/gzip.h"
#include "mordor/streams/lzma2.h"
#include "mordor/streams/memory.h"
#include "mordor/streams/singleplex.h"
#include "mordor/streams/zlib.h"
#... |
#include "cplot.h"
#include <QVector>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <qwt_plot.h>
#include <qwt_plot_curve.h>
#include <qwt_plot_marker.h>
#include <qwt_plot_grid.h>
#include <qwt_plot_layout.h>
#include <qwt_plot_canvas.h>
#include <qwt_plot_picker.h>
#include <qwt_plot.h>
#incl... |
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "main.h"
#include "stars.h"
#include "util.h"
static int blend = 1;
static int light0_on = 1;
static int light1_on = 1;
static int lookat0 = 0;
static int frame_count = 0; /* frames drawn */
... |
/******************************************************************************\
| OpenGL 4 Example Code. |
| Accompanies written series "Anton's OpenGL 4 Tutorials" |
| Email: <EMAIL> at antongerdelan dot net ... |
/*
* BTrie page split implementation
* Copyright (c) 2010 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include "btrie_internal.h"
#include "btrie_readstate.h"
#include "btrie_utils.h"
#define TMP_BLOCK_SIZE PAGE_SIZE... |
/**********
* Copyright (c) 2017-2019, Xilinx, Inc.
* 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 lis... |
#include "poll.h"
#include <cassert>
#include <cmath>
#include <cstring>
#include <iostream>
#include <limits>
#include <stdexcept>
#include <vector>
#include <gflags/gflags.h>
#include <lcm/lcm-cpp.hpp>
#include "friClientApplication.h"
#include "friLBRClient.h"
#include "friUdpConnection.h"
#include "drake/lcmt... |
/*****************************************************************************
* McPAT
* SOFTWARE LICENSE AGREEMENT
* Copyright 2012 Hewlett-Packard Development Company, L.P.
* All Rights Reserved
*
* Redistribution and use in... |
//=========== (C) Copyright 1999 Valve, L.L.C. All rights reserved. ===========
//
// The copyright to the contents herein is the property of Valve, L.L.C.
// The contents may be used and/or copied only with the written permission of
// Valve, L.L.C., or in accordance with the terms and conditions stipulated in
// the ... |
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wint-in-bool-context"
#pragma GCC diagnostic ignored "-Wuninitialized"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#include <vector>
#include <ap_fixed.h>
#include <gtest/gtest.h>
#include "graphlily/global.h"
#define DISP_EXE_CMD(cmd)\
std::cou... |
#include <pthread.h>
#include <linux/videodev2.h>
#include <iostream>
#include <string>
#include <opencv2/opencv.hpp>
#include "V4L2VideoCapture.h"
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
using namespace cv;
using namespace std;
#define CLEAR(x) memset(&(x), 0, sizeof(x))
//... |
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mytexture.h"
#include <Cg/cg.h> /* Can't include this? Is Cg Toolkit installed! */
#include <Cg/cgGL.h>
/* OpenGL texture info */
/* Texture id for the demo */
// texId... |
#include "worldengine/images/satellite_image.h"
#include "../basic.h"
#include <algorithm>
#include <list>
#include <boost/random.hpp>
template<typename T>
std::tuple<T, T, T>& operator+=(std::tuple<T, T, T>& lhs,
const std::tuple<T, T, T>& rhs)
{
std::get<0>(lhs) += std::get... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fwl/theme/cfwl_checkboxtp.h"
#include "core/fxge/cfx_pathdata.h... |
/* Copyright 2013 - 2016 <NAME> and CyberTech Labs Ltd.
*
* 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 appli... |
// File and Version Information:
// $Header: /nfs/slac/g/glast/ground/cvs/LdfConverter/src/LdfCnvSvc.cxx,v 1.4 2012/04/26 04:01:37 heather Exp $
//
// Description:
// LdfCnvSvc is the GLAST converter service.
//
// Author(s):
#define LdfCnvSvc_CXX
#include "GaudiUtils/IIODataManager.h"
#include "GaudiKernel... |
#include "simulation.h"
namespace core {
m::Vector2 WorldToScreen(m::Vector2 in);
m::Vector2 ScreenToWorld(li32 cxi, li32 cyi);
}
namespace sim
{
SimulationTD* ptr;
struct DeathPlayer {
lui32 tick;
m::Vector2 pos;
lui32 anim;
GVec4 dye;
lui32 unitdef;
void Init(m::Vector2 _pos, lf32 angle, GVec4 _dy... |
#pragma once
/// Defines utilities for a simple C++ build system. Currently only supports Windows.
///
/// The primary goals of this file is to provide a way to build multiple C++ projects
/// that may have dependencies on each other in a way that:
/// - Does not require installing a bunch of extra tools
/// (i.e... |
#include "camera.h"
/** Default (empty) camera constructor. */
camera::camera() {
// Initialize camera values.
cam_trans = translation_matrix( cam_pos );
cam_rot = quaternion_to_rotation( cam_quat );
c_view_matrix = view_matrix( cam_trans, cam_rot );
persp_matrix = perspective( g->near, g->far,
... |
#include "../include/phat/boundary_matrix.h"
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Delaunay_triangulation_3.h>
#include <CGAL/Triangulation_hierarchy_3.h>
#include <CGAL/Triangulation_vertex_base_with_info_3.h>
#include <CGAL/Triangulation_cell_base_with_info_3.h>
#include <fs... |
//
// Created by fabian on 25.05.21.
//
#include "Find_Patches.hpp"
cv::Mat stitchPicture(patch_list &patches);
std::vector<cv::Point> getTransformedPoints(int outputDPI, bool flipV, bool flipH, std::map<picture *, cv::Mat> &m, cell &c);
std::vector<cv::Point3i> generate_priority_scores(patch_list &target);
void f... |
#include<iostream>
#include<string>
#include<vector>
//#include<algorithm>
#include<filesystem> //In order to read the module directories
#include<fstream> //To open and handle files
#include<regex> //To check for punctuation
#include<cmath> //In order to work with powers
using namespace std;
namespace ... |
//Released under the MIT License - https://opensource.org/licenses/MIT
//
//Copyright (c) 2020 <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... |
#include <functional>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <typeinfo>
#include <vector>
#include "stdafx.h"
using namespace std;
namespace {
void testRef() {
// �����ı���
int i;
double d;
// ��������
int& r = i;
double& s = d;
i = 5;
cout << "Va... |
// Copyright 2019 The Souper Authors. 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 ap... |
#include "merger.h"
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <stdexcept>
#include <map>
#include <cmath>
using namespace std;
/**
* checks, if a given string ends with the given suffix
* @param str the given string to check
* @param ending the suffix t... |
#include "stats.hpp"
#include <fstream>
#include <iostream>
#include <sstream>
#include "file.hpp"
#include "oeis_sequence.hpp"
#include "parser.hpp"
#include "program_util.hpp"
#include "setup.hpp"
Stats::Stats()
: num_programs(0),
num_sequences(0),
num_ops_per_type(Operation::Types.size(), 0) {}
v... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <tpm20.h>
#include <tpm2_lib.h>
#include <errno.h>
#include <tpm2.pb.h>
#include <openssl_helpers.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
#include <open... |
/* boneCV.cpp
*
*/
#include<stdio.h>
#include<string>
#include<stdlib.h>
#include<sys/time.h>
#include<math.h>
#include<iostream>
#include<fstream>
#include<pthread.h>
#include<unistd.h>
#include<opencv2/opencv.hpp>
//#include "networktables/NetworkTable.h"
#include "../netTablesTest/nttools/NetworkTableTools.h"
us... |
/*
* Copyright (c) 2016 Carnegie Mellon University, <NAME> <<EMAIL>>
*
* For License information please see the LICENSE file in the root directory.
*
*/
#include "lidar_eskf/eskf.h"
Eigen::Matrix3d skew(Eigen::Vector3d w) {
Eigen::Matrix3d W;
W << 0.0, -w.z(), w.y(),
w.z(), 0.0, -w.x(),
... |
// Part of DTSource. Copyright 2006. <NAME>.
// see http://www.visualdatatools.com/DTSource/license.html for more information.
#include "DTTransform3D.h"
#include "DTVector3D.h"
#include "DTError.h"
#include "DTDoubleArray.h"
#include "DTFloatArray.h"
DTTransform3D::DTTransform3D()
{
T11 = 1.0; T12 = 0.0; T13 = 0... |
//
// LaborOne.cpp
// AthloiRelived
//
// Created by Aitocir on 4/3/16.
// Copyright © 2016 AitocirLabs. All rights reserved.
//
#include <time.h>
#include "LaborOne.hpp"
#include "LaborTwo.hpp"
#include "AthloiDAO.hpp"
#define L1TEXT_INTRO0 "I, Heracles, find myself consulting Pythia, the Oracle of Delphi. I am ... |
/*********************************************************\
* File: main.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... |
#include <assert.h>
#include "compute_hash.h"
#define UNASSIGNED -1
// switch between 0-3 (original hashes) and 4-7 (random permutation hashes)
#define HASH_BASE 4
int perm4[2048];
//int perm47324[2048];
int perm5172[2048];
int perm6237886[2048];
int perm7128386[2048];
void init_hashes() {
#include "iperm.c"
//#... |
/**************************************************************************
***
*** Copyright (c) 2000-2006 Regents of the University of Michigan,
*** <NAME>, <NAME>, <NAME>
*** and <NAME>
***
*** Contact author(s): <EMAIL>, <EMAIL>
*** Original Affiliation: University of Michigan, E... |
/*
An Algorithm for Automatically Fitting Digitized Curves by <NAME>
from "Graphics Gems", Academic Press, 1990
This file is derived from https://github.com/erich666/GraphicsGems/blob/master/gems/FitCurves.c
See also: http://www.graphicsgems.org
TouchVG modifications Copyright (c) 2014 <NAME>
*/
... |
// Copyright (c) 2016, The University of Texas at Austin
// 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,
// t... |
#include <ros/ros.h>
#include <ros/package.h>
#include <iostream>
// pcl ros messages and pointcloud2
#include <pcl_ros/point_cloud.h>
#include <pcl_ros/transforms.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/PCLPointCloud2.h>
// pcl core
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#in... |
//
// Cforall Version 1.0.0 Copyright (C) 2019 University of Waterloo
//
// The contents of this file are covered under the licence agreement in the
// file "LICENCE" distributed with Cforall.
//
// Pass.hpp --
//
// Author : <NAME>
// Created On : Thu May 09 15:37:05 2019
// Last Modified By :
// Last ... |
/*
* mesher_tester.cpp
* Mesh_3_applications
*
* Created by <NAME> on 02/12/09.
* Copyright 2009 INRIA. All rights reserved.
*/
//#include <debug.h>
#include <CGAL/AABB_intersections.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Mesh_triangulation_3.h>
#include <CGAL/Mesh... |
/****************************************************************************
*
* Copyright (c) 2013, 2014 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Re... |
#include "math.h"
#include <QDebug>
#include <QtGlobal>
#include "zoomHandler.h"
#include <vector>
using namespace std;
//This is used to avoid to wait that the requiered tiles are loaded at the right ZLI (which can takes times sometimes).
//Hence, instead of waiting the load at the right ZLI, the idea is to scale ... |
#include <gazebo/sensors/SensorManager.hh>
#include <gazebo/sensors/RaySensor.hh>
#include <create_node/TurtlebotSensorState.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/Twist.h>
#include <sensor_msgs/JointState.h>
#include "turtlebot_plugins/gazebo_ros_create.h"
using namespace gazebo;
enum {LEFT= 0, RI... |
// Copyright 2019 J Forristal LLC
// Copyright 2016 Addition Security Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless... |
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <Eigen/Dense>
#include "drive/config.h"
#include "drive/controller.h"
#include "drive/driver.h"
#include "drive/flushthread.h"
#include "hw/cam/cam.h"
#include "hw/car/car.h"
#include "hw/imu/imu.h"
#include "hw/input/js.h"
#inclu... |
#include "tracker_bfm.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
//#define DEBUG_ON
namespace
{
void DrawFeature(const cv::Point2f& pt, const cv::Scalar& color, cv::Mat& img)
{
cv::Point cvpt;
cvpt.x = std::round(pt.x);
cvpt.y = std::round(... |
/*******************************************************************************
*
* Copyright (c) 2010-2015 <NAME>
*
* This file is part of MASA-Core.
*
* MASA-Core 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 Softw... |
/*
Goal : Build a lock manager.
The lock manager should support the following capabilities:
1. Lock a resource in either shared or exclusive mode.
2. Unlock a resource held by a transaction.
A resource will be identified by a 10 character string.
*/
#include <iostream>
#include <unordered_map>
#include <list>
... |
#define _CRT_SECURE_NO_WARNINGS
#include <WinSock2.h>
#include <ws2tcpip.h>
#include <string>
#include <iostream>
#include <vector>
#include <thread>
#include <fstream>
#include <algorithm>
#pragma comment (lib, "Ws2_32.lib")
#define defaultIP "127.0.0.1"
#define defaultPort "3504"
#define defaultBuff... |
#include <PnC/WBC/IHWBC/IHWBC.hpp>
// Constructor
IHWBC::IHWBC(const std::vector<bool> & act_list):
num_act_joint_(0), num_passive_(0),
dim_contacts_(0),
b_weights_set_(false),
b_updatesetting_(false),
b_torque_limits_(false),
target_wrench_minimization(false) {
myUtils::pretty_construct... |
#include <math.h>
#include <float.h>
#include <fstream>
#include <string>
#include <cstring>
#include <sstream>
#include <iostream>
#include <chrono>
#include "common.h"
using namespace std::chrono;
typedef high_resolution_clock myclock;
typedef duration<float> myduration;
#define MAX_WG_SIZE 256
t... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
/**
* PS Move API - An interface for the PS Move Motion Controller
* Copyright (c) 2016, 2017 <NAME> <<EMAIL>>
* 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 ... |
//things to do or think about
/*
glutFullScreen
game time, actual time
scores for each team and the set number
past set scores
glutPostRedisplay(); //after any visual variable change or sequence of changes
clear all button
glutGet(GLUT_SCREEN_WIDTH);
for the settings window glutCreateSubWindow(frameWin,FRAME_W,FRAME_H... |
//$Id: dcofcmp4.cpp 2754 2011-01-02 20:57:07Z jsibert $
// Centred-space differences used for both advection and diffusion terms
// CHANNEL cell type implemented
#include "coff_t.h"
#include "bound.h"
#include "intersav.h"
double dfsmoother( double , double );
void bad_cell_type(const char* function, int boun... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/effects/GrTextureEffect.h"
#include "include/gpu/GrTexture.h"
#include "src/gpu/GrTexturePriv.h"
#include "src/gpu/glsl/GrGLSLFragmentProcessor.h"
#include ... |
#include <can_receive_msg/dbus.h>
#include <can_receive_msg/gameinfo.h>
#include <can_receive_msg/imu_16470.h>
#include <can_receive_msg/location_xy.h>
#include <can_receive_msg/location_zyaw.h>
#include <can_receive_msg/motor_debug.h>
#include <can_receive_msg/power_buffer.h>
#include <can_receive_msg/power_shooter_r... |
//======== (C) Copyright 2002 <NAME> All rights reserved. =========
//
// The copyright to the contents herein is the property of <NAME>.
// The contents may be used and/or copied only with the written permission of
// <NAME>, or in accordance with the terms and conditions stipulated in
// the agreement/contract u... |
//Re: Duvida sobre a diferença entre " " e <> no #INCLUDE.
//Regra geral o uso das <> indica que a biblioteca está na pasta das bibliotecas definida pelo compilador.
//Quando se usa "", a biblioteca está na pasta raíz do projecto.
//ATENÇÃO DEIXE DESABILITADO AVISO DE COMPILADOR EVITA MUITOS PROBLEMAS
//TIVE PROBLEMAS... |
#include <utility>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <iomanip>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <boost/filesystem.hpp>
// OpenARK library
#include "Core.... |
// Edmonds minimal branching algorithm with quake heap, O(e log v)
// Calculates the total length of the minimum spanning arborescence rooted at 0. Can be modified to return the edges used.
#include <cstdio>
#include <algorithm>
#include <queue>
#include <cassert>
#include <utility>
#include <chrono>
using namespace s... |
#include "ESP32-RGB64x32MatrixPanel-I2S-DMA.h"
// Credits: <NAME> <https://github.com/pixelmatix/SmartMatrix/tree/teensylc>
// and Sprite_TM: https://www.esp32.com/viewtopic.php?f=17&t=3188 and https://www.esp32.com/viewtopic.php?f=13&t=3256
void RGB64x32MatrixPanel_I2S_DMA::configureDMA(int r1_pin, int g1_pin, i... |
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 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
//
// htt... |
#include "../include/builtin_obj_data.h"
//---------------------------------------------------------------
//private
//---------------------------------------------------------------
const std::string BIOData::cubeTexPath = "res/textures/builtin/container.jpg";
const std::string BIOData::planeTexPath = "res/textures... |
#include <libgeodecomp.h>
using namespace LibGeoDecomp;
/**
* A simple Adaptive Mesh Refinement (AMR) demo with automatic grid
* adaptation. It computes a simple heat dissipation with fixed
* heating/cooling points.
*
* We're using in-cell refinement, which means that all
* finer grids (patches) are stored withi... |
// Comparison of the super-fermion approach with Landauer predictions
// Multiple fermionic sites in the central system
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <sys/time.h>
#include "mkl.h"
#include "../Utils/Utils.h"
double seconds()
{
struct timeval tmp;
double sec... |
// sdbf_class.cc
// Authors: <NAME>, <NAME>
// implementation of sdbf object
#include "sdbf_class.h"
#include "sdbf_defines.h"
#define SDBF_VERSION 3
#include <stdint.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <iomanip>
#include <boost/lexical_cast.h... |
#define OPCODE pipeline.instruction
#define RD ipu.r[RDn]
#define RT ipu.r[RTn]
#define RS ipu.r[RSn]
#define jp( id, name, ...) case id: return decoder##name(__VA_ARGS__)
#define op( id, name, ...) case id: return name(__VA_ARGS__)
#define br(id, name, ...) case id: return name(__VA_ARGS__)
#define SA (OPCOD... |
#include "client.h"
unsigned int glSeed = 0;
unsigned int seed_table[256] =
{
28985U, 27138U, 26457U, 9451U, 17764U, 10909U, 28790U, 8716U, 6361U, 4853U, 17798U, 21977U, 19643U, 20662U, 10834U, 20103,
27067U, 28634U, 18623U, 25849U, 8576U, 26234U, 23887U, 18228U, 32587U, 4836U, 3306U, 1811U, 3035U, 24559U, 18399U, ... |
#include "Display/DisplayPlugin.h"
#include <vector>
#include "Display/DisplayFactory.h"
#include "Display/DisplaySettings.h"
#include "Display/DisplayTypes.h"
#define STRHELPER(x) #x
#define TO_STRING_AUX(...) "" #__VA_ARGS__
#define TO_STRING(x) TO_STRING_AUX(x)
// главное чтобы не меньше была
#define LINE_LEN 25... |
#include <string.h>
#include "AFSK.h"
#include "Arduino.h"
extern unsigned long custom_preamble;
extern unsigned long custom_tail;
extern int LibAPRS_vref;
extern bool LibAPRS_open_squelch;
bool hw_afsk_dac_isr = false;
bool hw_5v_ref = false;
Afsk *AFSK_modem;
// Forward declerations
int afsk_getchar(void);
void a... |
/*******************************************************************************
* Copyright 2020 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.... |
// Copyright (C) 2020 <NAME>, CRISP, Queen Mary University of London
// This code is licensed under the BSD 3-Clause license (see LICENSE for details)
/* The program to run grasping experiments.
* Takes user inputs for the experiment parameters.
*
* It uses blocking service calls to other robot specific nodes
* t... |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/string_util.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/comm... |
#include "Environment.hpp"
#include "Entity.hpp"
#include "Ball.hpp"
#include "Field.hpp"
#include "Robot.hpp"
#include <Constants.hpp>
#include <Network.hpp>
#include <Geometry2d/Util.hpp>
#include <protobuf/messages_robocup_ssl_detection.pb.h>
#include <protobuf/messages_robocup_ssl_geometry.pb.h>
#include <protobuf... |
#include "bspcompiler.h"
typedef IDirect3DDevice9* ( *GFX_GetDirect3DDevicePFN ) ( void );
GFX_GetDirect3DDevicePFN g_GFX_GetDirect3DDevice;
void Constructor ( HINSTANCE hSetup )
{
/*
if ( !hSetup )
{
hSetup = LoadLibrary ( "DBProSetupDebug.dll" );
}
// setup function pointers
g_GFX_GetDirect3DDevice = ( G... |
/*
Mosh: the mobile shell
Copyright 2012 <NAME>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Th... |
#include <stdlib.h>
#include <bits/stdc++.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/ip.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <pthread.h>
#include <csig... |
/* ---------------------------------------------------------------------
*
* Copyright (C) 2013 - 2017 by the deal.II authors
*
* This file is part of the deal.II library.
*
* The deal.II library is free software; you can use it, redistribute
* it, and/or modify it under the terms of the GNU Lesser General
* Pu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.