text
stringlengths
3.08k
22k
#include "kuro/kuro.h" #include "kuro/cam2d.h" #include "kuro/aa_rect.h" #include "kuro/tile_map.h" static zero_color_t c_teal = zero_color_t{43, 151, 136, 255}; static zero_color_t c_lime = zero_color_t{205, 220, 71, 255}; static bool init = false; static float noise[540][960]; static float edge[540][960]; static f...
#include "CoolProp.h" #include <vector> #include "CPExceptions.h" #include "FluidClass.h" #include "R125.h" #include "REFPROP.h" R125Class::R125Class() { double n[] = {0.0, 5.280760, -8.676580, 0.7501127, 0.7590023, 0.01451899, 4.777189, -3.330988, 3.775673, -2.290919, 0.8888268, -0.6234864, -0.04127263, -0.08455389,...
/*ENCODING = UTF-8*/ /* * ENSICAEN * 6 <NAME> * F-14050 Caen Cedex * * This file is owned by ENSICAEN students. No portion of this * document may be reproduced, copied or revised without written * permission of the authors. */ /** * @author <NAME> <<EMAIL>> * @version 0.0 - 27/11/2020 */ /** * @file SDLWi...
/** ========================================================================== * Addapted for SolidFrame from https://github.com/KjellKod/g3log * 2011 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes * with no warranties. This code is yours to share, use and modify with no * strings attached ...
/* * Copyright (c) 2011 The Native Client 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 "../base/KernelProxy.h" #include "../console/JSPipeMount.h" #include "gtest/gtest.h" #include <list> #include <pthread.h> #defin...
#include "CycleControl.h" #include "AmbuConfig.h" #include "GenericSensor.h" CycleControl::CycleControl (AmbuConfig &conf, GenericSensor &press, GenericSensor &vol, uint8_t relayAPin, uint8_t relayBPin, ...
#include <iostream> #include <set> #include <map> #include <vector> #include <algorithm> using namespace std; // 1003 Emergency (25) map<int, int> find_near_citys(const map<pair<int, int>, int>& citys, int city_id) { map<int, int> near_citys; map<pair<int, int>, int>::const_iterator it = citys.begin(); fo...
#include <cassert> #include <cmath> #include "recon_tests.h" #include "recon.h" #include "gsl_wrapper.h" #include "utils.h" using namespace dvrlib; #define assert_equal(a, b)\ assert((a)==(b)) #define assert_almost_equal(a, b)\ assert(fabs((a)-(b))<1e-7*(fabs(a)+fabs(b))) #define assert_vector_almost_equal_upto(a,...
// // Bachelor of Software Engineering // Media Design School // Auckland // New Zealand // // (c) 2005 - 2015 Media Design School // // File Name : Frustum.cpp // Description : CFrustum implementation file. // Author : <NAME>. // Mail : <EMAIL> // // PCH #include "GameStd.h" // Library Includes // This Include ...
/* * 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 applica...
#include "dolslr/doldef.h" #include "dolslr/Contour.h" #include "opencv2/legacy/legacy.hpp" using namespace std; using namespace cv; Contour::Contour(void) { } Contour::~Contour(void) { } void Contour::InitProcess(Mat& frame) { if(frame.channels() == 3) cvtColor(frame, grayFrame_, CV_BGR2GRAY); else grayFrame...
/* * $Id$ * */ #include <df1b2fun.h> #include <admodel.h> #include <df3fun.h> #include <df33fun.h> #define MAXIT 100 #define EPS 1.0e-9 //#define EPS 3.0e-7 #define FPMIN 1.0e-30 df1b2variable inv_cumd_beta_stable(const df1b2variable& a, const df1b2variable& b,const df1b2variable& x); df1b2variable inv_cumd_...
/* This software is designed by <NAME>. <EMAIL> Copyright (C) 2008 <NAME>. C/Botanico 12, 1. Valencia CP:46008 (Spain). 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,...
/* load any PPM use pnmscale to scale to give as input write out PPM with 0 or 255 per pixel same size for DHGR mode or half-size for HGR mode beginning of line pattern is [0,0,0,0], index is 0 For each pixel, two potential colors are HGR mode, color from pattern with index%4 an...
#include "phenotype.h" //------------------------------------Sigmoid function------------------------ // //---------------------------------------------------------------------------- float Sigmoid(float netinput, float response) { return ( 1 / ( 1 + exp(-netinput / response))); } //-------------------------------...
/* --------------------------------------------------------------------------- * * Autonomous Navigation and Perception Lab (ANPL), * Technion, Israel Institute of Technology, * Faculty of Aerospace Engineering, * Haifa, Israel, 32000 * All Rights Reserved * * See LICENSE for the license information * * -----...
/** * @file * @brief Implementation of module to read doping concentration maps * @copyright Copyright (c) 2017 CERN and the Allpix Squared authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privi...
#include "constructor_generate.h" #include "common_generate.h" namespace { char tab[] = "\t"; char macro_new_line[] ="\\\n"; } void write_constructor_with_parameters(std::ofstream& f, int param) { std::string ParamStart = "Param"; std::string ParamEnd = "WithTraits"; f<<"template<typename Class,"; for(int i =...
#include "clang/Basic/DiagnosticOptions.h" #include "clang/CodeGen/CodeGenAction.h" #include "clang/CodeGen/ObjectFilePCHContainerOperations.h" #include "clang/Driver/Compilation.h" #include "clang/Driver/Driver.h" #include "clang/Driver/Options.h" #include "clang/Driver/Tool.h" #include "clang/Frontend/CompilerInstanc...
#include "hvr_sparse_arr.h" #include "hvr_common.h" #include <stdlib.h> #include <string.h> #include <stdio.h> #include <assert.h> static inline void hvr_sparse_arr_seg_init(hvr_sparse_arr_seg_t *seg) { for (int i = 0; i < HVR_SPARSE_ARR_SEGMENT_SIZE; i++) { seg->seg[i] = nnil; seg->seg_size[i] = ...
// dear imgui: Renderer Backend for SDL_Renderer // (Requires: SDL 2.0.17+) // Important to understand: SDL_Renderer is an _optional_ component of SDL. We do not recommend you use SDL_Renderer // because it provide a rather limited API to the end-user. We provide this backend for the sake of completeness. // For a mul...
/* * This is a subclass of vtkPolyDataToImageStencil, with extended functionality to build a lookup from the * stencil back to the triangles of the mesh. * * Author: <NAME> * */ #include "vtkAttributedPolyDataToImage.h" #include "vtkGarbageCollector.h" #include "vtkImageStencilData.h" #include "vtkInformat...
/*============================================================================ CMake - Cross Platform Makefile Generator Copyright 2000-2009 Kitware, Inc., Insight Software Consortium Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This softwa...
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* See genQuery.h for a description of this API call.*/ #include "reFuncDefs.hpp" #include "genQuery.hpp" #include "icatHighLevelRoutines.hpp" #include "miscUt...
#include <iostream> #include <fstream> #include <queue> #include <chrono> #include "hnswlib/hnswlib.h" #include <unordered_set> using namespace std; using namespace hnswlib; class StopW { std::chrono::steady_clock::time_point time_begin; public: StopW() { time_begin = std::chrono::steady_clock::now(...
/************************************************************************* This file is part of the ParaNut project. Copyright (C) 2010-2019 <NAME> <<EMAIL>> <NAME> <<EMAIL>> Hochschule Augsburg, University of Applied Sciences Description: This is a testbench for the ParaNut...
// // LICENSE: // // Copyright (c) 2016 -- 2017 <NAME> // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and th...
// Copyright 2013-2016 Stanford University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
/* -------------------------------------------------------------------------- * * OpenSim: testExternalLoads.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simulation. * ...
#include "Internal.hpp" #include <chrono> using namespace AppCUI::Graphics; using namespace AppCUI::Internal; using namespace std::chrono; #define MAX_PROGRESS_STATUS_TITLE 36 #define MAX_PROGRESS_STATUS_TEXT 52 #define PROGRESS_STATUS_PANEL_WIDTH 60 #define MAX_PROGRESS_TIME_TEXT ...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: set ts=8 sts=2 et sw=2 tw=80: * 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/. */ ...
#pragma once /* Header file for univariate polynomial class with coefficients in T */ #include <vector> #include <initializer_list> #include <iostream> #include <stdexcept> #include <type_traits> #include "col_matrix.hpp" #include "sparse_vector.hpp" template <typename T> class UnivariatePolynomial { private: std:...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
/* MIT License Copyright (c) 2021 abhilashraju 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, d...
#include "testApp.h" //-------------------------------------------------------------- void testApp::setup() { ofSetVerticalSync(true); ofBackground(255); ofSetLogLevel(OF_LOG_VERBOSE); // print the available output ports to the console midiOut.listPorts(); // via instance //ofxMidiOut::listPorts();...
/* * msr-poll-gaps.cc * Find the average gap between RAPL updates by polling via MSR driver. * * Author: <NAME> <<EMAIL>> */ #include <vector> /* The number of gaps to be observed */ #define MAX_GAPS 1000 /* Read the RAPL registers on a sandybridge-ep machine */ /* Code based on Intel RAPL drive...
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <immintrin.h> #include <algorithm> #include <cassert> #include <chrono> #include <cmath> #includ...
// MallocSizeofChecker.cpp - Check for dubious malloc arguments ---*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <set> using namespace std; void gen(vector<int> &X, vector<int> &Y, vector<int> &A) { int lX = X.size(); int lY = Y.size(); for (int i=0; i...
#include <iostream> #include <tr1/memory> #include <boost/program_options.hpp> #include <boost/program_options/variables_map.hpp> #include "filelib.h" #include "dict.h" #include "sampler.h" #include "ccrp.h" using namespace std; using namespace std::tr1; namespace po = boost::program_options; Dict d; // global dict...
//===----- CompileOnDemandLayer.cpp - Lazily emit IR on first call --------===// // // 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 // //===---------------------------...
#include <cstdint> #include "test.h" #include "mjolnir/osmnode.h" #include "mjolnir/pbfgraphparser.h" #include "mjolnir/graphbuilder.h" #include "mjolnir/graphenhancer.h" #include "mjolnir/graphtilebuilder.h" #include "midgard/sequence.h" #include <fstream> #include <boost/property_tree/ptree.hpp> #include <boost/prop...
/* Copyright (c) 2010-2011 mbed.org, 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 limitation the rights to use, copy, modify, merge, pu...
#include "PCH.h" #include "JobManager.h" #include "Common/Assert.h" template <size_t COUNT> class LockFreeJobStealingQueue { public: static_assert(std::_Is_pow_2(COUNT)); static constexpr size_t MASK = COUNT - 1; LockFreeJobStealingQueue(const LockFreeJobStealingQueue&) = delete; LockFreeJobStealingQueue(const L...
/* * 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 ma...
// // Created by Chrim14 on 10.10.2017. // #include "Map.h" #include "MapStaticFunctions.h" ///From: Game::Game ///Function: create map and update map changes in views void Map::mapHandler(sf::Shader &shader, Player &player,Timer &gameTimer,std::vector<Tower> &towersPlaced,std::string &towerSelected, sf::VertexArray...
/* * Copyright (C) 2014 <NAME> * Copyright (C) 2014 Synaptics 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 requ...
// // src_redis_conn.cpp // kedis // // Created by ziteng on 17-11-20. // Copyright (c) 2017年 mgj. All rights reserved. // #include "src_redis_conn.h" #include "redis_parser.h" #include "cmd_line_parser.h" #include "sync_task.h" #include "simple_log.h" #include <ctype.h> #include <algorithm> using namespace std; ...
#include "libgeometrictools.h" #include "gpu/gpu.h" void initGeometricTools() { initGPU(); } bool calc(const arg_t& args, const Image& img, const HyperBox& gamma, const float *filter, vector<float>& out_epsilons) { assert(gamma.it[0].sup - gamma.it[0].inf > Constants::EPS)...
#include <iostream> #include <vector> #include <windows.h> #include <string> #include <map> #include <iterator> #include "Tile.h" #include "Pool.h" #include "Player.h" #include "Board.h" void Instructions(void) { //Prints instructions according to the user's decision bool stop = false; std::string response; ...
#include "luaopen_uv.h" int lua_uv_stream_read_cb_closure(lua_State * L) { dprintf("lua_uv_stream_read_cb_closure\n"); lua_pushvalue(L, lua_upvalueindex(1)); // handler lua_insert(L, 1); lua_pushvalue(L, lua_upvalueindex(2)); // udata lua_insert(L, 2); lua_call(L, 3, 0); // pcall? //Lua(L).resume(3); return 0...
#include "leafwise_approx_calcer.h" #include "approx_calcer_multi.h" #include "gradient_walker.h" #include <catboost/libs/helpers/dispatch_generic_lambda.h> #include <catboost/private/libs/algo_helpers/approx_calcer_helpers.h> #include <catboost/private/libs/algo_helpers/approx_updater_helpers.h> #include <catboost/p...
/* Copyright (C) 2005-2007 Feeling Software Inc. Portions of the code are: Copyright (C) 2005-2007 Sony Computer Entertainment America MIT License: http://www.opensource.org/licenses/mit-license.php */ #include "StdAfx.h" static float __identity[] = { 1, 0, 0, 0, 1, 0 ,0, 0, 1 }; FMMatrix33 FMMatrix33::identity...
// Copyright (c) 2009-2019 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: joaander #include "TwoStepLangevinGPU.h" #include "TwoStepNVEGPU.cuh" #include "TwoStepLangevinGPU.cuh" #ifdef ENABLE_MPI #include "hoomd/HOOMD...
//===-- AMDGPUTargetTransformInfo.cpp - AMDGPU specific TTI 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 part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2018-2019 Intel Corporation ////////////////////////////////////////////////////////////////////////////...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/renderer_host/web_cache_manager.h" #include <algorithm> #include "base/compiler_specific.h" #include "base/singleton.h" #in...
/* * CIEDE2000.cpp * Part of http://github.com/gfiumara/CIEDE2000 by <NAME>. * See LICENSE for details. */ #include <cmath> #include "CIEDE2000.h" /******************************************************************************* * Conversions. ********************************************************************...
#include "LinearAlgebra.h" using namespace rmsmesh; // Matrix Types // You cannot change these types to an enum. They are used in bit operations. #define MT_NONE 0 #define MT_ROTATION 1 #define MT_TRANSLATION 1<<1 #define MT_SCALE 1<<2 #define MT_UNKNOWN 1<<10 /* * things to do ...
//===- WriterUtils.cpp ----------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
/* The MIT License (MIT) Copyright (c) 2017 Lancaster University. 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...
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Optional.h> #include <AK/String.h> #include <AK/Vector.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <sys/types.h> #include <unistd.h> const char* usage = "usage:\n" ...
#include "nrs.hpp" void filterFunctionRelaxation1D(int Nmodes, int Nc, dfloat* A); void filterVandermonde1D(int N, int Np, dfloat* r, dfloat* V); dfloat filterSimplex3D(dfloat a, dfloat b, dfloat c, int i, int j, int k); dfloat filterJacobiP(dfloat a, dfloat alpha, dfloat beta, int N); dfloat filterFactorial(int n)...
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
// QTSimpleDemo // // Copyright © 2020 tencent. All rights reserved. // #include "GLYuvWidget.h" #include <QOpenGLTexture> #include <mutex> #include <exception> #ifdef __APPLE__ #include <glext.h> #endif #ifdef _WIN32 #include<GL/GL.h> #include <GL/GLU.h> #endif #define VERTEXIN 0 #define TEXTUREIN 1 static std...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2013 Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright noti...
/* This code describes the OpenSim model and the skeleton dynamics Author: <NAME> Contributor: <NAME>, <NAME>, <NAME> */ #include <OpenSim/Simulation/Model/Model.h> #include <OpenSim/Simulation/SimbodyEngine/PinJoint.h> #include <OpenSim/Simulation/SimbodyEngine/Body.h> #include "SimTKcommon/internal/recorder....
#include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <net/if.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <linux/if_packet.h> #include <netinet/if_ether.h> #include <netinet/in.h> #include <unistd.h> #include "utils.h" /*mqueue needed*/ #include <mqueue.h> #include <s...
#include "../hdr/DISEServerUtil.h" int encrypt(unsigned char* message, int msgLen, unsigned char* key, unsigned char* encryptedMessage) { int ivLen = 12; unsigned char iv[ivLen]; memset(iv, 1, ivLen); int encLen = 0; int finalLen = 0; /* Create and initialise the context */ EVP_CIPHER...
//g++ DuckHunt.c -o a -lm -lGL -lGLU -lglut #include <GL/glut.h> // Header File For The GLUT Library #include <GL/gl.h> // Header File For The OpenGL32 Library #include <GL/glu.h> // Header File For The GLu32 Library #include <unistd.h> // needed to sleep #include <math.h> #include <stdio.h> #include "SOIL.h" ...
// // Created by viniman on 07/06/19. // // https://stackoverflow.com/questions/15160889/how-can-i-make-an-unordered-set-of-pairs-of-integers-in-c // https://stackoverflow.com/questions/53796118/alternative-to-find-for-determining-whether-an-unordered-set-contains-a-key #include <iostream> #include <sstream> #include...
#include "engine_pred.h" #include "../misc/misc.h" c_engine_pred g_engine_pred; int c_engine_pred::post_think( c_base_player *player ) const { static auto PostThinkVPhysics = pattern::find< bool( __thiscall*)( c_base_entity * ) >( g_csgo.m_client_dll, "55 8B EC 83 E4 F8 81 EC ? ? ? ? 53 8B D9 56 57 83 BB ? ? ? ? ? 7...
#include "Bitmap.h" Bitmap::Bitmap(): m_data(), m_height(0), m_width(0), m_fileName(), m_isOpen(false), m_fileHeader(), m_imageHeader() {} Bitmap::Bitmap(const std::string &fileName): m_data(), m_height(0), m_width(0), m_fileName(fileName), m_isOpen(false), m_fileHeader(), m_imageHeader()...
#include "types.h" #include <string.h> #include <stdio.h> #include <stdint.h> #include "sounddef.h" #include "v2mconv.h" const char *v2sources[] = { "Velocity", "Modulation", "Breath", "Ctl #3", "Ctl #4", "Ctl #5", "Ctl #6", "Volume", "Amp EG", "EG 2", "LFO 1", "LFO 2"...
/*========================================================================= Program: VMTK Module: $RCSfile: vtkvmtkNonManifoldSteepestDescent.cxx,v $ Language: C++ Date: $Date: 2006/04/06 16:46:43 $ Version: $Revision: 1.4 $ Copyright (c) <NAME>, <NAME>. All rights reserved. See LICENSE file for deta...
#include "Variant.h" #include "split.h" #include <string> #include <list> #include <iostream> using namespace std; using namespace vcf; void annotateWithBlankGenotypes(Variant& var, string& annotationTag) { var.addFormatField(annotationTag); map<string, map<string, vector<string> > >::iterator s = var.s...
// Polynomial division provided that the quotient and remainder have integer coefficients #include <iostream> using std::cin; using std::cout; using std::endl; #include <iomanip> using std::setw; #include <fstream> using std::istream; using std::ifstream; using std::ios; void reset(int*& coefficient,...
#include "image_blender.h" Color ImageBlender::calculate_factor(const Color &p_src, const Color &p_dst, BlendFactor p_factor) const { Color color_factor; switch (p_factor) { case FACTOR_ZERO: { color_factor = Color(0, 0, 0, 0); } break; case FACTOR_ONE: { color_factor = Color(1, 1, 1, 1); } break; c...
/* * Copyright (C) 2006 - 2009 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2. A copy of the GNU General * Public License can be found in the file LICENSE. * * This...
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> #include <cctype> #include <vector> using namespace std; typedef long long lint; #define cout cerr #define ni (next_num<int>()) template<class T>inline T next_num(){ T i=0;char c; while(!isdigit(c=getchar())&&c!='-'); bool flag=c=='-'; flag...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
/** 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 n...
/* * 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 ...
// Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and // other Axom Project Developers. See the top-level LICENSE file for details. // // SPDX-License-Identifier: (BSD-3-Clause) /*! * \file quest_inout_interface.cpp * * Exercises the C-style quest_inout interface which determines if a point * i...
/* * Copyright 2019-2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 @generated from testing/testing_zhesv.cpp, normal z -> c, Thu Oct 8 23:05:40 2020 @author <NAME> */ // includes, system #include <stdlib...
#include "WeightedLowRank.h" WeightedLowRank::WeightedLowRank(double *inA, double *inW, integer inm, integer inn, integer inr) { A = inA; W = inW; m = inm; n = inn; r = inr; }; WeightedLowRank::~WeightedLowRank(void) { }; double WeightedLowRank::f(Variable *x) const { ProductElement *Prod...
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */ /* vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5) */ /* 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 ob...
/** * OpenSteer -- Steering Behaviors for Autonomous Characters * * Copyright (c) 2002-2005, Sony Computer Entertainment America * Original author: <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Softwar...
// socialnet.cpp #include "socialnet.h" #include <cassert> #include <cmath> using namespace std; BOOL CSNetCircuit::Create(int nParties, const vector<int>& vParams) { m_nNumParties = nParties; // parse params // params: width, depth, rep if( vParams.size() < (unsigned) 2 ) { cout << "Error! This circuit needs...
/* Module : AAPhysicalMoon.cpp Purpose: Implementation for the algorithms which obtain the physical parameters of the Moon Created: PJN / 17-01-2004 History: PJN / 19-02-2004 1. The optical libration in longitude is now returned in the range -180 - 180 degrees PJN / 10-05-2010 1. Minor update to CAAPhysic...
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2017 Intel Deutschland GmbH * * This program is free ...
/* * 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 is distributed in the hope that it will be use...
//***************************************************************************** // Copyright (c) 2016-2020, Intel Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // - Redistributio...
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8; -*- // // Wt usage example for RInside, inspired by the standard 'density sliders' example // // Copyright (C) 2011 <NAME> and <NAME> // // This file is licensed under GPL 2 or later, as are the rest of RInside and Rcpp // // Derived from hello.C i...
/* set49mode sets the mode of Groovy Game Gear's 49-way Joystick. This script is based off of <NAME>'s 2018 SetUltrastik360 script This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
#include "Dumpi.h" #include "RynTypes.hpp" #include <string> static int _world_rank, _world_size; void _mpiInit(int* world_size, int* world_rank) { // Initialize MPI state int did_i_do_good_pops = 0; int err = MPI_SUCCESS; MPI_Initialized(&did_i_do_good_pops); if (!did_i_do_good_pops){ err ...
#include <iostream> #include <cstring> #include <cstdio> #include <cstdlib> #include <fstream> #include <map> #include <sstream> #include <iomanip> #include <vector> #include <math.h> using namespace std ; #define MAXLINE 500 map<string,string>OPTAB = { {"STL","14"},{"LDB","68"},{"JSUB","48"},{"LDA","00"},{"COMP","28...