text stringlengths 5.71k 33.7k |
|---|
// Copyright 2016 The Fuchsia 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 "garnet/examples/escher/waterfall/scenes/uber_scene2.h"
#include "lib/escher/geometry/tessellation.h"
#include "lib/escher/geometry/types.h"
#inc... |
//===--- SemaDeclSpec.cpp - Declaration Specifier Semantic Analysis -------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* $Id: $
*
* Wrapper Class for MPP: implementation
*
* Copyright (c) 2019-2020 FoilPlanet. All rights reserved.
*
*/
#include "MppWrapper.h"
#include <thread>
#include <chrono>
//!< AVC Profile IDC definitions (\ref mpp/common/h264_syntax.h)
enum H264Profile {
H264_PROFILE_FREXT_CAVLC444 = 44, //... |
// Relaxation.cpp: implementation of the Relaxation class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "LatticeRelaxation.h"
#include "Relaxation.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
#include <algor... |
#include "kernels.h"
void read_input( char* filename, parameters & prm )
{
int i,j,k;
// open file for reading
FILE *fp = fopen( filename, "r");
if (fp == NULL) {
fprintf(stderr, "Can't open input file!\n");
exit(1);
}
// file format assumed to be U then V then W, each with rank columns
// lines starting... |
#include "gl4.h"
mat4 &mat4::transpose() {
std::swap(m01, m10); std::swap(m02, m20); std::swap(m03, m30);
std::swap(m12, m21); std::swap(m13, m31); std::swap(m23, m32);
return *this;
}
mat4 &mat4::rotateX(float degrees) {
float radians = degrees * (M_PI / 180);
float s = sinf(radians), c = cosf(ra... |
//BETA VERSION ._.
#include <iostream>
#include <fstream>
#include <cstring>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <set>
#include <iterator>
#include <algorithm>
#include <CL/cl.h>
#include <ctime>
#define HA 1
#define WA 784
#define WB 51... |
//This file is part of SSEphem.
// SSEphem is a collection of C/C++ source files that provide an interface
// to the JPL Solar System Ephemeris.
// Copyright (C) 2009 Associated Universities, Inc. Washington DC, USA
// SSEphem is free software: you can redistribute it and/or modify
// it under the terms of the G... |
//===- Driver.cpp ---------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... |
/**
* Read the .szplt file named in argv[1] and write it out to a .szplt file named in argv[2]
*/
#include "TECIO.h"
#include <cstring>
#include <iostream>
#include <limits>
#include <sstream>
#include <string>
#include <stdexcept>
#include <vector>
int32_t countFaceConnections(int32_t const* faceConnections, int... |
/* Vehicle Vibration Analysis
* Vehicle dynamics can be modeled as a 2DoF spring-mass-damper system with two ouptuts:
* 1. Vehicle bounce (z motion felt by passengers)
* 2. Vehicle pitch (rotation felt be passengers along front to back)
* These ouputs are based on vehicle characteristics
*/
// <NAME>
// Rev ... |
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/registration/ppf_registration.h>
#include "../headers/access_results.h"
typedef pcl::PointNormal Point_N;
typedef pcl::PointXYZRGB Point_RGBA;
typedef pcl::PointCloud<Point_N... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Author:- <NAME>
// Organization:- IIITDM KANCHEEPURAM
// Topic:- Hamming distance based decoding.
////////////////////////////////////////////////////////////////////////////////////////////////... |
/*
#
# UFFBAPS - Unified Force Field for Binding And Protein Stability
# Copyright (C) 2010 <NAME> & <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 Licen... |
#include "global_pre.hpp"
#include "TSTextField.hpp"
#include "widgets.hpp"
#include "ui.hpp"
// for gVg
#include "window.hpp"
// for key codes
// // #include <GLFW/glfw3.h>
#include "global_ui.hpp"
using namespace rack;
#include "trowaSoftComponents.hpp"
TSTextField::TSTextField(TextType textType) : TextField() {
s... |
/*
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... |
#define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include <GL\glew.h>
#include <GLFW\glfw3.h>
#include <glm\glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "../imgui/imgui.h"
#include "../imgui/examples/opengl3_example/imgui_... |
#include "ffcode.hpp"
#include "ffmapper.hpp"
#include <iostream>
#include <string>
#include <map>
#include <regex>
#include <cassert>
using namespace std;
map<string, int> names;
map<string, bool> business_headers;
string new_name(const string& name) {
int num = 0;
string apnd;
try {
num = ++na... |
#include "BigLittleGain.h"
#include "IPlug_include_in_plug_src.h"
#include "IControls.h"
#include "IPopupMenuControl.h"
#define PLUGIN_URL "https://github.com/bindernews/BigLittleGain"
#define SAMPLE_UPDATE_COUNT (128)
#define DEF_COLOR(name, code, A) const IColor name = IColor::FromColorCode(code, A)
DEF_COLOR(COLOR_... |
//////////////////////////////////////////////////////////////////
//
// Client
// 채팅할 때 클라이언트 쪽...
//
///////////////////////////////////////////////////////////////////
#include "Client.h"
#include "resource.h"
#include "MsgQueue.h"
// static variable 다룰 때에 특히 조심!
int Client::nFlag = 0;
int Client::nO... |
/*
* Software License Agreement (BSD License)
*
* modbus_io
* Copyright (c) 2012, Robotnik Automation, SLL
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistribution... |
//
// Created by thomas on 13/03/19.
// Inspired by https://github.com/lighttransport/nanort/blob/master/examples/pbr_surface/gltf-loader.cc
#include "SceneGLTF.h"
#include "../maths/Array"
#include "../external/stb/stb_image.h"
#define TINYGLTF_NO_INCLUDE_STB_IMAGE
#define TINYGLTF_IMPLEMENTATION
#define STB_IMAGE_I... |
/*++
Copyright (c) 1995-97 Microsoft Corporation
Module Name:
packet.cpp
Abstract:
generates valid MSMQ packet
Author:
<NAME> (urih) 25-May-00
Environment:
Platform-independent
--*/
#include <libpch.h>
#include <mqwin64a.h>
#include <xstr.h>
#include <fn.h>
#include "ph.h"
... |
//===-- FunctionLoweringInfo.cpp ------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include <string>
#include <stdlib.h>
#include "../../utils/simstring.h"
#include "../../dataobj/tabfile.h"
#include "obj_node.h"
#include "../skin_desc.h"
#include "../factory_desc.h"
#include "../sound_desc.h"
#include "text_writer.h"
#include "building_writer.h"
#include "factory_writer.h"
#include "xref_writer.h"
... |
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistribu... |
/*************************************************************************/
/* gdnative.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
//===- Loads.cpp - Local load analysis ------------------------------------===//
//
// 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
//
//===---------------------------... |
// Copyright (c) 2009-2018 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include "hoomd/HOOMDMath.h"
#include "MuellerPlatheFlow.h"
#include "hoomd/HOOMDMPI.h"
namespace py=pybind11;
using namespace std;
const unsigned int INVALID_... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glew.h>
#include <GL/glut.h>
#endif
#include <IL/il.h>
#define _PI_ 3.14159
float alfa = 0.0f, beta = 0.70f, r = 7.5f;
float camX, camY, camZ;
GLuint vertexCount,... |
//
// SphericalPlanet.cpp
// G3MiOSSDK
//
// Created by <NAME> on 31/05/12.
// Copyright (c) 2012 IGO Software SL. All rights reserved.
//
#include "SphericalPlanet.hpp"
#include "CameraEffects.hpp"
#include "Camera.hpp"
SphericalPlanet::SphericalPlanet(const Sphere& sphere):
_sphere(sphere),
_radii( Vector3D(s... |
/* Copyright 2015 Samsung Electronics Co., 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 applicable law... |
/* ************************************************************************
* Copyright 2016 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "rocblas.h"
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <limits>
#include <string>
#in... |
// #pragma GCC optimize ("O0")
#include <fstream>
#include <boost/log/trivial.hpp>
#include "rinexNavWrite.hpp"
#include "rinexObsWrite.hpp"
#include "rinexClkWrite.hpp"
#include "streamTrace.hpp"
#include "navigation.hpp"
#include "acsConfig.hpp"
#include "common.hpp"
#include "rinex.hpp"
struct RinexNavFileOut... |
/* --------------------------------------------------------------------------
*
* File Ch6_MeteringDialogue.cpp
* Ported By <NAME>
* Contact <EMAIL>
*
* Created By <NAME>
* Contact <EMAIL>
*
* -----------------------------------------------------... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... |
// Copyright 2014 <NAME>
// Distributed under MIT license
// See file LICENSE provided
#include <cstring>
#include <stdint.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <netin... |
/**
* Copyright (c) Glow Contributors. See CONTRIBUTORS file.
*
* 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 b... |
// ----------------------------------------------------------------------- //
//
// MODULE : LensFlareFX.cpp
//
// PURPOSE : LensFlare FX - Implementation
//
// CREATED : 5/9/99
//
// (c) 1999 Monolith Productions, Inc. All Rights Reserved
//
// --------------------------------------------------------------... |
static inline void maxD_grad(float x, float y, clad::array_ref<float> _d_x, clad::array_ref<float> _d_y) {
bool _cond0;
_cond0 = x < y;
float maxD_return = _cond0 ? y : x;
goto _label0;
_label0:
if (_cond0)
* _d_y += 1;
else
* _d_x += 1;
}
static inline void minD_grad(float x, ... |
/************************************************************************/
/* Package: ARTI */
/* Module: primaries.cc */
/************************************************************************/
/* Authors: <NAME> ... |
/**
* @file streams.cc
* @brief Source file for class \ref streams
*/
#include "streams.h"
#include "domain.h"
#include "yaml-cpp/yaml.h"
#include <cassert>
using namespace std;
///////////////////////////////////////////////////////////////////////////////
/** Initialize
*
* @param p_domn \input pointer to dom... |
/*
* @file display_kernel_threads_main.cpp
* @date 3 Dec 2017
* @author <NAME>
* @brief Display a summary of the Linux Kernel threads running in the system
* @details The results are sorted by the priority and name of the thread
*/
/* For cpu_set */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdin... |
/** CSci-4611 Assignment 6: Harold
*/
#include "ground.h"
Ground::Ground() : diffuse_ramp_(GL_CLAMP_TO_EDGE),
specular_ramp_(GL_CLAMP_TO_EDGE), light_pos_(30,30,30)
{
}
Ground::~Ground() {
}
Mesh* Ground::mesh_ptr() { return &ground_mesh_; }
void Ground::Init(const std::vector<std::string> &search... |
#include "vapor/VAssert.h"
#include <cmath>
#include <cstdarg>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <sys/stat.h>
#ifdef WIN32
#include <geotiff/geo_normalize.h>
#include <geotiff/geotiff.h>
#else
#include <geo_normalize.h>
#include <geotiff.h>
#endif
#include <vapor/GeoImageGeoTiff.h>
#inc... |
// -*- C++ -*-
//
// Package: IOMC/RandomEngine
// Class: TestRandomNumberServiceGlobal
//
/**\class TestRandomNumberServiceGlobal
Description: Used in tests of the RandomNumberGeneratorService.
Implementation:
This module should not be used with the multiprocess mode
that forks processes.
Dumps to std::cou... |
/*
Copyright 2012 <NAME> (repetier) <EMAIL>
Homepage: http://www.repetier.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 b... |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ------------... |
#include <vector>
#include <iostream>
#include <memory>
#include <cstring>
#include <algorithm>
// ReSharper disable CppUseAuto
namespace vec_demo
{
class Stu
{
public:
explicit Stu(char* name = nullptr, const int age = 0) : name_(name), age_(age)
{
std::vector<std::reference_wrapper<int>> vec;
auto i =... |
// #pragma GCC optimize ("O0")
#include <math.h>
#include "streamTrace.hpp"
#include "acsConfig.hpp"
#include "constants.hpp"
#include "algebra.hpp"
#include "common.hpp"
#include "tides.hpp"
#include "erp.hpp"
#include "vmf3.h"
#define AS2R (D2R/3600.0) /* arc sec to radian */
#define GME 3.98600... |
// Copyright 2017 Google 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 required by applicable law or agreed to in... |
#include "stdafx.h"
int MapKeyboardKey(int key)
{
// Shutdown
if (key == KK_LOCK_SCREEN) return KK_LOCK_SCREEN;
else if (key == KK_SLEEP) return KK_SLEEP;
else if (key == KK_RESTART) return KK_RESTART;
else if (key == KK_SHUTDOWN) return KK_SHUTDOWN;
// Left Ctrl Alt Shift Win
else if (key == KK_LC... |
/*
The MIT License (MIT)
Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... |
#include "App.h"
#include "Input.h"
#include "Textures.h"
#include "Audio.h"
#include "Render.h"
#include "Window.h"
#include "Scene.h"
#include "Map.h"
#include "Physics.h"
#include "Player.h"
#include "Hearts.h"
#include "Menu.h"
#include "Defs.h"
#include "Log.h"
Player::Player() : Entity()
{
int pix = 111;
// ... |
// Copyright (c) 2017 The Khronos Group Inc.
// Copyright (c) 2017 Valve Corporation
// Copyright (c) 2017 LunarG 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... |
#include "VISIBuilder.hpp"
#include "logvisor/logvisor.hpp"
#ifndef _WIN32
#include <unistd.h>
#include <signal.h>
#endif
#define VISI_MAX_LEVEL 10
#define VISI_MIN_LENGTH 8.0
static logvisor::Module Log("VISIBuilder");
VISIBuilder::PVSRenderCache::PVSRenderCache(VISIRenderer& renderer) : m_renderer(renderer) { m_c... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/**
* This file is part of the CernVM File System.
*/
#include "pack.h"
#include <algorithm>
#include <cassert>
#include <cstring>
#include <map>
#include "platform.h"
#include "smalloc.h"
#include "util/string.h"
#include "util_concurrency.h"
using namespace std; // NOLINT
namespace { // some private utility ... |
#include <stdio.h>
#include "src/decoder/faster-decoder.h"
#include "src/util/namespace-start.h"
FasterDecoder::FasterDecoder(const DecodeNet *graph,
const FasterDecoderOptions *opts):
_graph(graph), _config(opts), _num_frames_decoded(-1)
{
assert(_config->_hash_ratio >= 1.0); // less doesn't make much sense.
... |
#include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Skeleton.h"
#include "j1Textures.h"
#include "j1Map.h"
#include "j1Scene.h"
#include "j1Audio.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1Collision.h"
#include "j1Input.h"
#include "j1Entities.h"
#include "j1EntityManager.h"
#include "... |
#include "analyzer.h"
#include "interpreter.h"
using namespace MiniC;
SemanticAnalyzer::SemanticAnalyzer(Interpreter &driver) : driver(driver) {}
runtime_error SemanticAnalyzer::semanticError(const string &message, const Token &token) {
return runtime_error(Interpreter::makeError(message, token.getLocation().val... |
/*
- want to separate a KO item from a KO mesh to allow for easy swapping
*/
#include "defines.h"
#include "base.h"
#include "ItemInfo.h"
#include "GLItemViewer.h"
const int _gl_width = 380-60;
const int _gl_height = 1024/4;
//-----------------------------------------------------------------------------
extern e_It... |
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2008 University of California
//
// BOINC 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 3 of the Licens... |
/*
* main.cpp
*
* Created on: 21. 5. 2019
* Author: ondra
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <unordered_map>
#include <imtjson/operations.h>
#include "shared/toString.h"
#include "proxy.h"
#include <cmath>
#include <ctime>
#include "../brokers/api.h"
#include <imtjson/str... |
#include <iostream>
#include "ImageUtils.h"
#include "FilterUtils.h"
#include "itkCastImageFilter.h"
#include "itkImageRegionIteratorWithIndex.h"
#include "itkApproximateSignedDistanceMapImageFilter.h"
#include "itkFastMarchingImageFilter.h"
#include <map>
#include "itkConnectedComponentImageFilter.h"
#include "itkMult... |
// Mastermind-EvoComp.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "params.h"
#include "utils.h"
#include "chromosome.h"
unsigned int experimentCount = 1;
unsigned int totalGenerations = 0;
unsigned int lowestGen = numeric_limits<unsigned int>::max();
unsigned int... |
/* LiquidCrystalSerial
*
* This is an implementation of communciation routines for the
* Makerbot OEM display hardware.
*
* 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 ... |
// mszip.cpp : Defines the entry point for the console application.
//
#include <Python.h>
#define VERSION "0.1"
#define MODULE "MsZip"
static PyObject* moduleError = NULL;
static PyObject* DataElement = NULL;
static PyObject* Relation = NULL;
static PyObject* Block = NULL;
static PyObject* Template = NULL... |
#include "pch.h"
#define PROFILING_INTERNAL
#include "profiling_internal.h"
#include "core/imgui.h"
bool handleProfileEvent(profile_event* events, uint32 eventIndex, uint32 numEvents, uint16* stack, uint32& d, profile_block* blocks, uint32& numBlocksUsed, uint64& frameEndTimestamp, bool lookahead)
{
profile_event* e... |
//
// Created by <NAME> on 2/5/2018.
// <EMAIL>
//
#include "Interpreter.h"
// region evaluation
Value *Interpreter::evaluate(Expression *expression) {
if (expression->implicitValue)
return expression->implicitValue;
return expression->accept(this);
}
Value *Interpreter::evaluateLiteral(LiteralExpre... |
//cur issue: too close in the old lane to turn
//speed varies lots although modifying
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "spline.h"
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "vehicle.h"
#... |
/****************************************************************************
* calculatePolymorphism.cpp *
* Written by <NAME> *
* Version 1.0 written 2016/10/21 *
* Version 1.1 w... |
/* VensimLex -
*/
#include "VensimLex.h"
#include "VensimParse.h"
/* try to avoid the tab.h file as it is C */
#define YYSTYPE ParseUnion
#include "VYacc.tab.hpp"
#include "../Symbol/Variable.h"
#include "../Symbol/Expression.h"
#include "../XMUtil.h"
VensimLex::VensimLex(void)
{
ucContent = NULL ;
iCurPos... |
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
#include <ctype.h>
#include <stdio.h>
#include <sstream>
#include <fstream>
#include <net/if.h>
#include <boost/uuid/uuid.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include "base/logging.h"
#include "base/task.h"
#include ... |
#pragma once
#include "../../JObject.hpp"
class JByteArray;
class JCharArray;
class JDoubleArray;
class JFloatArray;
class JIntArray;
class JLongArray;
class JArray;
class JObjectArray;
class JShortArray;
class JBooleanArray;
class JClass;
class JObject;
class JString;
namespace java::lang
{
class StringBuilder;
}
... |
/****************************************************************************
* Copyright (C) 2019 cz.
*
* 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,... |
//
// Train.cpp
// jerome
//
// Created by <NAME> on 9/5/16.
// Copyright © 2016 <NAME> & ICT/USC. All rights reserved.
//
// This file is part of Jerome.
//
// 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... |
#include "vehicle.h"
#include "helpers.h"
#include "trajectory.h"
#include "cost.h"
#include <algorithm>
#include <iostream>
#include <sstream>
#include <iterator>
#include <map>
#include <string>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <random>
using std::string;
using std::vector;
vector<dou... |
// CLASSIFICATION: UNCLASSIFIED
/***************************************************************************/
/* RSC IDENTIFIER: ALBERS
*
* ABSTRACT
*
* This component provides conversions between Geodetic coordinates
* (latitude and longitude in radians) and Albers Equal Area Conic
* projection coordin... |
/*
* Copyright 2004-2009, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "gensyscalls.h"
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <string>
#include <string.h>
#include <vector>
#include "gensyscalls_common.h"
using std::vector;
// print_usage
static void... |
/**
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by <NAME> (<EMAIL>)
*
* This file is part of FlashGraph.
*
* 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 a... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "lstm_eigen_d.h"
#include "lstm_eigen_d_structures.h"
#include "../../shared/lstm_eigen.h"
// UTILS
// Sigmoid diff on vector
template<typename T>
ArrayX<T> sigmoid_d(const ArrayX<T>& x, ArrayX<T>& d) {
ArrayX<T> s = sigmoid(x);
... |
#include "ofApp.h"
// we need to declare this static variable in a CPP file (C# is better with this..)
appSettings* appSettings::inst;
//--------------------------------------------------------------
HWND GetWindowHandle()
{
return WindowFromDC(wglGetCurrentDC());
}
void testApp::configureWindowBorder(bool showWin... |
//
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
//
// Principal developer : <NAME> (<EMAIL>)
//
#include <climits> // Needed for memset
#include "cRecompactCore.h"
#include "MatLab.h"
#include <cstring> // Needed for memset
... |
// ImGui GLUT binding with OpenGL3 + shaders: modified from glfw version
// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this.
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and ImG... |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... |
#include "CommonTools/PileupAlgos/interface/PuppiContainer.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "Math/ProbFunc.h"
#include "TMath.h"
#include <iostream>
#include <cmath>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/isFinite.h"
using namespace std;... |
#include "gtest/gtest.h"
#include "upgrade/pack_builder/ImageSignerRsa.hpp"
class TestImageSignerRsa
: public testing::Test
{
public:
TestImageSignerRsa()
: randomNumberGenerator(std::vector<uint8_t>(1000, 5))
, rsaPublicKey(N, E)
, rsaPrivateKey(D, P, Q, DP, DQ, QP)
, signer(ra... |
#include <stdio.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <iostream>
#include <fstream>
#include "Message.h"
//#include "Nodes.h"
// Salticidae related stuff
#include "salticidae/msg.h"
#include "salticidae/event.h"
... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "google_apis/gaia/gaia_oauth_client.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/check.h"
#include "base/c... |
#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()
{
//* State dimension
n_x_ = 5;
//* Radar measurement dimension
n_z... |
#include <common.h>
#include <game.h>
#include <profile.h>
extern "C" dCourse_c::rail_s * GetRail(int id);
const char* BoshiFileList[] = { "boshi", 0 };
class daEnBoshi_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile res... |
/*
Copyright (c) 2003 - 2014 <NAME>
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held liable
for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any
purpose, including commercial applic... |
#include "ora.hh"
#include "gtest/gtest.h"
using namespace ora::lib;
using namespace ora;
using namespace ora::ez;
using std::string;
//------------------------------------------------------------------------------
// Class TimeFormat
//------------------------------------------------------------------------------
... |
/*
Copyright (c) 2019, Mobile Robots Laboratory:
-<NAME> (<EMAIL>).
Poznan University of Technology
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 t... |
/* Copyright (C) 2021 tom [at] tom<EMAIL> */
#include <cstdio>
#include <cstring>
#include <sstream>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <map>
#include <vector>
#include <algorithm>
/* POSIX headers */
#include <getopt.h>
#include <dirent.h>
#define BUFFER_LEN 1024
#d... |
#include <getopt.h>
#include <glog/logging.h>
#include <cassert>
#include <chrono>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <string>
// #define TRACE
#include "Maxfiles.h"
#include "maxdeep/layers.h"
// Can we reflect the types from Maxfiles.h?
#if BIT_WIDTH == 16
typedef int16_t data_t;
#el... |
#import "FluidField.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ALPHA_VALUE 255.0f
#define IX(i,j) ((i)+(_fieldColumns)*(j))
#define SWAP(x0,x) {float * tmp=x0;x0=x;x=tmp;}
typedef long freal;
#define FPP 9
#define X1_0 (1<<FPP)
#define I2X(x) ((freal)((x)<<FPP))
#define F2X(x) ((freal)((... |
#include <glad\glad.h>
#include <glfw\glfw3.h>
#include <glm\glm.hpp>
#include <glm\gtc\matrix_transform.hpp>
#include <glm\gtc\type_ptr.hpp>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define ERROR(format, ...) printf(format, __VA_ARGS__)
#define INFO(format, ...) printf(format, __V... |
/**
BSD 3-Clause License
This file is part of the code accompanying the paper
From Planes to Corners: Multi-Purpose Primitive Detection in Unorganized 3D Point Clouds
by <NAME>, <NAME>, <NAME>, <NAME> and <NAME>,
accepted for Publication in IEEE Robotics and Automation Letters (RA-L) 2020.
Copyright (c) 2019, <NAME>,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.