text stringlengths 5.71k 33.7k |
|---|
#include "due.h"
#include "dta_gradient_utls.h"
#include "ults.h"
// #include <assert.h>
#include "limits.h"
MNM_Due::MNM_Due(std::string file_folder)
{
m_file_folder = file_folder;
m_dta_config = new MNM_ConfReader(m_file_folder + "/config.conf", "DTA");
IAssert(m_dta_config -> get_string("routing_type") == "D... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
#include <typeinfo>
using namespace std;
using namespace std;
// for convenience
us... |
#include "StdAfx.h"
#include "CmColorQua.h"
const int CmColorQua::binNum[] = {6*6*6, 256, 5*7*7, 256};
const char* CmColorQua::descr[] = {"S_BGR", "S_HSV", "S_Lab", "D_BGR"};
const CmColorQua::S_QUANTIZE_FUNC CmColorQua::sqFuns[] = {SQ_BGR, SQ_HSV, SQ_Lab};
const CmColorQua::S_RECOVER_FUNC CmColorQua::srFuns[] = {SR_... |
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <regex.h>
#include <vector>
#include <sstream>
#include <random>
#include <chrono>
#include "brkgaAPI/BRKGA.h"
#include "brkgaAPI/MTRand.h"
#include "SimpleSchedulerDecoder.h"
int getRandomInteger(int min, int max) {
std::rand... |
/* <NAME>
Assignment #3 for CS162 at Portland State University
2/20/13
Purpose: Store a schedule of an annex to a Comic-Con event.
This program takes in input and stores it with structs and
external data files. Stores events and booths for the event.
It's also the largest program by far that I have ever written.
... |
#include "algorithms/controlled_prims_algorithm.h"
#include "graph/node.h"
#include "graph/edge.h"
#include "colors.h"
#include "functions.h"
const int PRIMS_STATE_INIT = 1;
const int PRIMS_STATE_NEW_NODE_ASSIGNED = 2;
const int PRIMS_STATE_NEW_NODE_INCLUDED = 3;
const int PRIMS_STATE_ADJACENT_NODES_UPDAT... |
//
// X.cpp
// MDS
//
// Created by miaoever on 1/19/15.
// Copyright (c) 2015 miaoever. All rights reserved.
//
#include "X.h"
#include <iostream>
#include <limits>
#define __DEBUG__
typedef struct Pos {
double value;
int idx;
} Pos;
bool cmp (Pos a, Pos b) {
return (a.value < b.value );
}
double ... |
// --------------------------------------------
// Copyright KAPSARC. Open source MIT License.
// --------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2015 <NAME> Studies and Research Center
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this s... |
/* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
// This file is a part of ChASE.
// Copyright (c) 2015-2021, Simulation and Data Laboratory Quantum Materials,
// Forschungszentrum Juelich GmbH, Germany. All rights reserved.
// License is 3-clause BSD:
// https://github.com/ChASE-library/ChASE
#pra... |
//-----------------------------------------------------------------------------
/*!
* \file compute_metrics_3way.cc
* \author <NAME>
* \date Thu Jan 21 19:07:47 EST 2016
* \brief Calculate metrics, 3-way.
*/
//-----------------------------------------------------------------------------
/*--------------------... |
//**********************************************************************//
//
// A synth that consists of 3 oscillators, 2 envelopes, and a selection
// of modulation paths
//
// MIT License: http://opensource.org/licenses/MIT
//
// Written by: <NAME>
// Changelog (YYYY/MM/DD):
// 2017/05/01: Created
//
//****... |
// axfs.cpp : Defines the entry point for the console application.
//
// LICENSE: GPL v2. This project is a derivative work of the linux kernel.
#include "stdafx.h"
#define STB_IMAGE_STATIC
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "microtar.h"
#include <sys/stat.h>
#pragma warning(disable : 4... |
#include "fsexp.hpp"
#include <array>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <memory>
#include <stdlib.h>
#include <thread>
#include <vector>
using std::array;
using std::copy;
using std::fill;
using std::complex;
usin... |
#include "MayaCacheIO.h"
#include "Endian.h"
#include "Log.h"
#include <rapidxml.hpp>
#include <fstream>
#include <regex>
#include <map>
#include <filesystem>
namespace MayaCache
{
// Inner Tags
static constexpr const char* FOR4 = "FOR4";
static constexpr const char* FOR8 = "FOR8";
static constexpr c... |
/*
* Copyright 2010-2012 Esrille 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 agre... |
#include "FrameLib_ComplexExpression.h"
#include <cmath>
#include "../Complex_Unary/FrameLib_Complex_Unary_Template.h"
#include "../Complex_Binary/FrameLib_Complex_Binary_Template.h"
// Specialisations to allow implicit multiples of i for complex numbers
template<>
const char *FrameLib_ExprParser::Parser<std::compl... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following... |
#include "Parser.h"
Parser::Parser() : EOFSymbol("$EOF$", true), nullSymbol("$NULL$", true), invalidSymbol("$INVALID$", true){
table.setSymbols(EOFSymbol, nullSymbol);
}
Parser::~Parser() {
}
void Parser::exportTable(std::ofstream &file) {
//Do table
table.exportTable(file);
}
void Parser::importTable(char* tabl... |
/*
Copyright 2007-2019 <NAME> <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTH... |
int jlZsE
,X
,
uQI ,IA, Ze7mIF/*1M1*/, GLk
, YE,bE ,
q , FH,qVN ,Sm1 , MF/*Z*///
,EOj
, aO,
QE ,dZQ,IP, RE7, ulFng
, //U
Ywz ,rmEgdq
, AZ
,//0M
b3Q
,UK, I,l9yG
,zhud ,
qt, y5l , bM9l
,
dls ,//RP
dZy
, Yf
,bN /**/ ,/*KwjdJEq*/ oB,
Hf9,ieM,fNz , f7fI ,zV,JB3N
;void
f_f0
() { { volatile int STp
,a
, //me... |
/*
响真是太棒了
響は最高です
Hibiki No.1
Update #2:
Move stress test to the end of all test cases.
Update #1:
Rotation operation removed since it is not garanteed height
is maintained properly after rotation.
*/
#include "rotateBST.h"
#include <algorithm>
#include <map>
#include <ctime>
#include <cstdio>
#include <string... |
/*
Copyright (c) 2013, Regents of the University of Alaska
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 cond... |
#include <iostream>
#include <string>
#include <thread>
#include <chrono>
#include <fstream>
#include <filesystem>
#ifdef USE_PANGOLIN_VIEWER
#include "pangolin_viewer/viewer.h"
#endif
#include <opencv2/core/core.hpp>
#include "opencv2/highgui.hpp"
#include "openvslam/system.h"
#include "openvslam/config.h"
#include... |
/*
Copyright 2020 The Silkworm Authors
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 ... |
// Geometric Modeling
// Final Project
// 2D Harmonic Coordinates
// Author: <NAME>
// <EMAIL>
#include <Eigen/Core>
#include <Eigen/Sparse>
#include <igl/opengl/glfw/Viewer.h>
#include <igl/triangle/triangulate.h>
#include <igl/project.h>
#include <igl/unproject.h>
#include <igl/readOFF.h>
#include <igl/slice.h>
#inc... |
/*
* FFDemux.h
*
* Created on: Sep 13, 2014
* Author: amlogic
*/
#include <libavcodec/avcodec.h>
/**
* Please refer http://android.toolib.net/reference/android/media/MediaFormat.html
* for the details.
*
* Common, Video and Audio,
* KEY_MIME
* KEY_MAX_INPUT_SIZE (optional, maximum size of a buffer... |
#include "pch.h"
#include "utils.h"
#include "helpers.h"
#include "PrivEditor.h"
ULONG_PTR g_Eprocess = 0;
KERNEL_OFFSETS g_Offsets = { 0 };
BOOL DisableAllAvailable(ULONG_PTR pTokenPrivilege)
{
return WriteQword(pTokenPrivilege + g_Offsets.Enabled, 0ULL);
}
BOOL EnableAllAvailable(ULONG_PTR pTokenPrivilege)
{
... |
/* WebDownloader for X-Window
* Copyright (C) 1999-2002 <NAME>
* This Program is free but not GPL!!! You can't modify it
* without agreement with author. You can't distribute modified
* program but you can distribute unmodified program.
*
* This program is distributed in the hope that it will be useful,
* but WI... |
/**************************************************************************
***
*** Copyright (c) 2004 Regents of the University of Michigan,
*** <NAME> and <NAME>
***
*** Contact author(s): <EMAIL>, <EMAIL>
*** Original Affiliation: EECS Department,
*** The University of... |
// Copyright 2016, <NAME>.
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "model/projectm_source.h"
#include <GL/gl.h>
#include <GL/glext.h>
#include <string.h>
#include "util/lock.h"
#include "util/logging.h"
#include "util/time.h"
#include "... |
#include "DallasRmt.h"
#include <mgos_system.h>
#include <mgos_time.h>
// OneWire commands
#define STARTCONVO \
0x44 // Tells device to take a temperature reading and put it on the
// scratchpad
#define COPYSCRATCH 0x48 // Copy EEPROM
#define READSCRATCH 0xBE // Read EEPROM
#define WRITESCRATCH 0... |
// Copyright (c) 2010 <NAME>
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "assert.h"
#include "chainparams.h"
#include "main.h"
#include "util.h"
#include <boos... |
#include <cmath>
#include <cstdio>
#include "GLView.h"
#include <vector>
#include <unordered_map>
#include "Draw.h"
#include "Draw2D.h"
#include "Plot2D.h"
#include "PlotScreen2D.h"
#include "testUtils.h"
#include "SDL_utils.h"
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "MinimalDivisionLevel.h"
/... |
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
... |
/*
* Copyright (c) 2020 <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "delfem2/femrod.h"
#include "delfem2/geo3_v23m34q.h"
#include "delfem2/mats.h"
#include "delfem2/srchbi_v3bvh.h"
#include "delfem2/bv.h"
// ----... |
//ROS deps
#define NVIDIA
#if defined(NVIDIA)
#include "ros/ros.h"
#include "std_msgs/String.h"
#include <std_msgs/Int32.h>
#include "sensor_msgs/JointState.h"
#include <sstream>
#endif
#include "cv_main.h"
#include <chrono>
#include "readerwriterqueue.h"
#include "atomicops.h"
using namespace std::chro... |
/*=============================================================================
UnSVehicle.cpp: Skeletal vehicle
Copyright 2004 Epic Games, Inc. All Rights Reserved.
Revision history:
* Created by <NAME>
=============================================================================*/
#include "EnginePrivate.h"
#i... |
/*
* Copyright (c) 2018 <NAME>
* November 2018
* 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, thi... |
#include<cstdio>
#include<memory>
#include<string>
#include<iostream>
using namespace std;
//´óÊý
#define MAXN 9999
#define MAXSIZE 10
#define DLEN 4
class BigNum {
private:
int a[500]; //¿ÉÒÔ¿ØÖÆ´óÊýµÄλÊý
int len; //´óÊý³¤¶È
public:
BigNum() {
len = 1;
memset(a, 0, sizeof(a));... |
#include "sfen.h"
#include "shogirecord.h"
#include <QDebug>
#include <QMap>
#include <QRegularExpression>
static const QByteArray DefaultSfen("lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1");
static const QByteArrayList sentePieces = {"K", "R", "B", "G", "S", "N", "L", "P", "+R", "+B", "+S", "+N", "... |
#include "vmd.h"
int mmdpiVmd::advance_time( float time_scale )
{
if( bone == 0x00 || now_motion == 0x00 )
return -1;
motion_time += time_scale;
for( int i = 0; i < bone_num; i ++ ) // ボーンごとにモーションを見る
{
if( now_motion[ i ] == 0x00 )
continue;
// いまのモーションポインタ
MMDPI_VMD_MOTION_PTR v... |
//********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//********************************************************
#include "arPrecompiled.h"
#include "arPhleetConfig.h"
#include "arDataUtilities.h" // for ar_getUser()
#i... |
// Copyright (c) 2012 <NAME> <<EMAIL>>
// Distributed under the Modified BSD License, see license.txt.
#include "text.h"
#include <algorithm>
#include <cassert>
#include <limits>
#include <exception>
#include <stdexcept>
#include <string>
#include <sstream>
#include <boost/assign/list_of.hpp>
#include <scm/log.h>
... |
#include "pxt.h"
enum class DigitalPin {
P0 = MICROBIT_ID_IO_P0,
P1 = MICROBIT_ID_IO_P1,
P2 = MICROBIT_ID_IO_P2,
P3 = MICROBIT_ID_IO_P3,
P4 = MICROBIT_ID_IO_P4,
P5 = MICROBIT_ID_IO_P5,
P6 = MICROBIT_ID_IO_P6,
P7 = MICROBIT_ID_IO_P7,
P8 = MICROBIT_ID_IO_P8,
P9 = MICROBIT_ID_IO_P9... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2021, Raspberry Pi (Trading) Ltd.
*
* libcamera_app.cpp - base class for libcamera apps.
*/
#include "core/frame_info.hpp"
#include "core/libcamera_app.hpp"
#include "core/options.hpp"
LibcameraApp::LibcameraApp(std::unique_ptr<Options> opts)
: optio... |
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <sstream>
#include <algorithm>
#include <vapor/OptionParser.h>
#include <vapor/MetadataVDC.h>
#include <vapor/DCReaderWRF.h>
#include <vapor/WaveCodecIO.h>
#include <vapor/WaveletBlock3DBufWriter.h>
... |
#include "page.h"
using namespace AhoViewer::Booru;
#include "curler.h"
#include "image.h"
#include "settings.h"
#include "site.h"
#include "threadpool.h"
#include <glibmm/i18n.h>
#include <iostream>
#define RETRY_COUNT 5
void Page::CellRendererThumbnail::get_preferred_width_vfunc(Gtk::Widget& widget,
... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
// *********************************************************************
// **
// ** Informática Gráfica, curso 2020-21
// ** Declaraciones de la clase Objeto3D.hpp
// **
// *********************************************************************
//#include <set> // std::set
#include "ig-aux.h"
#include "tuplasg.h"
#in... |
/* ================================================================================
* Copyright: (C) 2022, SIRRL Social and Intelligent Robotics Research Laboratory,
* University of Waterloo, All rights reserved.
*
* Authors:
* <NAME> <<EMAIL>>
*
* CopyPolicy: Released under the terms of the MIT Lice... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2017-2019 The WaykiChain Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet.h"
#include "commons/base58.h"
#include <openssl/rand.h>
#include <boos... |
//============================================================================
// Name : OpenEXRimages_HDR_Retina_toneMapping.cpp
// Author : <NAME> (<EMAIL>)
// Version : 0.1
// Copyright : <NAME>, LISTIC Lab, july 2011
// Description : HighDynamicRange retina tone mapping with the help of the Gipsa... |
// This file is part of the LITIV framework; visit the original repository at
// https://github.com/plstcharles/litiv for more information.
//
// Copyright 2015 <NAME>; pierre-luc.st-charles<at>polymtl.ca
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compl... |
#include "EgoSensor.h"
#include "Carla/Game/CarlaStatics.h" // GetEpisode
#include "DReyeVRUtils.h" // ReadConfigValue, ComputeClosestToRayIntersection
#include "Kismet/GameplayStatics.h" // UGameplayStatics::ProjectWorldToScreen
#include "Kismet/KismetMathLibrary.h" // Sin, Cos, Normalize
#incl... |
/*
* 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... |
// -*- C++ -*-
//
// Package: Validation/HGCalValidation
// Class: HGCalWaferValidation
//
/**\class HGCalWaferValidation HGCalWaferValidation.cc Validation/HGCalValidation/plugins/HGCalWaferValidation.cc
Description: Validates HGCal wafer data inside DD against specifications given in a flat text file.
Imp... |
/* Sirikata Jpeg Texture Transfer Test Suite -- Texture Transfer management system
* main.cpp
*
* Copyright (c) 2015, <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:
* * ... |
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
/*
This is an example illustrating the use of the deep learning tools from the dlib C++
Library. I'm assuming you have already read the dnn_introduction_ex.cpp, the
dnn_introduction2_ex.cpp and the dnn_introduction3... |
#include "altruct/structure/math/matrix.h"
#include "altruct/structure/math/modulo.h"
#include "structure_test_util.h"
#include "gtest/gtest.h"
#include <vector>
using namespace std;
using namespace altruct::math;
using namespace altruct::test_util;
typedef modulo<int, 1000000007> mod;
typedef moduloX... |
#include <iostream> // The input/output library (iostream) - A family of class templates and supporting functions in the Standard Library that implement stream-based input/output capabilities.
#include <vector> // Vectors are sequence containers representing arrays that can change in size.
#include <string> // The C++ ... |
// model.cpp
#include "model.h"
#define TINYOBJLOADER_IMPLEMENTATION
#include "../../external/tinyobjloader/tiny_obj_loader.h"
#define STB_IMAGE_IMPLEMENTATION
#include "../../external/stb/stb_image.h"
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "../../external/stb/stb_image_resize.h"
#include "../../external/... |
#include <iostream>
#include <stack>
#include "sage3basic.h"
#include "sageBuilder.h"
#include "omp_lowering.h"
#include "omp_simd.h"
using namespace Rose;
using namespace SageInterface;
using namespace SageBuilder;
////////////////////////////////////////////////////////////////////////////////////
// The final co... |
//Note that according to the python documentation,
//the Python.h header file should be included first, before any other header file.
#include <Python.h>
#include <iostream>
#include <dlib/opencv.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#in... |
/**********
*
* mex interface to compute the gradient of the eigenvectors
* alignment quality
*
* To mexify:
* mex evrot.cpp;
*
* [clusters,Quality,Vrot] = evrot(V,method);
*
* Input:
* V = eigenvecors, each column is a vector
* method = 1 gradient descent
* ... |
// Copyright 2010-2012, Google Inc.
// Copyright 2012~2013, <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:
//
// * Redistributions of source code must retain the above... |
/*
* 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 ... |
#include "safe_landing_planner/waypoint_generator_node.hpp"
#include "avoidance/common.h"
#include "safe_landing_planner/safe_landing_planner.hpp"
#include "tf/transform_datatypes.h"
namespace avoidance {
const Eigen::Vector3f nan_setpoint = Eigen::Vector3f(NAN, NAN, NAN);
WaypointGeneratorNode::WaypointGeneratorNode... |
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; ei... |
/*
* Copyright 2008, The Android Open Source Project
*
* 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 and ... |
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
iz3base.cpp
Abstract:
Base class for interpolators. Includes an AST manager and a scoping
object as bases.
Author:
<NAME> (kenmcmil)
Revision History:
--*/
#ifdef _WINDOWS
#pragma warning(disable:4996)
#pragma warning(disable:4800)
... |
#include "vehicle.h"
#include <algorithm>
#include <iostream>
#include <iterator>
#include <map>
#include <string>
#include <vector>
#include "cost.h"
#include <math.h>
#include "helpers.h"
#include "spline.h"
using std::string;
using std::vector;
constexpr double pi() { return M_PI; }
const int AVAIL... |
// Copyright (c) 2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
// Copyright 2018 Toyota Research Institute.
//
// 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 o... |
/// <BUTTON> //////////////////////////////////////////////////////////////////
const int BigButton::WIDTH = 112, BigButton::HEIGHT = 112;
const int BigButton::STARTING_Y = -1024, BigButton::ENDING_Y = (480 / 2) + (112 / 2);
const float BigButton::VELOCITY_Y = 0.6f;
const float BigButton::TERMINAL_VELOCITY = 21.5f;
... |
#include <stdint.h>
#include "imu.h"
#include <QtMath>
#include "workspace.h"
#define M_PI_F 3.1415926
//! Auxiliary variables to reduce number of repeated operations
static float q0 = 1.0f, q1 = 0.0f, q2 = 0.0f, q3 = 0.0f; /** quaternion of sensor frame relative to auxiliary frame */
static float dq0 = 0.0f, dq1 = ... |
/**
* Copyright (c) 2011, CESNET z.s.p.o
* Copyright (c) 2011, Silicon Genome, LLC.
*
* 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 ... |
#include "MMA8451Q.h"
#define REG_WHO_AM_I 0x0D
/*: CTRL_REG1 register (read/write)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
ASLP_RATE1 ASLP_RATE0 DR2 DR1 DR0 LNOISE F_READ ACTIVE
*/
#define REG_CTRL_REG_1 0x2A
#define REG_OUT_X_MSB 0x01
#define REG_OUT_Y_MSB 0x03
#define REG_OUT_Z_MSB 0x05... |
#include "Halide.h"
#include <stdio.h>
using namespace Halide;
Var x("x"), y("y"), z("z"), c("c");
Var x_grid("x_grid"), y_grid("y_grid"), xo("xo"), yo("yo"), x_in("x_in"), y_in("y_in");
int windowR = 4;
int searchR = 64;
//int windowR = 8;
//int searchR = 120;
Func rectify_float(Func img, Func remap) {
Expr of... |
// The MIT License (MIT)
//
// Copyright(c) 2021, <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use,... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "Player/VRPhysicsHandleComponent.h"
#include "EngineDefines.h"
#include "PhysxUserData.h"
#include "Components/PrimitiveComponent.h"
#include "PhysicsPublic.h"
#include "Physics/PhysicsInterfaceCore.h"
#include "PhysXIncludes.h"
#i... |
/*============================================================================
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... |
#include <dmzTypesString.h>
#include <dmzTypesBase.h>
#include <dmzTypesConsts.h>
#include <math.h>
#include <stdlib.h>
#include <limits.h>
#include <dmzTypesArrays.h>
/*!
\namespace dmz
\brief DMZ Platform namespace.
\details All Platform classes and functions are contained in the dmz namespace.
\defgroup Types D... |
/*
* 4.Program care simuleaza functionarea unui translator stiva nedeterminist cu lambda-tranzitii. Programul citeste
* (dintr-un fisier sau de la consola) elementele unui translator stiva nedeterminist cu lambda-tranzitii oarecare
* (starile, starea initiala, starile finale, alfabetul de intrare, alfabetul de iesir... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2014 <NAME> <<EMAIL>>
//
// 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... |
#include "BlendSpace2D.h"
#include <Animation/AnimationController.h>
#include <Animation/SkeletonInfo.h>
#include <Math/DelaunayTriangulation.hpp>
namespace DEM::Math
{
template<>
struct CDelaunayInputTraits<DEM::Anim::CBlendSpace2D::CSample>
{
static vector2 GetPoint(const DEM::Anim::CBlendSpace2D::CSample& Value) ... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include <limits>
#include "helper_functions.h"
using s... |
//
// LightStage.cpp
// render-utils/src
//
// Created by <NAME> on 1/14/2015.
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "LightStage.h"
#include <cmath>
#incl... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
#include <GL/glew.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/constants.hpp>
#include "Camera.h"
#include "Sphere.h"
#include "Box.h"
#include "Light.h"
#in... |
//Cube.cpp
#include "cube.h"
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <sstream>
#include <time.h>
#include <stdlib.h>
using namespace std;
Cube::Cube() {
int x[48] = {0,0,0,2,3,1,1,1,0,0,0,5,4,1,1,1,4,4,4,2,3,5,5,5,0,0,0,3,2,1,1,1,
0,0,0,4,5,1,1,1,5,5,5,2,3... |
#include "mainwindow.h"
Disassemble::Disassemble(){
}
Disassemble::~Disassemble(){
}
void Disassemble::coeMain(MainWindow & w){
getTextEdit1(w);
labelLib.clear();
displayAsm.remove(0, displayAsm.length());
preprocess();
QString temp;
unsigned int programCounter = 0;
insIter = instr... |
#include <boost/algorithm/string.hpp>
#include "../../common/term_tools.hpp"
#include "../interpreter.hpp"
#include "../wam_interpreter.hpp"
#include "../wam_compiler.hpp"
using namespace epilog::common;
using namespace epilog::interp;
namespace epilog { namespace interp {
static void header( const std::string &str ... |
extern "C"
{
#include "tweetnacl.h"
#include "naclSupport.h"
}
#include <iostream>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <stdbool.h>
#inc... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include <gtkmm.h>
#include <iostream>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/program_options.hpp>
#include "../common/config_files.hpp"
using namespace std::string_literals;
bool file_exists(const char* path, unsigned int mode = F_OK)
{
return access(path,... |
/****************************************
* *
* *
* Banking Application *
* *
* @author: <NAME> *
****************************************/
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <fstream>
#include <limits>
#include <regex>
#include "account.h"
using na... |
#include "keyframe.h"
KeyFrame::KeyFrame(double _header, Eigen::Vector3d _vio_T_w_i, Eigen::Matrix3d _vio_R_w_i,
Eigen::Vector3d _cur_T_w_i, Eigen::Matrix3d _cur_R_w_i,
cv::Mat &_image, const char *_brief_pattern_file)
:header{_header}, image{_image}, BRIEF_PATTERN_FILE(_brief_p... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/***************************************************************************
video.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "emu.h"
#include "includes/tutank... |
/*/////////////////////////////////////////////////////////////////////////////
NOTE:
Add a copy of [irrKlang.dll] and [ikpMP3.dll] from libs/irrKlang to the build
folder for Visual Studio to run/debug with sound/music feature.
/////////////////////////////////////////////////////////////////////////////*/
/*C++*/
#i... |
#pragma warning(disable:4290)
#include <stdlib.h>
#include <time.h>
#include <Nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <windows.h>
#include <wchar.h>
#include <stdio.h>
#include <oleauto.h>
#include <stddef.h>
#include "vs_assert.hxx"
#include <atlbase.h>
#include "vs_idl.hxx"
#include "vsw... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.