text stringlengths 3.08k 22k |
|---|
#include "ofApp.h"
//--------------------------------------------------------------
float ofApp::ease(float p, int g = 0){
if(g > 0){
return p < 0.5
? 0.5 * pow(2 * p, g)
: 1 - 0.5 * pow(2 * (1 - p), g);
}
return 3 * p * p - 2 * p * p * p;
}
//--------------------------------------------------------------
... |
#include "MFRC522.hpp"
#include "bitParser.hpp"
#include "rfid.hpp"
MFRC522::MFRC522(spiBus& SPIBus,
hwlib::pin_out& slaveSelect,
hwlib::pin_out& reset, bool init):
SPIBus(SPIBus), slaveSelect(slaveSelect), reset(reset) {
if(init) {
initialize();
setAntennas(1);
}
}
void MFRC... |
#include <iostream>
#include <sstream>
#include <stack>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#define OK 0
#define FAIL 1
#define MAX_SIZE 10000
#define NULLPTR NULL
#define TRU... |
// doMatching2D
// Program for 2D LIDAR alignment
// using the FRSM library. It uses pretty brute force
// settings.
//
// Options: - take 2 scans from user and give transformation between them (-a reference.csv, -b input.csv)
// - loop over a dataset and give transformation between all combinations (write to... |
// ShapeTools.cpp
// Copyright (c) 2009, <NAME>
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include "Face.h"
#include "ShapeTools.h"
#include "Vertex.h"
#include <BRepAdaptor_Curve.hxx>
const wxBitmap &CFaceList::GetIcon()
{
static wxBitmap* icon = NULL;
... |
/*
Copyright (c) 2015, Intel Corporation
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 the following disclaimer.
* Redis... |
#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007; // 998244353; // 998244853;
template <typename T>
struct modular {
constexpr modular() : val(0){}
constexpr modular(const modular<T>& _m) : val(_m.val) {}
template <typename U> constexpr modular(const U& _r = U()) {
val = ... |
// Created by <NAME>, 18 May 2018
//
// based on ScalarRZMagFieldFromMap
// which was based on the work of Ananya Fall 2015
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <stdlib.h>
#include <cassert>
#include "G4Types.hh"
#include "G4ScalarRZMagFieldFromMap.hh"
us... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
/*
File: DS1881.cpp
Author: <NAME>
Date: 2016.12.26
Copyright 2019 Manuvr, 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 b... |
#include "image.h"
#include "model.h"
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <utility>
extern void line(int x0, int y0, int x1, int y1, Colour &c, Image &i);
extern void wireframe(Model &obj, Colour &c, Image &img);
extern void flat_shade_render(Model &obj, Image &img);
... |
//
// EllipsoidShape.cpp
// G3M
//
// Created by <NAME> on 02/13/13.
//
//
#include "EllipsoidShape.hpp"
#include "ShortBufferBuilder.hpp"
#include "IndexedMesh.hpp"
#include "GLConstants.hpp"
#include "CompositeMesh.hpp"
#include "Color.hpp"
#include "FloatBufferBuilderFromGeodetic.hpp"
#include "FloatBufferBuild... |
#include "matrix.hpp"
#include "matrix_helpers.hpp"
#include "test_helpers.hpp"
#include <iostream>
#include <random>
#include <sstream>
using namespace basic_matrix;
void emptyMatrix() {
Matrix mat;
ASSERT_EQ(mat.width(), 0);
ASSERT_EQ(mat.height(), 0);
// make sure ostream operator handles empty matrices wel... |
/*eLiSe06/05/99
Copyright (C) 1999 <NAME>
eLiSe : Elements of a Linux Image Software Environment
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at yo... |
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include <iostream>
#include <string>
#include <string.h>
#include <ctype.h>
using namespace std;
struct symbol
{
string str;
int coding;
};
string keyword_list[15] = { "BEGIN", "IF", "THEN", "ELSE", "END", "+", "*", "**",
"(", ")", "int", ... |
/*
* LidarScanBag.cpp
*
* Created on: Nov 19, 2018
* Author: sujiwo
*/
#include "datasets/LidarScanBag.h"
#include <pcl_conversions/pcl_conversions.h>
#include <ros/package.h>
#include <boost/filesystem.hpp>
using namespace std;
using velodyne_rawdata::VPoint;
using velodyne_rawdata::VPointCloud;
using ... |
#include "include/ffi.h"
#ifndef M_PI
#define M_PI (3.14159265358979323846)
#endif
#include <cmath>
#include <random>
#include <algorithm>
using namespace rge;
void generateStarNode(Graph &graph, size_t degree, size_t depth)
{
if (depth > 0)
{
uID nodeID = graph.ids.size() - 1;
graph.connections[nodeID].reser... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
****/
// divide.h
#include "bsp5.h"
int TexelDelta(face_t* f, dplane_t* plane);
int... |
#include "WSbeacon.h"
#include <string.h>
using namespace std;
WSbeacon::WSbeacon(WorldState* w, int bindex)
{
ws = w;
measure.beaconVisible = false;
beacon_index = bindex;
beenSetVisited = false;
memset(beacon_prob, 0, sizeof(beacon_prob));
memset(sensor_prob, -1, sizeof(sensor_prob));
... |
/**
* @file Boost_.cpp
* @brief mex interface for Boost
* @author <NAME>
* @date 2012
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
// Persistent objects
namespace {
/// Last object id to allocate
int last_id = 0;
/// Object container
map<int,CvBoost> obj_;
/// Option values for Boost type... |
#pragma comment(lib, "k4a.lib")
#define IMG_OFFSET 0
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <k4a/k4a.h>
#include <k4arecord/playback.h>
#include <k4abt.h>
#include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <opencv2/core/utility.hpp>
#include <opencv2/highgui.hpp>
... |
#pragma once
/// ========================================================================
/// UNLICENSE
///
/// small_vector (https://github.com/awishnick/small_vector)
/// awishnick
///
/// This is free and unencumbered software released into the public domain.
/// Anyone is free to copy, modify, publish, ... |
#include <iostream>
#include <algorithm>
#include <tuple>
#include <complex>
#include <array>
#include <vector>
#include <memory>
#include <numeric>
#include <string>
#include <boost/format.hpp>
using namespace std;
using myfloat_t = double;
using c_t = complex<myfloat_t>;
template<typename T>
struct Rect {
Rect(co... |
#include "aw/util/math/vector.hpp"
#include "glm/geometric.hpp"
constexpr float epsilion = 0.000001f;
constexpr bool useEpsilonTest = true;
namespace aw {
struct TriTriIntersector
{
// Source: http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/opttritri.txt
auto operator()(aw::Vec3 v0, aw::Vec3 v1... |
// Triangle01.cpp : Defines the entry point for the console application.
//
// Specifique a Windows
#if _WIN32
#include <Windows.h>
#define FREEGLUT_LIB_PRAGMAS 0
#pragma comment(lib, "freeglut.lib")
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glew32s.lib")
#endif
// Entete OpenGL
#define GLEW_STATIC ... |
// CPSC 3500: Shell
// Implements a basic shell (command line interface) for the file system
#include <iostream>
#include <fstream>
#include <sstream>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
using namespace std;
#include "Shell.h"
static const string PROMPT_STRING = "NFS> "; // shell prompt
/... |
/*
* 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 "evdsptc.h"
#include <CppUTest/CommandLineTestRunner.h>
#include <CppUTest/TestHarness.h>
#include <CppUTestExt/MockSupport.h>
#define USLEEP_PERIOD (10000)
#define NUM_OF_USLEEP (10)
static volatile long sum = 0;
static volatile long count = 0;
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
st... |
#include "GLSandbox.h"
using namespace GLBase;
using namespace GLGeometry;
using namespace GLUtils;
//==============================
// Methods of the GLSandbox class that depend on the scene to render
//==============================
// Setup the scene
// - Create the camera
// - Create/load geometry
// - Wo... |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; e... |
// MIN Language Allocator/Collector/Compactor Test
// Program
//
// File: min_acc_test.cc
// Author: <NAME> (<EMAIL>)
// Date: Fri May 24 15:22:55 EDT 2019
//
// The authors have placed this program in the public
// domain; they make no warranty and accept no liability
// for this program.
// Table of Contents:
//
// ... |
/*
* Copyright 2020 Xilinx, 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 agreed to... |
#include <ros/ros.h>
#include <ros/publisher.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/Image.h>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
cv::Mat kernel(int, int);
cv::Mat fillColorLines(const cv::Mat&, const cv::Mat&);
void blockEnvi... |
// Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2015 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... |
//
// Webserver.cpp - Library for wrapping the ESP8266 Web Server
// also manages the SPIFFS files
//
#include <ESP8266WebServer.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266httpUpdate.h>
#include <FS.h>
#include "Webserver.h"
#include "defaults.h"
#include "Sensor.h"
#include "DB.h"
ESP8266We... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein is
* confidential and proprietary to MediaTek Inc. and/or its licensors. Without
* the prior written permission of MediaTek inc. and/or ... |
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <cmath>
#include <Eigen/Dense>
#include "variablesExt.h"
#include "recContours.h"
#include "pathfinding.h"
using namespa... |
/**
* @file VideoCapture_.cpp
* @brief mex interface for cv::VideoCapture
* @ingroup videoio
* @author <NAME>
* @date 2012
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
namespace {
// Persistent objects
/// Last object id to allocate
int last_id = 0;
/// Object container
map<int,Ptr<VideoC... |
//===--- OpenBSD.cpp - OpenBSD ToolChain Implementations --------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Copyright (c) 2010 <NAME>
// Copyright (c) 2009-2013 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 <set>
#include "rpcclient.h"
#include "rpcprotocol.h"
#include "util.h"
#include "ui_in... |
#include "ASTWriter.h"
#include "ASTNode.h"
#include "../Common/cpuEnums.h"
#include "AST.h"
bool CheckVeriableIsReal(ASTNode * perent, unsigned int *nodePos, unsigned int *identPos) {
//Find the memory position of the identifer well check to make sure its real.
ASTNode * node = perent->GetPerent();
unsigned int i... |
/********************************************************************************
* Copyright 2009 The Robotics Group, The <NAME>-<NAME> Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... |
// =============================================================
// =============================================================
#include <iostream>
#include <iomanip> // cout precision
#include <math.h>
#include "VectorMatrix.h"
#include "NervousSystem.h"
using namespace std;
///////////////////////////////////////... |
// -*- C++ -*-
//
// Package: PatPhotonSimpleAnalyzer
// Class: PatPhotonSimpleAnalyzer
//
/**\class PatPhotonSimpleAnalyzer PatPhotonSimpleAnalyzer.cc RecoEgamma/PhotonIdentification/test/PatPhotonSimpleAnalyzer.cc
Description: Generate various histograms for cuts and important
photon ID parame... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <set>
#include "../cpp-lib/problem.h"
#include "../cpp-lib/geo.h"
#ifndef X
#define X first
#define Y second
#endif
using namespace std;
using namespace manarimo;
problem_t pro... |
#include <cmath>
#include "CartesianGrid.hpp"
#include "Observer.hpp"
#include "Photon.hpp"
#include "Random.hpp"
#include "Directions.hpp"
#include "IDust.hpp"
Photon::Photon( Vector3d const& pos, std::uint64_t cellId, Direction3d const& dir, double weight, std::uint32_t nscat, double fi, double fq, double fu, double... |
#include <tdme/engine/primitives/LineSegment.h>
#include <tdme/engine/primitives/BoundingBox.h>
#include <tdme/engine/primitives/OrientedBoundingBox.h>
#include <tdme/math/Math.h>
#include <tdme/math/Vector3.h>
using tdme::engine::primitives::LineSegment;
using tdme::engine::primitives::BoundingBox;
using tdme::engin... |
#include "base/snake.h"
#include "util/util.h"
#include <queue>
#include <algorithm>
#include <stdexcept>
using std::vector;
using std::list;
using std::queue;
using util::Random;
Snake::Snake() {}
Snake::~Snake() {}
void Snake::setDirection(const Direction &d) {
direc = d;
}
void Snake::setMap(Map *const m) {... |
/**********
This library 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; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... |
//
// Created by <NAME> on 06.11.21.
//
#include "RtAudioIO.h"
#include "../utils/cp1252_to_utf8.h"
#include <cstddef>
#include <memory>
#include <utility>
#include <plog/Log.h>
[[maybe_unused]] RtAudioIO::RtAudioIO(std::shared_ptr<DigitalStage::Api::Client> client) : AudioIO(std::move(client)), is_running_(true) {
}... |
#include <csignal>
#include <fstream>
#include <iostream>
#include <string>
#include "Algorithm.h"
#include "Client.h"
#include "OpenSslWrapper.h"
#include "Server.h"
static bool fileExists(const std::string& name) {
std::ifstream f(name.c_str());
return f.good();
}
static int runServer(const std::string& server... |
/*
Software License Agreement (BSD License)
Copyright (c) 2012, <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
notic... |
#include <index.h>
#include <future>
#include <Neighbor_Tag.h>
#include <numeric>
#include <omp.h>
#include <shard.h>
#include <string.h>
#include <sync_index.h>
#include <time.h>
#include <timer.h>
#include <cstring>
#include <iomanip>
#include "aux_utils.h"
#include "utils.h"
#ifndef _WINDOWS
#include <sys/mman.h>
... |
/*
* Copyright 2014-2019 Real Logic Ltd.
*
* 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 agree... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
// Copyright <NAME>. All Rights Reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
// Example heightfield grid animated with sine and cosine waves
#include "ProceduralMeshesPrivatePCH.h"
#include "HeightFieldAnimatedActor.h"
AHeightFieldAnimatedActor::AHe... |
#include "RecoVertex/KinematicFit/interface/VertexKinematicConstraint.h"
#include "RecoVertex/VertexPrimitives/interface/VertexException.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
VertexKinematicConstraint::VertexKinematicConstraint()
{}
VertexKinematicConstraint::~VertexKinematicConstraint()
{}
Al... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "precomp.h"
using namespace Dml;
TensorDesc::TensorDesc(
DML_TENSOR_DATA_TYPE dataType,
gsl::span<const uint32_t> sizes,
std::optional<gsl::span<const uint32_t>> strides,
uint32_t guaranteedBaseOf... |
/*******************************************************************************
* Copyright 2018 IBM Corp. 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
*
* ht... |
#include "CGameGraphics.h"
#include "CGfx.h"
#include <ncurses.h>
#include <iomanip>
#include <deque>
#include <sstream>
static const int SPEED_BASE = 30;
static const int SIDEBAR_WIDTH = 18;
static const int BOTTOM_BAR_HEIGHT = 10;
static const int MAX_LINE_LENGTH = 256;
WINDOW* CGameGraphics::winMainField;
WINDOW*... |
/* @(#) Pass VIPS images through CImg
*
* JC, 15/10/07
*/
/*
This file is part of VIPS.
VIPS 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; either version 2 of the License, or
... |
/*
* main.cpp
*
* Created on: 11. 7. 2017
* Author: ondra
*/
#include <thread>
#include <couchit/changes.h>
#include <imtjson/rpc.h>
#include <rpc/rpcServer.h>
#include <shared/stdLogFile.h>
#include <simpleServer/address.h>
#include <simpleServer/http_server.h>
#include <simpleServer/abstractService.h>
#i... |
#include "ros/ros.h"
#include "geometry_msgs/Twist.h"
#include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <string>
#include <thread>
#include <atomic>
#include <chrono>
#include <cstring>
#include "mqtt/async_client.h"
#include "json/json.h"
using namespace std;
const string ROBOT_ID { "spu-robot-0" };... |
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include <gtest/gtest.h>
#include "common/base/Base.h"
#include "common/encryption/MD5Utils.h"
#include "common/network/... |
/*
* 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 not ... |
/*
* Copyright (c) 2020-2021 Valve Corporation
* Copyright (c) 2020-2021 LunarG, 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... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
// Copyright (C) 2018 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <cctype>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "inference_engine.hpp"
#include "test_model_path.hpp"
#include <tests_file_utils.hpp>
#include <cctype>
#include <chrono>
#ifdef WIN32
#define... |
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
/*
* Copyright (C) 2011-2016 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this li... |
#include <iostream>
#include <iomanip>
#include <ios>
#include <vector>
#include <algorithm>
#define MAX_N_KINGDOMS 20
struct Coord {
int x;
int y;
Coord operator-(const Coord & other) const {
Coord result;
result.x = x - other.x;
result.y = y - other.y;
... |
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
/*********************************************************
$Id: L2etowCalAlgo08.cxx,v 1.3 2008/02/01 00:16:40 balewski Exp $
\author <NAME>, MIT, 2008
***********************************************... |
// heatmapapp2d.cpp : First draft of the heatmap process in 2D - kept just for
// reference, not included in build.
//
#include "stdafx.h"
#include "heatmapapp.h"
#include <array>
#include <dukat/application.h>
#include <dukat/devicemanager.h>
#include <dukat/inputdevice.h>
#include <dukat/light.h>
#include <dukat/... |
/**
* Hash_map package:
* Module to contain class definitions and implementations of the
* hash map data structure.
*
* fs_hash_map class:
* Class to imeplement a fixed-size hash map container (i.e., data
* structure).
* Accessor and mutator functions are provided for searching, adding,
* and removal of (key, ... |
#include "enumerations.h"
#include <cstdint>
#include <FL/Enumerations.H>
#include "_cgo_export.h"
//const unsigned char go_FL_INT_INPUT = FL_INT_INPUT;
//const unsigned char go_FL_FLOAT_INPUT = FL_FLOAT_INPUT;
const int go_FL_NO_BOX = (int)FL_NO_BOX;
const int go_FL_FLAT_BOX = (int)FL_FLAT_BOX;
const int go_FL_U... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
// Original code is licensed as follows:
/*
* Copyright 2009 ZXing authors
*
... |
/***************************************************************************
* Copyright ESIEE Paris (2018) *
* *
* Contributor(s) : <NAME> *
* ... |
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "tensorflow/core/framework/types.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/stream_executor.h"
#include "cuda_stream.h"
#inc... |
/*****************************************************************************
* DirectShow Pan/Tilt/Zoom sample for Logitech QuickCam devices
*
* Copyright 2007 (c) Logitech. All Rights Reserved.
*
* This code and information is provided "as is" without warranty of
* any kind, either expressed or implied, inclu... |
/*
Tests the linear-algebra stuff
*/
#include "Fraction.h"
#include "LinearAlgebra.h"
#include "Test_Shared.h"
template<class N> void DumpScalar(N s)
{
printf(" %3d\n",s);
}
template<class N, class ND> void MakeVector(vector<N> &v, const ND *dv, int n)
{
v.clear();
for (int i=0; i<n; i++)
v.push_back(dv[i]);
... |
//===--- swift-reflection-test.cpp - Reflection testing application -------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
//
// Created by kaishiqi on 14-8-5.
// Copyright (c) 2014 kaishiqi. All rights reserved.
//
#include <iostream>
#include "i18n/I18nUtils.h"
USING_NS_I18N;
inline void output(std::string str) {
std::cout << str << std::endl;
}
int main(int argc, const char * argv[])
{
const char MO_FILE_ZH_HANS[] = "res/z... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <malloc.h>
#include <string.h>
struct MainListNode;
//secondary list that stores the destinations from a main list node
struct DestinationNode {
DestinationNode* next;
MainListNode *destination;
float time;
};
//primary list that stores the distinct node... |
//---------------------------------------------------------------------------//
/*!
* \file tstVolumeSourceMap5.cpp
* \author <NAME>
* \brief Volume source map unit test 5 one to many, all targets requested
* on all processes
*/
//---------------------------------------------------------------------------//... |
#include "j1Menu.h"
#include "j1Input.h"
#include "j1App.h"
#include "SDL/include/SDL.h"
#include "j1RectSprites.h"
#include "j1App.h"
#include "j1Gui.h"
#include "j1Player.h"
#include <windows.h>
#include "Brofiler/Brofiler.h"
#include "j1Fonts.h"
#include "j1FontUI.h"
j1Menu::j1Menu()
{
name.create("menu");
menuSt... |
#include "rct_optimizations/experimental/camera_intrinsic.h"
#include <rct_optimizations/ceres_math_utilities.h>
#include <rct_optimizations/covariance_analysis.h>
#include <rct_optimizations/eigen_conversions.h>
#include <rct_optimizations/pnp.h>
#include <ceres/ceres.h>
namespace
{
template <typename T>
struct Ca... |
#include "Level.h"
#include <glm/gtc/matrix_transform.hpp>
using namespace ETOD;
static glm::vec4 HSVtoRGB(const glm::vec3& hsv) {
int H = (int)(hsv.x * 360.0f);
double S = hsv.y;
double V = hsv.z;
double C = S * V;
double X = C * (1 - abs(fmod(H / 60.0, 2) - 1));
double m = V - C;
double Rs, G... |
/*
* KINOVA (R) KORTEX (TM)
*
* Copyright (c) 2019 Kinova inc. All rights reserved.
*
* This software may be modified and distributed
* under the terms of the BSD 3-Clause license.
*
* Refer to the LICENSE file for details.
*
*/
/*
* DESCRIPTION OF CURRENT EXAMPLE:
* ===============================
* This example work... |
#include <iostream>
#include <fstream>
#include <ctime>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <sstream>
#include <algorithm>
// #define CMG_VERBOSE
#define MEMORYBOOKKEEPING
#include "Model.h"
#include "Map.h"
#include "ChompMap.h"
#include "MorseGraph.h"
#include "Compute_Morse_G... |
// Copyright (C) 2022 <NAME>. Released under the MIT license.
#include <iostream>
#include <SDL.h>
#undef main
#include <thread>
#include <vector>
#include <string>
#include <map>
#include <complex>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb_image_wr... |
// main62.cc is a part of the PYTHIA event generator.
// Copyright (C) 2015 <NAME>.
// PYTHIA is licenced under the GNU GPL version 2, see COPYING for details.
// Please respect the MCnet Guidelines, see GUIDELINES for details.
// Example how you can use UserHooks to set angular decay distributions
// for undecayed re... |
/*
* See header file for a description of this class.
*
* \author <NAME> - INFN Bologna
*
* threadsafe version (//-) oct/nov 2014 - WATWanAbdullah -ncpp-um-my
*
*/
// This class header
#include "DQM/DTMonitorClient/src/DTTriggerLutTest.h"
// Framework headers
#include "FWCore/Framework/interface/EventSetup.... |
#include <iomanip>
#include <memory>
#include <chrono>
#include <vector>
#include <tuple>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include "tensor.h"
#include "miopen_helper.h"
#include "rnn_problems.h"
template <typename T>
class miopenRNN
{
MIOpenHandle miopen_handle_;
RNNDescriptor r... |
/******************************************************************************
* ==> QR_MD3AnimCfgFile -----------------------------------------------------*
******************************************************************************
* Description : MD3 animation configuration file parser *
... |
/*
* Copyright 2016 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
// Copyright 2018 The Abseil 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2018 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
/***************************************************************************
file : susp.cpp
created : Sun Mar 19 00:08:41 CET 2000
copyright : (C) 2000 by <NAME>
email : <EMAIL>
version : $Id: susp.cpp,v 1.20.2.1 2008/12/31 03:53:... |
/**
* @file
* @brief Implementation of material manager for Geant4
* @copyright Copyright (c) 2021 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and imm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.