text stringlengths 5.71k 33.7k |
|---|
/*!
@author <NAME>
*/
#include "Joystick.h"
#include "ExtJoystick.h"
#include <cnoid/Config>
#include <cnoid/stdx/filesystem>
#include <fmt/format.h>
#include <linux/joystick.h>
#include <sys/ioctl.h>
#include <string>
#include <vector>
#include <map>
#include <chrono>
#include <cerrno>
#include <cstring>
#include <... |
/*
CDTestFramework http://codercorner.com
Copyright (c) 2007-2008 <NAME>, <EMAIL>
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any ... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
// OtherActions.cpp -- more CNTK actions
//
#define _CRT_NONSTDC_NO_DEPRECATE // make VS accept POSIX functions without _
#include "stdafx.h"
#include "Basics... |
/*
* Copyright (c) 2001 University of Southern California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice... |
/*
* Fledge process class
*
* Copyright (c) 2018 Dianomic Systems
*
* Released under the Apache 2.0 Licence
*
* Author: <NAME>
*/
#include <sending.h>
#include <condition_variable>
#include <reading_set.h>
#include <plugin_manager.h>
#include <plugin_api.h>
#include <plugin.h>
#define VERBOSE_LOG 0
/**
* Th... |
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <cassert>
#include <cmath>
#include <chrono>
#include "OpenCLDeviceInfo.h"
#include "OptionParser.h"
#include "support.h"
#include "Event.h"
#include "ProgressBar.h"
#include "ResultDatabase.h"
#include "aocl_util... |
// Copyright 2018 The Chromium OS 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 "vm_tools/vsh/vsh_forwarder.h"
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <poll.h>
#include <pwd.h>
#include <signal.h>
... |
#include <glog/logging.h>
#include <stdio.h>
#include <stdlib.h>
#include "server/messages.h"
#include "server/master.h"
#include <unordered_map>
#include <map>
#include <list>
#include <queue>
#ifndef NUM_INITIAL_WORKERS
#define NUM_INITIAL_WORKERS 1
#endif
#ifndef NUM_THREADS
#define NUM_THREADS 24
#endif
#ifnd... |
#include "SceneManager.hpp"
#include "ShaderManager.hpp"
#include <objSpirit.hpp>
void SceneManager::readScene(const std::string &filepath)
{
m_scene.clear();
objSpirit::objLoader reader;
reader.loadObjFile(filepath, objSpirit::Warnings::All);
auto data = reader.getData();
m_scene.vertices.reser... |
#pragma once
#include <string>
#include <functional>
#include <cmath>
#include <random>
#include <iostream>
#include <vector>
#include <unordered_map>
#include <utility>
#include <thread>
#include "tbb/parallel_sort.h"
#include "tbb/parallel_for.h"
#include "tbb/parallel_for_each.h"
#include "tbb/mutex.h"
#include "tb... |
/** \file TraceAnalyzer.cpp
* \brief defines the Trace class.
*
* Implements a quick online trapezoidal filtering mechanism
* for the identification of double pulses
*
* - SNL - 7-2-07 - created
* - SNL - 2-4-08 - Add plotting spectra
*/
#include <algorithm>
#include <fstream>
#include <... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2007-2016 <NAME>, Amsterdam, the Netherlands.
// Copyright (c) 2008-2016 <NAME>, Paris, France.
// Copyright (c) 2009-2016 <NAME>, London, UK.
// This file was modified by Oracle on 2014-2017.
// Modifications copyright (c) 2014-2017 ... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
/*
Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... |
#include "Data.h"
#define RED "\x1b[31m"
#define GRN "\x1b[32m"
#define YELLOW "\x1b[33m"
#define BLUE "\x1b[34m"
#define MAGENTA "\x1b[35m"
#define CYAN "\x1b[36m"
#define RESET "\x1b[0m"
#define GRN "\x1b[32m"
#define LName pptr.Gate(0)->GetName().c_str()
#define RName pptr.Gate(pptr.length()... |
/*
PowerDNS Versatile Database Driven Nameserver
Copyright (C) 2003 - 2016 PowerDNS.COM BV
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation
Additionally, the license... |
/*
*
* Author: <NAME> <<EMAIL>>, (C) 2005-2006
*
* 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 your
* option) any later version.
*
* This program is dis... |
/*
* Includes
*/
#include <assimp/cimport.h> // C importer
#include <assimp/scene.h> // Collects data
#include <assimp/postprocess.h> // Various extra operations
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <iomanip> // setprecision
#include <iostream>
#include <math.h>
#include <mmsystem.h>
#include <... |
/*
* Copyright 2017 MapD Technologies, 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 o... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* rsStructFileExtAndReg.c. See structFileExtAndReg.h for a description of
* this API call.*/
#include "reFuncDefs.hpp"
#include "apiHeaderAll.hpp"
#include "o... |
/* Copyright (c) 2005, Regents of Massachusetts Institute of Technology,
* Brandeis University, Brown University, and University of Massachusetts
* Boston. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
#include "stdafx.h"
#include "dx103DFluidObstacles.h"
#include "xrEngine/xr_object.h"
#include "xrEngine/IPhysicsShell.h"
#include "xrEngine/IObjectPhysicsCollision.h"
#include "xrEngine/IPhysicsGeometry.h"
#include "dx103DFluidBlenders.h"
#include "dx103DFluidData.h"
#include "dx103DFluidGrid.h"
/*
#ifdef DEBUG
#inc... |
/************** mongo C++ Program Source Code File (.CPP) **************/
/* PROGRAM NAME: mongo Version 1.1 */
/* (C) Copyright to the author <NAME> 2021 */
/* These programs are the MGODEF class execution routines. */
/*********************************... |
#include "app.h"
#include "dots.h"
#include "rencache.h"
#include "render.h"
#include "renderer.h"
#include "util.h"
#include "popup_view.h"
#include <SDL2/SDL.h>
static view_list contextStack;
#define _draw_rect rencache_draw_rect
#define _draw_text rencache_draw_text
#define _draw_wtext ren_draw_wtext
SDL_Window... |
// Copyright 2021 <NAME>, 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 in... |
/// \ingroup newmat
///@{
/// \file tmt7.cpp
/// Part of matrix library test program.
//#define WANT_STREAM
#include "include.h"
#include "newmat.h"
#include "tmt.h"
#ifdef use_namespace
using namespace NEWMAT;
#endif
// C matrix mulitply - for testing RealStarStar
void c_matrix_multiply(i... |
#include "imagemerger.h"
#include <QDebug>
ImageMerger::ImageMerger()
{
}
// 横向拼接
Mat ImageMerger:: getMerageImageHorizontal(Mat &cur_frame, Mat &cur_frame1)
{
cv::Mat image_one=cur_frame;
cv::Mat image_two=cur_frame1;
cv::Mat img_merge(image_one.rows,image_one.cols + image_two.cols+1,image_one.type())... |
/*
* File: trmgr.cpp
* Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#include <string>
#include <vector>
#include <iostream>
#include "common/sedna.h"
#include "common/u/usem.h"
#include "common/u/umutex.h"
#include "common/u/uevent.h"
#include "common/u... |
///////////////////////////////// -*- C++ -*- /////////////////////////////////
/*
* Copyright 2007-2017 IAR Systems AB.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice a... |
// STD Libs
#include<cmath>
#include<string>
#include<ctime>
#include<cstdio>
#include<vector>
// VItA Libs
#include<structures/domain/AbstractDomain.h>
#include<structures/domain/SimpleDomain.h>
#include<structures/domain/DomainNVR.h>
#include<structures/domain/PartiallyVascularizedDomain.h>
#include<structures/domai... |
//===- HeaderSearch.cpp - Resolve Header File Locations -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "CFremenGrid.h"
using namespace std;
CFremenGrid::CFremenGrid(float originX,float originY,float originZ,int dimX,int dimY,int dimZ,float cellSize)
{
debug = false;
oX = originX;
oY = originY;
oZ = originZ;
xDim = dimX;
yDim = dimY;
zDim = dimZ;
resolution = cellSize;
numCells = xDim*yDim*zDim;
aux ... |
#include "sql.h"
#include <algorithm>
#include <iso646.h>
#include "util.h"
namespace sql {
enum Token {
NONE,
IDENTIFIER,
VALUE,
SYMBOL,
COLON,
COMMA,
EQUALS,
ALL,
AS,
BINARY,
CLOSE,
CONNECT,
CONNECTION,
CONTINUE,
CREATE,
CURRENT,
CURSOR,
DEC... |
/***********************************************************************
*
* Mario Created on : 2019-06-11 18:01
* Filename : TransBot.cpp
* Function : 透明车底功能函数
*
*************************************************************************/
# pragma once
#include <fstream>
#include "TransBot.h"
//#defi... |
// Copyright 2017 Google 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 in... |
#include "renderclass.h"
////////////////////////////////////////////////////////////////////////////////
inline float randomnum() {
return static_cast<float>(rand()) / static_cast<float>(RAND_MAX);
}
inline void saveim(vector<float> tmpdata, cv::Mat tmpshow, cv::Mat tmpsave,
int height, int width, char *fold, ch... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include "Matrix.h"
#include "math.h"
///////////
// Matrix4//
///////////
Matrix4::Matrix4() {}
/* note: entered in COLUMNS */
Matrix4::Matrix4(float a, float b, float c, float d, float e, float f, float g,
float h, float i, float j, float k, float l, float mm, float n,
float o, fl... |
#include <yangrecord/YangFlvWrite.h>
#include <stdio.h>
#include <string.h>
#include <string>
#include <stdlib.h>
#include <yangutil/sys/YangEndian.h>
#include "yangutil/yang_unistd.h"
#include "yangutil/sys/YangAmf.h"
#define REFERENCE_TIME int64_t
//#define _T(x) x
typedef uint8_t uint8;
//----------... |
/*
Copyright (c) 2011 Yahoo! Inc. All rights reserved. The copyrights
embodied in the content of this file are licensed under the BSD
(revised) open source license
This implements the allreduce function of MPI. Code primarily by
<NAME> and <NAME>, with help <NAME>.
*/
#include <iostream>
#include <cstdio>
#includ... |
//
// CRF++ -- Yet Another CRF toolkit
//
// $Id: tagger.cpp 1601 2007-03-31 09:47:18Z taku $;
//
// Copyright(C) 2005-2007 <NAME> <<EMAIL>>
//
#include <iostream>
#include <vector>
#include <iterator>
#include <cmath>
#include <string>
#include <strstream>
#include "stream_wrapper.h"
#include "common.h"
#include "t... |
#include "eigenanalysisOfHessian.hpp"
#include "SIPL/Types.hpp"
using namespace SIPL;
#define MAX(a,b) a > b ? a : b
#define SIZE 3
float hypot2(float x, float y) {
return sqrt(x*x+y*y);
}
// Symmetric Householder reduction to tridiagonal form.
void tred2(float V[SIZE][SIZE], float d[SIZE], float e[SIZE]) {
//... |
// SPDX-License-Identifier: MIT
// Copyright contributors to the gecko project.
#include "system.h"
#include "cursor.h"
#include "dispatcher.h"
#include "screen.h"
#include "window.h"
#include <X11/Xcursor/Xcursor.h>
#include <X11/cursorfont.h>
#include <base/contract.h>
#include <base/env.h>
#include <base/string_u... |
// -*- C++ -*-
//
// Package: EcalMipGraphs
// Class: EcalMipGraphs
//
/**\class EcalMipGraphs EcalMipGraphs.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>
// Created: Th Nov 22 5:46:22 CEST 2007
//
//
#include "CaloOnline... |
#include "menu-object.hh"
struct MENUEX_TEMPLATE_HEADER {
uint16_t version;
uint16_t offset;
uint32_t helpid;
};
struct MENUEX_TEMPLATE_ITEM {
uint32_t type;
uint32_t state;
uint32_t id;
uint16_t flags;
wchar_t text[1]; // actual length is dynamic
// if (items) {
// ?? uint32 helpid;
/... |
//
// Created by <NAME> on 3/30/20.
//
#include "settings.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <cmath>
std::string joinpaths(const std::string &base, const std::string &path) {
if (path.empty()) {
return "";
} else if (path[0] == '/') {
return path;
} e... |
/* CSCDDUEventData.cc
* Modified 4/21/03 to get rid of arrays and store all CSC data
* in vectors.
* A.Tumanov
*/
#include "EventFilter/CSCRawToDigi/interface/CSCDDUEventData.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>
#include <cstdio>
#include "EventFilter/CSCRawToDigi/inte... |
/* SYMB_CTEMP - Template for generating SymBuilder C Code Callbacks
* This Version also Uses CppAD for generating Derivatives
* Copyright (C) 2014-2016 <NAME> (I2C2)
*/
#include <mex.h>
#include <string.h>
#include <math.h>
#include <cppad/cppad.hpp>
using std::vector;
using std::set;... |
/*
* Copyright 2017 MapD Technologies, 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 o... |
// ImGui GLFW binding with OpenGL
// https://github.com/ocornut/imgui
#include <stdexcept>
#include <string>
#define GLFW_INCLUDE_ES2
#define GLFW_INCLUDE_GLEXT
#include "imgui_glfw.h"
#ifdef _WIN32
#undef APIENTRY
#define GLFW_EXPOSE_NATIVE_WIN32
#define GLFW_EXPOSE_NATIVE_EGL
#include <GLFW/glfw3native.h>
#endif
/... |
/*
* @Author: Han
* @Date: 2019-11-18 11:25:17
* 最小二乘匹配
*/
#include "lsm.h"
#include <base/base.h>
#include <ceres/ceres.h>
#include <opencv2/imgproc.hpp>
using namespace ceres;
namespace ceres {
// A jet traits class to make it easier to work with mixed auto / numeric diff.
template <typename T> struct JetOps {... |
#include "gbwt/fast_locate.h"
#include "alignment_path.hpp"
#include <algorithm>
#include <numeric>
AlignmentPath::AlignmentPath(const pair<gbwt::SearchState, gbwt::size_type> & gbwt_search_in, const bool is_multimap_in, const uint32_t frag_length_in, const uint32_t min_mapq_in, const int32_t score_sum_in) : gbwt_s... |
#include <stdio.h>
#include <memory>
#include <tinker/shell.h>
#include <toys/toy_util.h>
#include <toys/toy.h>
void test_toy()
{
CToyUtil t;
t.UseUV();
t.AddMaterial("test.mat");
t.AddMaterial("test2.mat");
t.AddMaterial("test0.mat");
t.AddMaterial("test3.mat");
t.AddVertex(0, Vector(1, 2, 3), Vector2D(0, ... |
// Implemented features:
// [X] User texture binding. Cast 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID in imgui.cpp.
#include <math.h>
#include <psp2/kernel/clib.h>
#include <psp2/kernel/processmgr.h>
#include <stdio.h>
#include <stdlib.h>
#include <vitaGL.h>
#include "img... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2011-2015 Regents of the University of California.
*
* This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and
* contributors.
*
* ndnSIM is free software: you can redistribute it and/or modify it under... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm_knowledge.h"
#include <cfloat>
#include <cstdlib>
#include <fstream>
#include <mutex>
#include <sstream>
#include <string>
#include <vector>
#include "../../src... |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2020 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... |
/*** M A N I P U L A T E B I N A R Y T R E E S R E C U R S I V E L Y ***
FILE NAME : bin-trees-A.cc
FIRST COMPLETED: by <NAME>, July 5, 1993
MODIFIED : by <NAME>, Jan. 17, 1994 (converted it from Pascal to C++)
by <NAME>, Sept. 1, 1997 (revised documentation)
b... |
// WorkThread.cpp: CWorkThread クラスのインプリメンテーション
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include <regex>
#include <sys/stat.h>
#include "SrvcMain.h"
#include "WorkThread.h"
#include "tools.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define ... |
// Deal.ii
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/base/function.h>
#include <deal.II/base/logstream.h>
#include <deal.II/base/smartpointer.h>
#include <deal.II/base/convergence_table.h>
#include <deal.II/base/numbers.h>
#include <deal.II/lac/vector.h>
#include <deal.II/lac/full_matrix.h>
#include <... |
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <string>
#include <iostream>
#include <sstream>
#include <queue>
#include <tuple>
#include <vector>
#include "read_raw.h"
using namespace std;
template<typename T>
Array2d<T> medianFilter(Array2d<T> F, int nw);
int euler_number(Array... |
#include <stdio.h>
#include <stack>
#include <map>
#include <string>
#include "agg_basics.h"
#include "agg_scanline_u.h"
#include "agg_scanline_p.h"
#include "agg_pixfmt_rgb.h"
#include "agg_pixfmt_rgba.h"
#include "agg_pixfmt_gray.h"
#include "agg_alpha_mask_u8.h"
#include "agg_conv_curve.h"
#include "agg_conv_stroke.... |
/*
Copyright [2008] [<NAME>]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... |
//===--------------------------- GAMSUtils.cpp ----------------------------===//
//
// Utilities for interfacing with the GAMS optimization framework.
//
//===----------------------------------------------------------------------===//
//
// Copyright (c) 2016 <NAME> and <NAME>
//
// Licensed under the Apache License, V... |
#include "scene.h"
#include "thingfinder.h"
using namespace scene;
AbstractScene *AbstractScene::getInstance(char demo_mode)
{
switch (demo_mode)
{
case DEMO_MODE_LIGHT_SABERS:
return new LightSaberScene();
break;
case DEMO_MODE_JOINT_INFO:
return new JointInfoScene();
b... |
#include "Base.h"
#include "Base/Random.h"
#include "Enemy.h"
#include "Game/Data.h"
#include "Game/Tick.h"
#include "Info.h"
#include "Map/MapData.h"
#include "Map/MapUtil.h"
#include "Map/Sight.h"
#include "MapObj.h"
#include <algorithm>
static mobj_t* gpCheckThingMo; // Used for PB_CheckThing
stat... |
#include <stdio.h>
#include <mutex>
#include <openpose3d/renderer.hpp>
#include <GL/glut.h>
struct Keypoints3D
{
op::Array<float> mPoseKeypoints;
op::Array<float> mFaceKeypoints;
op::Array<float> mLeftHandKeypoints;
op::Array<float> mRightHandKeypoints;
bool validKeypoints;
std::mutex mutex;
}... |
// -------------------------------------------------------------- -*- C++ -*-
// File: ./examples/src/cpp/schedsearch_sequencing.cpp
// --------------------------------------------------------------------------
// Licensed Materials - Property of IBM
//
// 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5725-A06 5725-A29
// Copyri... |
/*
** Copyright 2011-2015,2017, 2020-2021 Centreon
**
** 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... |
#include "ukf.h"
#include <cmath>
#include <iostream>
#include "Eigen/Dense"
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
is_initialized_ = false;
previous_timestamp_ = 0;
/... |
/*
Copyright 2016-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 agreed to in w... |
// Gmsh - Copyright (C) 1997-2019 <NAME>, <NAME>
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
#include <set>
#include "GmshConfig.h"
#include "GModel.h"
#include "MLine.h"
#include "MTriangle.h"
#include "MQuadrangle.h"
#include "Ex... |
#include "HomotopyContinuation.h"
HomotopyContinuation::HomotopyContinuation() {
}
Vector HomotopyContinuation::newtonRaphson(Solution &sol, Homotopy& homotopy, elem_t t) {
Matrix mDiff = homotopy.diff(t, sol);
Vector vEval = homotopy.eval(t, sol);
var_t det = mDiff.determinant();
if (std::abs(det) < ... |
#include "ofApp.h"
#pragma mark - Utils
#define KINECT_MAX_RANGE_MM 10000.f // 10 m
#define KINECT_MIN_RANGE_MM 400.f // 0.4 m
#define KINECT_HORIZONTAL_FOV 58.f
#define KINECT_VERTICAL_FOV 45.f
#define KINECT_CUBE_X 11086.181f
#define KINECT_CUBE_X_HALF 5543.0905f
#define KINECT_CUBE_Z KINECT_MAX_RANGE_MM
#define KI... |
// ===========================================================================
// Imagine++ Libraries
// Copyright (C) Imagine
// For detailed information: http://imagine.enpc.fr/software
// ===========================================================================
// A first example...
#include <Imagine/Graphics.h>
... |
//node.cpp
//=========================
#include <iostream>
#include <vector>
#include <cmath>
//=========================
#include "phys.h"
#include "coord.h"
#include "node.h"
#include "cell.h"
//=========================
//========================================
/** class Node Functions **/
Node::Node(Coord loc, Ce... |
/*MIT License
Copyright (c) 2020 WX96
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, distribute... |
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <numeric>
#include <pal_appearance_models/appearance.h>
#include <pal_appearance_models/oldam.h>
#include <pal_appearance_models/colorBoxes.h>
#include <pal_appearance_models/hogmodel.h>
#include <pal_appearance_mod... |
/*------------------------------------------------------------------------*/
/* */
/* CONVERT.CPP */
/* */
/* <NAME> ... |
/*
* 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 <random>
#include "delfem2/mshio.h"
#include "delfem2/mshmisc.h"
#include "delfem2/gridvoxel.h"
#include "delfem2/rig_geo3.h"
//
#include <glad/g... |
//=== MicroMipsSizeReduction.cpp - MicroMips size reduction pass --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------------------------... |
/*
* MIT License
*
* Copyright (c) 1999, 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... |
#include "Window.h"
#include "Event.h"
#define GLFW_EXPOSE_NATIVE_WIN32
#define GLFW_EXPOSE_NATIVE_WGL
#include "GLFW/glfw3.h"
#include "GLFW/glfw3native.h"
#include <string>
// Window creation method declaration
GLFWwindow* create_glfw_window(
int w,
int h,
const char *t,
GLFWwindow* share,
bool fullscreen,
i... |
/*! \file
\brief The AnnotationManager that generates ICFG
\authors <NAME>
\version $Id: ManagerICFGStandard.cpp,v 1.2 2005/06/10 02:32:04 mstrout Exp $
Copyright (c) 2002-2005, Rice University <br>
Copyright (c) 2004-2005, University of Chicago <br>
Copyright (c) 2006, Contributors <br>
All rights r... |
/*-------------------------------------------------------------------------
*
* pg_enum.c
* routines to support manipulation of the pg_enum relation
*
* Copyright (c) 2006-2015, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* src/backend/catalog/pg_enum.c
*
*-----------------------------------... |
#include "world/world.h"
#include "world/sky.h"
#include "world/terrain.h"
#include "world/grassmanager.h"
#include "audio/soundmanager.h"
#include "objects/player.h"
#include "objects/hud.h"
#include "objects/sign.h"
#include "objects/tree.h"
#include "objects/treemanager.h"
#include "objects/drone.h"
#include "obje... |
/*! \file demo_svg.cpp
\brief Demonstration of a few facets of using the SVG interface directly.
\details This only demonstrates a very few of the possible features
because most users will only need to use the plot interfaces.
But this might provide a little guidance for producing other diagrams an... |
//===--- APINotesManager.cpp - Manage API Notes Files ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/**
* Copyright (C) 2019 LEIDOS.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
/*
* eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: eos-model-viewer.cpp
*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
#include "ros/ros.h"
#include "move_in_a_rectangle.h"
#include <boost/bind.hpp>
#include <geometry_msgs/Twist.h>
#include <iomanip> // std::setprecision
#include <iostream>
#include <o_msgs/ResetEncoders.h>
#include <ros/console.h>
#include <string>
#include <sstream>
#include <tf2_geometry_msgs/tf2_geometry_msgs... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
// Copyright (c) 2004 Broad Institute/Massachusetts Institute of Technology
#include "Alignment.h"
#include "math/Arith.h"
#include "Basevector.h"
#include "Bitvector.h"
#include "CoreTools.h"
#include "math/Functions.h"
#include "IndexedAlignmentPlusVector.h"
#include "NQS.h"
#include "PackAlign.h"
#include "Qualvect... |
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_native_dialog.h>
#include <vector>
#include <cmath>
#include <cstdio>
#define SCR_W 1024
#define SCR_H 650
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? ... |
#include "MeshLoaderObj.h"
using namespace std;
/**
* \brief Go through the whole string and remove all line breaks (n) and tabs (t)
* \param str to go through
*/
void RemoveLineBreaks(string& str) {
for (int i=0; i<str.size(); i++) {
if (str[i] == '\t' || str[i] == '\n') {
str.erase(i, 1);
i--;
}
}
}
... |
//===--- FunctionSignatureOptCloner.cpp - Optimizes function signatures ---===//
//
// 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... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestSurfaceConstrainedHandleWidget.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software ... |
//===- llvm-ifs.cpp -------------------------------------------------------===//
//
// 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) 2012, Lunar Workshop, Inc.
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 disclaimer.
2. R... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.