text
stringlengths
3.08k
12.5k
#include "Circlefade.hpp" #include <stdio.h> #include<iostream> using namespace std; struct LFO : Module { enum ParamIds { BUT_PARAM, POL_PARAM, FREQ_PARAM, PHASE_PARAM, NUM_PARAMS }; enum InputIds { RESET_INPUT, FREQ_INPUT, NUM_INPUTS }; enum OutputIds { LFO_OUTPUT, NUM_OUTPUTS }; enum Light...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; vector<double> S; bool done[4][3]; double dp[4][3]; inline double val(double p, double q, double a, double b, double c, double d) {...
/* * Copyright 2021 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "tests/Test.h" #include "include/core/SkBitmap.h" #include "include/core/SkCombinationBuilder.h" #include "include/core/SkM44.h" #include "include/core/SkPaint.h" #in...
#include <iostream> #include <string> /** * The tracer.cpp generates a binary that accepts a TorchScript model or a * Torch Mobile Model (with bytecode.pkl) which has at least 1 bundled * input. This binary then feeds the bundled input(s) into the model * and executes using the lite interpreter. * * Both root op...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "openvino/pass/manager.hpp" #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <utility> #include "openvino/pass/constant_folding.hpp" #include "openvino/pass/pass.hpp" #include "openvino/pass/serialize.hp...
#define OLC_PGE_APPLICATION #include "olcPixelGameEngine.h" class PNoiseVisual : public olc::PixelGameEngine { private: static const int size = 512; std::array<olc::vf2d, size> points; std::array<olc::vf2d, size> noise; olc::vf2d* pSelected = nullptr; int txtHeight = -1; int spacing = 3; int bgLayer = -1; int...
/*------------------------------------------------------------------------------ * Rapic Protocol Support Library * * Copyright 2016 Commonwealth of Australia, Bureau of Meteorology * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 <NAME>. All rights reserved. *...
#include "test.h" #include "trace.h" extern "C" { #include <jpeglib.h> } extern AAssetManager *mgr; int ReadStringAM(AAsset* asset, char * buffer, int count, int offset) { AAsset_seek(asset, offset, SEEK_SET); int r_count = AAsset_read(asset, buffer, count); if (r_count <= 0) return r_count; for (int i =...
#include <GL/glut.h> #include <bits/stdc++.h> using namespace std; #define w 500 #define h 500 void init() { glClearColor(1.0,1.0,1.0,0.0); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(-w/2,w/2,-h/2,h/2); } void setpixel(GLint x, GLint y) { glColor3f(0.0,0.0,1.0); glPointSize(2.0)...
#include <vector> #include <iostream> #include <string> #include "FOLLexer.h" #include "FOLToken.h" namespace { std::istream::int_type getNextChar(std::istream& stream, unsigned int& colNumber) { colNumber++; return stream.get(); } } // TODO: make this use an iterator rather than return a vect...
#include "stdafx.h" #include "FaceTracker.h" #include <comdef.h> #include <SFML\System.hpp> using namespace std; ft_error::ft_error(string message, HRESULT hr) : runtime_error(NULL) { string error_message; switch (hr) { case FT_ERROR_INVALID_MODELS: error_message = "Face tracking models have in...
//============================================================================ // // SSSS tt lll lll // SS SS tt ll ll // SS tttttt eeee ll ll aaaa // SSSS tt ee ee ll ll aa // SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emula...
/** * @file shapeMatching.cpp * @brief ShapeMatching plugin for Maya * @section LICENSE The MIT License * @section requirements: Eigen library, Maya * @section Limitation: the shapes must be connected * @version 0.10 * @date 1/Nov/2013 * @author <NAME> */ #pragma comment(linker, "/export:initial...
#include <iostream> #include <cmath> #include "geometries/sphere.hpp" Sphere::Sphere(unsigned int n_longitudes, unsigned int n_latitudes): m_n_longitudes(n_longitudes), m_n_latitudes(n_latitudes), // one at beginning & end corresp. to vertexes at north/south poles resp. m_n_vertexes(1 + m_n_longitudes * (m_n...
#include <memory> #include "common.h" #include "console_printer.h" #include "console_inputter.h" #include "framework.h" struct CLIArgs { uint32_t print_output = false; uint32_t print_level = 0; uint32_t print_level_override = false; }; void setup(void); void shutdown(void); void testBringup(lc3::sim & si...
/* * Copyright (C) 2005 <NAME> <<EMAIL>> Rensselaer Polytechnic Institute * Written by <EMAIL> * Updated by <EMAIL>, <EMAIL>, <EMAIL> * Modifications: * added tokenizer -- Zaki, 5/8/06 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Publi...
// // g++ async_example.cpp -o async_example -I.. -lboost_program_options -lhiredis -lev // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <string> #include <iostream> #include <hiredis/async.h> #include <hiredispp/hiredispp.h> #include <hiredispp/hiredispp_async.h> #include ...
// -*- C++ -*- // // Package: HLTHcalLaserMisfireFilter // Class: HLTHcalLaserMisfireFilter // /**\class HLTHcalLaserMisfireFilter HLTHcalLaserMisfireFilter.cc Description: Filter to select misfires of the HCAL laser. Implementation: Three HBHE RBX's ("bad") do not see the laser signal. Laser events are sele...
#include "Mesh/nodesandnodesofcells.hpp" #include "Mesh/edgesconstructor.hpp" #include "Mesh/edgesandcells.hpp" #include "Mesh/sidesandcells.hpp" #include <algorithm> #include <limits> using namespace mesh; /*---------------------------------------------------------*/ EdgesConstructor::~EdgesConstructor(){} Edg...
///////////////////////////////////////////////////////////////////// //// __ //// //// | | //// //// | | //// //// ___ | | ...
# pragma once #include <string> #include <functional> #include <iostream> #include <optional> #include "Dealer.hpp" #include "Exceptions.hpp" #include "rankHand.hpp" class Agent { public: Agent( const std::vector<Card> &cards, int chips, bool hasPlayedThisRound, ...
#include <chrono> #include <iostream> #include <random> #include <vector> #include <ctime> #include <string> #include <sstream> #include <iomanip> #include <fstream> #include <cstdio> using namespace std; using namespace chrono_literals; using namespace chrono; vector<int> generate_random_number(size_t sz, int min, i...
#define ALLEGRO_NO_MAGIC_MAIN #define ALLEGRO_USE_CONSOLE #include <allegro.h> #include <iostream> #include <string> #include <sstream> using namespace std; bool operator== (string s1, string s2){ return (strcmp(s1.c_str(), s2.c_str()) == 0); } string itostr(int i){ stringstream out; out << i; string s = out.s...
#include <bits/stdc++.h> using namespace std; template <typename M, typename D> struct SegLazy { using Op = function<M(const M&, const M&)>; using D2M = function<void(M&, const D&)>; using D2D = function<void(D&, const D&)>; M ID; D UN; Op op; D2M d2m; D2D d2d; int N, L; ...
/* * Date.cpp * * Created on: Mar 28, 2017 * Author: dreifuerstrm * File defining the Date class and its methods and operations */ #include "Date.h" #include <iostream> #include <iostream> #include <string> #include <fstream> #include <sstream> using namespace std; Date::Date() { ...
#include "qjump_host.h" #include <cstdio> #include "factory.h" #include "../coresim/agg_channel.h" #include "../coresim/channel.h" #include "../coresim/event.h" #include "../coresim/queue.h" #include "../run/params.h" extern double get_current_time(); extern void add_to_event_queue(Event *); extern DCExpParams param...
#pragma once #include "Pair.hpp" #include "Platform/Platform.hpp" // For Date #include "UIMesh.hpp" struct FT_LibraryRec_; struct FT_FaceRec_; typedef struct FT_LibraryRec_* FT_Library; typedef struct FT_FaceRec_* FT_Face; namespace flex { class DirectoryWatcher; struct JSONField; struct JSONObject; struct Loade...
/* * Copyright 2019-2021 Centreon (https://www.centreon.com/) * * 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 ap...
// // action_queue.cpp // unittest // // Created by <NAME> on 2018-12-20. // Copyright © 2018 Klassen Software Solutions. All rights reserved. // #include <array> #include <chrono> #include <iostream> #include <memory> #include <stdexcept> #include <thread> #include <kss/test/all.h> #include <kss/util/all.h> #inc...
// // IWLMvmPhy.cpp // AppleIntelWifiAdapter // // Created by <NAME> on 2/19/20. // Copyright © 2020 IntelWifi for MacOS authors. All rights reserved. // #include "IWLMvmPhy.hpp" /* Channel info utils */ static inline bool iwl_mvm_has_ultra_hb_channel(IWLMvmDriver *mvm) { if (mvm->m_pDevice->cfg->trans.device_f...
#include "ray.h" #include "defs.h" #include <cmath> #include <climits> #include "player.h" #include "map.h" #include "graphics.h" ray_t rays[NUM_RAYS]; extern player_t player; float normalizeAngle(float angle) { angle = remainder(angle, TWO_PI); if (angle < 0) { angle = TWO_PI + angle; } return angle; } float...
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. // // Produced at the Lawrence Livermore National Laboratory // // LLNL-CODE-666778 // // All rights reserved. // // This file is part of Conduit. // // For detail...
#include <alignment/algorithms/sorting/MultikeyQuicksort.hpp> #include <cassert> void UIntSwap(unsigned int &a, unsigned int &b) { // // There probably is an SSE for this. // unsigned int tmp = a; a = b; b = tmp; } void VecSwap(UInt i, UInt j, UInt n, UInt index[]) { UInt ni; for (ni ...
#include "../Codegen/Codegen.h" #include "../System/BoolVec.h" #include "../Type.h" #include "../Vm.h" #include "CanoMemcpy.h" #include "Clonable.h" #include "Memcpy.h" /** */ class Memcpy : public Clonable<Memcpy,Inst> { public: Memcpy() { } Memcpy( AttrClone, const Memcpy *orig ) : dst( orig->dst ), s...
#include <jamscript> #include <functional> #include <queue> constexpr std::size_t kNumberOfCoroutine = 1000000; constexpr std::size_t kNumberOfChild = 10; constexpr bool kWaitInGroup = true; constexpr bool useImmediateExecutePolicy = true; jamc::StackTraits stCommon(false, 4096 * 2, true, useImmediateExecutePolicy), ...
#include <iostream> #include <vector> #include <HFO.hpp> #include <cstdlib> #include <thread> #include <mutex> #include <condition_variable> #include <unistd.h> using namespace std; using namespace hfo; // This example controls two agents using a single process. // To run this example you don't need to start the HFO ...
#include <cstdlib> #include <cstdio> #include <vector> #include <array> #include <string> #include <unistd.h> #include <complex> #include <thread> #include "dir1/debuggee.h" #include "dir2/debuggee.h" extern "C" void disassembly1(); void deepstack(int levelsToGo) { if (levelsToGo > 0) { deepstack(levelsT...
// // libieeep1788 // // An implementation of the preliminary IEEE P1788 standard for // interval arithmetic // // // Copyright 2013 - 2015 // // <NAME> (<EMAIL>) // Department of Computer Science, // University of Wuerzburg, Germany // // Licensed under the Apache License, Ve...
// Header files #include <iostream> #include <cmath> using namespace std; // Global constants // none // Function prototypes /* Name: displayTitle Process: display title with underline Function Input/Parameters: none Function Output/Parameters: none Function Return: none Device Input: none Device Output/Monitor...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2012, <NAME>. All rights reserved. // Copyright (c) 2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that...
// Copyright (c) 2012 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 "ppapi/tests/test_case.h" #include <sstream> #include "ppapi/tests/pp_thread.h" #include "ppapi/tests/test_utils.h" #include "ppapi/tests/t...
/* * Vulkan Example - imGui (https://github.com/ocornut/imgui) * * Copyright (C) 2017 by <NAME> - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #include "ba.h" #include "saiga/core/image/imageTransformations.h" #include "saiga/core/imgui/imgu...
#include "DX12LibPCH.h" #include <dx12lib/CommandQueue.h> #include <dx12lib/DescriptorAllocatorPage.h> #include <dx12lib/Device.h> using namespace dx12lib; DescriptorAllocatorPage::DescriptorAllocatorPage( Device& device, D3D12_DESCRIPTOR_HEAP_TYPE type, uint32_t num...
#include "Geometry/CaloGeometry/interface/IdealZPrism.h" #include <cmath> typedef IdealZPrism::CCGFloat CCGFloat ; typedef IdealZPrism::Pt3D Pt3D ; typedef IdealZPrism::Pt3DVec Pt3DVec ; IdealZPrism::IdealZPrism() : CaloCellGeometry() {} namespace { // magic numbers determined by ParticleFlow conste...
#include <iostream> #include "StationarySonarDetector.h" #include <list> #include <opencv_workbench/utils/ColorMaps.h> #include <opencv_workbench/wb/WB.h> #include <opencv_workbench/wb/Cluster.h> #include <opencv_workbench/wb/ClusterProcess.h> #include <opencv_workbench/wb/NDT.h> #include <opencv_workbench/utils/Open...
#include "llvm/IR/BasicBlock.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/IRBuilder.h" #include "llvm/Transforms/Utils/ModuleUtils.h" #include "FunctionMemoizer.h" #include "llvm/IR/LegacyPassManager.h" #include "FunctionInstCounter.h" #include "llvm/Option/ArgList.h" #include "llvm/IR/InstrTypes.h" #includ...
// // Created by <NAME> on 2019-02-15. // #include <iostream> #include <sstream> #include <cmath> #include <cstdlib> #include <ctime> #include <string> #include <memory> #include <vector> #include <map> #include <unordered_map> #include <set> #include <unordered_set> #include <deque> #include <queue> #include <stack> ...
/* libs/graphics/animator/SkDrawGradient.cpp ** ** Copyright 2006, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licen...
#include <cmath> #include "Collision/CollisionChecker.h" #include "Component/CollisionComponent.h" #include "Component/VelocityComponent.h" #include "Message/CollisionMessage.h" #include "Entity/Entity.h" #include <SDL.h> CollisionHit CheckHitboxes(const SDL_Rect &box1, const SDL_Rect &box2, const SDL_Rect &is...
/* * Copyright (c) 2020, <NAME> <<EMAIL>> * 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 above copyright notice, this * list of co...
/*++ Copyright (c) 2000-2001 Microsoft Corporation Module Name: AssocComponent.cpp Abstract: Implementation of: CAssocComponent Author: <NAME> 22-Mar-2001 Revision History: --*/ // // Needed for metabase.h // extern "C" { #include <nt.h> #include <ntrtl.h>...
// Author(s): <NAME> // Copyright: see the accompanying file COPYING or copy at // https://github.com/mCRL2org/mCRL2/blob/master/COPYING // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // /// \file one_point_r...
#include "request.hpp" #include "response.hpp" #include "utils.hpp" #include "param.hpp" #include "cache_t.hpp" #include "ngx_http_lua_module.hpp" static void *ngx_http_lua_create_conf(ngx_conf_t *cf); static char *ngx_http_lua_load(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); static ngx_int_t ngx_http_lua_handle...
/*===========================================================================*\ * * * CoMISo * * Copyright (C) 2008-2009 by Computer Graphics Group, RWTH Aachen * * ...
// Copyright (C) 2013 <NAME> (<EMAIL>) // License: Boost Software License See LICENSE.txt for the full license. #include <dlib/python.h> #include <dlib/statistics.h> using namespace dlib; namespace py = pybind11; typedef std::vector<std::pair<unsigned long,double> > sparse_vect; struct cca_outputs { matrix<d...
/*========================================================================= Program: Visualization Toolkit Module: otherColorTransferFunction.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distr...
#include <cstdlib> #include <cstring> #include <cstdio> #include <cmath> #include "common/wave.h" #include "common/debug.h" //#include "ft8/v1/pack.h" //#include "ft8/v1/encode.h" #include "ft8/pack.h" #include "ft8/encode.h" #include "ft8/constants.h" #define LOG_LEVEL LOG_INFO void gfsk_pulse(int n_spsym, float ...
/* * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. You may obtain a copy of the License at * * http://www.apache.org/li...
/* (c) 2018 CYVA. For details refer to LICENSE */ // // #pragma once #include <cstdlib> #include <string> #include <vector> #include <cyva/encrypt/crypto_types.hpp> #include <cryptopp/config.h> #if CRYPTOPP_NO_GLOBAL_BYTE typedef CryptoPP::byte byte; #endif #include <cryptopp/osrng.h> using CryptoPP::AutoSeededR...
/* * Copyright (c) 2018-2020, <NAME> <<EMAIL>> * 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 above copyright notice, this * list ...
#include <ros/ros.h> #include <sensor_msgs/JointState.h> #include <math.h> #include <chrono> #include <iostream> #include "velTrapezoidalRule.h" #include "kinematics3Dof.h" const std::vector<double> r{0.035, 0.13, 0.127}; const int dofNum = 12; const double offset_y = -0.04; const double offset_z = -0.07; const std:...
#include "../zpng.h" #include <iostream> #include <fstream> #include <vector> using namespace std; #define STB_IMAGE_IMPLEMENTATION /* compile it here */ #include "thirdparty/stb_image.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "thirdparty/stb_image_write.h" #ifdef _WIN32 #ifndef NOMINMAX #defi...
#include "stdafx.h" #include "dx103DFluidEmitters.h" #include "dx103DFluidBlenders.h" #include "dx103DFluidData.h" #include "dx103DFluidGrid.h" namespace { shared_str strImpulseSize("size"); shared_str strImpulseCenter("center"); shared_str strSplatColor("splatColor"); } // namespace dx103DFluidEmitters::dx103DFluid...
// studentLoan.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <vector> #include "userData.h" #include "governmentLoans.h" #include "loans.h" #include "suggestions.h" using namespace std; //variables float privateTotal; //functions //void priv...
#include "tag.h" #include <QJsonArray> #include <utility> #include "functions.h" #include "tag-type.h" Tag::Tag() : m_id(0), m_type(TagType()), m_count(0) {} Tag::Tag(const QString &text, const QString &type, int count, const QStringList &related) : Tag(text, TagType(type), count, related) {} Tag::Tag(const QStri...
/** * MaNGOS is a full featured server for World of Warcraft, supporting * the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8 * * Copyright (C) 2005-2016 MaNGOS project <https://getmangos.eu> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gen...
/**************************************************************************** * * Copyright (c) 2014 PX4 Development Team. 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. Redistri...
/** * Copyright 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
#include <iostream> #include <iostream> #include <fstream> #include <cstring> #include <cstdlib> #include <map> #include <algorithm> #define limit 10000 using namespace std; typedef long long number; typedef pair<int, int> coord; ifstream fin("input.txt"); number s[limit], i, base; int direction, output, mini, m...
// Copyright 2018 The Fuchsia 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 <fuchsia/hardware/thermal/c/fidl.h> #include <ddk/binding.h> #include <ddk/debug.h> #include <ddk/metadata.h> #include <ddk/platform-defs.h> #inc...
#include "rand_tests.h" #include "test_assert.h" #include "../jtk/rand.h" #include <iostream> #include <random> namespace jtk { void test_xorshift32() { xorshift32 gen; gen.seed(0x74382381); TEST_EQ(2561652095, gen()); TEST_EQ(2920033695, gen()); TEST_EQ(1548013632, gen()); TEST_EQ...
// Copyright (C) 2018-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 /******************************************************************************\ Copyright (c) 2005-2020, Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are perm...
/* Copyright (C) 1996, 1997, 1998, 1999, 2000 <NAME> 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 2, or (at your option) any later version. This is distributed in the hope...
/* * 2018.4.21 <EMAIL> * C++ 練習 * released under https://creativecommons.org/publicdomain/zero/1.0/legalcode.ja */ #include <iostream> #include <vector> using namespace std; #define p(a) { cout << (a) << " at line " << __LINE__ << endl; } #define p2(a) { cout << (a).toString() << " at line " << __LINE__ << endl; }...
// This uses mapped buffers to upload data // The buffer backing the square's VAO is switched to change vertex data quickly // The attribute binding could also be switched to change the vertex data quickly // https://stackoverflow.com/a/21652955/3291506 explains buffer binding indices // Interactivity: Spacebar toggle...
/* * Copyright (C) 2016-2021 Grok Image Compression Inc. * * This source code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This source code is distributed in th...
#include <monte_carlo_tree_search.h> #include <random> Node::Node(float prior, int to_play, int action) : prior_(prior), to_play_(to_play), action_(action) {} bool Node::IsExpanded() { return Children.size() > 0; } float Node::GetValue() { return visit_count_ == 0 ? 0 : value_sum_ / visit_count_; } int Node:...
/* // // INTEL CORPORATION PROPRIETARY INFORMATION // This software is supplied under the terms of a license agreement or // nondisclosure agreement with Intel Corporation and may not be copied // or disclosed except in accordance with the terms of that agreement. // Copyright(c) 2003...
/* * Copyright 2018 ARP Network * * 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...
#include "IntervalGen/IntGenForBfloat16OneApprox.h" #include "luts.h" #include "math.h" // ComputeOracleResult: // Given a tf32 input, compute the correctly rouned tf32 result float IntervalGenerator::MpfrCalculateFunction(float x) { int exact = mpfr_set_d(mval, x, MPFR_RNDN); if (exact != 0) { printf("uh oh.....
#include "Application.hpp" #include <iostream> #include <glm/glm.hpp> #include <imgui.h> #include <glmlv/Image2DRGBA.hpp> int Application::run() { float clearColor[3] = { 0, 0, 0 }; // Loop until the user closes the window for (auto iterationCount = 0u; !m_GLFWHandle.shouldClose(); ++iterationCount) ...
/** ****************************************************************************** * @file UART/UART_Printf/Src/main.c * @author <NAME> * @brief Prints Hello Word using UART. ****************************************************************************** */ #include "main.h" UART_HandleTypeDef UartHa...
/************************************************************ * Student Name: <NAME> * * Exercise Name: Ex1 * * File description: Implementation of GameObject Class * ***********************************************************/ #include "GameObjec...
/*========================================================================= Image-based Vascular Analysis Toolkit (IVAN) Copyright (c) 2012, <NAME> Vicomtech Foundation, San Sebastián - Donostia (Spain) University of the Basque Country, San Sebastián - Donostia (Spain) All rights reserved See LICENSE file for licen...
#include <iostream> #include <stdexcept> #include <Eigen/Dense> #include <Eigen/Core> #include <Eigen/QR> #include <Eigen/Eigenvalues> #include <Eigen/IterativeLinearSolvers> #include <unsupported/Eigen/IterativeSolvers> #include <chrono> #include "DavidsonSolver.hpp" DavidsonSolver::DavidsonSolver(){} void Davidso...
// Copyright (c) 2020, NVIDIA CORPORATION. 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 ...
// // Created by aislam6 on 1/29/20. // #include "core/node.h" #include "core/state.h" #include "../core/heuristic.h" #include <stdio.h> #include <queue> #include <list> #include <map> #define IDS_BIDIR_MAX_DEPTH 20 class IdsBidirEightPuzzle : public Solver { public: IdsBidirEightPuzzle(void *_parameter) { ...
#include "houghLine.h" #include <algorithm> #include <cmath> #include <stdexcept> #include <vector> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "autoCropUtils.h" #include "binarizeLocalOtsu.h" #include "imageLibCommon.h" #include "utils.h" double distanceToL...
//----------------------------------------------------------------------------- // File : asdxFileWatcher.cpp // Desc : File Wacher. // Copyright(c) Project Asura. All right reserved. //----------------------------------------------------------------------------- //----------------------------------------------------...
#include <arch.h> #include <device/debug/com.h> #include <kernel.h> #include <logging.h> #include <physical.h> #include <utility.h> #include <utils/bitmap.h> #include <utils/lock.h> bitmap pmm_bitmap; extern "C" uint64_t kernel_end; extern "C" uint64_t addr_kernel_start; utils::lock_type pmm_lock; uint64_t available_me...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /************************************************************************************************** *** This file was autogenerated from GrCircleEffect.fp; do not modify. **...
#pragma once #include <sys/mman.h> #include <cassert> #include <fcntl.h> #include <string> #include <vector> struct cds_entry { uint64_t begin; uint64_t end; uint8_t phase; float phylo_score = NAN; // if score cannot be computed/looked up, it will automatically output NAN float phylo_power = NAN...
#include "Globals.h" #include "QuadTree.h" #include <raylib.h> int TotalPoints; void QuadTree::Init() { Points.clear(); PointsInRange.clear(); TotalPoints = 0; bDivided = false; for (int i = 0; i < 300; i++) { const Point P = Point(GetRandomValue(10, GetScreenWidth()-PANEL_WIDTH - 10), GetRandomValue(10, Ge...
/* -*- Mode: C++; -*- */ // copyright (c) 2013 by <NAME> <<EMAIL>> /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the term...
/****************************************************************** DHT Temperature & Humidity Sensor library for Arduino. Features: - Support for DHT11 and DHT22/AM2302/RHT03 - Auto detect sensor model - Very low memory footprint - Very small code http://www.github.com/markruys/arduino-DHT Written by <...
#include "AntColony.h" #include <stdlib.h> #include <iostream> #include "SFML/Graphics/RenderTarget.hpp" #include "CellMap.h" unsigned int AntColony::STARTNUM = 15; //Make a Copy Constructor to fix ant pointers automagically AntColony::AntColony(CellMap* const map, const unsigned int index, const sf::Color& colon...
#include "ArchivePackTool.h" #include <FileSystem/FileSystem.h> #include <Tools/ResourceArchiver/ResourceArchiver.h> #include <Tools/AssetCache/AssetCacheClient.h> #include <Utils/StringUtils.h> #include <Utils/StringFormat.h> #include <Logger/Logger.h> #include <Debug/DVAssert.h> #include <Engine/Engine.h> #include "...
/** * Project: Open Vehicle Monitor System * Module: Renault Twizy: general utilities * * (c) 2017 <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 wit...
/** * Copyright (c) 2017 <NAME> * Licensed under the MIT License. * See LICENSE file for more information. */ #include "saiga/core/glfw/all.h" #include "saiga/core/imgui/imgui.h" #include "saiga/core/model/model_from_shape.h" #include "saiga/opengl/assets/all.h" #include "saiga/opengl/rendering/deferredRenderin...