text stringlengths 5.71k 33.7k |
|---|
//===- Archive.cpp - ar File Format implementation --------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/* -*- mode: C++; indent-tabs-mode: nil; -*-
*
* This file is a part of LEMON, a generic C++ optimization library.
*
* Copyright (C) 2003-2013
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
* (Egervary Research Group on Combinatorial Optimization, EGRES).
*
* Permission to use, modify and distribut... |
// 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) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (c) 2010-2016 OTClient <https://github.com/edubart/otclient>
*
* 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... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must reta... |
//----------------------------------------------------
// file: Scene.cpp
//----------------------------------------------------
#include "Pch.h"
#pragma hdrstop
#include "NetDeviceLog.h"
#include "Scene.h"
#include "SceneChunks.h"
#include "SceneClassList.h"
#include "Texture.h"
#include "FileSystem.h"
... |
//===------- StackPromotion.cpp - Promotes allocations to the stack -------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
#include "node.h"
#include "crc32c.h"
// generic PortInfo object, used as common base class by lists
UAVPortInfo::UAVPortInfo(uint16_t port, PGM_P name) {
port_id = port;
// store the name
dtf_name = name;
// find length now, saves time later
dtf_name_length = strlen_P(dtf_name);
// compute the... |
#include "tgpu.h"
static const int TEX_SIZE = 256;
TGPU::TGPU()
{
}
void TGPU::DensityGen(TextureProvider& textureProvider)
{
Imm::matrix m_matrix;
m_matrix.translation(0.5f, 0.1f, 0.f);
Imm::matrix invWorld;
invWorld.inverse(m_matrix);
bgfx::setUniform(m_invWorldMatrixUniform, invWorld.m16)... |
/**
* Copyright (c) 2018, <NAME>
*
* 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 conditions a... |
/************************************************************
*
* CmdPayInvoice.cpp
*
*/
/************************************************************
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protoco... |
#include "assignment.hpp"
/// Constant-cost assignment constructor sets network pointer.
ConstantAssignment::ConstantAssignment(Network * net_in)
{
Net = net_in;
stop_size = Net->stop_nodes.size();
}
/**
Constant-cost assignment model evaluation for a given solution.
Requires a fleet size vector and nonlinear cost... |
#include "compressible_functions.H"
#include "common_functions.H"
void evaluateStats(const MultiFab& cons, MultiFab& consMean, MultiFab& consVar,
const MultiFab& prim_in, MultiFab& primMean, MultiFab& primVar,
MultiFab& spatialCross, MultiFab& miscStats, Real* miscVals,
... |
//------------------------------------------------------------------------------
// imgui-highdpi-sapp.c
//------------------------------------------------------------------------------
#include "sokol_app.h"
#include "sokol_gfx.h"
#include "sokol_time.h"
#include "imgui.h"
#include "imgui_font.h"
const int MaxVertic... |
/* Copyright (C) 2003 MySQL AB
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 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT AN... |
/*
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, dis... |
#include <cstdint>
#ifndef lint
static const char rcsid[] = "$Id$" ;
#endif
/* variation on serialmon companion program serialdump, which
* interprets data as a zmodem dialog
*/
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <time.h>
//#include <sys/termios.h>
#include <sy... |
/*
This file is part of Kismet
Kismet 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.
Kismet is distributed in the ... |
/* Copyright 2019-2021 Google LLC
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 in writing, software... |
// -*- C++ -*-
#include <TFile.h>
#include <TMath.h>
#include <TTree.h>
#include <TChain.h>
#include <TGraph.h>
#include <TGraphErrors.h>
#include <TF1.h>
#include <TVectorD.h>
#include <TMatrixD.h>
#include <TMatrixDSym.h>
#include <TParameter.h>
#include <Math/Functor.h>
#include <TMinuit.h>
#include <TFitter.h>
#... |
// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... |
/*!
* @file kdgo.cpp
* Loading DGO Files. Also has some general SIF RPC stuff used for RPCs other than DGO loading.
* DONE!
*/
#include <cstring>
#include "kdgo.h"
#include "kprint.h"
#include "kmalloc.h"
#include "fileio.h"
#include "klink.h"
#include "game/sce/sif_ee.h"
#include "game/common/dgo_rpc_types.h"
#i... |
// AutoSave.cpp : DLL アプリケーション用にエクスポートされる関数を定義します。
//
#include "stdafx.h"
#include "../MMDUtility/mmdplugin/mmd_plugin.h"
#include "../MMDUtility/mmd_utility.h"
#include <io.h>
#include <fcntl.h>
#include <mutex>
#include <experimental/filesystem>
#include <fstream>
#include <iomanip>
#include <atomic>
#include <time... |
#include "include/credential.hpp"
#include "cryptoStructs.h" //key_pair type and skein_hash type
#include "ctrMode.h" //ctrEncrypt(), ctrDecypt()
#include "hash.h" //skeinHash()
#include "random.hpp" //Random().getBytes()
#include "skeinApi.h"
#include "util.h" //compareWordBuff(), hexEncode(), hexDecode(), isEmpty()
... |
#include "controller.h"
#include "addressbook.h"
#include "settings.h"
#include "version.h"
#include "camount.h"
#include "websockets.h"
using json = nlohmann::json;
Controller::Controller(MainWindow* main) {
auto cl = new ConnectionLoader(main, this);
// Execute the load connection async, so we can set up ... |
#include "lab_m1/Tema1/Tema1.h"
#define BORDER_COLOR glm::vec3(0, 0, 0.6f)
#define BODY_COLOR glm::vec3(1, 0.6f, 0.6f)
#define BAG_COLOR glm::vec3(0.4f, 0.5f, 0.7f)
#define HANDS_COLOR glm::vec3(1, 0.69f, 0.4f)
#define RED_COLOR glm::vec3(1, 0, 0)
#define DARKRED_COLOR glm::vec3(0.4f, 0, 0)
#define BLACK_COLOR... |
// Copyright (c) rA<NAME> - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#include "mail.hpp"
#include "../common/nullpo.hpp"
#include "../common/showmsg.hpp"
#include "../common/strlib.hpp"
#include "../common/timer.hpp"
#include "atcommand.hpp"
#include "battle.hpp"
#include "clif.... |
// Copyright (C) 2011 by the BEM++ Authors
//
// 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, p... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, <NAME>, Inc.
* 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 reta... |
// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include "autowall.h"
bool autowall::is_breakable_entity(IClientEntity* e)
{
if (!e || !e->EntIndex())
return false;
static auto is_br... |
/////////////////////////////////////////////////////////////////////////////
// Name: mathstuff.cpp
// Purpose: Some maths used for pyramid sample
// Author: <NAME>
// Created: 2015/01/31
// Copyright: (c) 2015 <NAME>
// Licence: wxWindows licence
/////////////////////////////////////////////... |
//===- OutputSections.cpp -------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... |
/*
* NDPosPlugin.cpp
*
* Created on: 19 May 2015
* Author: gnx91527
*/
#include <string.h>
#include <sstream>
#include <iocsh.h>
#include <sys/stat.h>
#include <string>
#include <list>
#include <map>
#include <vector>
#include <epicsTypes.h>
#include <epicsThread.h>
#include <asynDriver.h>
#include <epic... |
/* ***************************************************************************
* Copyright (c) 2017 Google, Inc. All rights reserved.
* ***************************************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted... |
/*
main
Copyright 2012 <NAME> - http://tomdalling.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 applicable law or a... |
// Shasta.
#include "ReadGraph.hpp"
#include "deduplicate.hpp"
#include "orderPairs.hpp"
using namespace shasta;
// Boost libraries.
#include <boost/pending/disjoint_sets.hpp>
// Standard library.
#include "fstream.hpp"
#include <map>
#include <queue>
const uint32_t ReadGraph::infiniteDistance = std::numeric_limits<... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 Couchbase, 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
*
* h... |
///////////////////////////////////////////////////////////////////////////////
// this program just uses sicktoolbox to get laser scans, and then publishes
// them as ROS messages
//
// Copyright (C) 2008, <NAME>
//
// I am distributing this code under the BSD license:
//
// Redistribution and use in source and binary... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
#include "rods.h"
#include "rodsClient.h"
#include "irods_client_api_table.hpp"
#include "irods_pack_table.hpp"
rcComm_t *Conn;
int lastCommandStatus = 0;
int... |
// Copyright (c) 2014-2018 LG Electronics, 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 law or... |
/*******************************************************************************
* Data.cpp *
*----------*
* Description:
* Constant data tables.
*-------------------------------------------------------------------------------
* Created By: mc Date: 03/12/99
* Cop... |
//--------------------------------------------------------------------------------
// This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed
// under the MIT License, available in the root of this distribution and
// at the following URL:
//
// http://www.opensource.org/licenses/mit-license.ph... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<math.h>
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
class Int{
#define BASE 1000000000
public:
typedef long long value;
void New(size_t l){
if (a!=NULL)delete[] a;a=new value[l];
len... |
//**********************************************************************************
//Copyright 2015 Applied Research Associates, 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:/... |
int hJA/*4lU6*/ ,PY, MUD ,/*w*/tnPa, s ,GuA5 , //X
GPV
,yWGP
, qWn ,iI66MqA,J3gd , IVt ,
XFR/*Z4*/ ,
ljz
, CUK ,
D , OTS, cLU, IG
, r6j,
pvA, VsGJ,AVh,
NWf
,iDP7X
, oM
,
WpKz
,hTg,k1r; /*0I*/void
f_f0
() {
int /*gCM*/ Zyo ;
volatile int N0A , Y8 ,Lw ,
UBt,lSx
, aN, qIiRt, w0
,ujX8,
T67;return ... |
// Copyright (C) 2005, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#if defined(_MSC_VER)
// Turn off compiler warning about long names
# pragma warning(disable:4786)
#endif
#include <cstdlib>
#include <c... |
#include <graphics/renderer.h>
#include <serialization/config.h>
#include <util/logging_system.h>
#include <glad/glad.h>
#include <glm/gtc/matrix_transform.hpp>
Renderer::Renderer() :
gammaFactor(0.0)
{}
void Renderer::Init(WindowFramePtr window)
{
this->window = window;
// Enable blending mode for rendering par... |
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <array>
#include <chrono>
using namespace std;
#define MAX_POP 10000
#define MAX_TURN 6
class Point {
public:
Point() {x = 0; y = 0;};
Point(float _x, float _y) {x = _x; y =_y;};
float... |
#include <sstream>
#include <cmath>
#include <Eigen/Dense>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <geometry_msgs/Point.h>
#include <std_msgs/Bool.h>
#include "geometry_msgs/PointStamped.h"
#include "include/run_yolo.h"
#include <... |
// Function definitions and important structs
#include "scanpath_BetterStriping.h"
// Gives us access to M_PI and trig functions
#define _USE_MATH_DEFINES
#include <math.h>
// Represent line as one (x, y) point and a slope
// Note that the range [89deg, 91deg] is collapsed to 90deg to avoid integer overflows, and the... |
#define STB_IMAGE_IMPLEMENTATION
// Headers
// ---------------------------------------------------------------------------------------------------------------------
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
// Standard Headers
#include <iostream>
#include <cmath>
// Other Headers
#include <stb_im... |
#include <glad\glad.h>
#include <GLFW\glfw3.h>
#include <stb_image.h>
#include <glm\glm.hpp>
#include <glm\gtc\matrix_transform.hpp>
#include <glm\gtc\type_ptr.hpp>
#include<learnopengl\shader_s.h>
#include<learnopengl\camera.h>
#include <iostream>
#include "LightCasters.h"
using namespace std;
//input funcs
void f... |
/*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S.... |
/**
*
* Usage: This file defines the stron_pcg_prog class for the STRON-PCG-PROG method (Chauhan et al 2018) in C++.
* It uses STRON with pcg subproblem solver and progressive subsampling.
*
* Input:
* problem: oject of the problem class to be solved.
* options: it contains different p... |
#include <TObjString.h>
#include "TSystem.h"
#include "TGrid.h"
#include "TFile.h"
#include "TString.h"
#include "TMath.h"
#include "TTree.h"
#include "TCanvas.h"
#include "TLegend.h"
#include "TLatex.h"
#include "TF1.h"
#include "TH1.h"
#include "TH2.h"
#include "AliUEHistograms.h"
#include "AliTHn.h"
#include "Al... |
/*
* Copyright (c) 2019 <NAME> <<EMAIL>>
*/
#include "utils.h"
#include "context_manager.h"
#include "schema_validator.h"
#include "generated/response_schema.h"
#include <libsbox.h>
#include <rapidjson/writer.h>
#include <rapidjson/document.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <rapidjson/error/en... |
#include "Vehicle.hpp"
#include <TrafficMapper/Media/MediaPlayer>
#include <TrafficMapper/Modules/Tracker>
#include <TrafficMapper/Tools/Helpers>
#include <TrafficMapper/Tools/KalmanSmoother>
#include <TrafficMapper/Types/Detection>
#include <cppitertools/imap.hpp>
#include <cppitertools/range.hpp>
#include <cppitert... |
#include "MainForm.h"
#include "dds_utils.h"
#include <Commctrl.h>
#include "../resource.h"
#include "ChooseFolderDlg.h"
#include "Hyperlinks.h"
#include <lz4/lz4.h>
#include <crunch/inc/crn_decomp.h>
#define WM_MY_CONVERSION_FINISHED (WM_USER + 1)
MainForm::MainForm()
// form
: mForm(nullptr)
// rad... |
// license:LGPL-2.1+
// copyright-holders:<NAME>, <NAME>, hap
/*************************************************************************
Taito JC System
functions to emulate the video hardware
*************************************************************************/
#include "emu.h"
#include "video/poly.h"
#in... |
// Written: <NAME> and <NAME>
// Created: 2013.7
// Reference:JP Conte, MK. Jagannath, \Seismic relibility analysis of concrete
// gravity dams, A Report on Research, Rice University, 1995.
// 3D J2 plasticity model with linear isotropic and kinematic hardening
//
// -------------------
#include <math.h>
#inclu... |
// Copyright 2014, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: <NAME> (<EMAIL>)
#include "./SparqlParser.h"
#include "../global/Constants.h"
#include "../util/Conversions.h"
#include "../util/Exception.h"
#include "../util/Log.h"
#include "../util/StringUtils.h"
#include "./ParseExce... |
/*
pcf.cpp
Perturbation configuration
Part of Audapter
<NAME>, 2013
*/
#include <cstdlib>
#include <cstdio>
#include <string>
#include <sstream>
#include "mex.h"
#include "pcf.h"
#include "utils.h"
using namespace std;
/* pvocWarpAtom: Default constructor */
pvocWarpAtom::pvocWarpAtom() {
tBegin = 0.25;
dur1... |
/*******************************************************************************
Copyright (C) 2021 <NAME>
This file is part of DGGRID.
DGGRID 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 Found... |
//rayan-forsat
#include <stdio.h>
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <list>
#include <vector>
#define SIZE 200
using namespace std;
#include "stdio.h"
#include "stdlib.h"
#define M 3
... |
#include <omp.h>
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <numeric>
#include <functional>
#include <fstream>
#include <iterator>
#include <ctime>
#include <cmath>
#include <string>
#include <sstream>
#include <random>
#include <iomanip>
//#include "overridenew.h"
#include "../utility.h"
#i... |
/*
* This file contains the logics that controls the view of mainwindow.ui
* mainvindow.ui contains the user interface's widgets
*/
#include "ui_mainwindow.h"
#include "mainwindow.h"
typedef enum {
CH_HEX = 0, CH_BIN, CH_UNICODE
} output_format_type;
typedef enum {
DEVICE_ADDRESS = 0,
DEVICE_NAME,
// ... |
#include "Player.h"
#include "Render.h"
#include "Input.h"
#include "Scene.h"
#include "Collisions.h"
#include "Map.h"
#include "Animation.h"
#include "Textures.h"
#include "Pathfinding.h"
#include "Timer.h"
#include "Particles.h"
#include "Fade.h"
#include "Player.h"
#include "EntityManager.h"
#include "SDL_mixer\inc... |
#ifdef __APPLE__
#include <CUESDK/CUESDK.h>
#else
#include <CUESDK.h>
#endif
#include <iostream>
#include <thread>
#include <vector>
#include <atomic>
#include <windows.h>
#include <cstdlib>
#include <unordered_set>
#include <unordered_map>
#include <set>
#include <map>
#include <math.h>
#include "DXGIManager.h"
#inc... |
#include <iostream>
#include <cstring>
#include <cstdio>
#include <map>
#include <vector>
#include <string>
#include <ctime>
#include <algorithm>
#include <cmath>
#include <cstdlib>
using namespace std;
string inPath = "./wiki50k/";
extern "C"
void setInPath(char *path, int len) {
inPath = "";
printf("init p... |
/*
* Copyright 2007-2015 The OpenMx 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 b... |
//Created by <NAME> on 13/06/2019
#include "MSwitch.h"
#include <assert.h>
#include "utility.h"
/*
*/
MSwitch::MSwitch(id_t id, std::string name, int num, Config stonne_cfg) :
Unit(id, name){
this->num = num;
//Extracting parameters from configuration file
this->latency = stonne_cfg.m_MSwitchCfg.latency... |
// vim: awa:sts=4:ts=4:sw=4:et:cin:fdm=manual:tw=120:ft=cpp
#include "common/include/config_options.h"
#include "common/include/iostream_error.h"
#include "common/include/logging.h"
#include "common/include/special_files.h"
#include "lib/include/computer_information.h"
#include "lib/include/fortune.h"
#include <array>... |
#include <string>
#include <iostream>
#include <math.h>
#include <display/VRConsoleNode.h>
#include <main/VRMain.h>
#include <main/VREventHandler.h>
#include <main/VRRenderHandler.h>
#include <math/VRMath.h>
#if defined(WIN32)
#define NOMINMAX
#include <windows.h>
#include <GL/gl.h>
#include <gl/GLU.h>
#elif defined... |
/* Copyright (c) 2020 Voltagezone Electronics e.U. <<EMAIL>> */
#include <array>
#include <chrono>
#include <csignal>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "i3system_TE.h"
#include "opencv2/core/core.hpp"
#include "ope... |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <random>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
#include "boost/math/distributions/students_t.hpp"
using namespace std;
us... |
/* Author: <NAME>, <NAME>, 2005 */
/* $Id: step-19.cc 27657 2012-11-21 13:19:08Z bangerth $ */
/* */
/* Copyright (C) 2005-2006, 2011-2012 by the deal.II authors */
/* */
/* This... |
/*
*
* Copyright (c) 2021 Project CHIP Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
#include "Test_Matrix3x3.h"
#include "Assist/Matrix3x3.hpp"
#include "Assist/Vector3.hpp"
void Test_Matrix3x3::setupTest()
{
addTestCase("testCase_basics ", testCase_basics, NULL, NULL);
//addTestCase("testCase_sum ", testCase_sum, NULL, NULL);
//addTestCase("testCase_subtract ", testCase_subtract, ... |
/**
* Copyright(c) 2014 Carnegie Mellon University. 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 li... |
//
// pyBeam.cpp
// pbeam
//
// Created by <NAME> on 2/7/12.
// Copyright (c) 2012 NREL. All rights reserved.
//
#include "myMath.h"
#include <pybind11/eigen.h>
#include <pybind11/pybind11.h>
#include "FEAData.h"
#include "Beam.h"
#include "CurveFEM.h"
#include <iostream>
namespace py = pybind11;
//MARK: ------... |
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using Eigen::MatrixXd;
using Eigen::VectorXd;
using namespace std;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF()
{
// if this is false, laser measurements will be ignored (except during init)
use_laser_ = true;
// if this is false, radar me... |
int LF,
BQ ,H
,eCrS
,Q8 ,r , g7,
MBM ,
WQ9, dBfS1
,CU/*m*/,
JQ
,
hhCreE ,z2F ,Mmgg,Vi
, b,//y
yjxA, rxEJt , L70s0 , YQi
//
,
FtLz
,
//c3
nhqA, YCA9,/*0I*/VhRf, b3 //Grb
,y1G,az , y3//lKM
,yG
, sNHI
,jTsV; void
f_f0() {int ghbN;volatile int nK
, rYCr,HPRu
,JY,ab ,vP4;
{volatile int/*tPA*///... |
/*****************************************************************************
* Title: GLBoing
* Desc: Tribute to Amiga Boing.
* Author: <NAME> <<EMAIL>>
* Original Amiga authors were <NAME> and <NAME>.
* GLFW conversion by <NAME>
* Notes: - 360' = 2*PI [radian]
*
* - Distan... |
/**
* @file storage_gcs.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2018,2021 Omics Data Automation, Inc.
*
* 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... |
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would... |
// Copyright (C) 2013 <NAME>
// Author: <NAME> <<EMAIL>>
#include <QElapsedTimer>
#include <QFileDialog>
#include <iostream>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include "qt/backup2/backup_driver.h"
#includ... |
#include "MaterialModels_pcp.h"
#include <math.h>
#include "mohr_coulomb.h"
#include "MatModelConstants.h"
#include "SymMatEigen.h"
void MohrCoulombGlobal::set_param(
__Float_Type__ _phi, __Float_Type__ _psi,
__Float_Type__ _cohesion,
__Float_Type__ _E, __Float_Type__ _niu)
{
E = _E;
niu = _niu;
G = E / (ffmat... |
/*
* Copyright 2016 <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 in w... |
//********************************************************//
// CUDA SIFT extractor by <NAME> aka Celebrandil //
// celle @ <EMAIL> //
//********************************************************//
#include <atomic>
#include <chrono>
#include <cmath>
#include <iomanip>
#include <iostre... |
/* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */
#include "translate/llvm/LLVMOptimiser.h"
#include "translate/llvm/LLVMAliasAnalysis.h"
#include "translate/llvm/passes/LexicographicallyOrderBlocksPass.h"
#include "util/SimOptions.h"
#include "util/LogContext.h"
#include <... |
#include "pch.h"
#undef UNICODE
#define WIN32_LEAN_AND_MEAN
#define _CRT_SECURE_NO_WARNINGS
// Need to link with Ws2_32.lib
#pragma comment (lib, "Ws2_32.lib")
#include<iostream>
#include<cstdio>
#include<fstream>
#include<sstream>
#include<string>
#include<cstdlib>
#include<conio.h>
#include<windo... |
#include "fileSignaturer.h"
fileSignaturer::fileSignaturer(const string& input, short bs) noexcept(false)
{
///////////////////////////////////////////////////////////////////////////////////
// Collect setup information (about target file and target system)
//////////////////////////////////////////////////////... |
#include <cstdio>
#include <algorithm>
#include <cuda_runtime.h>
#include <time.h>
#include <vector>
#include <math.h>
#include <string.h>
#include <sort_indices.h>
using namespace std;
float randomf(){
return (rand()+0.5)/(RAND_MAX+1.0);
}
static double get_time(){
timespec tp;
clock_gettime(CLOCK_MONOTONIC,&tp)... |
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
#include <chrono>
#include <fstream>
#include <iostream>
#include <math.h>
#include <thread>
#include <uWS/uWS.h>
#include <vector>
using namespace std;
// for convenience
using json = nlohmann::json... |
/**
@file rompc.cpp
Implementation of the ROMPC control scheme.
@brief Does stuff.
*/
#include <rompc/rompc.hpp>
#include <utils/data.hpp>
#include <utils/rotation.hpp>
#include <utils/utils.hpp>
#include <asl_fixedwing/FloatVecStamped.h>
#include <string>
#include <geometry_msgs/Point.h>
#include <std_msgs/Float... |
#include "rs-graphics-core/multi-array.hpp"
#include "rs-graphics-core/vector.hpp"
#include "rs-unit-test.hpp"
#include <iterator>
using namespace RS::Graphics::Core;
void test_rs_graphics_core_multi_array_2d() {
using MA = MultiArray<int, 2>;
MA array;
const auto& carray = array;
TEST(carray.empty... |
/*
* HDF5-UDF: User-Defined Functions for HDF5
*
* File: sandbox_linux.cpp
*
* High-level interfaces for system call interception on Linux.
*/
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#inclu... |
/*-
* Copyright (c) discoDSP
* 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 conditions and ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.