text stringlengths 5.71k 33.7k |
|---|
/*
** Copyright (C) 1998-2010 <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 option) any later version.
**
** This program... |
#include <algorithm>
#include <iostream>
#include <cassert>
#include <functional>
#include <random>
#include <chrono>
#include "matrix.h"
#define DETAILED
#define OUTPUT_RANK
using namespace std;
void test_sample_from_null(int m, int n, function<bit()> &coin) {
Matrix A = gen_random_matrix(m,n,coin);
// pr... |
/*
* Copyright (c) 2012 <NAME>. All rights reserved.
*
* Author(s): <NAME> <<EMAIL>>
*
*/
#include <fmpi/concurrency/SPSCQueue.h>
#include <omp.h>
#include <fmpi/Debug.hpp>
#include <fmpi/util/NumericRange.hpp>
#include <iostream>
#include <rtlx/Ostream.hpp>
#include <tlx/cmdline_parser.hpp>
#include "stencil_p... |
#include "entry.h"
#include <regex>
#include <filesystem>
#include <spdlog/fmt/bundled/color.h>
#include <centralLogControl.h>
using namespace std::literals;
using entry::Command;
using entry::Entry;
namespace entry
{
template<typename T = uint32_t>
std::optional<T> parse_number(const std::string &str)
{
... |
// kaimana.cpp
//
// Copyright 2013 Paradise Arcade Shop, ParadiseArcadeShop.com
// All rights reserved. Use is subject to license terms.
//
// Code is provided for entertainment purposes and use with the Kaimana controller.
// Code may be copied, modified, resused with this Copyright notice.
// No commercial ... |
// blitter.cpp
// E64
//
// Copyright © 2020 elmerucr. All rights reserved.
#include "blitter.hpp"
#include "common.hpp"
/*
* alpha_blend function takes the current color (destination, which is
* also the destination) and the color that must be blended (source). It
* returns the value of the blend which, normal... |
// cameras/realistic.cpp*
#include "stdafx.h"
#include "cameras/realistic.h"
#include "paramset.h"
#include "sampler.h"
#include "montecarlo.h"
#include "filters/box.h"
#include "film/image.h"
#include "samplers/stratified.h"
#include "intersection.h"
#include "renderer.h"
#include <fstream>
#include <sstream>
#includ... |
/* ------------------------------------------------
Copyright 2014 AT&T Intellectual Property
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
Unle... |
/*
* Copyright 1993-2006 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws.
*
* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE
* CODE FOR ANY PURPOSE. IT IS PROVIDED... |
// Copyright 2020 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/ui/views/autofill/autofill_popup_view_utils.h"
#include "base/cxx17_backports.h"
#include "testing/gtest/include/gtest/gtest.h"
... |
/**
* Sky Dolly - The Black Sheep for your Flight Recordings
*
* Copyright (c) <NAME>
* All rights reserved.
*
* MIT License
*
* 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
* withou... |
// Solving a puzzle below
// https://sist8.com/yougun
#include <cstdlib>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <random>
#include <sstream>
#include <string>
#include <vector>
#include <boost/optional.hpp>
#include <boost/program_options.hpp>... |
/*==================================================================================
Copyright (c) 2018-2019 AT&T Intellectual Property.
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 Licens... |
//
// Cubism3D
// Copyright (c) 2018 CSE-Lab, ETH Zurich, Switzerland.
// Distributed under the terms of the MIT license.
//
// Created by <NAME> (<EMAIL>) and
// <NAME> (<EMAIL>).
//
#include "smarties.h"
#include "Simulation.h"
#include "operators/SGS_RL.h"
#include "spectralOperators/SpectralManip.h"
#includ... |
#include <ncurses.h>
#include "RF24Mesh.h"
#include <RF24.h>
#include <RF24Network.h>
#include <iostream>
#include <string>
#include <stdlib.h>
#include <netinet/in.h>
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <string.h>
#include <netinet/in.h>
#include <pthread.h>
extern "C" {
#includ... |
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistributions ... |
/*
Module to keep track of current Teamspeak 3 status
Created it initially because I was pissed off with having to bind
different hotkeys to send different TS3 servers to chat.
Enhancements:
+ Filter incoming http URLs to refactor to ts3server URL protocol where applicable.
+ Teamspeak o... |
#include "SctpServer.h"
#include <time.h>
#include <unistd.h>
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
SctpServer::SctpServer()
{
_stopSctpServer = false;
}
SctpServer::SctpServer(bool ipCheck)
{
... |
// STD
#include <iostream>
#include <vector>
#include <fmt/format.h>
#include <opencv2/opencv.hpp>
#include "xregProgOptUtils.h"
#include "xregFCSVUtils.h"
#include "xregITKIOUtils.h"
#include "xregITKLabelUtils.h"
#include "xregLandmarkMapUtils.h"
#include "xregAnatCoordFrames.h"
#include "xregH5ProjDataIO.h"
#incl... |
// Copyright (c) 2011, <NAME> <<EMAIL>>
// All rights reserved.
//
// This file is a part of LibHand. LibHand is open-source software. You can
// redistribute it and/or modify it under the terms of the LibHand
// license. The LibHand license is the BSD license with an added clause that
// requires academic citation. Yo... |
#include <algorithm>
#include <iterator>
#include <optional>
#include <sstream>
#include <tuple>
#include "instructions.hpp"
using namespace codegen;
template<class> inline constexpr bool always_false_v = false;
std::monostate panic2() {
*(int*)0 = 0;
return std::monostate {};
}
string stringify_binop(Bina... |
/**************************************************************
*
* 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... |
//. OLES: implementation of Light Space Perspective Shadow Maps
//. note regarding D3DX:
//. I really dislike everything what comes without source and I don't normally use D3DX.
//. So please forgive me, if I duplicate some of its functionality
//.
//. following "include" section directly copied from PracticalP... |
/*
** Copyright (C) 1998-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 option) any later version.
**
** This program... |
#include<stdio.h>
#include<stdlib.h>
#include <time.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <vector>
#include <IL/il.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glew.h>
#include <GL/glut.h>
#include <iostream>
#endif
using namespace std;
//-----------------... |
#include "TerrainSimplex.h" // THE HEADER
int TerrainSimplex::raster_line( Vec2d dirHat, Vec2d pos0, Vec2d pos1, Vec2d * hits, int * boundaries, int * edges ){
double t0 = dirHat.dot( pos0 );
double t1 = dirHat.dot( pos1 );
double tspan = t1-t0;
double pa,pb,pc, invPa,invPb,invPc;
int i... |
/*server_one.cpp has functions used by server and client.*/
#include <cstdlib>
#include <iostream>
#include <cstdio>
#include <unistd.h>
#include <errno.h>
#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/wait.... |
/*********************************************************************/
/* */
/* Nagoya Institute of Technology, Aichi, Japan, */
/* Nara Institute of Science and Technology, Nara, Japan */
/* ... |
/*
* Copyright 2022 The Naja Authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
#include "scene.h"
#include "lib/vec.h"
void camera::init(v3 p, v3 l, i32 w, i32 h, f32 f, f32 ap, v2 t) {
wid = w;
hei = h;
pos = p;
time = t;
aperture = ap / 2.0f;
look = l;
fov = RADIANS(f);
ar = (f32)hei / wid;
update();
}
void camera::update() {
f32 half_w = tan(fov / 2.0f);
f32 half_h = ar * half_... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
/*
* code for managing absolutely... |
////////////////////////////////////////////////////////////////////////////////
/**
* @file main.cpp
* @date 2017-03-04
* @author <NAME> (<EMAIL>)
*
* @copyright
* 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
* th... |
/*
* Copyright 2008, 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 applica... |
/**
* \file filter_util.c
* \brief Filtering utility functions
* \author <NAME> <<EMAIL>>
*
* Copyright (c) 2012-2013, <NAME>
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under, at your option, the terms of the GNU General Public License as
* published b... |
// MIT License
//
// Copyright(c) 2020 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkCanvas.h"
#include "include/core/SkSpan.h"
#include "include/core/SkSurface.h"
#include "include/gpu/GrDirectContext.h"
#include "src/gpu/GrDirectCont... |
#include <iostream>
#include <stdio.h>
#include <stdint.h>
#include <vector>
#include <list>
#include <deque>
#include <set>
#include <utility>
#include <map>
#include <string>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <assert.h>
#include <algorithm>
using namespace::std;
int BW = 60;
void ... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2013 HPCC Systems®.
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... |
// Code Version 1. C++
#include <iostream>
#include <cmath>
#include <iomanip>
#include <fstream>
#include <math.h>
#include <stdio.h>
#include <sstream>
#include <string>
#include <unistd.h>
#include <array>
#include <vector>
#include <random>
#include <ctime>
#include<gsl/gsl_rng.h>
#include<gsl/gsl_randist.h>
us... |
//
// Copyright (c) 2009-2010 <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 c... |
/* <stig/code_gen/package.cc>
Implements <stig/code_gen/package.h>
Copyright 2010-2014 Tagged
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/lice... |
#include "raylet_client.h"
#include <inttypes.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include "ray/common/common_protocol.h"
#include "ray/ray... |
/*
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) 2008 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 app... |
//===--------- CopyPropagation.cpp - Remove redundant SSA copies. ---------===//
//
// 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... |
#include "dense_flow.h"
#include "opencv2/cudaarithm.hpp"
#include "opencv2/cudaoptflow.hpp"
#include "utils.h"
#include <sys/syscall.h>
#include <time.h>
#include <unistd.h>
bool DenseFlow::check_param() {
for (int i = 0; i < video_paths.size(); i++) {
if (!exists(video_paths[i])) {
cout << vi... |
#include "pbo.hpp"
bool PboProperty::read(std::istream& in) {
std::getline(in, key, '\0');
if (key.empty()) return false; //We tried to read the end element of the property list
std::getline(in, value, '\0');
return true;
}
void PboProperty::write(std::ostream& out) const {
out.write(key.c_str(), ... |
#include <cstdlib>
#include <GL/glut.h>
#include <utility>
#include <vector>
#include <tuple>
#include <cmath>
#include <set>
#include <fstream>
#include <algorithm>
#include <cstdlib>
#include <assert.h>
#include <iostream>
// dimensiunea ferestrei in pixeli
#define dim 300
using std::set;
using std::pair;
using st... |
/*
* Copyright (c) 2020, NVIDIA CORPORATION.
*
* 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 ... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter*/
UKF::UKF()
{
is_initialized_ = false;
// if this is false, laser measurements will be ignored (except during init)
use_... |
#include "Pch.h"
#include "GameCore.h"
#include "TeamPanel.h"
#include "Unit.h"
#include "Game.h"
#include "Language.h"
#include "GetNumberDialog.h"
#include "Team.h"
#include "SoundManager.h"
#include "GlobalGui.h"
#include "GameMessages.h"
#include "ResourceManager.h"
#include "PlayerInfo.h"
//----------------------... |
#include "qir-qrt.hpp"
#include <alloca.h>
#include <regex>
#include "config_file_parser.hpp"
#include "qcor_config.hpp"
#include "qrt.hpp"
#include "xacc.hpp"
#include "xacc_config.hpp"
#include "xacc_internal_compiler.hpp"
#include "xacc_service.hpp"
static const Result ResultZeroVal = false;
static const Result Re... |
/*
* 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 by the GROMACS development team.
* Copyright (c) 2018,2019,2020,2021, by the ... |
/******************************************************************************
** Copyright (C) 2008 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 20/07/08
**
** File: mr3d_bcu... |
/*
cppcryptfs : user-mode cryptographic virtual overlay filesystem.
Copyright (C) 2016-2020 <NAME> (github.com/bailey27/cppcryptfs)
cppcryptfs is based on the design of gocryptfs (github.com/rfjakob/gocryptfs)
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a cop... |
#include "data_loaders/DataLoaderDeepVoxels.h"
#include <limits>
//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;
//my stuff
#include "data_loaders/DataTransformer.h"
... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
// Copyright 2010 The Kyua Authors.
// 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 conditio... |
/*
Copyright 2017. All rights reserved.
Computer Vision Group, Visual Computing Institute
RWTH Aachen University, Germany
This file is part of the rwth_mot framework.
Authors: <NAME> (osep -at- vision.rwth-aachen.de)
rwth_mot framework is free software; you can redistribute it and/or modify it under the
terms of the ... |
/******************************************************************************
* *
* Copyright 2018 <NAME> *
* *
* Licensed un... |
//$Id: myReadOutCorbo.cpp,v 1.3 2007/06/04 13:11:25 cvsdream Exp $
/*****************************************
myDaq.cpp
---------
Main DAQ program.
<NAME> / INFN Cagliari
Version 0.1: 24/5/2001
Version 0.5: 04/6/2001
Version 0.6: 08/6/2001
*****************************************/
/**************... |
/*
* Copyright (c) 2003-2019 <NAME> <<EMAIL>>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
/// \file PWCharPool.cpp
//----------... |
// Copyright 2013 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 appl... |
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pubkey.h"
#include "util.h"
#include "key.h"
#include <openssl/ecdsa.h>
#include <openssl/rand.h>
#include <openssl... |
#include "DiscoParty.h"
#include <vector>
#include <string>
#include <iostream>
using namespace std;
DiscoParty::DiscoParty() = default;
DiscoParty::~DiscoParty() = default;
void DiscoParty::Init() {
// Position camera
GetSceneCamera()->SetPosition(glm::vec3(dance_floor_width / 2, wall_height / 2, dance_... |
//
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2013 Project Chrono
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file at the top level of the distribution
// and at http://projectchrono.org/license-chrono.txt.
//
// D... |
/*
* pos.cpp
*
* Created on: Feb 1, 2011
* Author: james
*/
#include <cassert>
#include <cstdlib>
#include <cstring>
#include "defs.h"
#include "globals.h"
const unsigned int CASTLE_WK = 1;
const unsigned int CASTLE_WQ = 2;
const unsigned int CASTLE_BK = 4;
const unsigned int CASTLE_BQ = 8;... |
/* 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 <windows.h>
// Needed for CreateToolhelp32Snapshot
#include <tlhelp32.h>
#ifndef ONLY_SERVICE_LAUNCHING
... |
/*
* Copyright (c) 2010-2012 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the ... |
#include "benchmark.h"
#ifdef _MSC_VER
#include <random>
#else
#include <tr1/random>
#endif
const int MaxCUDPPElements = 65535 * 512;
// Need to sort fewer elements as the number of values increases, to fit
// everything in video memory.
#ifdef _DEBUG
const int ElementCounts[7] = {
35000000,
1<< 19,
1<< 19,
1<... |
#include "SimsalaBimPCH.h"
#include "SimsalaBimFunctionLibrary.h"
#include "SimsalaBimModule.h"
#include "Engine.h"
#include "Base64.h"
#include "Http.h"
#include "RuntimeMeshComponent.h"
#include <limits>
#include <algorithm>
uint64 USimsalaBimFunctionLibrary::SerializerOID;
FString USimsalaBimFunctionLibrary::C... |
#include "chip8.h"
#include <cstdint>
#include <stdexcept>
#include <array>
#include <algorithm>
#include <string_view>
#include <iostream>
#include <iomanip>
constexpr auto FONT_STRIDE = 5;
constexpr auto FONT_ADDRESS = 0x50;
const std::array<uint8_t, FONT_STRIDE * 16> fontset = {
0xF0, 0x90, 0x90, 0x90, 0xF0, /... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2021 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
#include "model.hpp"
ADSEModel::ADSEModel(Mapping* p_mapping, Config* _cfg)
: apps (p_mapping->getApplications()),
platform (p_mapping->getPlatform()),
mapping (p_mapping),
cfg(_cfg),
next (*this, apps->n_SDFActors()+platform->nodes(), 0,
apps->n_SDFA... |
//===-- DiffEngine.cpp - Structural file comparison -----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Copyright (c) 2020 The Wagerr developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <betting/bet_common.h>
#include <betting/bet_tx.h>
#include <betting/bet_db.h>
#include <betting/oracles.h>
#include <main.... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2012, <NAME>, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
/**
* @file src/mods/PreliminaryFunctions.cpp
* @date 22/03/2018
* @author ATroja
*/
#include "PF.h"
//#include "../include/FileUtils.h"
#include "gsl/gsl_math.h"
#include "gsl/gsl_deriv.h"
#include "gsl/gsl_spline.h"
#include <memory>
void GammaC (std::complex<double> z, std::complex<double>& result) {
dou... |
#include<iostream>
#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<netdb.h>
#include<sys/uio.h>
#include<unistd.h>
#include<fcntl.h>
#include<unistd.h>
#include<sys/syscall.h>
#include<string.h>
#include<stdio.h>
#include <chrono>
#include <fstream>
#include "commands.h"
#include <vector>
#... |
//
// Created by <NAME> on 6/14/18.
//
#include "bam_handler.h"
BAM_handler::BAM_handler(string path) {
this->hts_file = sam_open(path.c_str(), "r");
// Used to check if valid bam file
if(this->hts_file == NULL){
cerr<<"INVALID BAM FILE. PLEASE CHECK IF PATH IS CORRECT: "<<path<<endl;
exit ... |
#include <GLFW/glfw3.h>
#include <glad/glad.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb-master/stb_image.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "ReviewCamera.h"
#include "ReviewShader.h"
#include <vector>
#include <map>
#include <iostream>
usin... |
/*
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 under the Apache License, Version 2.0 (the
"License"); you may not use this f... |
#define _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#include <iostream>
#include <vector>
#include <array>
#include <random>
#include <thread>
#include <atomic>
#include <glm/glm.hpp>
#include <glm/ext/matrix_transform.hpp> // glm::translate, glm::rotate, glm::scale
#define TINYOBJLOADER_IMPLEMENTATION
#include <t... |
///////////////////////////////////////////////////////////
// Contributing authors : <NAME>
//
// Last Modified: Apr 3, 2013
///////////////////////////////////////////////////////////
//
// Declerations for data structures that are related to
// simple physics concepts:
// --> Axis
// --> AxisBundle: co... |
#include "load_save_png.hpp"
#include "rgbe.hpp"
#include <iostream>
#include <functional>
#include <random>
#include <algorithm>
void save_tone_mapped_png(std::string const &filename, glm::uvec2 size, std::vector< glm::vec3 > const &data) {
std::vector< glm::u8vec4 > mapped;
mapped.reserve(data.size());
for (auto... |
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "markermap.h"
#include <fstream>
#include <map>
using namespace std;
void getRTfromMatrix44 ( const cv::Mat &M, cv::Mat &R,cv::Mat &T ) {
assert ( M.cols==M.rows && M.cols==4 );
assert ( M.type() ==CV_32F || M.type() ==... |
// This is brcv/shp/dbsk2d/algo/dbsk2d_ishock_gap_transform.cxx
//:
// \file
#include "dbsk2d_ishock_gap_transform.h"
#include "../dbsk2d_transform_manager.h"
#include "../dbsk2d_bnd_utils.h"
#include <vgl/vgl_line_2d.h>
#include "../../dbgl/algo/dbgl_eulerspiral.h"
#include <vgl/algo/vgl_fit_lines_2d.h>
#include <vg... |
#include "math3d.h"
#include "string.h" // for memcpy
//---------------------------------------------------------------------------
// vectors
//---------------------------------------------------------------------------
const vector3d_t vector3d_t::kZero(0,0,0);
const vector3d_t vector3d_t::kOrigin(0,0,0);
... |
/*
* Copyright (C) 2017, DFKI GmbH
* 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 con... |
// Copyright (c) 2011 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/shell_integration.h"
#include <fcntl.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>... |
/* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
© Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten
Forschung e.V. All rights reserved.
1. INTRODUCTION
The Fraunhofer FDK AAC Codec Lib... |
/*
Implementation of de Bruijn sequences in Gecode.
This model is discussed in the blog post
"de Bruijn sequences in Gecode (and other systems)"
http://www.hakank.org/constraint_programming_blog/2009/03/de_bruijn_sequences_in_gecode.html
This model can be used for both
* classic sequences, i.e. the seq... |
// Copyright (c) 2019 PaddlePaddle 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 ... |
#include "igafem.h"
#include <iostream>
#include <array>
double** igafem::init2DArray(int x, int y)
{
double **array = (double **)malloc(x * sizeof(double *));
int c;
for(c = 0; c < x; c++)
{
array[c] = (double*)malloc(y * sizeof(double));
}
int d;
return array;
}
void igafem::f... |
#include <windows.h>
#include <malloc.h>
#include <stddef.h>
#include <process.h>
#define _DBDBG32_
#include "dbwin32.h"
ProcessList::ProcessList() : GrowableList(sizeof(ProcessInfo))
{
}
ProcessList::~ProcessList()
{
}
BOOL ProcessList::IsEqual(void *pv1, void *pv2)
{
return(!memcmp(pv1, pv2, size... |
#include <android-base/logging.h>
#include <android/native_window.h>
#include <benchmark/benchmark.h>
#include <binder/IPCThreadState.h>
#include <binder/IServiceManager.h>
#include <dvr/dvr_api.h>
#include <gui/BufferItem.h>
#include <gui/BufferItemConsumer.h>
#include <gui/Surface.h>
#include <private/dvr/epoll_file_... |
#include <stdio.h> /* for printf */
#include <stdlib.h> /* for exit */
#include <getopt.h>
#include <string.h>
#include <fstream>
#include <iostream>
#include <optional>
#include <stdlib.h>
#include <chrono>
#include <cmath>
#include <sys/time.h> /* for rusage */
#include <sys/resource.h> /* for rusage */
#in... |
// $Revision$
#if HAVE_CONFIG_H
#include "config.h"
#endif
// C includes
#include <getopt.h>
// STL includes
#include <map>
#include <string>
#include <vector>
// AMOS includes
#include "Contig_AMOS.hh"
#include "BankStream_AMOS.hh"
#include "Bank_AMOS.hh"
#include "Layout_AMOS.hh"
#include "Fragment_AMOS.hh"
#incl... |
// SPDX-License-Identifier: BSL-1.0
#include <unistd.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <time.h>
#include <vector>
#include <string>
typedef bool _Bool;
#include "termpaint.h"
#include "termpaintx.h"
#include "termpaint_input.h"
#include "termpaintx_ttyrescue... |
/*
Copyright (C) 2017-2018 <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, copy, modify, merge, publish, distr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.