text stringlengths 5.71k 33.7k |
|---|
//////////////////////////////////////////////////////////////////////
//
// DetectorSphere.cpp - Implements a detector sphere
//
// Author: <NAME>
// Date of Birth: April 11, 2002
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
////////////////////////////////////... |
/*------------------------------------------------------------------------
File Name: DGGraphics.h
Description: This file contains the DGGraphics class implementation,
which manages the DirectDraw surfaces and controls and what is drawn
to the screen.
Version:
1.0.0 10.02.2000 Created the file
---... |
#include <atomic>
#include <condition_variable>
#include <mutex>
#include <queue>
#include <stack>
#include <stdlib.h>
#include <thread>
#include <vector>
#include "legwork.h"
#include "fcontext.h"
#define DEFAULT_FIBER_COUNT 256
#define DEFAULT_FIBER_STACK_SIZE_BYTES (64 * 1024)
#define DEFAULT_WORKER_THREAD_SPIN_COU... |
// Gmsh - Copyright (C) 1997-2019 <NAME>, <NAME>
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
#include <stdlib.h>
#include "GModel.h"
#include "gmshFace.h"
#include "Geo.h"
#include "GeoInterpolation.h"
#include "Numeric.h"
#include... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2019 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
#include <UnitTest++.h>
#include <mpi.h>
#include <iostream>
#include "Teuchos_RCP.hpp"
#include "AmanziComm.hh"
#include "RegionEnumerated.hh"
#include "MeshLogical.hh"
#include "MeshLogicalFactory.hh"
#include "Geometry.hh"
#include "MeshL... |
/*
LuaUV
Copyright 2012 <NAME>. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ... |
/**********************************************************************
Golgotha Forever - A portable, free 3D strategy and FPS game.
Copyright (C) 1999 Golgotha Forever Developers
Sources contained in this distribution were derived from
Crack Dot Com's public release of Golgotha which can be
... |
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/common/random.h>
#include <pcl/common/time.h>
#include <pcl/features/normal_3d.h>
#include <pcl/features/spin_image.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/filters/statistical_outlier_remo... |
/*
* testanom.cc
*
* Created on: Sep 6, 2012
* Author: reid
*/
#include "../CuMatrix.h"
#include "../util.h"
#include "../AnomalyDetection.h"
#include "tests.h"
const char* ANOMDET_SAMPLES_FILE = "ex8data1.txt";
const char* ANOMDET_SAMPLES2_FILE = "ex8data2.txt";
const char* REDWINE_SAMPLES_FILE = "winequ... |
/*
* Copyright 2018-2020 Cypress Semiconductor Corporation
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
#include <phypp.hpp>
vec1d cure_error(vec1d err, vec1d err_formal) {
vec1u idl = where(err > 0);
if (!idl.empty()) {
err_formal[idl] *= median(err[idl]/err_formal[idl]);
}
// Keep the bootstrap unless it is too small for some reason
idl = where(err < 0.7*err_formal);
err[idl] = err_for... |
#include "Octane.h"
#include "core/Common.h"
#include "core/Numerics.h"
#include "io/Message.h"
void
Octane::search(const MIP& mip, const std::vector<double>& lb,
const std::vector<double>& ub, const std::vector<Activity>&,
const LPResult& result, const std::vector<double>&,
... |
int bx,ch, BX2,
/*l*///dW
uxB90 ,/*N*/Sw//2zMl
,//uT
qsaYA5, Hf ,/*F*/vH ,GhVn
,o4XZE
, KFn
//F
,/*S7o*/rar,Kr , zO,
Vnv
,
o0RIc/**/
, DCGX ,
fK ,
K, fFq, Z0w
,
de, Eagnj ,du
,q1, Cv ,xzUt ,ls ,
l64h
,nYEv , ia7
, KF
, r ,V ,
b, RDcV ,
nU8; void f_f0 ()
{ int
Qco; volatile int f2w , YS4,vfv... |
/*
* Copyright (c) 2017
* FZI Forschungszentrum Informatik, Karlsruhe, Germany (www.fzi.de)
* KIT, Institute of Measurement and Control, Karlsruhe, Germany (www.mrt.kit.edu)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... |
/* Copyright (C) 2014 InfiniDB, Inc.
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; version 2 of
the License.
This program is distributed in the hope that it will be useful,
but W... |
#include <ros/ros.h>
#include <tf/tf.h>
#include <tf/transform_listener.h>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Point.h>
#include <iostream>
#include <sensor_msgs/PointCloud.h>
#include <geometry_msgs/PointStamped.h>
#include <math.h>
#include <std_srvs/Empty.h>
#include <geometry_msgs/Twist.h>
#... |
#include "renderer.h"
#include <assert.h>
#include <SDL.h>
#include "gl.h"
#include "ui.h"
#include "files.h"
typedef struct
{
GLuint vertex_array;
GLuint vertex_buffer;
GLuint element_buffer;
GLuint shader;
GLint mvp_loc;
} RenderData;
typedef struct
{
GLuint shader;
GLint mvp_loc;
... |
#include <fstream>
#include <gsl/gsl_integration.h>
#include "patConst.h"
#include<sstream>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_monte.h>
#include <gsl/gsl_monte_plain.h>
#include <gsl/gsl_monte_miser.h>
#include <gsl/gsl_monte_vegas.h>
#include "patErrMis... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <stb_image.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <learnopengl/filesystem.h>
#include <learnopengl/shader_m.h>
#include <learnopengl/camera.h>
#include <learnopengl/model.h>
#include <iostream>... |
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string_regex.hpp>
#include "H264NALUSink.hpp"
#include "H264CubemapSource.h"
#include "RTSPCubemapSourceClient.hpp"
void RTSPCubemapSourceClient::setOnDidConnect(const std::function<void (RTSPCubemapSourceClient*, CubemapSource*)>& onDidConnect)
{
... |
//
// 8530.cpp
// Clock Signal
//
// Created by <NAME> on 07/06/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include "z8530.hpp"
#define LOG_PREFIX "[SCC] "
#include "../../Outputs/Log.hpp"
using namespace Zilog::SCC;
void z8530::reset() {
// TODO.
}
bool z8530::get_interrupt_line() const {
ret... |
// Copyright 2013 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.
// A mini-zygote specifically for Native Client.
#include "components/nacl/loader/nacl_helper_linux.h"
#include <errno.h>
#include <fcntl.h>
#include <l... |
/****************************************************************************
example5.cpp
A GLUI program demonstrating subwindows, rotation controls,
translation controls, and listboxes
-----------------------------------------------------------------------
7/10/98 <NAME> (<EMAIL>)
*******... |
/*
* qpsnr (C) 2010 <NAME>, ema <AT> fastwebnet <DOT> it
*
* This file is part of qpsnr.
*
* qpsnr 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 lat... |
//========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 <NAME> <<EMAIL>> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//=====================================================... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkIntersections.h"
#include "SkOpAngle.h"
#include "SkOpSegment.h"
#include "SkPathOpsCurve.h"
#include "SkTSort.h"
#if DEBUG_ANGLE
#include "SkString.h"
static con... |
/*
* Copyright 2017 WebAssembly Community Group participants
*
* 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... |
#include <iostream>
#include <vector>
#include <cassert>
#include <string>
#include "cpyp/crp.h"
#include "cpyp/mf_crp.h"
#include "cpyp/random.h"
using namespace std;
static const double p0[] = { 0.1, 0.2, 0.7 }; // actual base distribution
static const double q0[] = { 0.5, 0.4, 0.1 }; // proposal base distributi... |
// Copyright (C) 2013-2016 Altera Corporation, San Jose, California, USA. All rights reserved.
// 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... |
//===-- clang-format/ClangFormat.cpp - Clang format tool ------------------===//
//
// 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 "flow.h"
// Convert from a vertex-based vector field to face-based by averaging together
// the vectors on all of a face's vertices
FaceData<Vector2> toFaces(ManifoldSurfaceMesh& mesh,
VertexPositionGeometry& geo,
const VertexData<Vector2>& field) {
Face... |
// Copyright 2021, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: <NAME> (<EMAIL>)
#include "CompressedRelation.h"
#include "../engine/IdTable.h"
#include "../util/Cache.h"
#include "../util/CompressionUsingZstd/ZstdWrapper.h"
#include "../util/ConcurrentCache.h"
#include "../util/Type... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
#include "lib_battery_powerflow.h"
#include "lib_power_electronics.h"
BatteryPower::BatteryPower(double dtHour) :
dtHour(dtHour),
powerPV(0),
powerLoad(0),
powerBattery(0),
powerBatteryTarget(0),
powerGrid(0),
powerGeneratedBySystem(0),
powerPVToLoad(0),
powerPVToBattery(0),
powerPVToG... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkImage_GpuBase.h"
#include "GrBackendSurface.h"
#include "GrClip.h"
#include "GrContext.h"
#include "GrContextPriv.h"
#include "GrRenderTargetContext.h"
#include "G... |
#include <fstream>
#include <iomanip>
#include <AMReX_ParmParse.H>
#include <AMReX_Geometry.H>
#include <AMReX_MultiFab.H>
#include <AMReX_Print.H>
#include <AMReX_PlotFileUtil.H>
#include <AMReX_BLFort.H>
#include <cvode/cvode.h> /* prototypes for CVODE fcts., consts. */
#include <sunlinsol/sunlinsol_... |
/*************************************************************************\
Copyright 2010 The University of North Carolina at Chapel Hill.
All Rights Reserved.
Permission to use, copy, modify and distribute this software and its
documentation for educational, research and non-profit purposes, without
... |
#include "Rasterizer.h"
#include "Maths/Vec3.h"
#include "Maths/Vec4.h"
#include "Light.h"
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <vector>
using namespace Maths::Vector;
Rasterizer::Rasterizer(SDL_Renderer * p_renderer, SDL_Window * p_window, const unsigned int p_width, const unsigned... |
// Copyright 2016 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 "core/frame/Deprecation.h"
#include "core/dom/Document.h"
#include "core/dom/ExecutionContext.h"
#include "core/frame/FrameConsole.h"
#include "... |
/***********************************************************************************
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
(c) Copyright 1996 - 2002 <NAME> (<EMAIL>),
<NAME> (<EMAIL>)
(c) Copyright 2002 - 2004 <NAME>
(c) Copyright 2002 - 2005 <NA... |
#include "base.h"
#include "usfml.h"
#include "gamerules.h"
#include "saveload.h"
#include "debug.h"
#include <stdlib.h>
#include <iostream>
#include <string>
/// grid of candies
int _grid[ROWS][COLS];
/// objects
int _objects[ROWS][COLS];
/// score
int _score;
/// target score
int _scoreTarget;
/// number of moves le... |
/* -----------------------------------------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
� Copyright 1995 - 2013 Fraunhofer-Gesellschaft zur F�rderung der angewandten Forschung e.V.
All rights reserved.
1. INTRODUCTION... |
#include <iostream>
#include <vector>
#include <queue>
#include <boost/unordered_map.hpp>
#include <tclap/CmdLine.h>
#include <boost/algorithm/string/join.hpp>
using namespace std;
using namespace TCLAP;
#include "neuralLM.h" // for vocabulary
#include "util.h"
using namespace boost;
using namespace nplm;
void writ... |
// SPDX-License-Identifier: Apache-2.0
//
// Copyright 2000-2014 <NAME>
// Copyright 2004-2013 Gigablast, Inc.
// Copyright 2013 Web Research Properties, LLC
//
// 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... |
//
// CCharNPCStatus.cpp
// Copyright <NAME> (www.menasoft.com).
//
// Test things to judge what an NPC might be thinking. (want to do)
// But take no actions here.
//
#include "graysvr.h" // predef header.
CREID_TYPE CChar::NPC_GetAllyGroupType(CREID_TYPE idTest) // static
{
switch ( idTest )
{
case CREID_MAN:
c... |
#include "colors.h"
#include <util/stream/output.h>
#include <util/generic/singleton.h>
#include <util/system/env.h>
#include <cstdlib>
#if defined(_unix_)
#include <unistd.h>
#endif
using namespace NColorizer;
namespace {
constexpr TStringBuf ToStringBufC(NColorizer::EAnsiCode x) {
switch(x) {
... |
//
// FILE NAME: CQCWebSrvC_WorkerThread.hpp
//
// AUTHOR: <NAME>
//
// CREATED: 091/17/2014
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (<NAME>.) It is licensed under the MIT Open Source
// license:
//
// https://opensour... |
/****************************************************************************
* jlp_Atmcd32d_linux.cpp
* Dummy Andor library to replace Windows one
*
* JLP
* Version 28/08/2015
*****************************************************************************/
#include "asp2_typedef.h" // BYTE
#include "jlp_Atmcd32d_linux.... |
/*============================================================================
Copyright 2017-2021 <NAME>
Distributed under the OSI-approved BSD License (the "License");
see accompanying file LICENSE for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY o... |
/*
* Copyright (C) 2020 GreenWaves Technologies, SAS
*
* 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 applic... |
/****************************************************************************
Copyright 2015 <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
U... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2019 Conclusive Engineering
*
* 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 copyr... |
#include <assert.h>
#include <fcntl.h>
#include <poll.h>
#include <stdio.h>
#include <sys/mman.h>
#include <unistd.h>
#include <atomic>
#include <thread>
#include <vector>
#include "main.hpp"
#include "pipewire.hpp"
#include "log.hpp"
static LogScope pwr_log("pipewire");
static struct pipewire_state pipewire_state ... |
/*
Open Tracker License
Terms and Conditions
Copyright (c) 1991-2000, Be Incorporated. All rights reserved.
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... |
/*
* Copyright 2004-2017 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
*
*... |
/******************************************************************************
*
* Project: Parquet Translator
* Purpose: Implements OGRParquetDriver.
* Author: <NAME>, <even.rouault at spatialys.com>
*
******************************************************************************
* Copyright (c) 2022, Plan... |
/** \file cMakeSubregions.c
*
*Compile the mex file:
*
mex -O cMakeSubregions.c
*
* [subregions leftcoord topcoord]=cMakeSubregions(X,Y,Z,sz,data)
* $Rev: 54 $
* $Date: 2011-09-06 13:18:16 -0600 (Tue, 06 Sep 2011) $
* $Author: jbyars $
* $HeadURL: https://abbe.phys.unm.edu/svn/cCode/cMakeSubregions.c $
*/
#i... |
/*
* Copyright (c) 2015 <NAME>
* Copyright (c) 2022 <NAME>
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <lk/cpp.h>
#include <lk/err.h>
#include <lk/trace.h>
#include <endian.h>
#include <stdint.h>
#... |
// -*- C++ -*-
//
// Package: Compare
// Class: Compare
//
/**\class Compare Compare.cc CalibMuon/Compare/src/Compare.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>,Bld. 32 Room 4-C21,+41227671337,
// Created: Thu Oct 29 13... |
/*
*
* Copyright (c) 2007-2018, University of California / Singapore Management University
* <NAME> <<EMAIL>> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without... |
/*
Reading position data from Ublox GPS module via UBX binary commands using UART @115200 baud
...based on Sparkfun example (Thank you very much!!)
Reading Bearing direction from HMC5883L (it may be on the same GPS module for drone like this https://ja.aliexpress.com/item/32860597703.html)
And send them after nm... |
#include <radar_srr_plugin/radar_srr_plugin.h>
#include <gazebo-11/gazebo/physics/Link.hh>
#include <gazebo-11/gazebo/physics/Model.hh>
#include <gazebo-11/gazebo/physics/World.hh>
#include <gazebo-11/gazebo/sensors/Sensor.hh>
#include <gazebo-11/gazebo/sensors/SensorManager.hh>
#include <gazebo-11/gazebo/sensors/senso... |
///
/// generated by templates.py -- do not edit
///
/// High level intermediate representation (HR) opcodes
///
enum InstrKind {
HR_start, // StartInstr
HR_template, // StartInstr
HR_catchblock, // CatchBlockInstr
HR_return, // StopInstr
HR_throw, ... |
#define DEBUGME
#undef DEBUGME
#include <Exec/ExecBase.hpp>
#include "task.hpp"
extern "C" TUint8 bochs_present;
inline static void wait_io() {
outb(0x80, 0x70);
}
static void delay() {
for (TInt i = 0; i < 100; i++) {
outb(0x80, 0x00); // 1 microsecond
// wait_io();
};
}
AtaTask::AtaTask(AtaDevice *aD... |
/****************************************************************************
*
* Copyright (c) 2013-2019 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 <tvision/tv.h>
#include "util.h"
#include "editwindow.h"
#include "tscintilla.h"
#include "styles.h"
#include "app.h"
#include <utility>
using namespace Scintilla;
using std::pair;
#ifdef HAVE_MAGIC
#include <magic.h>
#endif
static const const_unordered_map<std::string_view, Language> mime2lang = {
{"tex... |
/** \file Example of a music synthesizer written in SYCL
Rely on some triSYCL extensions (kernel I/O) and muSYCL extensions
(MIDI and audio input/output)
*/
#include <algorithm>
#include <array>
#include <cmath>
#include <iostream>
#include <map>
#include <variant>
#include <sycl/sycl.hpp>
#include <sycl/vend... |
/*
Copyright (c) 2007-2009 <NAME>. 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 re... |
/**
Software License:
-----------------
Copyright (c) 2021 <NAME><<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, cop... |
/*
** Copyright 2014-2017 Centreon
**
** 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 t... |
#include "haar.h"
#include "sqrt.h"
#define TOTAL_NODES 2913
#define TOTAL_STAGES 25
#define TOTAL_COORDINATES TOTAL_NODES*12
#define TOTAL_WEIGHTS TOTAL_NODES*3
#define WINDOW_SIZE 25
#define SQ_SIZE 2
#define PYRAMID_HEIGHT 12
/***************************************************************************************... |
// This file is part of comma, a generic and flexible library
// Copyright (c) 2016 The University of Sydney
// 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 cod... |
#include "Mesh.h"
#include <errno.h>
#include <algorithm>
/*
** MESH
*/
// default constructor creates a horizontal plane or dimensions 1 x 1 centered on the origin
Mesh::Mesh()
{
// Create triangle vertices
Vertex vertices[] = { Vertex(glm::vec3(-1.0,-1.0,0.0)),
Vertex(glm::vec3(0, 1.0, 0.0)),
Vertex(glm::vec... |
#include "deeds_thread.h"
#include "stdint.h"
//structs for multi-threading
struct regulariser_data{
float* u1; float* v1; float* w1;
float* u0; float* v0; float* w0;
float* costall;
float alpha;
int hw;
int step1;
float quant;
int* ordered;
int* parents;
int m; int n; int o;
};
struct cost_data{
float* im... |
// sgemm.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <cuda.h>
#include <cublas_v2.h>
CUcontext hContext = 0;
cublasHandle_t hCublas = 0;
float assemblySgemm(const char* kernel, CUarray_format fo... |
/*
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) any later version.
This program is distributed in the hope that it will be useful,
... |
// 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... |
/*
* indexserver.cpp
*
* Created on: 26.05.2015
* Author: mika
*/
#include "cache/index/indexserver.h"
#include "cache/index/reorg_strategy.h"
#include "util/concat.h"
#include <memory>
#include <stdlib.h>
#include <stdio.h>
// socket() etc
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd... |
#include "kiteNMPF.h"
#include "utility"
#include "pseudospectral/chebyshev.hpp"
using namespace casadi;
const DM KiteNMPF::DEFAULT_LBG = -DM::inf(1);
const DM KiteNMPF::DEFAULT_UBG = DM::inf(1);
const DM KiteNMPF::DEFAULT_LBX = -DM::inf(15);
const DM KiteNMPF::DEFAULT_UBX = DM::inf(15);
const DM KiteNMPF::DEFAULT... |
#include <wmtk/TetMesh.h>
#include <wmtk/auto_table.hpp>
#include <wmtk/utils/TupleUtils.hpp>
#include <bitset>
void wmtk::TetMesh::triangle_insertion(
const std::vector<Tuple>& intersected_tets,
const std::vector<Tuple>& intersected_edges,
std::vector<size_t>& new_vids,
std::vector<size_t>& new_cen... |
#include <iostream>
#include <string>
#include <vector>
#include <filesystem>
#include <chrono>
#include <thread>
#include <condition_variable>
#include <cerrno>
#include <csignal>
#include <climits>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
#include <sys/poll.h>
#include <sys/ioctl.h>
#include <sys... |
#include <netdb.h>
#include <stdlib.h>
#include <unistd.h>
#include <array>
#include <atomic>
#include <chrono>
#include <limits>
#include <memory>
#include <thread>
#include <vector>
#include "aos/events/event_loop.h"
#include "aos/events/shm_event_loop.h"
#include "aos/init.h"
#include "aos/logging/logging.h"
#incl... |
#include<bits/stdc++.h>
// g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 1000000007
#define EPS 1e-6
#define ll long long int
#define ld long double
#define fi first
#define se second
#define all(v) v.begin(),v.e... |
#include "framework/framework.h"
#include "framework/logger.h"
#include "framework/sound_interface.h"
#include "framework/trace.h"
#include "library/sp.h"
#include "library/vec.h"
#include <SDL.h>
#include <SDL_audio.h>
#include <algorithm>
#include <functional>
#include <list>
#include <mutex>
#include <queue>
#includ... |
#include "eval.h"
#include "ast.h"
#include "object.h"
#include <iostream>
#include <stdexcept>
// TODO: start using unique pointers for more safety
namespace object_constant {
Null *null = new Null();
Boolean *TRUE_OBJ = new Boolean(true);
Boolean *FALSE_OBJ = new Boolean(false);
} // namespace object_constant
bool... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
* Copyright (c) 2013,2014,2015,2016,2017,2018,2019, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, ... |
#include <iostream>
#include <string>
#include <sstream>
#include <thread>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm\gtc\quaternion.hpp>
#include "Weapons\PlasmaWeapon.h"
#include "logging\Logger.h"
#include "Map.h"
#include "agow.h"
#include "version.h"
// Imports so that they're actually readable an... |
//
// Created by huangkun on 2020/1/9.
//
#include <numeric>
#include <opengv2/viewer/ViewerBase.hpp>
opengv2::ViewerBase::ViewerBase(const std::string &strSettingPath, MapBase::Ptr map, TrackingBase::Ptr tracking)
: map_(std::move(map)), tracking_(std::move(tracking)), GT_Tws_(nullptr) {
cv::FileStorage... |
#include <cstdlib>
#include <string>
#include <stdio.h>
#include <iostream>
#include <numeric>
#include <random>
#include <list>
#include "utilities/General.h"
#include "VoxelReconstruction.h"
//#include "controllers/Reconstructor.h"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#define DATA_PATH "da... |
// dear imgui: Renderer for OpenGL2 (legacy OpenGL, fixed pipeline)
// This needs to be used along with a Platform Binding (e.g. GLFW, SDL, Win32, custom..)
// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this.
// If you are new to dear imgui, read examples/R... |
/*
oscpack -- Open Sound Control (OSC) packet manipulation library
http://www.rossbencina.com/code/oscpack
Copyright (c) 2004-2013 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files
... |
/*
* Copyright © 2018 Google, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copy... |
#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"
using namespace std;
// for convenience
using json = nlohmann::json;
... |
/** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you und... |
#include "NumControlItem.h"
#include <QtCore/QRegularExpression>
#include <QtCore/QStringBuilder>
#include <QtGui/QClipboard>
#include <QtGui/QGuiApplication>
#include <QtWidgets/QGraphicsScene>
#include <QtWidgets/QGraphicsSceneMouseEvent>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QMenu>
#include <... |
/*
* © Copyright IBM Corporation 2020.
*
* LICENSE: Apache License 2.0 (Apache-2.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
#include "sib_optimizer.h"
#include <cmath>
// disable the warnings about possible loss of data when converting T to double
#ifdef _MSC_VER
#pragma warning( disable : 4244 )... |
/**
* WARNING When changing the copyright dates on new years day, make sure to
* update the licenses in this file as well!
*
* Copyright (C) 2020 Tristan. All Rights Reserved.
* This file is licensed under the BSD 2-Clause license.
* See the COPYING file for licensing information.
*/
#include "credits.hpp"
#in... |
/* * Copyright (c) 2016 Regents of the University of California. 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, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.