text stringlengths 5.71k 33.7k |
|---|
#include "mlir/Dialect/SCF/SCF.h"
#include "mlir/ExecutionEngine/ExecutionEngine.h"
#include "mlir/ExecutionEngine/OptUtils.h"
#include "mlir/IR/AsmState.h"
#include "mlir/InitAllDialects.h"
#include "mlir/InitAllPasses.h"
#include "mlir/Parser.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Pass/PassManager.h"
#include ... |
#include <iostream>
#include <string>
#include <unistd.h>
#include <opencv2/opencv.hpp>
#include <chrono>
#include <thread>
#include <mutex>
#include <time.h>
#include "util.h"
// Headers for tensorflow-lite
#include "tensorflow/lite/interpreter.h"
#include "tensorflow/lite/kernels/register.h"
#include "tensorflow/li... |
#include "simulation/car.h"
#include "mechanics/jump.h"
#include "mechanics/dodge.h"
#include "mechanics/aerial.h"
#include "misc/convert.h"
#include <fstream>
const float Car::m = 180.0f;
const float Car::v_max = 2300.0f;
const float Car::w_max = 5.5f;
const vec3 g = { 0.0f, 0.0f, -650.0f };
vec3... |
/*<std-header orig-src='shore'>
$Id: file_scan.cpp,v 1.27 2010/06/08 22:28:15 nhall Exp $
SHORE -- Scalable Heterogeneous Object REpository
Copyright (c) 1994-99 Computer Sciences Department, University of
Wisconsin -- Madison
All Rights Reserved.
Permission to use, copy, modify and distribut... |
/**
Notices:
Copyright 2016 United States Government as represented by the
Administrator of the National Aeronautics and Space Administration. No
copyright is claimed in the United States under Title 17,
U.S. Code. All Other Rights Reserved.
Disclaimers
No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ... |
/*
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2009 <NAME> <<EMAIL>>
* Copyright (C) 2009 <NAME> <NAME>
* Copyright (C) 2010 Igalia S.L.
* Copyright (C) 2011 ProFUSION Embedded Systems
* Copyright (C) 2011 Samsung Electronics
*
* Redistribution and use in source and binary forms, ... |
//
// modan.cpp
//
// Modal Analysis command line function.
// Simplified Macauly-Quaterieri analysis: modes assumed to stay within a single bin.
// Final log amp evolution approximated by straight lines.
// Suitable for extracting modes from the impulse response of
// hard objects. Note that objects such as wo... |
#include <bits/stdc++.h>
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <cstring>
#include <string>
using namespace std;
GLfloat xRotated, yRotated, zRotated;
float size = 0.02f;
float limit = 1.0f;
map<int, map<string,float>> position;
map<int,float> vel1, vel2, vel3;
float ... |
/**************************************************************************
*
* Copyright 2015 Intel Corporation
* All Rights Reserved.
*
* 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 Softwar... |
// src\Inventor\Win\widgets\SoAnyThumbWheel.cpp. Generated from SoAnyThumbWheel.cpp.in by configure.
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or with... |
/*
* Copyright (C) 2018 Open Source Robotics Foundation
*
* 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 appl... |
#include <cstdio>
#include <utility> // pair
#include <inttypes.h>
#include <vector>
#include <cstring>
#include <cmath> // acos
#include <algorithm> // reverse
#include "SwappyItems.hpp"
#include "Bmp.hpp"
#include "osmpbfreader.hpp"
using namespace CanalTP;
#define IMAGE_WIDTH 1200
#define IMAGE_HEIGHT ... |
/* @STSHELL_LICENSE_START@
*
* __ _______ ___________
* / |/ / __ \/ ___/_ __/
* / /|_/ / / / /\__ \ / /
* / / / / /_/ /___/ // /
* /_/ /_/\____//____//_/
*
* Multi-Objective System Tuner
* Copyright (c) 2007-2022 Politecnico di Milano
*
* Development leader: <NAME>
*... |
/**
* (c) Mikdore <admin (at) mikadore.eu> 2021
* This file is licensed under the Boost Software License 1.0:
*
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organization
* obtaining a copy of the software and accompanying... |
/// @file FFMpegAVOutputComponent.cpp
/// @brief FFMpegAVOutputComponent class implementation.
// Third party libraries are linked explicitly once in the project.
// #pragma comment(lib, "thirdPartyLib.lib")
#include "stdAfx.h"
#include "FFMpegAVOutputComponent.h"
#include "Configuration.h"
#include "Error... |
#include "RopLib_internal.h"
#include <math.h>
#include <boost/regex.hpp>
using namespace std;
using namespace boost;
static
void print_progress(double Total, double Done, ostream &s) {
const int tdot = 40;
double pctDone = Done/Total;
int print = floor(pctDone * tdot);
int i = 0;
s << setprec... |
/*=========================================================================
Program: MIMX Meshing Toolkit
Module: $RCSfile: MappedMeshModule.cxx,v $
Language: C++
Date: $Date: 2012/12/07 19:08:59 $
Version: $Revision: 1.1.1.1 $
Musculoskeletal Imaging, Modelling and Experimentation (MIMX)
Center for Co... |
#include <cuda_runtime_api.h>
#include <opencv2/opencv.hpp>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#include "NvInfer.h"
#include "NvInferPlugin.h"
#include "NvOnnxParser.h"
using namespace nvonnxparser;
using namespace nvinfer1;
#define CHECK(status) ... |
#include "util.h"
using namespace std;
//using namespace cv;
bool DBUG = false;
//static struct timeval _tv;
double curtime(){
struct timeval _tv;
gettimeofday( &_tv, NULL );
double ret = _tv.tv_sec;
ret += _tv.tv_usec*0.000001;
return ret;
}
bool is_dir(const char *filename)
{
struct stat st... |
#include <ctf.hpp>
#include "ctfgc.h"
#include <tclap/CmdLine.h>
#include <fstream>
#include <iostream>
#include <set>
using namespace ctfgc::literals;
class TGLex : public LexicalAnalyzer {
public:
using LexicalAnalyzer::LexicalAnalyzer;
Token read_token() override {
if (_buffered) {
--_buffered;
... |
// render PWS as SVG
// (C) 2016 <NAME> <<EMAIL>>
#include "pws2svg.hh"
int main(int argc, char **argv) {
unsigned argNum = 1;
bool opt = true;
if (argc < 2) {
cout << "Usage: " << argv[0] << " <foo.pws>" << endl;
return 1;
} else if (argc > 2 && strncmp(argv[1], "-U", 3) == 0) {
... |
// Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <sstream>
#include <memory>
#include "reductions.h"
#include ... |
/*
* This sample demonstrates the use of the function
* findTransformECC that implements the image alignment ECC algorithm
*
*
* The demo loads an image (defaults to ../data/fruits.jpg) and it artificially creates
* a template image based on the given motion type. When two images are given,
* the first image is the inp... |
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkDashPathEffect.h"
#include "SkReadBuffer.h"
#include "SkWriteBuffer.h"
#include "SkPathMeasure.h"
static inline int is_even(int x) {
retur... |
/*
Copyright (c) 2019 <NAME>
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... |
/*
* mbed Microcontroller Library
* Copyright (c) 2006-2016 ARM Limited
*
* 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... |
/*
* This file is part of the MAVLink Router project
*
* Copyright (C) 2016 Intel Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... |
//===-- MachineSink.cpp - Sinking for machine instructions ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//===-- Hexagon.cpp -------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... |
// Copyright (C) 2019 by <NAME>, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University ... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#include "stdafx.h"
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include "HTKDataDeserializer.h"
#include "ConfigHelper.h"
#include "Basics.h"
#include ... |
//-------------------------------------------------------------------------------------------------
//
// Presenter.cpp 2-Feb-2019 <NAME>
//
// Parse Java/C++/Swift files and generate class names and class dependence tree.
//
//-------------------------------------------------------------------------------... |
/*
2020/09/19 - Creacion de la libreria.
*/
class libRTC {
private:
RTC_DS3231 rtc;
String buf1 = "YYYY/MM/DD hh:mm:ss";
char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
int vYear;
int vMonth;
int vDay;
int vHou... |
#include "muscle.h"
#include "muscle_context.h"
extern SCOREMATRIX VTML_LA;
extern SCOREMATRIX PAM200;
extern SCOREMATRIX PAM200NoCenter;
extern SCOREMATRIX VTML_SP;
extern SCOREMATRIX VTML_SPNoCenter;
extern SCOREMATRIX NUC_SP;
bool MuscleContext::glbalndimer_stuct::InitializePPTerm()
{
PPTerm.m_bAllGaps = false... |
//===- SymbolTable.cpp - MLIR Symbol Table Class --------------------------===//
//
// Copyright 2019 The MLIR 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.... |
/**
* \file dnn/src/naive/svd/opr_impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS... |
/*
* 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... |
//----------------------------------------------------------------------------//
// //
// ozz-animation is hosted at http://github.com/guillaumeblanc/ozz-animation //
// and distributed under the MIT License (MIT). ... |
#include <cstdio>
#include <stdexcept>
#include <stdint.h>
#include <fstream>
#include <iostream>
#include <vector>
using namespace std;
// The function reads a binary ANSTO event file,
// It opens the file and returns the data through the callbacks.
constexpr int32_t EVENTFILEHEADER_BASE_MAGIC_NUMBER = 0x0DAE0DAE... |
#include "wfLZ.h"
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <stdlib.h>
#include <cstdio>
#include <squish.h>
#ifdef _WIN32
#include <windows.h>
#endif
#include "FreeImage.h"
#include <list>
#include <cmath>
#include <cstring>
#include <iomanip>
using namespace std;
int g_Deco... |
#include "UrlParser.h"
#include "Log.h"
#include "fctypes.h"
#include "Domains.h"
#include "ip.h"
#include <string.h>
#include <iterator>
static const char *strnpbrk(const char *str1, size_t len, const char *str2) {
const char *haystack = str1;
const char *haystackEnd = str1 + len;
while (haystack < haystackEnd &&... |
#include <iostream>
#include <map>
#include <functional>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include <GL/glew.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "../lib/Initialization.h"
#include "../lib/Texture.h"
#include "../lib/Shader.h"
#incl... |
#include "opencv2/highgui.hpp"
#include "opencv2/video.hpp"
#include "opencv2/optflow.hpp"
#include "opencv2/core/ocl.hpp"
#include <fstream>
#include <limits>
using namespace std;
using namespace cv;
using namespace optflow;
const String keys = "{help h usage ? | | print this message }"
"{@image1 ... |
// // The Art of Computer Programming Vol.3 Sorting, p.212
// // Vt(n) <= n-t + (t+1) * ceil(lg(n+2-t))
// const vtn = {
// 1: [0],
// 2: [1,1],
// 3: [2,3,2],
// 4: [3,4,4,3],
// 5: [4,6,6,6,4],
// 6: [5,7,8,8,7,5],
// 7: [6,8,10,10,10,8,6],
// 8: [7,9,11,12,12,11,9,7],
// 9: [... |
#pragma once
#define FMOD_CHECK_CALL(x) \
[](auto err) { \
if (err != FMOD::FMOD_RESULT::OK) \
{ \
DEBUG("{}: {}", #x, FMOD::ErrStr(err)); \
return false; ... |
/* -------------------------------------------------------------------------- *
* Simbody(tm) Adhoc test: Contact Brick Test *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... |
// At the moment the matrix operations are working fine. Below concerns need to be addressed.
// Not urgent.
// fgetm has been commented out right now. Meant for writing matrix to file.
// The tag "//?//" is used to to look out for changes that may need to be reviewd. Primarily to root out the verify calls
// The ta... |
#include "HashGuesser.h"
#include "Hash.h"
std::unordered_map<u32, string> HashGuesser::hashDictionary_ = {};
std::unordered_map<u32, string> HashGuesser::hashDictionaryAlt_ = {};
bool HashGuesser::initialized_ = false;
std::mutex HashGuesser::mutex_;
string stringList[] =
{
//District names
"Tutorial", "Park... |
#include "PathTracer.h"
#include <UBL/Image.h>
#include <iostream>
#include <thread>
using namespace Ubpa;
using namespace std;
PathTracer::PathTracer(const Scene* scene, const SObj* cam_obj, Image* img)
: scene{ scene },
bvh{ const_cast<Scene*>(scene) },
img{ img },
cam{ cam_obj->Get<Cmpt::Camera>() },
ccs{ ... |
#define LINUX
#define EGL_API_FB
#define WL_EGL_PLATFORM
#include <stdio.h>
#include <wayland-client.h>
#include <wayland-cursor.h>
#include <wayland-egl.h>
#include <EGL/egl.h>
#include <GLES2/gl2.h>
#include <linux/input.h>
#include <poll.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <errno.h>
#include <uni... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may n... |
/* Copyright 2019 The TensorFlow 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-2.0
Unless required by applicable law or a... |
#include <cmath>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <mpg123.h>
#include <mutex>
#include "Log.hpp"
#include "utils/MP3.hpp"
// Size of read buffer (used for calculating duration) - 20MB
// This should be enough for most songs, but also large enough to not cause too many
// reads for v... |
#include "SemiDeterministicCompl.h"
BuchiAutomaton<StateSD, int> SemiDeterministicCompl::complementSD(ComplOptions opt) {
if (opt.ncsbLazy)
this->ncsbTransform();
//std::cerr << this->toString() << std::endl;
std::set<StateSD> initials;
std::set<StateSD> states;
std::set<StateSD> finals;
... |
#include "TriMesh.h"
#define TINYOBJLOADER_IMPLEMENTATION // define this in only *one* .cc
#include "_deps/tiny_obj_loader.h"
using namespace Ubpa;
using namespace std;
TriMesh::TriMesh(const vector<valu3>& indices,
const vector<pointf3>& positions,
const vector<pointf2>& texcoords,
const vector<normalf>& normals... |
/******************************************************************************
* Name: jlp_cgdev_wxwid_process.cpp
* JLP_wxGseg_Canvas class
*
* Purpose: simple curve processing
* NB: Handling JLP_wxGseg_Canvas menu and events in "jlp_cgdev_wxwid_menu.cpp"
*
* Author: JLP
* Version: 06... |
#include <stdio.h>
#include <stdlib.h>
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include "LoadImage.h"
using namespace cv;
void createGaussianKernel(int);
void cannyDector();
void useGaussianBlur();
void useSobelDerivat();
void nonMaxSuppress();
void hysteresisThresho... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mojo/public/c/system/thunks.h"
#include <cstddef>
#include <cstdint>
#include <cstring>
#include "base/check_op.h"
#include "base/compiler_spe... |
#pragma once
#include <string>
#include <vector>
#include <filesystem>
#include <algorithm>
#include <iostream>
#include <regex>
#include <string>
#include <fstream>
#include <streambuf>
#include <xercesc/framework/MemBufInputSource.hpp>
#include <PEManager.hpp>
#include <SXSManifest.hpp>
using namespace std;
using ... |
//
// Created by lifujun on 2019/9/2.
//
#define LOG_TAG "CV420PProgramContext"
#include "CV420PProgramContext.h"
#include <OpenGLES/ES2/gl.h>
#include <OpenGLES/ES2/glext.h>
#include <base/media/PBAFFrame.h>
#include "platform/platform_gl.h"
#include <utils/timer.h>
#include <render/video/glRender/base/utils.h>
st... |
/*
* Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
*
* Created: 2013-07-24 <NAME> <<EMAIL>>
*
* 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/... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <chrono>
#include "Set.h"
unsigned time();
int const number_of_tests = 1000;
int const maximum_set_size = 100;
void randomSet(Set* s);
void visualTests(void);
void equalityTests(void);
void specialCaseTests(void);
void relationalT... |
#include <ros/ros.h>
#include <nav_msgs/Odometry.h>
#include <tf/tf.h>
#include <opencv2/opencv.hpp>
#include <iomanip>
#include <boost/thread/mutex.hpp>
#include <sensor_msgs/LaserScan.h>
#include <std_msgs/Float32MultiArray.h>
#include <std_msgs/MultiArrayDimension.h>
#include <map>
using namespace cv;
using namespa... |
#include "mvStyleWindow.h"
#include "mvApp.h"
#include "imnodes.h"
// Play it nice with Windows users (Update: May 2018, Notepad now supports Unix-style carriage returns!)
#ifdef _WIN32
#define IM_NEWLINE "\r\n"
#else
#define IM_NEWLINE "\n"
#endif
#define IM_MIN(A, B) (((A) < (B)) ? (A) : (B))
#define I... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
CameraController.cpp: Implements controls for a camera with pseudo-physics
=============================================================================*/
#include "CameraContr... |
#include "PrimeWatch.hpp"
#include <iostream>
#include <chrono>
#include <implot.h>
#include <filesystem>
#include <fmt/format.h>
#include <set>
#include <defs/GameDefinitions.hpp>
#include <defs/GameVtables.hpp>
#include <defs/GameObjectRenderers.hpp>
#include <defs/GameOffsets.hpp>
#include <utils/GameObjectUtils.h... |
//
// main.cpp
// sort
//
// Created by SteveLin on 2019/7/28.
// Copyright © 2019 SteveLin. All rights reserved.
//
#include <iostream>
#include <vector>
#include <queue>
#include <map>
using namespace std;
void printV(vector<int> & a) {
for (auto it = a.begin(); it != a.end(); ++it) cout << *it << " ";
... |
/*****************************************************************************
* McPAT
* SOFTWARE LICENSE AGREEMENT
* Copyright 2012 Hewlett-Packard Development Company, L.P.
* All Rights Reserved
*
* Redistribution and use in... |
// horizontal property, composed of:
// [revert/random][icon][text]||[widget] with tooltip in whole line
enum {
PANEL_LIST,
PANEL_TOOLBAR,
PROPERTY_GROUP, // [x] >v
PROPERTY_SEPARATOR, // [x] ---
PROPERTY_ANGLE, // [x] float [-180..180]
PROPERTY_DELTA, // [x] float [0..1]
... |
/*
* 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... |
/*************************************************************************/
/* quick_hull.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "saber/core/context.h"
#include "saber/funcs/pooling.h"
#include "test_saber_func_AMD.h"
#include "saber/core/tensor_op.h"
#include "saber/saber_funcs_param.h"
#include "saber_types.h"
#include <vector>
using namespace anakin::saber;
typedef Tensor<X86, AK_FLOAT, NCHW> TensorHf4;
typedef Tensor<AMD, AK_FLOAT,... |
/* MS5803_14
* An Arduino library for the Measurement Specialties MS5803 family
* of pressure sensors. This library uses I2C to communicate with the
* MS5803 using the Wire library from Arduino.
*
* This library only works with the MS5803-14BA model sensor. It DOES NOT
* work with the other pressure-range mode... |
/* ----------------------------------------------------------------------------
* <NAME>
* HK, Califronia
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -------------------------------------------------------------------------- ... |
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <stdio.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "imgui/imgui.cpp"
#include "imgui/imgui_impl_opengl3.cpp"
#include "imgui/imgui_impl_glfw.cpp... |
//All we need in this file is to include the header file
//that has the function prototypes, the other includes, and
//declaration that we are using the NFcore namespace.
#include "simple_system.hh"
void NFtest_ss::run()
{
cout<<"Running the simple system"<<endl;
/**
*
* This example is a good starting po... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2021 Scipp contributors (https://github.com/scipp)
/// @file
/// @author <NAME>
#include <algorithm>
#include "scipp/common/overloaded.h"
#include "scipp/core/bucket.h"
#include "scipp/core/element/event_operations.h"
#include "scipp/core/element/histogram.h"
#... |
#include <AMReX_EBMultiFabUtil.H>
#include <AMReX_MultiFabUtil.H>
#include <AMReX_ParmParse.H>
#include <AMReX_PlotFileUtil.H>
#include <AMReX_buildInfo.H>
#include <incflo.H>
namespace { const std::string level_prefix{"Level_"}; }
void GotoNextLine(std::istream& is)
{
constexpr std::streamsize bl_ignore_max{100000... |
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2021, the Ginkgo authors
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 co... |
// =======================================================================
// CSphereMgr: Rendering of the celestial sphere background at variable
// resolutions.
// Part of the ORBITER VISUALISATION PROJECT (OVP)
// Dual licensed under GPL v3 and LGPL v3
// Copyright (C) 2007 - 2016 <NAME>
// Copyright (C) 2011 - 2016... |
#include <iostream>
#include <unordered_map>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <string>
#include <algorithm>
#include <list>
// there are 3^9 = 20000 tic-tac-toe boards -> tic-tac-toe boards can be represented
// as an int
enum Piece { Empty = 0, Red = 1, Blue = 2 };
struct MatrixHasher {... |
/*************************************************************************\
* Copyright (c) 2011 UChicago Argonne LLC, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE is distrib... |
/*
* Copyright 2021 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/codec/SkJpegxlCodec.h"
#include <limits>
#include <vector>
#include "include/codec/SkEncodedOrigin.h"
#include "include/core/SkData.h"
#include "include/core/S... |
#include "pch.h"
#include <iostream>
#include <gameshare.h>
int _edit_win;
Camera _edit_cam;
TeleportPoint tp_point1;
Ball _ball1;
SlidingPlane plane1;
SlidingPlane plane0, plane2, plane3;
Track real_track1;
extern GLUI *glui;
void my_vertex3d(Vec3 vec3) {
glVertex3d(vec3.x, vec3.y, vec3.z);
}
void update_edit_w... |
/* Database Utils Implementation */
#include "db_utils.hpp"
#include <fstream>
#include <unistd.h>
extern bool isOpenDB;
extern sqlite3 *dbfile;
extern string id;
extern string image;
extern string mode;
extern string target;
extern string state;
extern string feedback;
extern string guidance;
extern int idle;
extern ... |
/* Copyright 2001, 2019 IBM Corporation
*
* 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 the
* following d... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
//#include <mpi/mpi.h> // ubuntu 12.0.4 mpich2 install location
#include <mpi.h>
#include "GSA_AFactorIFP.h"
#include "idtControlParams.h"
#include "idtSolvers.h"
#include "utility_funcs.h"
#include "utilities/sequential_file_matrix.h"
#include "gsa_stats.h"
... |
/*************************************************************************/
/* gdprocsimplify.h */
/*************************************************************************/
#include "src/surfaces/gdprocsimplify.h"
#include "src/3rdparty/Simplify.h"
void GDProcSim... |
/* This software and supporting documentation are distributed by
* Institut Federatif de Recherche 49
* CEA/NeuroSpin, Batiment 145,
* 91191 Gif-sur-Yvette cedex
* France
*
* This software is governed by the CeCILL-B license under
* French law and abiding by the rules of distribution of free soft... |
#include <iostream>
#include <fstream>
#include <sstream>
#include "CommonHeader.h"
#include "NonlinearOptimizerInfo.h"
#include <ctime>
#include <algorithm>
#include <random>
#include <queue>
#include <math.h>
static bool ContactPairCMP(const pair<Vector3, double> & a, const pair<Vector3, double> & b)
{
return (a... |
#include <algorithm>
#include <iostream>
#include <fstream>
#include <unordered_map>
#include <cstdio>
#include <string>
#include <map>
#include <tuple>
#include <utility>
#include <set>
#include <vector>
#include <cmath>
#include <zlib.h>
#include "common.h"
#include "partition.h"
#include "assembler.h"
#include "geno... |
#include "gru_layer.h"
#include "connected_layer.h"
#include "utils.h"
#include "cuda.h"
#include "blas.h"
#include "gemm.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static void increment_layer(layer *l, int steps)
{
int num = l->outputs*l->batch*steps;
l->output += num;
... |
//trigTable is a table with 10 rows for ten combinations or p_(mu)p_(nu) normalized by the energy
#include <stdio.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_eigen.h>
#include <gsl/gsl_sort_vector.h>
#define REGULATE 1 // 1 to regulat... |
#include <vector>
#include <opengm/functions/pottsn.hxx>
#include <opengm/unittests/test.hxx>
#include <opengm/graphicalmodel/graphicalmodel.hxx>
#include <opengm/operations/multiplier.hxx>
#include <opengm/inference/bruteforce.hxx>
template<class T>
struct FactorTest {
typedef T ValueType;
typedef opengm::Grap... |
#define ARMA_NO_DEBUG
#include <RcppDist.h>
#include <RcppThread.h>
// [[Rcpp::depends(RcppArmadillo, RcppDist, RcppThread)]]
using namespace arma;
// forward filter portion of FFBS algorithm
// this function computes the Gaussian likelihood for each regime by treating the
// Markovian dynamical system as a latent (o... |
/*
* Copyright (c) 2016 Advanced Micro Devices, 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 ... |
#include "Game.hpp"
const int BLIP = -1;
void Game::init() {
GameLib::Locator::provide(&context);
if (context.audioInitialized())
GameLib::Locator::provide(&audio);
GameLib::Locator::provide(&input);
GameLib::Locator::provide(&graphics);
GameLib::Locator::provide(&world);
GameLib::Locator::provide(&box2d);
... |
#include "cglass/crosslink.hpp"
#include <iostream>
Crosslink::Crosslink(unsigned long seed) : Object(seed) {
SetSID(species_id::crosslink);
}
void Crosslink::Init(crosslink_parameters *sparams) {
sparams_ = sparams;
name_ = sparams_->name;
length_ = -1;
diameter_ = sparams_->tether_diameter;
color_ = spa... |
//
// Flat-format binary object format
//
// Copyright (C) 2002-2007 <NAME>
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this... |
/*
ApproxMC
Copyright (c) 2009-2018, <NAME>. All rights reserved.
Copyright (c) 2015, <NAME>, <NAME>,
<NAME>, <NAME>, <NAME>
Copyright (c) 2014, <NAME>, <NAME>, <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.