text stringlengths 8.71k 38.4k |
|---|
/*
Copyright (C) 2003-2014 by <NAME> <<EMAIL>>
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 commercia... |
// 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 "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
// If this gets included after the gtk headers, then a bunch of compiler
/... |
#include <cmath>
#include <iostream>
#include "Solver.hpp"
#include "p3dfft.h"
void print_res(p3dfft::complex_double *A, int *sdims, int *gstart);
void print_res(double *A, const Topology* topo);
/**
* @brief Compare P3DFFT++ and FLUPS on the same FFT 3D
*
* This code will time both libraries on a give FFT 3D: t... |
//
// Created by William on 9/21/2019.
//
#include "../include/Player.h"
#include "../include/GameEngine.h"
#include "../include/PlayerStrategy.h"
#include "../include/GameObservers.h"
#include <iostream>
#include <utility>
#include <list>
#include <cmath>
/**
* Player constructor
*
* @param ownedCountries vector ... |
#include "better-string.hh"
#include <stdio.h>
// Helper functions
#define ASSERT(c) assert(c, #c, __FILE__, __LINE__)
inline void assert(bool condition, const char * message, const char * file, long line)
{
if (!condition)
{
printf("Assertion Failed: %s\nFile: %s, Line: %d\n", message, file, line);
exit(-1);... |
/*
* Copyright 2008 Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>
*
*/
/*
* Original Be Sample source modified to use a quaternion for the object's orientation
*/
/*
Copyright 1999, Be Incorporated. All Rights Reserved.
This file may be used unde... |
/**************************************************************
*
* 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... |
//*****************************************************************
// Copyright 2013 MIT Lincoln Laboratory
// Project: SPAR
// Authors: OMD
// Description: Unit tests for LowMatchRatePubSubGen
//
// Modifications:
// Date Name Modification
// ---- ---- ... |
/*
* Copyright (C) 2015 <NAME>
*/
#include <cstdio>
#include <fstream>
#include <list>
#include <map>
#include <set>
#include <string>
#include <sstream>
#include <vector>
#include "llvm/BasicBlock.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Function.h"
#include "llvm/GlobalVariabl... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "consensus/grandpa/impl/grandpa_impl.hpp"
#include "consensus/grandpa/grandpa_context.hpp"
#include "consensus/grandpa/impl/vote_crypto_provider_impl.hpp"
#include "consensus/grandpa/impl/vote_tracker_impl.hp... |
// -*- C++ -*-
// Copyright 2010-2011 Image Understanding and Pattern Recognition, University of Kaiserslautern, Germany
// or its licensors, as applicable.
//
// You may not use this file except under the terms of the accompanying license.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// m... |
#include "data_loaders/DataLoaderPhenorob.h"
//c++
#include <algorithm>
#include <random>
//loguru
#define LOGURU_REPLACE_GLOG 1
#include <loguru.hpp>
//configuru
#define CONFIGURU_WITH_EIGEN 1
#define CONFIGURU_IMPLICIT_CONVERSIONS 1
#include <configuru.hpp>
using namespace configuru;
//cnpy
#include "cnpy.h"
//b... |
// SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2020 <NAME> <<EMAIL>>
*
* @file network_graph.h
* @date 19 Oct 2020
* @see https://github.com/nnstreamer/nntrainer
* @author <NAME> <<EMAIL>>
* @bug No known bugs except for NYI items
* @brief This is Network Graph Class for Neural Netw... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <string.h>
#include "mozilla/SHA1.h"
#include "mozilla/Assertions.h"
// FIXME: We should probably create... |
#include "host_ip.hpp"
#include "test_check.hpp"
#include "pthread.h"
int port, party;
const int threads = 32;
int main(int argc, char** argv) {
parse_party_and_port(argv, &party, &port);
BoolIO<NetIO>* ios[threads+1];
for(int i = 0; i < threads+1; ++i)
ios[i] = new BoolIO<NetIO>(new NetIO(party == ALICE?nullpt... |
/** @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... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
//===--- Hexagon.cpp - Hexagon ToolChain Implementations --------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
<NAME>
Cisco Systems, Inc.
*/
/*
Copyright (c) 2015-2016 Cisco Systems, 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... |
#include "StdAfx.h"
#include "Settings.h"
#include "Utilities.h"
CString Settings::IniFile; // Temporary file to hold ini file location
bool Settings::AllowToolTips;
bool Settings::AllowInvalidateOnCaretMove;
bool Settings::AllowStatusBarHelp;
bool Settings::AllowBracketBalanceCheck;
bool Settings::AllowReadCompilerS... |
//
// SVBitFontNode.cpp
// SVEngine
// Copyright 2017-2020
// <NAME>,<NAME>,<NAME>,<NAME>,<NAME>,<NAME>
//
#include "SVBitFontNode.h"
#include "SVScene.h"
#include "SVCameraNode.h"
#include "../mtl/SVTexMgr.h"
#include "../mtl/SVTexture.h"
#include "../mtl/SVMtlCore.h"
#include "../rendercore/SVRenderMgr.h"
#include "... |
/* Copyright 2016 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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
#include <llvm-c/Core.h> // just for testing
#include <llvm/IR/Module.h>
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/DIBuilder.h>
#include <llvm/IR/Verifier.h>
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Transforms/Scalar.h" // for some reason some passes live here
... |
//----------------------------------------------------//
// //
// File: Renderer.cpp //
// Initialization, rendering and input handling //
// happens here //
// ... |
#include "Server.h"
#include <assert.h>
#include <fstream>
#include <iostream>
#include "circuit_priv.h"
#include "shake.h"
using namespace seal;
//----------------------------------------------------------------
Server::Server(std::shared_ptr<seal::SEALContext> con, uint64_t p_mod,
bool bsgs)
... |
/**********************************************************************************
*
* MKHEDRA.C Creates Regular Polyhedra.
* Adapted from <NAME>'s HEDRA.C
*
* Revision History
* ----------------
* 03-14-94 RWB Created this file.
* 10-14-95 RWB Adapted to MAX
*
*************************************... |
/***************************************************
IoTuz class to provide basic driver methods for the ESP32 based IoTuz board
from LCA 2017: https://github.com/CCHS-Melbourne/iotuz-esp32-hardware
By <NAME> <<EMAIL>>
License: Apache 2.0.
Required libraries:
- Wire.h to support the pcf8574 port expande... |
//
// Created by <NAME> on 15.03.21.
//
#include "EquationsOfMotion.hpp"
#include <unordered_set>
#include <cmath>
#include <iostream>
#include <algorithm> // std::set_difference, std::sort
#include <iterator> // std::back_inserter
#include <unordered_map>
#include <numbers>
EquationsOfMotion::EquationsOfMotion(cons... |
#include "driver_state.h"
#include <cstring>
#include <vector>
using namespace std;
driver_state::driver_state()
{
}
driver_state::~driver_state()
{
delete [] image_color;
delete [] image_depth;
}
// This function should allocate and initialize the arrays that store color and
// depth. This is not done du... |
/****************************************************************************
Copyright 2021 <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 ... |
#include <vector>
#include <igl/doublearea.h>
#include <igl/per_face_normals.h>
#include <igl/parallel_for.h>
#include <igl/readOBJ.h>
#include <igl/read_triangle_mesh.h>
#include <igl/writeOBJ.h>
#include <igl/random_points_on_mesh.h>
#include <igl/writePLY.h>
#include <igl/signed_distance.h>
#include <igl/dual_contou... |
/******************************************************************************
** Copyright (C) 2000 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 28/08/00
**
** File: mr_fcast... |
/*
Copyright (c) 2012, The Smith-Kettlewell Eye Research Institute
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 ... |
#include "../all.cpp"
// MAIN IMPORTS
// const double EPS = 1e-6;
// typedef pair<o, o> oo; typedef v(oo) voo;typedef v(voo) vvoo;
// typedef pair<double, double> dd;
// #define xx first #define yy second #define linf 0x3f3f3f3f3f3f3f3f
// OTHER IMPORT
// #define MID(x, y) x + (y - x) / 2
oo add(oo a, oo b) { return... |
#include "stdafx.hpp"
#include "HdrLoader.hpp"
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include "../Graphics/ShaderData.hpp"
HdrLoader::HdrLoader()
{
}
HdrLoader::~HdrLoader()
{
glDeleteBuffers(1, &m_CubeVBO);
glDeleteVertexArrays(1, &m_CubeVAO);
glDeleteBuffers(1, &m_QuadVBO);
glDeleteVertexArra... |
/***************************************************************************************
* This file is licensed under CC0: *
* *
* https://github.com/svenevs/nanogui-customizat... |
#include "Button.hpp"
#include "Display.hpp"
#include "MakeMidi.hpp"
#include "ParseMidi.hpp"
#include "Taker.hpp"
#include "Wheel.hpp"
#include "Widget.hpp"
// to do : to run headless, allow mainWidget and ntw() to be nullptr?
NoteTaker::NoteTaker() {
this->config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS)... |
/*
* This file is part of the Tiny-PGA distribution (https://github.com/sergehog/tiny_pga)
* Copyright (c) 2020 <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, version 3... |
int KUpZ
, VlLE , iSoL4
,lk,
VJ, tv7
,srP,
Ii4r//qx
,
OY7/*RR*/ ,
eB, LUc,NRw ,
Yp6 ,Zu/*AxC*/,/*Ci*/CcR
,Cf0wMG
,Z3 , rs47R , rcx//9D
, mlDcl,
vQ,Sx6 ,
//
sZGENS , cMj,
Jw2r ,/*Fe*/zfd1X ,
w
,
aqX7,Mn
, dbq , Aw78PI, vxthU ,GG5F
,rv,aP,ec9g
,
odynT
, CC
,
R65 ,DMr, JX,
qiI
,/**/L ,
VTd7H... |
#include "bmc/bmc_ds.h"
#include "utils/z3Utils.h"
#include "daikon-inst/loopdata.h"
unsigned bmc_ds::find_block_idx( const bb* b) {
unsigned bidx = 0;
for( const bb* prev_candidate : bb_vec ) {
if( prev_candidate == b ) break;
bidx++;
}
return bidx;
}
void bmc_ds::insert_prev_idx( unsigned bidx, unsi... |
/*******************************************************************************
License:
This software and/or related materials was developed at the National Institute
of Standards and Technology (NIST) by employees of the Federal Government
in the course of their official duties. Pursuant to title 17 Section 105
of... |
//========================================================================
//
// HTMLGen.cc
//
// Copyright 2010 Glyph & Cog, LLC
//
//========================================================================
//~ to do:
//~ - fonts
//~ - underlined? (underlines are present in the background image)
//~ - include the... |
///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2012) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
/* The MIT License (MIT)
*
* Copyright (c) 2015 <NAME>, <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 limitati... |
/*eLiSe06/05/99
Copyright (C) 1999 <NAME>
eLiSe : Elements of a Linux Image Software Environment
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 yo... |
/* -------------------------------------------------------------------------------
Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
GtkRadiant is free software; you can redistribute it and/or m... |
//===--- DerivedConformances.cpp - Derived conformance utilities ----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/**
* Copyright (C) 2019 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
//
// Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2021
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "telegram-bot-api/ClientManager.h"
#include "telegram-bot-api/ClientParameters.h"
#include ... |
/**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This librar... |
/**The MIT License (MIT)
Copyright (c) 2018 by ThingPulse Ltd., https://thingpulse.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... |
//
// Created by <NAME> on 19/06/19.
//
#include "ASNetwork.h"
#include <assert.h>
#include "utility.h"
#include <math.h>
//TODO Conectar los enlaces intermedios de forwarding
//This Constructor creates the reduction tree similar to the one shown in the paper
ASNetwork::ASNetwork(id_t id, std::string name, Config ston... |
/*****************************************************************************\
*
* Module Name common.cpp
* Project Radeon ProRender SDK rendering tutorial
*
* Description Radeon ProRender SDK tutorials
*
* Copyright(C) 2011-2021 Advanced Micro Devices, Inc. All rights reserved.
*
\*******************... |
/**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the... |
// Created by <NAME> on 30.05.2018
// Copyright 2018 ETH Zurich
#undef NDEBUG
#include <cassert>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <random>
#include <stdexcept>
#include <string>
#include <tuple>
#include <utility>
#include "func/init_u.h"
#include "overlap/overl... |
/*
* SpectrumTransformer.cpp
*
* Created on: Jul 30, 2015
* Author: dpayne
*
* Much of this code was taken or inspired by cava
* <EMAIL>:karlstav/cava.git
*
*/
#include "Transformer/SpectrumTransformer.h"
#include "Domain/VisConstants.h"
#include "Utils/Logger.h"
#include "Utils/NcursesUtils.h"
#inclu... |
#include "sha512.hpp"
#include <limits>
#include <algorithm>
#include <stdexcept>
#include <boost/endian/conversion.hpp>
// The size of the message in bits is put at the end of the final message_block.
// There are 128 bits reserved there, so according to the standards regarding
// SHA512, the largest message that SHA... |
//=====================================================================
// Copyright 2021 (c), Advanced Micro Devices, Inc. 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 So... |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/gtk/browser_window_gtk.h... |
/*
* Copyright (C) 2008 - 2013 ArkCORE <http://www.arkania.net/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* 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 Founda... |
//---------------------------------------------------------
// Copyright 2017 Ontario Institute for Cancer Research
// Written by Jared Simpson (<EMAIL>)
//---------------------------------------------------------
//
// nanopolish_raw_loader - utilities and helpers for loading
// data directly from raw nanopore files w... |
///////////////////////////////////////////////////////////////////////////////
// File: DDHCalEndcapModuleAlgo.cc
// adapted from CCal(G4)HcalEndcap.cc
// Description: Geometry factory class for Hcal Endcap
///////////////////////////////////////////////////////////////////////////////
#include <cmath>
#include <al... |
#include "MeshFileLoader.h"
#include "graphics/helpers/color.h"
#include "graphics/models/Mesh.h"
#include "graphics/models/SkinnedMesh.h"
#include "graphics/models/SubMesh.h"
#include "io/FileSystem.h"
#define TINYGLTF_IMPLEMENTATION
//#define TINYGLTF_NO_STB_IMAGE
#define TINYGLTF_NO_STB_IMAGE_WRITE
#include "grap... |
/*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2019 <NAME>
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warra... |
#include "depthmap_stitcher.hpp"
#include "depthmap_utility.hpp"
#include "data_io.hpp"
#include <glog/logging.h>
#include <boost/property_tree/json_parser.hpp>
#include <iostream>
#include <string>
#include <regex>
namespace pt = boost::property_tree;
using namespace std;
DepthmapStitcher::DepthmapStitcher()
{
}
... |
#include "level.h"
#include "game.h"
#include <string>
#include <SOIL/SOIL.h>
using namespace std;
//standard Konstruktor
Level::Level(void)
{
width = 100;
height = 100;
stoneBlocks = NULL;
stoneBlocksAnz = 0;
spikeBlocks = NULL;
spikeBlocksAnz = 0;
goodSmileys = NULL;
goodSmileysAnz = 0;
enemys = NU... |
#include "StdAfx.h"
#include ".\soleilproxy.h"
#include "ComPort.h"
#include "SS_Log.h"
int devsListIndexCounterAsync = 0;
typedef struct _DEV_LIST{
BLUETOOTH_DEVICE_INFO dev;
_DEV_LIST *pNext;
}DEV_LIST;
DEV_LIST *g_pDevList=NULL;
void InquiryDeviceInd(/*in*/PBLUETOOTH_DEVICE_INFO pDevInfo)
{
BYTE ... |
/*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, provided tha... |
#include <map>
#include <vector>
#include <iostream>
#include <fstream>
#include "IpTNLP.hpp"
#include "IpIpoptApplication.hpp"
// custom
#include<VSDUtils.h>
#include<VSDPath.h>
#include<VSDProblem.h>
#include<VSDSolver.h>
#include<VSDNLP.h>
#include "VarSpeed.h"
#include "VarSpeed_utils.h"
typedef struct Candidat... |
#include "CompParticle.h"
#include "../Kernel.h"
#include <math.h>
/*
The CPU will determine how many Particles to render based on its state
(STARTING, STOPPING, SUSTAINING, etc...)
and by how much time has passed since having been started
It will also insert 'new' particles (new particles being freshly seeded random
... |
/*
* Author: <NAME>
*
*
*
* VERSION HISTORY:
* ========================================================================================================================
* 0.0.1: First operational version. Must take operating args from command line.
*/
#include <stdint.h>
#include <inttypes.h>
#include <ctype.h>... |
/******* \class DTSegAnalyzer *******
*
* Description:
*
* detailed description
*
* \author : <NAME> - INFN LNL <<EMAIL>>
*
* Modification:
*
*********************************/
/* This Class Header */
#include "RecoLocalMuon/DTSegment/test/DTSegAnalyzer.h"
/* Collaborating Class Header */
#include "FWCor... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include "graph_ray_projection.hpp"
// This flag activates timing of the code
#define DEBUG_TIME 1
#define EPSILON 0.000001
void testKernel(const Graph * graph,float * d_res){
d_res[0]=(float)graph->node[1].position[0];
};
/*********************************************************************... |
#include <cassert>
#include <cfloat>
#include <ctime>
#include <list>
#include <sstream>
#include <string>
#include <typeinfo>
#include <vector>
#include <unordered_map>
#include "../../include/domains/racetrack/RacetrackProblem.h"
#include "../../include/domains/racetrack/RTrackDetHeuristic.h"
#include "../../include... |
/*****************************************************************************************************************************
* ----------------------------- KALKULASI SUDUT PUTAR ROBOT / STEP PER MM ----------------------------------------------------
* --------------------------------------------------------------... |
/**
* @file MainIT_diy.cpp
* Application program for entropy computation using diy framework
* Created on: June 20, 2011
* @author Abon
* @author Teng-Yok
*/
//#define BYTE_SWAP
#include <mpi.h>
#include "diy.h"
#include "util.hpp"
#include "assignment.hpp"
#include "blocking.hpp"
#include "io.hpp"
#include "m... |
/**************************************************************************************************
**************************************************************************************************
BSD 3-Clause License (https://www.tldrlegal.com/l/bsd3)
Copyright (c) 2014 <NAME> <http://www.solism.c... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2006 <NAME> (<EMAIL>)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your optio... |
/* $NoKeywords: $ */
/*
//
// Copyright (c) 1993-2007 <NAME> & Associates. All rights reserved.
// Rhinoceros is a registered trademark of <NAME> & Assoicates.
//
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
// ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
// MERCHANTA... |
/*
Author: <NAME>
License: MIT License
Copyright (c) 2021 <NAME>
This software is licensed under the MIT License(http://opensource.org/licenses/MIT).
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, F... |
#include <iostream>
#include <GL/glut.h>
#include <cmath>
#include <algorithm>
#include <vector>
#include "Collision.h"
#include "Auxiliares.h"
#include "Desenhos.h"
using namespace std;
float screenWidth = 0;
float screenHeight = 0;
int windowSizeX = 680;
int windowSizeY = 680;
float ortho[6] = {-1.0,1.0,-1.0,... |
/*
* Copyright 2018 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... |
/* DinfFlowDir function to compute flow direction based on D-infinity flow model.
<NAME>, <NAME>, <NAME>
Utah State University
May 23, 2010
*/
/* Copyright (C) 2010 <NAME>, Utah State University
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Gen... |
/*
Description: This is the first version of the software.
Author
<NAME>
<EMAIL>
Sepcial Thanks
@javidx9
For ideas and skeleton on impelemntating this software.
*/
#include <list>
#include <iostream>
#include <algorithm>
using namespace std;
#define FTYPE double
#include "olcNoiseMaker.h"
namespace syn... |
//
// Scaffold.cpp
// OptCuts
//
// Created by <NAME> on 4/5/18.
//
#include "Scaffold.hpp"
#include "IglUtils.hpp"
#include "SymDirichletEnergy.hpp"
#include "Timer.hpp"
#include <igl/triangle/triangulate.h>
#include <igl/boundary_loop.h>
#include <igl/avg_edge_length.h>
#include <igl/components.h>
#include <tbb... |
//
// GridViewPaint.cpp
//
// www.catch22.net
//
// Copyright (C) 2012 <NAME>
// Please refer to the file LICENCE.TXT for copying permission
//
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <commctrl.h>
#include <tchar.h>
#include <vssym32.h>
#include "GridViewInternal.h"
enum treeLineType
{
treeLine... |
#include "layer_bank.h"
// convolutional kernel
convolutional_kernel::convolutional_kernel(){
weight_decay = 0.0;
kernel_size = 0;
w = NULL;
b = NULL;
wgrad = NULL;
bgrad = NULL;
wd2 = NULL;
bd2 = NULL;
}
convolutional_kernel::~convolutional_kernel(){
w -> release();
wgrad -> release();
... |
#include "init.h"
#include "Linal2.h"
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
#include <time.h>
//#include <cmath>
using namespace std;
struct Element
{
void CalculateStiffnessMatrix(Matrix& D, std::vector<Triplet>& triplets, MyArray& nodesX, MyArray& nodesY, MyArray& nodesZ);... |
/*****************************************************************************
* *
* Copyright 2018 Rice University *
* *
* ... |
/* Copyright (c) <2009> <<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 appli... |
#include <stdlib.h>
#include <sys/stat.h>
#include <string.h>
#include <openssl/pem.h>
#include <assert.h>
#include <ctype.h>
#include "peerreview.h"
#include "config.h"
#define SUBSYSTEM "peerreview"
#define ddump(a, b) do { } while (0)
PeerReview::PeerReview(IdentityTransport *transport)
{
this->commitmentProto... |
/* trustlist.c - Maintain the list of trusted keys
* Copyright (C) 2002, 2004, 2006, 2007, 2009,
* 2012 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* GnuPG is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publishe... |
/*
Copyright (c) 2007 <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 require... |
//**.****|****.****|****.****|****.****|****.****|****.****|****.****|****.****|
// * Galaxy.cc * galprop package * 4/14/2000
//**"****!****"****!****"****!****"****!****"****!****"****!****"****!****"****|
using namespace std;//AWS20050624
#include<iostream>
#include"Galaxy.h"
#inclu... |
#include "DAINO.h"
static void UM_Downgrade( const real *Input, real *Output, const int NX, const int NY, const int NZ,
const int NVar );
static void UM_AssignData( const int lv, const real *UM_Data, const int NVar );
static void UM_CreateLevel( const real *UM_Data, const int lv, int **Flag... |
#include <RcppEigen.h>
// [[Rcpp::depends(RcppEigen)]]
#include "typedefs.h"
#include "include/helpers.hpp"
#include "include/multivariate_helpers.hpp"
using namespace Eigen;
using namespace Rcpp;
using namespace std;
// **********************************************************************
// calculate elbo for mul... |
#include <torch/torch.h>
#include <torch/script.h>
#include <torch/autograd.h>
#include <torch/utils.h>
#include <iostream>
#include <unistd.h>
#include <iomanip>
#include "../utils.h"
#include "../utils/transforms.hpp" // transforms_Compose
#include "../utils/datasets.hpp" // datasets::Im... |
// Resample.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <assert.h>
#include "Resample.h"
/* Quite arbitrary */
#define MAX_FILTER_RADIUS 16.0
#define MIN_RESAMPLE_WIDTH 0x00000001
#define MAX_RESAMPLE_WIDTH 0x00001... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.