text
stringlengths
5.71k
33.7k
/***** Copyright (C) 2016 <NAME>, INRIA France/Nanyang Technological University Singapore (-2016), CWI (2016/2017), L'Universite Grenoble Alpes (2017-) (C) 2016 <NAME>, Nanyang Technological University Singapore (C) 2016 <NAME>, Centrum Wiskunde & Informatica (CWI), Amsterdam. This file is ...
#pragma once #define GLM_FORCE_DEPTH_ZERO_TO_ONE #include <vulkan/vulkan.hpp> #include <glm/glm.hpp> #include <external/vk_mem_alloc.h> #include <iostream> #include <vector> #include <hdvw/window.hpp> #include <hdvw/instance.hpp> #include <hdvw/surface.hpp> #include <hdvw/device.hpp> #include <hdvw/allocator.hpp> ...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <map> #include <string> #include <vector> #include <random> //Need this to access ...
// // Created by <NAME>. // // uncomment to disable assert() // #define NDEBUG #include <cassert> #include <iostream> #include <cstdio> #include <iomanip> #include <ios> #include <sstream> #include <fstream> #include <string> #include <cmath> #include <cstdlib> #include <ctime> #include <functional> #include <array> #...
#include "statview.h" #include <windowsx.h> #include <Richedit.h> #include <Commctrl.h> #pragma comment(lib, "Comctl32.lib") #include <gdiplus.h> #pragma comment (lib,"gdiplus.lib") #include <assert.h> #include <Richole.h> #include "common.h" #include "include.h" #include "invview.h" #pragma warning(disable: 4100) ...
#include "../include/global.hpp" #define STB_IMAGE_IMPLEMENTATION #include "../include/stb_image.h" // all these unsigned int are IDs // id of array object that stored calls to vertex attributes functions as well as the VBO "attached" // id of buffer object that stored array data into the GPU memory // id of element ...
// // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2010-2011 <NAME> // 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. // ////////...
/* * zsummerX License * ----------- * * zsummerX is licensed under the terms of the MIT license reproduced below. * This means that zsummerX is free software and can be used for both academic * and commercial purposes at absolutely no cost. * * * ============================================================...
// Copyright (c) 2003 - 2009 <NAME> <<EMAIL>> // See LICENSE for license details. #include "xcore.h" extern "C" { #include <X11/Xatom.h> #include <X11/Xproto.h> } #include <sstream> #include "atoms.h" #include "font.h" #include "kernel.h" #include "logger.h" #include "rectangle.h" #include "xfont.h" #include "xftf...
#include <iostream> #include "CLHEP/Matrix/Matrix.h" #include "TMatrixDEigen.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "Alignment/MuonAlignmentAlgorithms/plugins/CSCChamberFitter.h" const double infinity = 0.1; // this is huge because all alignments are angles in radians; but we nee...
#include "vector.h" #include "box.h" #include "triangle.h" #include "triangle_box_intersection.h" /********************************************************/ /* AABB-triangle overlap test code */ /* by <NAME> */ /* Function: int triBoxOverlap(double boxcenter[3]...
/* * mppe.c - interface MPPE to the PPP code. * * By <NAME> <<EMAIL>>. * Copyright (c) 2002,2003,2004 Google, Inc. * All rights reserved. * * License: * Permission to use, copy, modify, and distribute this software and its * documentation is hereby granted, provided that the above copyright * notice appears i...
#include "Node.h" #include <stack> #include <regex> #include <sstream> using namespace Phi::Node; // Numbers SpecialNumber::SpecialNumber(Location location, std::string interpretableSent): Expression(location) { auto interpretable = interpretableSent; auto regex = std::regex("([0-9]+)([bodxh])([A-F0-9?]+)"); ...
#define F_CPU 16000000UL #include <stdint.h> #include "ov7670.h" static const struct regval_list vga_ov7670[] = { { REG_HREF, 0xF6 }, // was B6 { 0x17, 0x13 }, // HSTART { 0x18, 0x01 }, // HSTOP { 0x19, 0x02 }, // VSTART { 0x1a, 0x7a }, // VSTOP { REG_VREF, 0x0a }, // VREF { 0xff, 0xff }, /* END MARKER */...
#include "VIOPCH.h" #include "Scene.h" #include "Violet/Renderer/Renderer2D.h" #include "Entity.h" #include "Components.h" #include "Script.h" /*BOX2D*/ #include <box2d/b2_world.h> #include <box2d/b2_body.h> #include <box2d/b2_fixture.h> #include <box2d/b2_polygon_shape.h> #include <box2d/b2_circle_shape.h> namespace ...
// A simple CPP program to introduce // a linked list #include<iostream> #include <unordered_set> using namespace std; class Node{ public: int data; Node *next; }; // This function prints contents of linked list // starting from the given node void printList(Node *n){ while(n!= NULL){ cout<< n->data <<" "; ...
#include "Matrix.h" #include "Vector.h" #include <string.h> #include <ros/ros.h> #include <image_transport/image_transport.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/CameraInfo.h> #include <tf/tf.h> #include <tf/transform_listener.h> #include <rwth_perception_people_msgs/GroundPlane.h> #include <dar...
#include <deque> #include <limits> #include <fstream> #include <unordered_set> #include <set> #include <deque> #include <iostream> #include <memory> #include <cassert> #include <algorithm> #include "de_bruijn/graph.h" #include "noise_filtering.h" #include "utils.h" #define assert_msg(x) !(std::cerr << "Assertion fail...
/* $NoKeywords: $ */ /* // // Copyright (c) 1993-2011 <NAME> & Associates. All rights reserved. // OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert // McNeel & Associates. // // THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. // ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PART...
#include "SrScriptFile.h" srscriptreftype_t g_SrScriptRefTypes[] = { { SR_SCRIPT_REFTYPE_UNKNOWN, "Unknown", SR_NAME_NULL, 0 }, { SR_SCRIPT_REFTYPE_ACTION, "Action", SR_NAME_AACT, 0 }, { SR_SCRIPT_REFTYPE_ACTIVATOR, "Activator", SR_NAME_ACTI, 0 }, { SR_SCRIPT_REFTYPE_ACTI...
// // Created by lenz on 3/9/20. // #include "CLGraphics.h" #include "CLImageCache.h" #include "CLUtf8.h" #include <tbx/font.h> #include <swis.h> #include "Logger.h" CLFontStyle::CLFontStyle(const char *_fontname, rufl_style _style, int _size) : fontname(_fontname), style(_style), size(tbx::os_to_points_1...
// Copyright (c) 2021, WNProject 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 "WNContainers/inc/WNStringView.h" #include "executable_test/inc/WNTestHarness.h" using ::testing::ElementsAre; static const char test_string1...
/* * VGMTrans (c) 2002-2019 * Licensed under the zlib license, * refer to the included LICENSE.txt file */ #include "AkaoInstr.h" #include "PSXSPU.h" #include <fmt/format.h> using namespace std; // ************ // AkaoInstrSet // ************ AkaoInstrSet::AkaoInstrSet(RawFile *file, uint32_t length, uint32_t i...
#include <memory> #include <cassert> #include <glm/glm.hpp> #include "gl_holder.h" #include "shader.h" #include "scene.h" #include "controls.h" #define PASS_UNIFORM_3F(id, value) \ glUniform3f(id, (value).x, (value).y, (value).z); #define PASS_UNIFORM_MAT4(id, value) \ do { ...
#include <string> #include <experimental/string_view> #include <iostream> #include <vector> #include <fstream> #include "llvm/ADT/StringRef.h" using std::experimental::string_view; #include "parser/line_number_helper.cc" #include "gen/clang-fe/clang-fe-parser.cc" #include "clang-fe/CodeGenAugment.h" #include "clang-...
/* OFDM TV encoder Copyright 2020 <NAME> <<EMAIL>> */ #include <iostream> #include <cassert> #include <cmath> #include "netpbm.hh" #include "complex.hh" #include "utils.hh" #include "decibel.hh" #include "fft.hh" #include "wav.hh" #include "pcm.hh" #include "mls.hh" #include "crc.hh" #include "galois_field.hh" #inclu...
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED. * * Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED. * $COPYRIGHT$ * $HEADER$ */ #include "uct_test.h" #include <tools/perf/libperf.h> #include <pthread.h> #include <string> #include <vector> class test_rte_comm { public: ...
/* * Script for converting MEI files from the 2010-05 specification to the * 2011-05 specification. * * <NAME>, July 6 2011 * */ #include <libxml/tree.h> #include <libxml/xmlreader.h> #include <iostream> using namespace std; void Convert(xmlNode* node); int main (int argc, char *argv[]) { if (argc > 1) { ...
#include <pcl/point_types.h> #include <pcl/point_cloud.h> #include <pcl/io/pcd_io.h> #include <pcl/visualization/pcl_visualizer.h> #include <signal.h> #include "../headers/access_results.h" #include "../headers/access_model_data.h" #include "../headers/identification_class.h" #include "../headers/manipulation.h" #inclu...
#include "tetris.h" const int Piece::kNumStates_ = 4; const std::vector<std::vector<std::pair<int, int>>> Piece::kKicksIRight_ = { { {0, 0}, {0, -2}, {0, 1}, {1, -2}, {-2, 1} }, { {0, 0}, {0, -1}, {0, 2}, {-2, -1}, {1, 2} }, { {0, 0}, {0, 2}, {0, -1}, {-1, 2}, {2, -1} }, { {0, 0}, {0, 1}, {0, -2}, {...
/************************************************************************************ Copyright (C) 2005 <NAME>, <NAME>, <NAME>, <NAME>, <NAME> This file is part of the XFEM C++ Library (OpenXFEM++) written and maintained by above authors. This program is free software; you can redistribute it and/or modify it. Thi...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 condit...
#include "Tree.hpp" #include "DistanceMatrix.hpp" #include "FloatDistanceMatrix.hpp" #include <string> #include "arg_utils.h" #include "log_utils.hpp" #include <iostream> #include <float.h> #include <vector> #include <algorithm> #include "stl_utils.hpp" #include "file_utils.hpp" #include <fstream> #i...
//************************************************************************************************** // // OSSIM Open Source Geospatial Data Processing Library // See top level LICENSE.txt file for license information // //*****************************************************************************************...
/* Copyright (c) 2013-2020, MUSEN Development Team. All rights reserved. This file is part of MUSEN framework http://msolids.net/musen. See LICENSE file for license and warranty information. */ #include "SampleAnalyzerTab.h" #include "qtOperations.h" #include <QFileDialog> CSampleAnalyzerTab::CSampleAnalyzerTab...
#include <vector> #include <iostream> #include <string> #include <tuple> #include <deque> #include <map> #include <set> #include <boost/program_options.hpp> namespace po = boost::program_options; #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <pcl/common/common_headers.h> #include <...
#include <algorithm> #include <chrono> #include <thread> #include <opencv2/highgui/highgui.hpp> #include <QFile> #include <QFileInfo> #include <QDir> #include <QCommandLineParser> //for debug #include <fstream> #include <signal.h> #include <stdio.h> #include <stdlib.h> #ifdef __BUILD_MOTION_ALGO__ #include "Image/m...
#include "OSGWidget.h" #include "PickHandler.h" #include <osg/Camera> #include <osg/DisplaySettings> #include <osg/Geode> #include <osg/Material> #include <osg/Shape> #include <osg/ShapeDrawable> #include <osg/StateSet> #include <osg/DrawPixels> #include <osgDB/WriteFile> #include <osgGA/EventQueue> #include <osgGA...
#include <iostream> #include <algorithm> #include <numeric> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "camFusion.hpp" #include "dataStructures.h" using namespace std; // Create groups of LiDAR points whose projection into the camera falls into the same bounding box void...
/* Copyright (c) <2003-2011> <<NAME>, Newton Game Dynamics> * * 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, *...
/** * Copyright (C) ARM Limited 2010-2014. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include "PerfSource.h" #include <dirent.h> #include <errno...
/*------------------------------------------------------------------------- * * proclang.c * PostgreSQL PROCEDURAL LANGUAGE support code. * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION * src...
// 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 <windows.h> #include <shlwapi.h> // For SHDeleteKey. #include <functional> #include <map> #include "base/memory/ref_counted.h" #include "b...
/** * Licenciatura em Engenharia Informática | Faculdade de Ciências e Tecnologia da Universidade de Coimbra * Projeto de Computação Gráfica - Porta 2020/2021 * * 2018283166 <NAME> * */ #include "cgproject.h" // Camera Settings GLfloat camera_radius = 25.0f; GLfloat camera_angle = M_PI_4; GLdouble camera[] = ...
//SubTag DS W20 /* Portions of this code derive from Fundamental/src/Scope.cpp - Copyright © 2016 by <NAME> */ #include <string.h> #include "DS.hpp" #define BUFFER_SIZE 512 struct LA_108 : DS_Module { enum ParamIds { PARAM_TRIGGER, PARAM_EDGE, PARAM_TIME, PARAM_INDEX_1, PARAM_INDEX_2, PARAM_RUN, PARAM...
//****************************************************************************** // Copyright 1996-2003,2005 by <NAME> * // All Rights Reserved. * // * // Per...
/**************************************************************************** Copyright (c) 2020-2022 <NAME> Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royal...
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /* 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 3 of the License, or (at your option) any la...
/* * * OutputDPResult.c * Soap3(gpu) * * Copyright (C) 2011, HKU * * 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 o...
//////////////////////////////////////////////////////////////////////////////// // // // StudyTwoDatasets.cxx // // ...
/* Copyright (c) <2003-2011> <<NAME>, Newton Game Dynamics> * * 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 purp...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include <unistd.h> #include <assert.h> #include "Graphics.h" // Contains the definition of "Particle" and "Graphics" enum col_type { bottom, right, top, left, animation, particle, paroi, }; //different types of collision ty...
/** * 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 ...
/* SPDX-License-Identifier: BSD-2-Clause-Patent * * Copyright (c) 2016-2019 Intel Corporation * * This code is subject to the terms of the BSD+Patent license. * See LICENSE file for more details. */ #include "node.h" #include <bcl/beerocks_utils.h> #include <easylogging++.h> using namespace beerocks; using nam...
#include "gizmo.h" #include "model/hardwarebuffer.h" #include "scene/autovariables.h" #include "scene/renderer.h" #include "scene/material.h" #include "scene/shader.h" #include <base/camera.h> #include <base/opengl.h> #include <cstdio> using namespace editor; MouseRay::MouseRay(base::Camera* cam, int mx, int my, int ...
/**************************************************************************************/ /* */ /* Visualization Library */ /* http://visualizationlibrary.org ...
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2013 Pelican Mapping * http://osgearth.org * * osgEarth 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 Foundat...
#include "header.h" #include <Rcpp.h> #include <utility> // [[Rcpp::plugins("cpp11")]] using namespace Rcpp; void writeParameters(const int &numberGene, const int &outputPrecision, const std::vector<double> &gGene, const std::vector<double> &kGene, c...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
// Copyright (c) 2019-2019 The QuantisNet Core developers // Distributed under the MIT software license, see the accompanying /* @flow */ // Copyright (c) 2012-2013 The PPCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-lic...
// main21.cc is a part of the PYTHIA event generator. // Copyright (C) 2015 <NAME>. // PYTHIA is licenced under the GNU GPL version 2, see COPYING for details. // Please respect the MCnet Guidelines, see GUIDELINES for details. // This is a simple test program. // It illustrates how to feed in a single particle (inclu...
// RUN: %check_clang_tidy -std=c++17 %s bugprone-easily-swappable-parameters %t \ // RUN: -config='{CheckOptions: [ \ // RUN: {key: bugprone-easily-swappable-parameters.MinimumLength, value: 2}, \ // RUN: {key: bugprone-easily-swappable-parameters.IgnoredParameterNames, value: ""}, \ // RUN: {key: bugpron...
/*============================================================================= Copyright (c) 2010-2011 <NAME> Use, modification and distribution is subject to 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) ==============...
// // Author: <NAME> <<EMAIL>> // Copyright (c) 1994-2018 <NAME> // // The 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 without // restriction, including without limitati...
/*VRP********************************************************************* * * vehicle routing problems * A collection of C++ classes for developing VRP solutions * and specific solutions developed using these classes. * * Copyright 2014 <NAME> <<EMAIL>> * Copyright 2014 <NAME> <<EMAIL>> * * This is ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <error.h> #include <mpi.h> #include <math.h> #include <limits.h> #include "defs.h" bool writeTextFile = false; /* function returns size of edges block for current process */ edge_id_t get_local_m(graph_t *G) { ...
/* Author: <NAME> Jan. 2017 */ #include <iostream> #include <stdint.h> #include <boost/python.hpp> #include <thread> #include "PythonCVMatConvert.h" #include "utils_RNG.h" #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> namespace bp = boost::python; using std::cout; using std::endl; #de...
#include "UeyeCamera.hpp" #include "camera_filters.hpp" #include "misc/utils.h" #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <ueye.h> #include <libshm/c/shm.h> #include <iostream> #include <string> #include <experimental/optional> //TODO: switch this to C++17 #define CAMERA_IMA...
//******************************************************** // Syzygy is licensed under the BSD license v2 // see the file SZG_CREDITS for details //******************************************************** #include "arPrecompiled.h" #include "arSyncDataClient.h" #include "arDataUtilities.h" #include "arLogStrea...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <netinet/in.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/time.h> #include <ctime> #include <errno.h> #include <fcntl.h> #include <signal.h> #in...
#include "stdafx.h" #include "FormatTypeSCP.h" #include <stdlib.h> #include <algorithm> #ifdef _WIN32 #if _MSC_VER < 1900 extern int lround(double d); #endif #endif static int AddShortToBuffer(unsigned char* buff, int index, unsigned short value) { buff[index++] = ((value >> 8) & 0xFF); buff[index++] = (value ...
/* * Copyright (c) 2009-2010 <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, pub...
// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit ht...
#include <stdint.h> #include <iostream> #include <memory> #include <string> #include <algorithm> #include <execution> #include <atomic> #include <limits> #include "swint.h" // disable constant arithmetic warnings #pragma warning(disable:4756) #pragma warning(disable:4309) #pragma warning(disable:431...
#include "application.h" #include "Serial3/Serial3.h" #include "core_hal.h" SYSTEM_MODE(MANUAL); #define now() millis() uint32_t lastFlash = now(); String com = ""; #define PASS_GREEN() RGB.color(0,255,0) #define FAIL_RED() RGB.color(255,0,0) #define FAIL_BLUE() RGB.color(0,0,255) #define RGB_OFF() RGB.color(0,0,0) ...
#include "../Includes/includes.h" /*--------------------------------------------------------------------- * * Program: MS_ICMP.EXE * * filename: ms_icmp.c * * Copyright by <NAME>, 1997 http://www.sockets.com * * Description: * This is a ping program that uses Microsoft's ICMP.DLL functions * for...
/* * Copyright 2001, 2002, 2006, 2011 <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, mod...
/* * Format7 code extracted from Pangolin library. * */ #include <bitset> #include <iostream> #include <dc1394/conversions.h> #include <HAL/Devices/DeviceException.h> #include <HAL/Utils/TicToc.h> #include "DC1394Driver.h" using namespace hal; ////////////////////////////////////////////////////////////////...
#include <array> #include <utility> #include <iostream> #include <glad/glad.h> // GLFW_INCLUDE_NONE foi definida no CMakeLists.txt #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include "shader.hpp" // // *** Macros *** // #define BIT_OFFSET_F(n) (const void*)(n * sizeof(f...
#include "util/global.hpp" #include "time/time.hpp" #include "task/task.hpp" #include "convergence/lanczos.hpp" #include "util/iterative.hpp" #include "operator/2eoperator.hpp" #include "operator/st2eoperator.hpp" #include "operator/space.hpp" #include "operator/excitationoperator.hpp" #include "operator/deexcitationo...
/* * ColorFuncs.cpp * FixBlack * * Created by <NAME> on 9/4/09. * Copyright 2009 __MyCompanyName__. All rights reserved. * */ #include "ColorFuncs.h" #include "ATEFuncs.h" #include "IText.h" #include "common.h" bool colorIsEqual ( AIColor color1 , AIColor color2 , bool ignoreTints ) { //GRAY COLOR if ((...
// Copyright (c) The HLSL2GLSLFork 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. #include "localintermediate.h" // // Two purposes: // 1. Show an example of how to iterate tree. Functions can // also directly ca...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAME>....
#include "adaptor_statistics.h" using namespace std; void Adaptor_Statistics::make_CS(memoryBlock *block, procedureInfo *proc, Location *site, memoryBlock::DestructiveKind reason) { assert(block && proc); cs_procs.insert(proc); ReasonKind reaso...
//---------------------------------------------------------------------------// // 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...
/* * CEGASprit.cpp * * Created on: 11.07.2009 * Author: gerstrong * * Yes, it should be CEGASprite, bute since the file name * is called EGASPRIT.CK? it is left that way, * to make the understanding clearer */ #include "CEGASprit.h" #include "engine/core/CPlanes.h" #include <base/utils/FindFile.h> #i...
/* File: InputEngine.cpp Description: InputEngine Source File Authors: <NAME> This is a free engine. If you use this code as is or any part of it in any kind of project or product, please acknowledge the source and its author(s). */ // global includes ////////////////////////////// #include "Global.h" // inclu...
//------------------------------------------------------------ // snakeoil (c) <NAME> // Distributed under the MIT license //------------------------------------------------------------ #include "gl33_imgui_plug.h" #include "../../system/system.h" #include <snakeoil/gpu/api/gl/igl_33_api.h> #include <snakeoil/gpu/fra...
#include "GA.h" Gene population[MAX] = {0}; //母代 Gene pool[MAX] = {0}; //交配池 Gene best_gene = {0}; //選出最好的基因 int current_itera = 1; //目前世代 int calculation_num = 0; //計算Fitness計算總次數(驗證pid_run是否有節省時間) //目標值 int setpoint = 0; //PID三參數 int P = 0, I = 0, D = 0; // #if 0 ...
#include "RapidParticleData.h" #include <cstdlib> #include <fstream> #include <iostream> #include "RooRelBreitWigner.h" #include "RooGounarisSakurai.h" #include "RapidParticle.h" RapidParticleData* RapidParticleData::instance_=0; RapidParticleData* RapidParticleData::getInstance() { if(!instance_) { instance_ =...
#include "auto_f2c.h" #include "auto_c.h" #ifdef PTHREADS pthread_mutex_t mutex_for_d = PTHREAD_MUTEX_INITIALIZER; #endif BEGIN_AUTO_NAMESPACE; /*This is the process function. It is meant to be called either on a SMP using shared memory, or wrapped inside another routine for message passing*/ void *conpar_proc...
////////////////////////////////////////////////////////////////////////////////////////////// /// \file mcransac.cpp /// /// \author <NAME> /// \brief Rigid and motion-compensated RANSAC implementations along with some auxilliary /// SE(3) math functions. ///////////////////////////////////////////////////////////...
#include "simcore/object.hpp" Object::Object(unsigned long seed) : rng_(seed) { // Initialize object ID, guaranteeing thread safety InitOID(); // Set some defaults std::fill(position_, position_ + 3, 0.0); std::fill(prev_position_, prev_position_ + 3, 0.0); std::fill(prev_orientation_, prev_orientation_ + ...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
/* - Server-side computation of the Feather protocol */ #include"Server.h" //********************************************************************** // - Description: Constructor- It generates a set of x-coordinates and public moduli. Also, it sets a hash table parameters. Server::Server(int num_xpoints, i...
#include <String> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ArduinoOTA.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> #include <LittleFS.h> #include <WebSocketsServer.h> #include <CommonFunctionsWiFi.h> #include <NTPClient.h> #include <WiFiUdp.h> ESP8266WiFiMulti wifiMulti; // C...
#include <cstdio> #include <cstdlib> #ifdef __APPLE__ #include <OpenCL/opencl.h> #else #include <CL/cl.h> #endif #ifdef _WIN32 #define NOMINMAX #include "GPAInterfaceLoader.h" #define GPA_ENABLED 1 #endif #include <vector> #include <random> #include <chrono> #include <fstream> #include <memory> using namespace std; u...
#include "TSDPoint.h" #include <iostream> #include <sstream> #include <vector> #include <cassert> #include "Set.h" #include "Specie.h" #include "Encodings.h" #include <stdlib.h> extern int DEBUG_LEVEL; bool InvertSortOrder = false; std::vector<int> TSDPoint::maxEncodings; std::map<std::string,TSDPoint*> * TSDPoint::...
/* -*- c++ -*- */ /* * Copyright 2017 <+YOU OR YOUR COMPANY+>. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at your option) * any later version. * * This software is d...
struct Pixel32 { uint8_t r, g, b, a; }; void print1(FILE *stream, Pixel32 pixel) { #define PRINT_BYTE(x) \ do { \ const auto __x = (x); \ const auto __u = __x / 0x10; \ const au...