text stringlengths 8.71k 38.4k |
|---|
// Voro++, a 3D cell-based Voronoi library
//
// Author : <NAME> (LBL / UC Berkeley)
// Email : <EMAIL>
// Date : August 30th 2011
/** \file cmd_line.cc
* \brief Source code for the command-line utility. */
#include <cstring>
#include "voro++.hh"
using namespace voro;
enum blocks_mode {
none,
length_sca... |
/* Copyright (C) 2012-2017 IBM Corp.
* This program 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
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "helpers.h"
#include "json.hpp"
#include "spline.h"
#include <cmath>
#include "main.h"
// for convenience
using nlohmann::json;
using std... |
// Copyright 2017 The Clspv Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... |
/*
* Copyright (c) 2015 <NAME>
*
* See the file LICENSE.txt for copying permission.
*/
#include "TraceHandler.H"
#include "Types.H"
#include "pin.H"
#include "pinplay.H"
#include <sys/time.h>
#include <fstream>
#include <limits>
#include <map>
#include <string>
#include <unordered_map>
#include <unordered_set>
... |
#include <cassert>
#include <iostream>
#include <iomanip>
#include <vector>
#include <FL/glu.h> /* gluOrtho2D(-) */
#include "fl_gl_cyclic_color_wheel.h"
#include "gts_gui.h"
#include "gts_master.h"
fl_gl_cyclic_color_wheel::fl_gl_cyclic_color_wheel(int x ,int y ,int w ,int h ,const char*l)
:Fl_Gl_Window(x,y,w,h,l)
... |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/*
* juncs_db.cpp
* TopHat
*
* Created by <NAME> on 12/12/08.
* Copyright 2008 <NAME>. All rights reserved.
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <cassert>
#include <cstdio>
#include <cstring>
#include <vector>
#include <string>
#include <map>
#include <algorithm>
#include <set>
#i... |
/**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by <NAME> & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License... |
#include "ScriptMenu.hpp"
#include "Script.hpp"
#include "ReplayScript.hpp"
#include "Constants.hpp"
#include "GitInfo.h"
#include "TrackData.hpp"
#include "ReplayData.hpp"
#include "ScriptMenuUtils.h"
#include "ReplayScriptUtils.hpp"
#include "Util/UI.hpp"
#include "Util/Math.hpp"
#include "Util/String.hpp"
#inclu... |
// For documentation, see LinkMatrix.h
#include "LinkMatrix.h"
#include <vector>
#include <map>
#include <set>
#include <iostream>
#include <fstream>
#include <algorithm> // sort, count
#include <stdlib.h> // srand48, drand48
#include "TimeMem.h"
//#include "TrueMapping.h"
#include "TextFileParsers.h"
#include "gtoo... |
/*
Copyright (c) 2011, Intel 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 source code must retain the above copyright
notice, this list of conditi... |
/*
* Copyright [2021] JD.com, 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 wri... |
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
The MIT License
Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or
http://flusspferd.org/contributors.txt)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software an... |
#include "sparse_graph.h"
#include "benchmark.h"
#include <algorithm>
#include <vector>
#include <queue>
#include <tcutil.h>
#include <tchdb.h>
#include <tcbdb.h>
#include <pillowtalk.h>
using namespace std;
using namespace boost;
static inline void add_to_edge_descriptors(edge_t* edge, edge_descriptor_t* ed);
static... |
// DrawRadar.cpp
// Dominicus
#include "graphics/2dgraphics/DrawRadar.h"
#include <cmath>
#include <cstdlib>
#include <map>
#include <stdint.h>
#include <string>
#include "core/GameSystem.h"
#include "geometry/Mesh.h"
#include "graphics/GameGraphics.h"
#include "graphics/texture/Texture.h"
#include "graphics/UILayou... |
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... |
/** \class GEMDigiSimLinkReader
*
* Dumps GEMDigiSimLinks digis
*
* \authors: <NAME>
*/
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCo... |
#define _GLIBCXX_USE_NANOSLEEP // Workaround to use std::this_thread::sleep_for
#include <iostream>
#include <map>
#include <iterator>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <thread>
#include <tuple>
#include <stdexcept>
#include <signal.h>
#include <sys/mman.h>
#include <boost/atomic.hpp... |
/**
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
___ _____ _ ___ _ _____ ___ ___ ___ ___
/ __|_ _/_\ / __| |/ / __/ _ \... |
// Copyright (C) 2021-2022 <NAME> and <NAME>
//
// This file is part of DOLFINx_Contact
//
// SPDX-License-Identifier: MIT
#include "Contact.h"
#include "error_handling.h"
#include "utils.h"
#include <dolfinx/common/log.h>
using namespace dolfinx_contact;
namespace
{
/// Given a set of facets on the submesh, find... |
#include <iostream>
#include <random>
#include <sstream>
#include <thread>
#include <vector>
#include "geometry.h"
#include "help_text.h"
#include "image.h"
#include "scene.h"
#include "vec3f.h"
enum {
EXIT_OK = 0,
EXIT_FAIL_SAVE,
EXIT_FAIL_LOAD,
EXIT_BAD_ARGS,
};
enum {
INVALID_ARG = -1,
HELP_ARG,
SCEN... |
/*
* libptbdrawtext_ftgles.cpp: Source of libptbdrawtext_ftgles dynamic shared library plugin
* for Screen('DrawText') text rendering via external engine. This is the version for use
* with OpenGL-ES 1.1 instead of desktop OpenGL.
*
* This works only on GNU/Linux.
*
* Features:
*
* - Texture mapped renderer, l... |
/*
* Copyright (C) 2013, <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... |
/*************************************************************************\
C O P Y R I G H T
Copyright 2003 Image Synthesis Group, Trinity College Dublin, Ireland.
All Rights Reserved.
Permission to use, copy, modify and distribute this software and its
doc... |
/* Copyright (c) 2021 International Business Machines Corporation
Prepared by: <NAME> <<EMAIL>>
This program finds clusters of near-duplicate files of source code.
The clusters do not overlap; each input sample is either assigned to a
unique cluster or is declared to be a singleton set.
Input format is... |
#include "stratum.h"
#include <mysql/mysqld_error.h>
#include <signal.h>
void db_reconnect(YAAMP_DB *db)
{
if (g_exiting) {
db_close(db);
return;
}
mysql_init(&db->mysql);
for(int i=0; i<6; i++)
{
MYSQL *p = mysql_real_connect(&db->mysql, g_sql_host, g_sql_username, g_sql_password, g_sql_database, g_sql_p... |
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/MakerMacros.h" //For define_fwk_module
#include "FWCore/MessageLogger/interface/Me... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
// imgui_renderer.cpp
// Copyright 2014 - 2019 <NAME>.
// License: https://github.com/polymonster/pmtech/blob/master/license.md
#include "debug_render.h"
#include "dev_ui.h"
#include "input.h"
#include "loader.h"
#include "memory.h"
#include "os.h"
#include "pen.h"
#include "pmfx.h"
#include "renderer.h"
#include "tim... |
#include "aimain.h"
AiMain::AiMain()
{
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_DEBUG);
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG);
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG);
m_gs = NULL;
m_player = NULL;
m_wo... |
#include <assert.h>
#include "math.h"
const mat4& mat4::identity() {
static mat4 mat;
return mat;
}
float mat4::determinant() const {
return data[0][0] * (
data[1][1] * (data[2][2] * data[3][3] - data[2][3] * data[3][2]) -
data[2][1] * (data[1][2] * data[3][3] - data[1][3] * data[3][2]) +
... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... |
/*
* Copyright (c) 2010 <NAME>, <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI... |
#include <algorithm>
#include <chrono>
#include <iostream>
#include <memory>
#include <string>
#include <thread>
#include <vector>
#include <graphics/image.hpp>
#include <graphics/mesh.hpp>
#include <graphics/renderer.hpp>
#include <graphics/shader.hpp>
#include <graphics/texture.hpp>
#include <log/log.hpp>
#include <... |
#include "calc_para.h"
int get_axis_map_p2p(TriMesh::Point centN, TriMesh::Point nbN, int anum, const std::vector<TriMesh::Point>& centAxes,
const std::vector<TriMesh::Point>& nbAxes) {
// rotation mat from nbN to centN
TNT::Matrix<double> rot_mat(3, 3, 0.0);
{
//set Identity rotation
rot_mat[0][0] = rot_mat[1... |
/*
* Production.cpp
*
* Created on: Mar 11, 2021
* Author: tedon
*/
#include <iostream>
#include <fstream>
using namespace std;
#include "Production.h"
Production::Production() {
// TODO Auto-generated constructor stub
}
Production::~Production() {
// TODO Auto-generated destructor stub
... |
// Copyright (c) 2006-2008 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 "webkit/glue/plugins/webplugin_delegate_impl.h"
#include <string>
#include <vector>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#inclu... |
#include <installer/installer.h>
#include <installer/textgui.h>
#include <system/system.h>
#include <core/power.h>
#include <system/vfs/fat.h>
using namespace CactusOS;
using namespace CactusOS::common;
using namespace CactusOS::core;
using namespace CactusOS::system;
using namespace CactusOS::system::drivers;
#defin... |
/*
Author(s): <NAME> (msc37)
Project: sweepc (population balance solver)
Sourceforge: http://sourceforge.net/projects/mopssuite
Copyright (C) 2008 <NAME>.
File purpose:
Implementation of the ParticleImage class declared in the
swp_particle_image.h header file.
Licence:
This fil... |
#include "lua/config.h"
#include "lua/state.h"
#include "rw/logging.h"
#include "rw/utf8.h"
#include "rwte/color.h"
#include "rwte/config.h"
#include "rwte/renderer.h"
#include "rwte/rwte.h"
#include "rwte/screen.h"
#include "rwte/selection.h"
#include "rwte/term.h"
#include <cairo/cairo-xcb.h> // for cairo_xcb_surfac... |
#include <Decima/Decima.hpp>
#include <algorithm>
#include <functional>
#include <iterator>
#include <cstring>
#include <immintrin.h>
// https://github.com/PeterScott/murmur3/blob/master/murmur3.c
inline uint32_t rotl32 ( uint32_t x, int8_t r )
{
return (x << r) | (x >> (32 - r));
}
inline uint64_t rotl64 ( uint6... |
// Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "debug.h"
#include "sam.h"
#include "render.h"
#include "SamTabs.h"
#include "state.h"
enum {
pR = 23,
pD = 57,
pT = 69,
BREAK = 254,
END = 255
};
struct Phoneme *parser1(struct SamState &state, unsigned char *input);
... |
/* SPDX-License-Identifier: BSD-2-Clause-Patent
*
* SPDX-FileCopyrightText: 2021 the prplMesh contributors (see AUTHORS.md)
*
* This code is subject to the terms of the BSD+Patent license.
* See LICENSE file for more details.
*/
#include "topology_task.h"
#include "../db/db_algo.h"
#include "../son_actions.h"
#... |
// MABE is a product of The Hintze Lab @ MSU
// for general research information:
// hintzelab.msu.edu
// for MABE documentation:
// github.com/Hintzelab/MABE/wiki
//
// Copyright (c) 2015 Michigan State University. All rights reserved.
// to view the full license, visit:
// github... |
// 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
//
// Unless required by applicable law or agreed... |
#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 <iostream>
#include <string>
#include "camera.h"
#include "light.h"
#include "model.h"
#include "shader.h"
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image/stb_i... |
/*
MIT License
Copyright (c) 2020 Irseny
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... |
/* Filename: main.cc
* CLI interface program for <NAME>'s Pocket Programmer
* For more info on the Pocket Programmer see http://bubblesoftonline.com/pocket/pocket.html
Copyright (c) 2002, Terran Development Corporation
All rights reserved.
This code is made available to the public under a BSD-like license, a cop... |
#include "aes_he.hpp"
CryptoBitset<128> AddRoundKey(CryptoBitset<128> const& currentBlock,
CryptoBitset<128> const& currentKeys)
{
return currentBlock ^ currentKeys;
}
CryptoBitset<128> SubBytes(CryptoBitset<128> const& currentBlock)
{
// divides the current block into 16 indepen... |
// Copyright (c) 2007-2009 Google Inc.
// Copyright (c) 2006-2007 Jaiku Ltd.
// Copyright (c) 2002-2006 <NAME> and <NAME>
//
// This software is licensed at your choice under either 1 or 2 below.
//
// 1. MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software ... |
////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
// ... |
#include "global.h"
#include "RageSoundManager.h"
#include "GameSoundManager.h"
#include "RageSound.h"
#include "RageLog.h"
#include "RageUtil.h"
#include "GameState.h"
#include "TimingData.h"
#include "NotesLoaderSM.h"
#include "PrefsManager.h"
#include "RageDisplay.h"
#include "AnnouncerManager.h"
GameSoundManager *... |
// Copyright 2019-2020 <NAME>, <EMAIL>.
//
// 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 agr... |
// MIT License
// Copyright(c) 2020 Futurewei Cloud
//
// 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,... |
#include "koopatlas/shop.h"
CREATE_STATE(dWMShop_c, Hidden);
CREATE_STATE(dWMShop_c, ShowWait);
CREATE_STATE(dWMShop_c, ButtonActivateWait);
CREATE_STATE(dWMShop_c, CoinCountdown);
CREATE_STATE(dWMShop_c, Wait);
CREATE_STATE(dWMShop_c, HideWait);
void dWMShop_c::ShopModel_c::setupItem(float x, float y, ItemTypes type... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstring> // std::sscanf
#include <vector>
#include <utility> // std::pair
#include <map> // bench ID (key) to integer number (value; count++)
#include <string>
using namespace std;
struct Gate{
string fanout;
vector<string> fanin;
string type;
};... |
#include <cmath>
#include <iostream>
#include <string>
#include <set>
#include "gpuprinter.hpp"
#include "expression.hpp"
#include "io/ostream_wrappers.hpp"
#include "io/prefixbuf.hpp"
#include "printer/cexpr_emit.hpp"
#include "printer/printerutil.hpp"
using io::indent;
using io::popindent;
using io::quote;
void em... |
/*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2018. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE... |
#include <iostream>
#include <fstream>
#include <string>
#include <set>
#include <map>
#include <algorithm>
#include <numeric>
#include <stdexcept>
#include <opencv2/opencv.hpp>
#include "regressor_train.h"
//#include "load_data.hpp"
#define win64
//#define linux
#define changed
#ifdef win64
... |
// Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include "platform/platform.h"
#include "terrain/terrFile.h"
#include "core/stream/fileStream.h"
#include "core/resourceManager.h"
#include "terrain/terrMaterial.h"
#include "gfx/gfxTextureHandle.h"
... |
#include "mmas.h"
#include "eos/eos.h"
#include <gsl/gsl_errno.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_odeiv.h>
#include <gsl/gsl_interp.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_roots.h>
#include "gsl/gslSpline.h"
#include "gsl/gslInterp.h"
#define ERROR_TRY0 1.0e-6
#define NTRY 3000
enum {NEXCEED=10, F... |
/*
Nexus
Copyright(C) 2012 - <NAME>
ISTI - Italian National Research Council - Visual Computing Lab
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 optio... |
// Copyright 2021 Edgecast Inc
// Licensed under the terms of the Apache 2.0 open source license
// See LICENSE file for terms.
/*
* em_conf_struct.c
*
* Created on: 2 May 2017
* Author: mflores
*/
/*
* To hold the various structs used by the Caching Emulator
*
*/
#include <algorithm>
#include <iostrea... |
#include "md5.h"
#include <iostream>
#include <windows.h>
using namespace std;
#define S11 7
#define S12 12
#define S13 17
#define S14 22
#define S21 5
#define S22 9
#define S23 14
#define S24 20
#define S31 4
#define S32 11
#define S33 16
#define S34 23
#define S41 6
#define S42 10
#define S43 15
#define S44 21
#def... |
//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: Places "detail" objects which are client-only renderable things
//
// $Revision: $
// $NoKeywords: $
//=============================================================================//
#include "stdafx.h"
... |
/*
* Copyright 2020-2022 Hewlett Packard Enterprise Development LP
* Copyright 2004-2019 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... |
#include <local_planners/convex_constraint_solver.h>
#include <pluginlib/class_list_macros.h>
#include <planning_models/kinematic_model.h>
//#include <planning_models/kinematic_model/joint_model_group-inc.h>
#include <planning_models/kinematic_state.h>
//#include <planning_models/kinematic_state/joint_state_group-inc.h... |
/*****************************************************************************
* Markerless AR desktop application.
******************************************************************************
* by <NAME>, 5th Dec 2012
* http://computer-vision-talks.com
**********************************************************... |
// ------------------------------------------------------------------------------------------------
/*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 ... |
#include "../common/custom.hpp"
#include "../common/nnet.hpp"
#include "../common/resnet.hpp"
#include "../common/transform.hpp"
#include "mpi.h"
#include <fstream>
#include <iostream>
#include <map>
#include <opencv2/opencv.hpp>
#include <stdint.h>
#include <string>
#include <torch/torch.h>
#include <vector>
#include ... |
/**
* Copyright 2020 Huawei Technologies 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 2020 Makani Technologies 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 copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
/*******************************************************************************
* Copyright (c) 2015-2017 Vanamco AG, http://www.vanamco.com
*
* The MIT License (MIT)
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
#include "precompiled.h"
#include <condition_variable>
#include <queue>
#include <thread>
#include "gpu.h"
// # cores - 1 (main rast thread steals work)
#define NUM_THREADS 7
// should main rasterizer thread start stealing work if it's spinning waiting for threads to finish
#define WORK_STEAL 1
struct TriangleWork
{... |
#include "expr_eval.h"
#include "arch_error.h"
#include "vtr_util.h"
#include "vtr_math.h"
#include <vector>
#include <stack>
#include <string>
#include <sstream>
#include <cstring> //memset
using std::vector;
using std::stack;
using std::string;
using std::stringstream;
/**** Enums ****/
/* Used to identify the type... |
#include <fstream>
#include <boost/algorithm/string.hpp>
#include <harp.hpp>
#include <specex_fits.h>
#include <specex_trace.h>
#include <specex_gauss_hermite_psf.h>
using namespace std ;
static void AddRow2(specex::FitsTable& table,const string& PARAM, harp::vector_double& coeff, int legdegx, int legdegw) {
std::v... |
int
mn
,QhelvJQ,EswMb ,
d7,GO, bTU
, //8J
XZPT4,ttlv ,iw
/*Ng*/,/*UL*/
xG,B9/*rCg*///
,ZgIQS
,
sM ,
VD0G, sk
,lWZ , zrhgtt,
Mm,
Sriw ,km
,
uX1
,//
HL6S ,//1T
A5A8UEs/*CM*//*8CSQ*/,
IR35R
, Xt , CIW ,//X
Y6a, pj , nNr
,
ofh ,qqd
, MK, taS2 ,zV , UBba
, PlS
,
rKhgQf ,
ZyjY1, m,Mnr,
... |
#include "mesh.hpp"
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <Eigen/LU>
#include <elasty/alembic-manager.hpp>
#include <elasty/fem.hpp>
#include <mathtoolbox/l-bfgs.hpp>
#include <timer.hpp>
#include <vector>
namespace
{
constexpr double k_youngs_modulus = 600.0;
constexpr double k_poisson_rati... |
//
// SE_Model.cpp
// AxiSEM3D
//
// Created by <NAME> on 3/26/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
// spectral element model
// Exodus mesh ---
// | -> mesh --------
// local mesh ---- | -> SE model (this) -> domain
// 3D models ---
#includ... |
//
// ScanTarget.cpp
// Clock Signal
//
// Created by <NAME> on 05/11/2018.
// Copyright © 2018 <NAME>. All rights reserved.
//
#include "ScanTarget.hpp"
#include "OpenGL.hpp"
#include "Primitives/Rectangle.hpp"
#include <cassert>
#include <cstring>
#include <limits>
using namespace Outputs::Display::OpenGL;
#... |
/*****************************************************************************
DXFBlock.cxx -- test
******************************************************************************
Implementation of the DXFBlock class, which provides the basis for subclasses
to permit reading of various AutoCAD primitives.
************... |
//============================================================================
// Name : PSO.cpp(Ubuntu_18_Ritesh)
// Copyright : Your copyright notice
// Description : Particle Swarm Implementation in C++, Ansi-style
//============================================================================
#include <ios... |
#include "MyRigidBody.h"
using namespace Simplex;
//Allocation
void MyRigidBody::Init(void)
{
m_pMeshMngr = MeshManager::GetInstance();
m_bVisibleBS = false; // change to false
m_bVisibleOBB = true;
m_bVisibleARBB = false; // change to false
m_fRadius = 0.0f;
m_v3ColorColliding = C_RED;
m_v3ColorNotColliding =... |
// ImGui - standalone example application for Glfw + OpenGL 3, using programmable pipeline
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <stdio.h>
#include <time.h>
#include <unistd.h>... |
/*!
* \file pred_corr_solver.cpp
* \author <NAME>
*
* \brief Routines for solving with predictor corrector coupling
*
* Copyright (C) 2009 <NAME>.
*
Licence:
This file is part of "brush".
brush is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public... |
int oh, H3O/*xe*/, yd,
cWrw, y,/*NB6h*/ EO
,O,xI,R4Fjs , Ldz,a4Mn5T//
,
p9,
/*7*/H8B9Y
,Ch,
WDyc , AM , UaU6 ,
fHw ,bqK,Ge , i9i ,XP, z,fpw,
WIh
,ku2E ,
MN ,/*jg*/iyV
, aXBKJ
,//GylV
YS
,bq48S ,
o,/*CV*/Fa6Z ,aZ5h
,/*o*/KEkW ,n, zlw
,
HHq,ADjWg;
void f_f0
()//L
{ {if(true
)for(int i=1
;i<... |
/*
Copyright (c) 2019, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#include "Internal.hpp"
#include "../Ethereal.hpp"
stmt_expr... |
// vec_sim_table.cc
// Copyright 2019 <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
//
// Unless required by applicable law or... |
// Copyright <NAME> 2017 - 2022.
// Distributed under the Boost Software License, Version 1.0.
//
// dbpage.cpp - tismet db
#include "pch.h"
#pragma hdrstop
using namespace std;
using namespace Dim;
/****************************************************************************
*
* Tuning parameters
*
***/
// Must ... |
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this file
* that are no... |
#include <iostream>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define TINYOBJLOADER_IMPLEMENTATION
#include "ObjLoader.hpp"
#include "Serialize.hpp"
#include "utils.hpp"
static glm::vec3 calcNormal(const glm::vec3 & v0, const glm::vec3 & v1, const glm::vec3 & v2)
{
glm::vec3 v10 = v1 - v0;
glm::vec3... |
/*
===========================================================================
Doom 3 GPL Source Code
Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
Doom 3 Source Code is free software: you can redistribute it and/or modify... |
#include <torch/extension.h>
#include "../stonne/stonne_linker_src/stonne_linker.h"
#include "../stonne/include/Config.h"
#include <iostream>
#include <tuple>
torch::Tensor simulated_linear_forward(std::string layer_name, torch::Tensor input, torch::Tensor weight, std::string path_to_arch_file, std::string path_to_t... |
//
// gmatrix16float.cpp
// GCommon
//
// Created by <NAME> on 2011 06 01
// Copyright Pleasure seeking morons 2011. All rights reserved.
//
#include "gmatrix16float.h"
#include "gvector3float.h"
#include "gmathmatrix.h"
#include "gmath.h"
#include "gmatrix9float.h"
#include <boost/swap.hpp>
#define DSC_INLINE_... |
/* StringDictionaryRPHTFC.cpp
* Copyright (C) 2014, <NAME> & <NAME> & <NAME>
* all rights reserved.
*
* This class implements a compressed StringDictionaryRPHTFC combining Re-Pair
* and Hu-Tucker compression over a dictionary of strings encoded with
* FrontCoding.
*
* This library is free software; you can red... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
#include <algorithm>
#include <cassert>
#include <fstream>
#include <stdexcept>
#include <../libs/libutils/DebugPrintf.h>
#include <../libs/libutils/strutils.h>
#include "rfsniffer.h"
typedef std::string string;
using namespace strutils;
RFSniffer::RFSnifferArgs::RFSnifferArgs():
config(""),
bDebug(false),
... |
// Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
#include "Jit/frame.h"
#include "Python.h"
#include "internal/pycore_pystate.h"
#include "internal/pycore_shadow_frame.h"
#include "Jit/debug_info.h"
#include "Jit/log.h"
#include "Jit/runtime.h"
#include "Jit/util.h"
#include <algorithm>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.