text stringlengths 8.71k 38.4k |
|---|
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 <NAME> <<EMAIL>>
//
// 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 Soft... |
// +++++++++++++++++++++++
// <NAME> @ 2015
// +++++++++++++++++++++++
#include "imgprocess.h"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/contrib/contrib.hpp"
#include <iostream>
#include <fstream>
#include <string... |
/************************************************************************/
/* */
/* MAME - Discrete sound system emulation library */
/* */
/* Written by <NAME... |
#include "WSviewer.h"
void* gui(void* world)
{
ws_and_con_and_log* w = (ws_and_con_and_log*)world;
WSV* wsv = new WSV(w->ws, w->con, w->log);
wsv->run();
return NULL;
}
WSV::WSV(WorldState* world, Connection* c, Log* l)
{
con = c;
ws = world;
log = l;
sws = new ServerWS(c);
hasMou... |
/*
Delocto Chess Engine
Copyright (c) 2018-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 without limitation the rights
to use, copy,... |
int/**/
ZF,KeTp
,
FFf, XEQo
,zd//Ib
, MG4a
,/*Cwb*/ zp
,
d10
, G7OQl/*hh*/, Hr //5
,//
dT/*U*/
,BxZ
, RkY3Dv8 ,WYnd, Hed,hpZ,AE39
,//ee
ASBb,xCCGPj
,/*WS*/ AGmE,//e
yij9,
M,
HuJn ,LkkNL ,ncr,KQM ,/*tT*/iKz, rgB0
, KL , l3b,jr
, /*6r*/uQbMVV,HQ , zv , Pqa, b7Y, BTwL
,
Sp, BY
/*s*/,
qma2 ... |
/*
* Copyright (c) 2017, The Regents of the University of California (Regents).
* 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 a... |
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <string>
using namespace std;
void convertIntToString(string & word, int (&board)[9][9], int xBorder,int yBorder);
bool isAllEqual(int wp[4]);
char reverse(char input);
char moveRandom(int arr[][9],int xBorder,int yBorder,int number);... |
#pragma once
#include "constants.hpp"
#include <cinttypes>
#include <libembeddedhal/context.hpp>
#include <libembeddedhal/enum.hpp>
#include <libxbitset/bitset.hpp>
namespace embed::lpc40xx {
void initialize_platform();
}
namespace embed::lpc40xx::internal {
struct system_controller_t
{
/// Offset: 0x000 (R/W) ... |
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
int
//9t
nw
, /*kYS*/ira , yDKq7, TP, G3ME8 , NK7UF ,
T,/*7*/eg ,
Fj//R
,
M4u , ckr,Putt , irz, nE , C7, IES,j5Y ,
Tt4 , Ir//J
,GGSp
,JkM/*jX*/,
FrF,sUN,
/*a*/aJSQ,nj ,
GZ
, J,V4gJ
, MC8,Sx ,oI/*A6*/,
GbEG21N,e/*4N*/ , j//Ldv
, P7
,AeL ,
k5//Lxcp
, mZCLth,
v2U ,
a2//L
,qUCuY,
QbQ ;
void f_f... |
/*-------------------------------------------------------------------------------------*/
/* NOMAD - Nonlinear Optimization by Mesh Adaptive Direct search - version 3.7.1 */
/* */
/* Copyright (C) 2001-2015 <NAME> - the... |
#include "CAnimSetLoader.h"
#include "CAnimEventLoader.h"
#include "Core/GameProject/CResourceStore.h"
#include <Common/Log.h>
CAnimSetLoader::CAnimSetLoader()
{
}
CAnimSet* CAnimSetLoader::LoadCorruptionCHAR(IInputStream& rCHAR)
{
pSet->mCharacters.emplace_back( SSetCharacter() );;
SSetCharacter& rChar = pSe... |
/*
Modified by <NAME> 2017 to work in C++.
We also modify the code to accept an argument for number of interdependencies, which must be less than the number of demand nodes.
Two additional values are added to the objective line: the number of interdependencies, and 'a' or 'n' to signify either arcs or nodes as parents.... |
int T3Z6//
,
ISQ
,pf,L1eT
, F
, iDR ,LNm
,MRxkW,t0MaB ,Mqfd7X,
i0//V
,zWGJb
,
aZt
,rryn//S
,
dvCa, Zq
,//O
//C3
J6XWe
,il
/*7*/,sQ
, //K
MnU
,
CKxf ,eSEe/**/, Pk//FZb
,
//Ac
azA ,
HHA , LnXm,ju727d
,jFp ,
BHa ,qezRp,
n
,Jjf ,Iq9N , p
, qXU, T4 ,
v0L ,
s72;
void f_f0(){
int
HtT;volatile in... |
#include "annotate.hpp"
po::variables_map parse_annotate_command(po::parsed_options parsed) {
uint32_t num_cores = tbb::task_scheduler_init::default_num_threads();
std::string num_threads_message = "Number of threads to use when possible [DEFAULT uses all available cores, " + std::to_string(num_cor... |
// 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... |
/*
* Copyright (c) 2017, Intel Corporation
*
* 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, ... |
#include "vtkDICOMValue.h"
#include "vtkDICOMItem.h"
#include "vtkDICOMMetaData.h"
#include "vtkSmartPointer.h"
#include <sstream>
#include <string.h>
#include <stdlib.h>
// macro for performing tests
#define TestAssert(t) \
if (!(t)) \
{ \
cout << exename << ": Assertion Failed: " << #t << "\n"; \
cout << __FI... |
#include "main_engine/utils/settings.h"
void read(const cv::FileNode& node, std::string& value, const char* default_value)
{
if(!node[default_value].empty())
node[default_value] >> value;
}
void read(const cv::FileNode& node, vector<vector< pair<int, int> > >& termPair)
{
cv::FileNodeIterator it = node.begin... |
/**
* Copyright (c) 2017-present, Facebook, 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 ... |
/*
* Copyright (c) 2016 <NAME>
*
* MIT License, see LICENSE file.
*/
#include "keras_model.h"
#include <cmath>
#include <fstream>
#include <limits>
#include <stdio.h>
#include <utility>
bool ReadUnsignedInt(std::ifstream* file, unsigned int* i) {
KASSERT(file, "Invalid file stream");
KASSERT(i, "Invalid ... |
//
// main.cpp
// basicCube
//
// Created by <NAME> on 23/10/12.
// Copyright (c) 2012 University Of Crete & FORTH. All rights reserved.
//
//Implementing basicGUI with SDL2 + ImGUI + OpenGL
//Credits for the Music: http://www.bensound.com/royalty-free-music
//basic Input-Output stream
#include <ios... |
#include<fstream>
#include<iostream>
#include<string>
#include<regex>
#include<map>
#include"duplicater.h"
using namespace std;
fstream input;
fstream output;
string edge[1000][1000];
int total_nets = 1,drawed=0;
vector <int> nets_position;
map <string, string> values;
int start = 50;
// resistor 5
// inductor 8
voi... |
/*spi_node spi communication between raspberry pi & stm32 nucleo*/
#include <ros/ros.h>
#include "origarm_ros/Command_Pre_Open.h"
#include "origarm_ros/Command_ABL.h"
#include "origarm_ros/Seg_ABL.h"
#include "origarm_ros/Seg_Pre.h"
#include "origarm_ros/Valve.h"
#include "origarm_ros/Sensor.h"
#include "origarm_ros/S... |
//Bennygmate
// Convolution layers
#include "Convolution.h"
neurons::Conv_1d::Conv_1d(const Shape & input_shape, const Shape & weights_shape, lint stride) : m_input_sh{ input_shape }, m_weights_sh{ weights_shape }, m_stride{ stride } {
if (input_shape.dim() < 3 || weights_shape.dim() < 3) {
throw std::inv... |
/* ************************************************************************
* Copyright (c) 2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "cblas_interface.h"
#include "clientcommon.hpp"
#include "norm.hpp"
#include "rocsolver.hpp"
#include "r... |
//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-2022 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
//////////////////////////////////////////////////////////////////////////
// String-To-Words
void TStrParser::DocStrToWIdV(const TStr& _DocStr, TIntV& WordIdV, const bool& Stemm) {
TStr DocStr = _DocStr.GetUc(); // to upper case
TStrV WordV; DocStr.SplitOnWs(WordV); int WordN = WordV.Len();
WordIdV.Reserv... |
/** \file
* \brief PCX - ZSoft Picture
*
* See Copyright Notice in im_lib.h
*/
#include "im_format.h"
#include "im_format_all.h"
#include "im_util.h"
#include "im_counter.h"
#include "im_binfile.h"
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#define PCX_ID 0x0A
/* PCX file header */
/* 1 Id... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2022, WWIV Software Services */
/* ... |
/*
* trconnection.cpp
* tr-auth-server
*
* Created by <NAME> on 30.05.11.
* Copyright 2011 Overheat. All rights reserved.
*
*/
//TODO: on_accept
//TODO: on_read
//TODO: on_write
//TODO: on_disconnect
//TODO: on_accept(): 2nd handshake
//TODO: on_accept(): DH KeyExchange
//TODO: on_accept(): 3rd handshake
//F... |
#include "VhsmStorage.h"
#include <iostream>
#include <fstream>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <osrng.h>
#include <integer.h>
#include <pwdbased.h>
#include <aes.h>
#include <gcm.h>
#include <base64.h>
#define MAX_USER_KEY_LENGTH 3072
bool FSUtils::getStat(const std::string ... |
#include <portability.h>
/*************************************************************************
* PLEASE SEE THE FILE "license.txt" (INCLUDED WITH THIS SOFTWARE PACKAGE)
* FOR LICENSE AND COPYRIGHT INFORMATION.
*************************************************************************/
/***********************... |
#include "dcmtk/dcmdata/dcpxitem.h"
#include "dcmtk/dcmdata/dcpixseq.h"
#include <trice_int.h>
/** Populate the Dataset from Json
Private tag support. Dcmtk supports this only halfway
**/
//**create lower short based on the location of the private tag reservation
static u_int16_t createLowerShort(u_int8_t h... |
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2018 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the Licens... |
/*
* Copyright (c) 2016-2018, NVIDIA 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 ... |
#include "Default.h"
#include "../Uncertainties/Combine.h"
#include "../Selectors/Selector.h"
#include "../Downscalers/Downscaler.h"
#include "../Correctors/Corrector.h"
#include "../Continuous/Continuous.h"
#include "../Discretes/Discrete.h"
#include "../Averagers/Averager.h"
#include "../Averagers/Quantile.h"
#includ... |
#include "GLViewer.hpp"
#include <cuda_gl_interop.h>
GLchar* MESH_VERTEX_SHADER =
"#version 330 core\n"
"layout(location = 0) in vec3 in_Vertex;\n"
"layout(location = 1) in float in_dist;\n"
"uniform mat4 u_mvpMatrix;\n"
"uniform vec3 u_color;\n"
"out vec3 b_color;\n"
"out float distance;\n"
"void main() {\n"
" ... |
#include "InstrumentBytecode.h"
// #include <ClassHierarchy.hpp>
#include <cassert>
#include <iostream>
#include <utility>
using namespace std;
using namespace jnif;
using namespace jnif::model;
ClassHierarchy classHierarchy;
class ClassNotLoadedException {
public:
ClassNotLoadedException(const string &classNa... |
// jhcAliaDir.cpp : directive states what sort of thing to do in ALIA system
//
// Written by <NAME>, <EMAIL>
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2017-2020 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use ... |
/**********************************************************************************
* MIT License *
* *
* Copyright (c) 2021 <NAME> <<EMAIL>> ... |
// core/photnshooter.cpp*
#include "stdafx.h"
#include "scene.h"
#include "montecarlo.h"
#include "sampler.h"
#include "progressreporter.h"
#include "intersection.h"
#include "paramset.h"
#include "camera.h"
#include "spectrum.h"
#include "photonshooter.h"
// static Spectrum EPhoton(KdTree<Photon> *map, int count, in... |
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <unordered_map>
#include <queue>
#include <stack>
///Infinity value (from exercises)
int const INF= 0x3f3f3f3f;
const char* fileName = "input2.txt";
using string = std::string;
///Stored info about lines of every bus
using BusMap = ... |
#include "Instruction.h"
#include "p2p/Serialize.h"
#include <cassert>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using namespace Equity;
Instruction::Description const Instruction::DESCRIPTIONS[Instruction::NUMBER_OF_INSTRUCTIONS] =
{
{ OP_0, "0", 0, true }... |
//===-- llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp --*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------------------------------... |
/*****************************************************************************
*
* Freescale Confidential Proprietary
*
* Copyright (c) 2016 Freescale Semiconductor;
* All Rights Reserved
*
*****************************************************************************
*
* THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" A... |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 <NAME>. All rights reserved. *... |
#include <unordered_map> //std::unordered_map
#include <iostream> //std::cout
#include <fstream> //std::ofstream
#include <sstream> //std::stringstream
#include <string> //std::string
#include <set> //std::set
#include <vector> //std::vector
#include <cmath> //std::ceil
#include <algorithm> //std::count
#include <chron... |
/*
Pack/UnPack Library for UIUC Parallel Programming Lab
<NAME>, <EMAIL>, 4/5/2000
This library allows you to easily pack an array, structure,
or object into a memory buffer or disk file, and then read
the object back later. The library will also handle translating
between different machine representations.
This fi... |
/*
* $Id: sample.cpp,v 1.23 2006/11/01 23:33:56 nathanst Exp $
*
* sample.cpp
* hog
*
* Created by <NAME> on 5/31/05.
* Copyright 2005 <NAME>, University of Alberta. All rights reserved.
*
* This file is part of HOG.
*
* HOG is free software; you can redistribute it and/or modify
* it under the terms of... |
//////////////////////////////////////////////////////////////////////////////
//
// CmTime.cpp: Implementation of CmTime classes
//
//////////////////////////////////////////////////////////////////////////////
//
// Author: <NAME>
// website: http://wegalink.eu
//
//////////////////////////////////////////////... |
#include "ReconstructionSettings.hpp"
// Class ReconstructionSettings
ReconstructionSettings::ReconstructionSettings() {
GenerateOperationDistributions();
};
ReconstructionSettings::ReconstructionSettings(const std::string& settings_file) {
// Iterate over the lines in the input file.
std::ifstream inp... |
#include <vector>
#include <cmath>
#include "helper.h"
typedef Vec3<float> ColorRGB;
/*
types
spheres = 1
cylinder = 2
walls = 3
*/
float R=3;
float angle_x=0;
float angle_y=0;
float angle_sphere=0;
float angle_lights=0;
Ray::Ray(){
origin = Vec3<float>(0,0,0);
direction = Vec3<float>(0,0,0);
}
Ray::Ray(Ve... |
int O7 ,Ck,S3
,
jS , Cy,oKOzR , D3y8 ,
Khtr
,Zg7kS ,o0t
, /*3R63*/
IA, EG,b,
PAdI/*T84*/,skk ,WL, /*U8m*/VAFR,//1
exAxef
, Bm//G
,//m
X1DwBg ,
bV
, nlT/*C3A*/,Sab, sMQjy
,
q5/**/, d9gQ//C3y
,/**/ wz8 , dh,//Cqk
kn,
fyB,Vs96c ,
J
,Mr4 ,nvqIy ,D9Wde,yS
,TO,hmJ , s7 ,
qlg ,/*9lI*/C48 ,gpl,bUhH,
/*Cwp... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <map>
#include <tool/shader.h>
#include <tool/camera.h>
#define STB_IMAGE_IMPLEMENTATION
#include <tool/stb_image.h>
#include <tool/gui.h>
#include <tool/mesh.h>
#include <tool/model.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transfo... |
#include <iostream>
#include <map>
#include <unordered_set>
#include <set>
#include <utility>
#include <vector>
#include <fstream>
#include <cassert>
#include "utils.h"
#include "pangenome/pangraph.h"
#include "pangenome/pannode.h"
#include "pangenome/panread.h"
#include "de_bruijn/graph.h"
#include "minihit.h"
using... |
/**
* \file BrlyMapgenLocmap.cpp
* Brly operation processor - (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 11 Jan 2021
*/
// IP header --- ABOVE
#ifdef BRLYCMBD
#include <Brlycmbd.h>
#else
#include <Brlyopd.h>
#endif
#include "BrlyMap... |
/*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* 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... |
#include <cstdio>
#include <thread>
#include <opencv2/opencv.hpp>
#include <yaml-cpp/yaml.h>
#include "lane_detector.hpp"
#include "common.hpp"
using namespace std;
using namespace cv;
double outer_threshold_h_min, outer_threshold_s_min, outer_threshold_v_min;
double outer_threshold_h_max, outer_threshold_s_max, out... |
#include "vpu_api_private.h"
#include "vpu_api.h"
//#include <cutils/properties.h>
#include "ctype.h"
#define LOG_TAG "vpu_api_private"
#include <utils/Log.h>
#include <utils/List.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#define _VPU_API_PRIVATE_DEBUG
#ifdef _VPU_API_PRIVATE_DE... |
#include "le_core/le_core.h"
#include "le_core/hash_util.h" // fixme-we shouldn't do that.
#include "le_renderer/le_renderer.h"
#include "le_backend_vk/le_backend_vk.h"
#include "le_swapchain_vk/le_swapchain_vk.h"
#include <iostream>
#include <iomanip>
#include <chrono>
#include <vector>
#include "assert.h"
#include... |
// STL
#include <cstdlib>
#include <iostream>
// GLEW
#include <GL/glew.h>
// GLUT
#include <GL/freeglut.h>
// GLM
#include <glm/gtc/matrix_inverse.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
// SOIL
#include <SOIL/SOIL.h>
// Internal
#include "GLSLShader.hpp"
#include "Obj.hpp"
#defin... |
/*
Author: <NAME>, <NAME>
Date: Wed Oct 17 14:23:29 PDT 2007
*/
//
// BEDOPS
// Copyright (C) 2011-2015 <NAME>, <NAME> and <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 F... |
/***************************************************************************
*
* $Id: StFgtPedStatQA.cxx,v 1.4 2014/07/25 18:46:00 xuanli Exp $
* Author: <NAME>, Jan 2012
*
***************************************************************************
*
* Description: See header
*
********************************... |
// LucyBot.cpp : Defines the entry point for the console application.
//
//Built with MSVSC17
#include "stdafx.h" //req by VS17
#include "sleepy_discord/websocketpp_websocket.h"
#include "sleepy_discord/voice_connection.h"
#include "Ref.h"
#include <chrono>
#include <random>
#include <iostream>
#include <fstream>
t... |
#include"neuron_tools.h"
QList <ImageMarker> LandmarkListQList_ImageMarker(LandmarkList marker_l)
{
QList <ImageMarker> markers;
for(V3DLONG i=0;i<marker_l.size();i++)
{
ImageMarker temp;
temp.x=marker_l.at(i).x;
temp.y=marker_l.at(i).y;
temp.z=marker_l.at(i).z;
temp.... |
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <gtest/gtest.h>
#include "pico-ps/common/core.h"
#include "pico-ps/storage/DCPmemory.h"
#include "pico-ps/test/TestUtils.h"
namespace paradigm4 {
namespace pico {
namespace ps {
typedef PmemHashMapShardStorage<TestKey,
TestP... |
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... |
#include "main.h"
#include "timer.h"
#include "ball.h"
#include "floor.h"
#include "trampoline.h"
using namespace std;
GLMatrices Matrices;
GLuint programID;
GLFWwindow *window;
/**************************
* Customizable functions *
**************************/
typedef struct initPos{
float x,y;
} initPos;
... |
/*
This file is part of the package TMR for adaptive mesh refinement.
Copyright (C) 2015 Georgia Tech Research Corporation.
Additional copyright (C) 2015 <NAME>.
All rights reserved.
TMR is licensed under the Apache License, Version 2.0 (the "License");
you may not use this software except in compliance w... |
//// LSDjSynthedit.cpp
//// HertzDevil 2015
//// MIT License.
//// Edit By Pegmode
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <string> // C++ stoi
#include "LSDjSynth.hpp"
using namespace std;
// code begins here
#define max(x, y) ((x) > (y) ? (x) : (y))
#define min(x, y) ((x) ... |
#include "solvers/csdsolvertrafofpsh2d.hpp"
#include "problems/icru.hpp"
CSDSolverTrafoFPSH2D::CSDSolverTrafoFPSH2D( Config* settings ) : SNSolver( settings ) {
_dose = std::vector<double>( _settings->GetNCells(), 0.0 );
// Set angle and energies
_energies = Vector( _nEnergies, 0.0 ); // equidistant
... |
// Palanteer viewer
// Copyright (C) 2021, <NAME> <<EMAIL>>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version... |
// Copyright (C) Bitquant Research Laboratories (Asia) Limited
// released under terms of the GPLv3+ License
const char *SP_SUFFIX = "20160718";
#include <cstddef>
#include <string.h>
#include <iostream>
#include <vector>
template <typename T>
class FStore {
T _func;
public:
FStore() {
_func = nul... |
#include "index.h"
#include <aruco/aruco.h>
#include <aruco/cvdrawingutils.h>
#include <opencv2/core/core.hpp>
#include "pcl/visualization/pcl_visualizer.h"
#define ELEV 0.135
struct KeyPt{
PointT pt;
int id;
};
pcl::PointCloud<PointT>::Ptr FilterBoundary(const pcl::PointCloud<PointT>::Ptr cloud);
pcl:... |
/* Copyright (c) 2013, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (including... |
#include <sys/kernel.h>
#include <iostream.h>
#include <signal.h>
#include <sys/name.h>
#define DEBUG 0
#include "YAPOCControl.h"
#include "YARPPort.h"
/* pf - added NO_BUFFERS option to ensure messages don't get dropped
* by the communications library if they are not being read fast
* enough */
YARPInputPortOf<YAP... |
/*
* VHDL code generation for expressions.
*
* Copyright (C) 2008-2009 <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... |
#pragma once
#include <cstdint>
#ifndef WM_NULL
constexpr int32_t WM_NULL = 0x0000;
constexpr int32_t WM_CREATE = 0x0001;
constexpr int32_t WM_DESTROY = 0x0002;
constexpr int32_t WM_MOVE = 0x0003;
// not defined 0x0004
constexpr int32_t WM_SIZE = 0x0005;
constexpr int32_t WM_ACTIVATE = 0x0006;
constexpr int32_t WM_SE... |
// Copyright <NAME> 2016.
// https://github.com/CrikeeIP/MinimalHomotopy
// Distributed under the MIT Software License (X11 licnse).
// (See accompanying file LICENSE)
#include <iostream>
#include <assert.h>
#include "..\Geometry\include\geometry\geometry2d.h"
#include "graphs.h"
#include "homotopy_area_cal... |
#include "memory.hpp"
#include "symbolic.hpp"
#include "exception.hpp"
#include <cassert>
#include <iostream>
#include <string>
#include <cstring>
#include <sstream>
#include <fstream>
using std::cout;
using std::endl;
using std::string;
using std::strlen;
namespace test{
namespace hash{
unsigne... |
#include "lab_m1/game/Game.h"
#include "lab_m1/game/transform2D.h"
#include <vector>
#include <string>
#include <iostream>
#include "core/engine.h"
#include "utils/gl_utils.h"
using namespace std;
using namespace m1;
Game::Game()
{
InitPlayerAttributes();
InitEnemiesAttributes();
plane = factory::createCube("pl... |
// todo: SinusoidalSynthesizer to RAPT to make it available here
using namespace RAPT;
// convenience function:
std::vector<double> synthesizeSinusoidal(
const RAPT::rsSinusoidalModel<double>& model, double sampleRate, double fadeTime)
{
std::cout << "Synthesizing sinusoidal model with " << model.getNumPartials(... |
#include <iostream>
#include <math.h>
#include <cmath>
#include <vector>
#include <array>
#include <fstream>
#define check(x) if (isnan(x) || isinf(x) ) std::cout << x << " diverges" << '\n'
constexpr auto PI = 3.14159265;
std::vector<double> Current_Iteration;
std::vector<double> Previous_Iteration;
double Differe... |
#include "Kinematic.h"
#include <Arduino.h>
#include <math.h>
#include "Logger.h"
const unsigned int Kinematic::OK = 0;
const unsigned int Kinematic::OUT_OF_RANGE = 1;
namespace {
Logger logger = Logger("Kinematic");
}
void log(String text) {
logger.info(text);
}
Kinematic::Kinematic(float geometry[5]... |
#include "Analyzer.h"
#include <cmath>
#include <assert.h>
//#include "stdio.h"
//#include <ctime>
//#include <cstdlib>
#include "main.h"
Analyzer::Analyzer()
{
m_ticker = 0;
srand (time(NULL));
}
Analyzer::~Analyzer()
{
}
void Analyzer::setRelatedClassPara(CSVFile *pCsvFile,Constraints* pConstraints){
... |
#include "AFE-Sites-Generator.h"
AFESitesGenerator::AFESitesGenerator() {}
const String AFESitesGenerator::generateHeader(uint8_t redirect) {
String page = "<!doctype html>"
"<html lang=\"en\">"
"<head>"
"<meta charset=\"utf-8\">";
if (redirect > 0) {
page += ... |
/* goombasav.c - functions to handle Goomba / Goomba Color SRAM
Copyright (C) 2014-2017 libertyernie
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 opti... |
// Copyright 2012 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... |
//==- UninitializedValues.cpp - Find Uninitialized Values -------*- C++ --*-==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <armadillo>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <mutex>
#include <signal.h>
#include <thread>
#include <time.h>
#include <unistd.h>
#include "SDL/SDL.h"
#include "astar.h"
#include "chili_landmarks.h"
#include "draw.h"
#include "ipcdb.h"
#include "mathfun.h"
#i... |
// automatically converted
#include "Sound.hpp"
#include "Client.hpp"
#include "common/Logging.hpp"
#include "common/Parts.hpp"
#include "common/PhysFSExt.hpp"
#include "common/misc/PortUtils.hpp"
#include "common/misc/PortUtilsSoldat.hpp"
#include "shared/Constants.hpp"
#include "shared/Cvar.hpp"
#include "shared/mec... |
//===-- PPCInstrInfo.cpp - PowerPC Instruction Information ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* This is the source code of SpecNet project
* It is licensed under MIT License.
*
* Copyright (c) <NAME>
* feel free to contact me: <EMAIL>
*/
#include <iostream>
#include "i/ilibclass.h"
#include <memory>
#if defined(Linux)
#include "depend/system/linux/linuxsystem.h"
#include <signal.h>
#include <th... |
// Copyright (c) 2018 Dr. <NAME> and <NAME>
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#include <algorithm>
#include <iostream>
#include <iterator>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <cassert>
#include <cctype>
#include <c... |
#include "match_features.h"
#include "geometry_queries.h"
#include "read_obj.h"
#include <iostream>
#include <set>
#include <list>
#include <cfloat>
bool inverts_incident_tets(int vIndex,
const Vec3f& newPos,
const TetMesh& mesh,
const ... |
//===- BogusControlFlow.cpp - BogusControlFlow Obfuscation pass-------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------... |
/*************************************************************************************
This file is a part of CrashRpt library.
Copyright (c) 2003-2013 The CrashRpt project authors. All Rights Reserved.
Use of this source code is governed by a BSD-style license
that can be found in the License.txt file in the ro... |
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 Intel 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
//
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.