text stringlengths 5.71k 33.7k |
|---|
#include <vector>
#include <string>
#include <cstdlib>
#include <yaml-cpp/yaml.h>
#include "../../include/DisplayFuncs.hpp"
#include "../../include/FSFuncs.hpp"
#include "../../include/Environment.hpp"
#include "../../include/Vars.hpp"
#include "../../include/Core.hpp"
#include "../../include/Project/Licenses.hpp"
... |
#include <iostream>
#include <cstdio>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <string>
#include <unistd.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <regex>
#define _WIRELESS_DEVICE_INFO_H_
#define WLD_DEVICE_LIST_MAX (10)
#define WLD_DEVICE_ID_LEN (18... |
#include <Kinematics/SingleHullKinematics.h>
using namespace cv;
using namespace RSN;
//#define __DEBUG
SingleHullKinematics::SingleHullKinematics(){
cc.Kprop=0.0;
}
SingleHullKinematics::SingleHullKinematics(SingleHullConstants cc){
this->cc=cc;
}
SingleHullKinematics::~SingleHullKinematics(){
}
void SingleHullK... |
/**********************************************
* @file XbeeNode.cpp
* @author <NAME> <<EMAIL>>
* @date May 17, 2013
* @copyright 2012 Georgia Institute of Technology
* @brief
*
* @details This file contains the XbeeNode class implementation
***********************************************/
#include "XbeeNode.h... |
/*-
* Copyright (c) 2008 <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 source code must retain the above copyright
* notice, this list of co... |
#include "map_publisher.h"
#include <sstream>
#define trb_Unknown_Cell -1
#define trb_Occupied_Cell 1
#define trb_Free_Cell 0
#define MAP_IDX(sx, i, j) ((sx) * (j) + (i))// compute linear index for given map coords
//#define trb_map_width_metre 50 // map width [metre]
//#define trb_map_height_metre 50 // ma... |
#include <ntt.hpp>
ff_p254_t get_root_of_unity(uint64_t n) {
uint64_t pow_ = 1ul << (28 - n);
ff_p254_t pow(pow_);
return static_cast<ff_p254_t>(
cbn::mod_exp(TWO_ADIC_ROOT_OF_UNITY.data, pow.data, mod_p254_bn));
}
sycl::event matrix_transposed_initialise(
sycl::queue &q, ff_p254_t *vec_src, ff_p254_... |
#include "Fuji_Internal.h"
#include "MFHeap_Internal.h"
#include "MFSystem.h"
#include "MFSockets.h"
#include "MFFileSystem_Internal.h"
#include "FileSystem/MFFileSystemHTTP_Internal.h"
#include "MFPtrList.h"
#include <stdio.h>
struct MFFileSystemHTTPState : public MFFileSystemGlobalState
{
MFPtrListDL<M... |
/*!
* Copyright (c) 2017-2020 by Contributors
* \file xgboost.cc
* \brief Frontend for xgboost model
* \author <NAME>
*/
#include <dmlc/data.h>
#include <dmlc/memory_io.h>
#include <treelite/frontend.h>
#include <treelite/tree.h>
#include <algorithm>
#include <memory>
#include <queue>
#include <cstring>
namespac... |
//===--- HIPAMD.cpp - HIP Tool and ToolChain Implementations ----*- C++ -*-===//
//
// 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
//
//===---------------------------... |
//this program tests the collision of 5 cubes floating in space
//the 'r' key resets the cubes
//the 'q' or 'esc' quits the program
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <GL/gl.h>
#include <GL/glut.h>
#ifdef FREEGLUT
#include <GL/freeglut_ext.h>
#endif
#include "cube.h"
#include "mymath.h"
#i... |
//=============================================================================================================
/**
* @file tmsidriver.cpp
* @author <NAME> <<EMAIL>>;
* <NAME> <<EMAIL>>;
* <NAME> <<EMAIL>>
* @version 1.0
* @date September, 2013
*
* @section LICENSE
*
* Copyrig... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkBiQuadraticQuad.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed W... |
/* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2006 CaH4e3
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Licen... |
/*
* https://stackoverflow.com/questions/57336940/how-to-glutdisplayfunc-glutmainloop-in-glfw
*/
// Includes --------------------
#ifdef IMGUI_IMPL_OPENGL_LOADER_GLEW
#include "GL/glew.h"
#elif IMGUI_IMPL_OPENGL_LOADER_GLAD
#include "glad/glad.h"
#endif
#include "GLFW/glfw3.h"
#define STB_IMAGE_IMPLEMENTATION
#inc... |
/*************************************************************************/
/* key_mapping_windows.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <iostream>
#include <algorithm>
#include <cmath>
#include <cassert>
#include <cfloat>
#include <RTree.h>
int RTree::numDims;
// NODE STRUCTURE
RTree::Node::Node(std::vector<float> *coords, std::vector<float> *dimensions, bool leaf) {
this->coords = *coords;
this->dimensions = *dimensions;
this->leaf = ... |
// Copyright (c) 2012, Google 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... |
//
// Created by <NAME> on 2021-01-15.
//
// Watch the incoming video
// ffplay -f rawvideo -pixel_format nv12 -s 1280x720 source.yuv
//Watch the output
//ffplay output.h264
//Reproducing the out of GOP backward referencing pictures add MFX_GOP_STRICT to the GopOptFlag
// Without MFX_GOP_STRICT the output.h264 prod... |
#include "crystal.h"
#include "constants.h"
#include "exceptions.h"
#include "spglib.h"
#include "utilities.h"
#include "eigen.h"
#include "mpi/mpiHelper.h"
#include <iomanip>
double calcVolume(const Eigen::Matrix3d &directUnitCell) {
Eigen::Vector3d a1 = directUnitCell.row(0);
Eigen::Vector3d a2 = directUnitCell.... |
/*-------------FDTDTEz.cpp----------------------------------------------------//
*
* Finite Difference Time Domain -- with TEz polarization
*
* Purpose: To replicate the results of our invisible lense raytracer with
* FDTD. Woo!
*
* Notes: Most of this is coming from the following link:
* ... |
#include "cbase.h"
#include "holo_ship_comm.h"
#include "holo_utilities.h"
#include "gstring/c_gstring_util.h"
#include "vgui_controls/Label.h"
#include "vgui/ILocalize.h"
#include "materialsystem/imaterialvar.h"
#include "c_user_message_register.h"
#include "filesystem.h"
using namespace vgui;
DECLARE_HOLO_MESSAGE... |
/***************************************************************************
# Copyright (c) 2020, NVIDIA 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... |
//
// UDTTest.cpp
// tools/udt-test/src
//
// Created by <NAME> on 2015-07-30.
// Copyright 2015 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 "UDTTest.h"
#include <QtCore/QDebug>
... |
/*
dynamic-deformation-state.cc -- implement Dynamic_deformation_state
(c) 2001 <NAME> <<EMAIL>>
*/
#include <algorithm>
#include <sys/time.h>
#include <sys/time.h>
#include <math.h>
#include <string.h>
#include <stdio.h>
#include "setting.hh"
#include "big-vector.hh"
#include "dynamic-deformation-state.hh"
... |
/*
* Copyright 2019 Centreon (https://www.centreon.com/)
*
* 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 applica... |
/**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... |
/*
Q Light Controller Plus
webaccessnetwork.cpp
Copyright (c) <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.txt
Unless requ... |
/*-----------------------------------------------------------
* 2c - Cross Platform 3D Application Framework
*-----------------------------------------------------------
* Copyright © 2010 – 2011 France Telecom
* This software is distributed under the Apache 2.0 license.
* http://www.apache.org/licenses/LICENSE-2.... |
#include <TMB.hpp>
/***************************************************/
/* Function to inverse logit transform for vectors */
/***************************************************/
template <class vector>
vector invlogit_vec(vector x){
vector y = 1.0 / (1.0 + exp(-x));
return y;
}
/*********************************... |
#include "my_sensors.h"
#include "SPI.h"
/*--------------------------------------------------------------------------------*/
// Encoder push-button code
/*--------------------------------------------------------------------------------*/
// Some useful notes on interrupts: https://gammon.com.au/interrupts
EncoderPus... |
#include "Utils.h"
#include <bitset>
#include "Mat3d.h"
Mat ConvertToGrayscale(Mat sourceImg) {
Mat grayImg;
cv::cvtColor(sourceImg, grayImg, CV_BGR2GRAY);
return grayImg;
}
Mat ExtractMSERRegions(Mat sourceImg) {
// See: http://docs.opencv.org/2.4/modules/features2d/doc/feature_detection_and_description.html
... |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
//
// structured - Tools for the Generation and Visualization of Large-scale
// Three-dimensional Reconstructions from Image Data. This software includes
// source code from other projects, which is subject to different licensing,
// see COPYING for details. If this project is used for research see COPYING
// for makin... |
/*
* evospikegen.cu
*
* Created by <NAME> and <NAME>.
* University of Edinburgh 2017
* Released under MIT license, see https://opensource.org/licenses/MIT
*
*/
// CPU version of CUDA spike model code, used to run GA with network model
//
// Currently not fully working
#include "vmnevofit.h"
EvoFitVMN_CPU::... |
// * Copyright (C) 2017 by <NAME>
#include "CSwapchain.h"
/*
//---- Command Buffer (vkCmd*) ----
void CCmd::BindPipeline(VkPipeline graphicsPipeline) { vkCmdBindPipeline(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, graphicsPipeline); }
void CCmd::Draw(uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVer... |
//===--- PropertyUnification.cpp - Rules added w/ building property map ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.... |
#include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <stack>
#include <tuple>
#include <utility>
#include <vector>
template <std::uint_fast64_t Modulus = 1'000'000'007>
class ModInt {
using u64 = std::uint_fast64_t;
public:
using type = ModInt;
u64 a;
constexpr ModInt(const... |
#include "geometrycentral/surface/manifold_surface_mesh.h"
#include "geometrycentral/surface/meshio.h"
#include "geometrycentral/surface/vertex_position_geometry.h"
#include "simplicial-complex-operators.h"
#include "gtest/gtest.h"
using namespace geometrycentral;
using namespace geometrycentral::surface;
namespace ... |
// [[Rcpp::interfaces(r, cpp)]]
// [[Rcpp::depends("RcppArmadillo")]]
#include <RcppArmadillo.h>
#include "util_IMABC.h"
#include "sim_one_node.h"
using namespace Rcpp;
class IMABC_one_node {
public:
IMABC_one_node(size_t size_theta,
std::vector<double> target,
std::vector<double> target_sd,
... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
#include "simple_tracker.h"
using namespace std;
using namespace cv;
Simple_Tracker::Simple_Tracker(System_State *state){
this->state=state;
this->setObjectName("Simple Tracker");
}
void Simple_Tracker::track(){
//check if input dir exists
QDir dir(state->io.seq_dir);
if(!dir.exists()){
E... |
/*
* tempo.c : F0 Extraction
* V30k18 (matlab)
*
* coded by <NAME> 2001/2/6
*
* <NAME> (<EMAIL>)
* From Mar. 2001 to Sep. 2003
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "defs.h"
#include "basic.h"
#include "vector.h"
#include "voperate.h"
#include "filter... |
//
// Implementation for Yocto/Extension.
//
//
// LICENSE:
//
// Copyright (c) 2020 -- 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 witho... |
//
// VoxelTree.cpp
// libraries/voxels/src
//
// Created by <NAME> on 3/13/13.
// Copyright 2013 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 <algorithm>
#include <QDebug>
#includ... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2022 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
#include "wm.hpp"
#include "server.hpp"
#include <unordered_map>
#include <spdlog/spdlog.h>
#include "../window.hpp"
#include "protocols/wl/surface.hpp"
#include "renderers/manager.hpp"
#include "backends/manager.hpp"
#include "wm/output.hpp"
#include "wm/input.hpp"
#include <fmt/format.h>
#include <GLES2/gl2.h>
... |
// Copyright 2015, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: <NAME> (<EMAIL>)
#include <gtest/gtest.h>
#include <cstdio>
#include <fstream>
#include "../src/global/Pattern.h"
#include "../src/index/Index.h"
#include "./IndexTestHelpers.h"
ad_utility::AllocatorWithLimit<Id>& allo... |
// MIT Licensed (see LICENSE.md).
#pragma once
namespace Zilch
{
struct GeometryStreamUserData;
} // namespace Zilch
class EntryPointGeneration;
namespace Zero
{
class TypeDependencyCollector;
/// Simple class to group common data together to make it easier to pass between
/// functions.
class EntryPointHelperFunc... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2016 INRIA.
*
* 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 <RAUX/STLFile.h>
#ifdef RAUX_XENON_INTERFACE
#include <Red/Util/RCMem.h>
#include <Xenon/Geometry/MeshAttribute.h>
#include <Xenon/Geometry/MeshAttributeData.h>
#include <Xenon/GPU/GLInclude.h>
#include <Xenon/GPU/IndexBuffer.h>
#include <Xenon/GPU/VertexArray.h>
#include <Xenon/GPU/VertexBuffer.h>
... |
/****************************************************************************
Copyright (c) 2022 <NAME>., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free,... |
//
// str.cc:
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <local_types.h>
#include <list.h>
#include <eedefs.h>
#include <shape.h>
#include <shapeset.h>
#include <xfontpair.h>
#include <skkserv.h>
#incl... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
/* Implementation of the algorithm
*
<NAME>, <NAME>, <NAME>, <NAME>:
Exponentially-fitted Gauss–Laguerre quadrature rule for integrals over an unbounded interval.
https://hpcquantlib.wordpress.com/2020/05/17/optimized-heston-model-integration-exponentially-fitted-gauss-laguerre-quadrature-rule/
... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <openvino/cc/ngraph/itt.hpp>
#include "transformations/decompose_mvn.hpp"
#include <ngraph/opsets/opset8.hpp>
#include <ngraph/pattern/op/wrap_type.hpp>
#include <ngraph/rt_info.hpp>
#include <transformations/utils/utils.... |
#include "MeshGenerator.h"
using namespace SYE;
MeshGenerator::MeshGenerator(BaseModule& parentModule, EngineContext* pEngineContext):
BaseModule(parentModule, pEngineContext)
{
DLog(eLogType::cSuccess, "\t\t\t MeshGenerator instance created.");
}
MeshGenerator::~MeshGenerator() noexcept
{
// If instance not t... |
#include <log.h>
#include <drawer.h>
#include <drawingfunctions.h>
void Drawer::setFPEV(std::string& key, std::string& value){
if (globalSettings::verboseLevel>1) lout << "[I] Drawer::setFPEV " << this << "('" << key << "', '" << value << "')" << LEND;
int index=std::stoi(key);
if (value.size()>12 && value.subst... |
//
// This is the main function that facilitates the drawing of the a QuadTree
// object. It initialize a pointer to a QuadTree object and uses openGL and
// glut to draw the spatial decomposition of the quad tree and display
// information such as neighbors using the treeRenderer class.
// The treeRenderer class... |
/*
* Copyright (c) 2019 by flomesh.io
*
* Unless prior written consent has been obtained from the copyright
* owner, the following shall not be allowed.
*
* 1. The distribution of any source codes, header files, make files,
* or libraries of the software.
*
* 2. Disclosure of any source codes pertaini... |
int T
,zrgX1,a8
,
pFT,ku
, JutCvM, uC, nSEK
, y5,wYX
,
E ,
OgB
,//u
Xc,
EMe,LMOI , CRqT
, ldC//o
,whHSwf
,TSD,Ao
,rUN4
, v7, ks , OuG,//h
Gs,
YOB , FAy , VOkakA ,
LK5cT , km
,//b
vtW0A , u6
, msp1 , P5Hea , Eg ,/*K8nS*/XLAl,
j874,k/*dp*/,us
,I
,
ff ,
n90,
QS//t
, qOx3/*m6Y*/ ; void
f... |
/*
* Copyright (c) 2010-2012 <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 the above copyright
* notice, this list of conditions... |
/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* 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 ... |
/**
* $Id$
*
* Author: <NAME>
*
* Copyright 2012,2016 Quantcast Corporation. 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... |
/****************************************************************************
*
* Copyright (c) 2015-2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
#include "solvepnp.h"
/**
* @brief 装甲板二维点
*
* @param light_left 左灯条
* @param light_right 右灯条
* @param _w 实际宽度
* @param _h 实际高度
* @return float 返回计算实际深度
*/
void SolveP4p::arrange_Point(RotatedRect left_light, RotatedRect right_light)
{
this->target2d.clear();
vector<Point2f>(target2d).swap(target2d);
... |
#include "Co4HL/Lower.h"
#include "Co4HL/Co4HLOps.h"
#include "Co4HL/Co4HLOps.h.inc"
#include "Co4LL/Co4LLOps.h"
#include "Co4LL/Co4LLOps.h.inc"
#include "Co4LL/Co4LLDialect.h"
#include "mlir/Dialect/Math/IR/Math.h"
#include "mlir/Dialect/StandardOps/IR/Ops.h"
#include "mlir/Dialect/Vector/VectorOps.h"
#include "mlir... |
//
// Filter.cpp
// VirtualTubeDelay
//
// Created by <NAME> on 02/10/18.
//
//
#include "Filter.hpp"
void Filter::process() {
i_0 = ptr%7; //->6
i_1 = (ptr + 1)%7; //->0
i_2 = (ptr + 2)%7; //->1
i_3 = (ptr + 3)%7; //->2
i_4 = (ptr + 4)%7; //->3
i_5 = (pt... |
#include "led-matrix.h"
#include "pixel-mapper.h"
#include "content-streamer.h"
#include <fcntl.h>
#include <float.h>
#include <math.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <algori... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2000 <NAME> et al.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option)... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
#include <algorithm>
#include <metasim.hpp>
#include "link.hpp"
#include "message.hpp"
#include "netinterface.hpp"
#include "node.hpp"
using namespace MetaSim;
NetInterface::NetInterface(const std::string &name, Node * n) :
Entity(name), _node(n)
{}
NetInterface::~NetInterface()
{}
WifiInterface::WifiInterface(... |
//
// Created by 安頔 on 2020/12/14.
//
#include "SeamCarve.h"
SeamCarve::SeamCarve(int max_h, int max_w) {
this->max_h = max_h;
this->max_w = max_w;
dp = new double[max_h*max_w];
dp_source = new std::pair<int, int>[max_h*max_w];
energy_map = new double[max_h*max_w];
protect = new bool[max_h*max... |
#include <iostream> // basic I/O lib
#include <Winsock2.h> // for sock operation
#include <fstream.h> // for file operation
#include <string.h> // for support string operation
//#include <ws2_32.lib> // for phase 4
#pragma comment(lib,"WS2_32.lib")
int main(){
//initial ... |
#include "generate_proposals_op_util_nms_gpu.h"
#include "../../../include/common_gpu.h"
#include <algorithm>
#include <cfloat>
#include <vector>
#include <stdio.h>
#include "BoxWithNMSLimitLayer.h"
#include "cuda_runtime.h"
//#include "bbox_with_nms_limit_layer.hpp"
#include "../../../include/caffe2/utils/eigen_utils.... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
#include "utils.h"
using namespace std;
// for convenience
using jso... |
#include <iostream>
#include <conio.h>
#include <windows.h>
#include <string>
using namespace std;
// Defines (Macros)
#define MAX_X 80 // maximum x position for player
#define SCROLL_POS 24 // the point that scrolling occurs
#define COMM_SIZE 12 // the maximum size of the communications array
// Function... |
/*
* This source code is public domain.
*
* Authors: <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>> (endian and char fixes for PPC)
*/
#include "stdafx.h"
#include "sndfile.h"
#ifdef _MSC_VER
//#pragma warning(disable:4244)
#endif
//////////////////////////////////////////////////////////
// ProTracker / No... |
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <cmath>
#include "core/client/ai/ai.h"
#include "core/core_field.h"
#include "core/puyo_controller.h"
#include "core/frame_request.h"
#include "gazer.h"
using namespace std;
class InosendoAI : public AI {
public:
// 大局的な主要情報
mutable int myPuyo;
muta... |
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile: cmCPackDebGenerator.cxx,v $
Language: C++
Date: $Date: 2008-04-02 13:16:12 $
Version: $Revision: 1.20.2.2 $
Copyright (c) 2002 Kitware, Inc., Insigh... |
int Ozi , k , Ja3V, U, Am
, //0S
e, kx,u, P5,//BNb
dK
, tcsIgs,
v4 , H8h ,
/*nZ*//*j*/
Zpl, Vu,Su
, ekp1g,yj1iVO
, HU, sJlbY, CN;void
f_f0
(){ volatile int WRWe
,
y , v8g
,T7yjz,//wKl
yMBG
;
for (int i=1; i< 1 ;++i
/*L1*/)/*BK*/ {//kwm
;
;/*mjY*/{ {{}return ;} {int /**/ B;volatile int GUG
,cD; {} if... |
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompanies th... |
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string>
#include <vector>
#include <sys/time.h>
#include <unistd.h>
#include <sparsehash/dense_hash_map>
#include "fastq-lib.h"
#include "utils.h"
#include "tidx.h"
void usage(FILE *f);
using namespace std;
... |
#include "Game_.h"
#include "Player_.h"
#include "Enemy_.h"
#include "Map_.h"
#include "Map_.h"
#include "Obstacle_.h"
#include "Colliders_.h"
#include <time.h>
using namespace m1;
Game_::Game_() {
srand(time(NULL));
fov = glm::pi<float>() / 3;
fovSpeed = 5;
zNear = 0.1f;
zFar = 200.0f;
free... |
// AnimationFunction.cpp
//
// Copyright (c) 2010-2021 <NAME> (http://blog.mikeswanson.com)
//
// 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 limita... |
//
// Created by <NAME> on 2022/03/28.
//
// Define vector types to match iOS code
#include <ext/vector_float2.hpp>
#include <ext/vector_float3.hpp>
#include <ext/vector_float4.hpp>
#include <ext/vector_int2.hpp>
#include <ext/vector_int3.hpp>
#include <ext/vector_int4.hpp>
#include <ext/vector_uint2.hpp>
#include <ex... |
#include "Particle.h"
SYSTEM_THREAD(ENABLED);
SYSTEM_MODE(SEMI_AUTOMATIC);
// Log handler is created dynamically below
#include "CloudDebug.h"
#include "CellularInterpreterRK.h"
#include "sourcever.h"
#include <vector>
void buttonHandler();
void outOfMemoryHandler(system_event_t event, int param);
void stateStart(... |
////////////////////////////////////////////////////////////////////
//
// $Id: SRMesh.cxx 2021/06/05 14:12:09 kanai Exp $
//
// Copyright (c) 2021 <NAME>
// Released under the MIT license
//
////////////////////////////////////////////////////////////////////
//
// Notations of this code is coming from the pesudo-cod... |
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <iostream>
#include <fstream>
#include <string>
#include <cuda_runtime.h>
#include <cuda_gl_interop.h>
#include <helper_cuda.h>
#include "hair.h"
#include "constants.h"
#ifndef GLUT_KEY_ESCAPE
#define GLUT_KEY_ESCAPE 27
#endif
static pilar::Hair* hair = 0;
s... |
// ====================================================
// Author: <NAME>
// Copyright: Georgia Institute of Technology
// Copyright: GeneProbe Inc.
// File: parameters_2.cpp
// Project: GeneMark.hmm-2 (no introns)
// ====================================================
#include <string>
#include <map>
#include <iostr... |
/* -----------------------------------------------------------------------------
* OpenMM(tm) HelloWaterBox example in C++ (June 2009)
* -----------------------------------------------------------------------------
* This is a complete, self-contained "hello world" example demonstrating
* GPU-acce... |
#include <SDL2/SDL_timer.h>
#include <client/game.hpp>
#include <client/graphical/animator.hpp>
#include <client/graphical/gfx_debug_drawer.hpp>
//#include <client/graphical/gl_renderer.hpp>
#include <client/graphical/light.hpp>
#include <client/input/input_service.hpp>
#include <common/logger.hpp>
#include <common/lo... |
#include "conex.h"
#include <iostream>
#include <memory>
#include <vector>
#include <Eigen/Dense>
#include "conex/cone_program.h"
#include "conex/constraint.h"
#include "conex/dense_lmi_constraint.h"
#include "conex/equality_constraint.h"
#include "conex/hermitian_psd.h"
#include "conex/linear_constraint.h"
#include... |
// *** source/rob_analyt.cc ***
// Author: <NAME>, date: 08/2018
//
// Class RobAnalyt: analytical algorithm to calculate distribution in the WPL.
#include "rob_analyt.h"
// Calculates the mean ML estimator vector, the gaussian_quadratic_matrix_ and
// the linear_gaussian_vector_.
RobAnalyt::RobAnalyt(int num_steps,... |
int r0x , OZ//Zr
,
XeM,Lqiwys ,
bQL,oxa, nr6nRI , d8Trf,//VY7W
N3177/*6P*/,//eX
bP5n2, asms , A, /*YN*/mehV,pOc
, z
, g4o, BqkYs , Du9K , gq,cre5x,f6LI/*B2D*/,//R9fgH
T0GZ,//pIq
rL, MZ//gb
,HzE ,
un ,Eexsv
, h9i2P, O7py , adk4,nRlLE,/*VTe*//*2n3*/hxUEgJ,/*HTW*/
a ,/*CH*/ E57bj
;
void f_f0
()
{ if (true... |
#include "TransformComponent.h"
#include <base/utils/JsonUtils.h>
#include <project/SEProject.h>
#include <QHash>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QMap>
#include "base/utils/AppConstance.h"
TransformComponent::TransformComponent(QObject *parent) :... |
#include <iostream>
#include <cstdint>
#include <cstdlib>
#include <vector>
#include <map>
#include <string>
#include <cassert>
#include <ctime>
#include <cstring>
#include <fstream>
#include "aux.h"
#include "cu_header.h"
// The lz77_cpu function performs serial length-distance encoding of the input.
lz77_data* lz77... |
#include <Rcpp.h>
using namespace Rcpp;
#include <set>
#include <vector>
#include <memory>
#include <string>
#include <stdexcept>
using std::set;
using std::string;
using std::vector;
#include "combinadic.h"
#include "combinations.h"
using int_v = vector< int >;
// Returns set containing all LCS for X[0..m-1], Y[0... |
/* antimicro Gamepad to KB+M event mapper
* Copyright (C) 2015 <NAME> <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any... |
/**
* \file WznmPrctree.cpp
* Wznm operation pack global code (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WZNMCMBD
#include <Wznmcmbd.h>
#else
#include <Wznmopd.h>
#endif
#include "WznmPrct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.