text stringlengths 3.08k 22k |
|---|
#include "Tools.h"
#include <QMap>
#ifdef Q_OS_LINUX
#include <QFile>
#include <QRegularExpression>
#else
#ifdef Q_OS_WIN32
#include "windows.h"
#include "psapi.h"
#else
#ifdef Q_OS_MAC
#include <mach/mach.h>
#endif // Q_OS_MAC
#endif // Q_OS_WIN32
#endif // Q_OS_LINUX
Tools::Tools()
{
}
/**********************... |
/////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2006) by the //
// Broad Institute/Massachusetts Institute of Technology. All rights //
// are... |
/** @defgroup MleParts Magic Lantern Parts */
/**
* @file simpmass.cxx
* @ingroup MleParts
*
* This file defines a class for a Simple Mass.
*
* @author <NAME>
* @date May 1, 2003
*/
// COPYRIGHT_BEGIN
//
// Copyright (C) 2000-2007 Wizzer Works
//
// Wizzer Works makes available all content in this file ("C... |
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <zlib.h>
#include <Bitmap.h>
#include <Message.h>
#if USE_LZO
#include "minilzo.h"
#endif
enum {
COMPRESSION_NONE,
COMPRESSION_LZO,
COMPRESSION_ZLIB,
};
#if USE_LZO
static void* lzoWorkerMem = NULL;
// init_lzo
void*
init_lzo()
{
if (!lzoWo... |
#include "maintenance.h"
#include "ui_maintenance.h"
Maintenance::Maintenance(QWidget *parent) : QDialog(parent), steps(0), ui(new Ui::Maintenance), totalNumberOfFiles(0), totalNumOfWords(0.0), totalNumOfValidDocs(0) {
ui->setupUi(this);
QPalette MaintenanceLabel = ui->label->palette();
Maintenanc... |
#include "Obstacle.h"
#include "Utilities.h"
using namespace Core;
using namespace Core::AI;
// ----------------------------------------------------------------------------
// Obstacle
// compute steering for a vehicle to avoid this obstacle, if needed
Vector3 Obstacle::steerToAvoid (const AbstractVehicle& vehicle... |
// __BEGIN_LICENSE__
// Copyright (c) 2009-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NGT platform is licensed under the Apache License, Version 2.0 (the
// "License"); you may not use this file excep... |
// Copyright 2008 Isis Innovation Limited
#include "ATANCamera.h"
#include <TooN/helpers.h>
#include <cvd/vector_image_ref.h>
#include <iostream>
#include <gvars3/instances.h>
using namespace std;
using namespace CVD;
using namespace GVars3;
ATANCamera::ATANCamera(TooN::Vector<5> params)
{
// The camera name is used... |
// ****************************************************************************
//
// $Id: mexInterface_AlgPDTree_CP_Mesh.cpp, v0.1 Exp $
//
// Description:
//
//
// Usage:
//
//
// See Also:
//
//
// Author(s): <NAME>
//
// Created on:
//
//
// Developed by the Engineerin... |
/*
** ClanLib SDK
** Copyright (c) 1997-2020 The ClanLib Team
**
** 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 a... |
/*
Sưu tầm bởi @nguyenvanhieuvn
Thực hành nhiều bài tập hơn tại https://luyencode.net/
*/
#include<stdio.h>
#include<conio.h>
#include<math.h>
//540 khai báo dữ liệu điểm OXY
struct Diem
{
float X;
float Y;
};
typedef struct Diem DIEM;
void NhapDiem(DIEM &);
void XuatDiem(DIEM);
float TinhKhoangCachGiua2... |
//
// Copyright (c) 2009-2010 <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 purpose,
// inc... |
/****************************************************************************************
Copyright (C) 2014 Autodesk, Inc.
All rights reserved.
Use of this software is subject to the terms of the Autodesk license agreement
provided at the time of installation or download, or which otherwise accompanies
... |
#include <string>
#include <vector>
#include "base_opt.h"
#include "../DDDG.h"
#include "../ExecNode.h"
#include "../opcode_func.h"
#include "../typedefs.h"
void BaseAladdinOpt::run() {
static const std::string boundary = "-------------------------------";
std::cout << boundary << "\n"
<< getCentered... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "config_unix.h"
#include "config_win32.h"
#include "compat/platform_pipe.h"
#include <stdlib.h>
#include <stdio.h>
#include <thread>
#include <mutex>
#include <algorithm>
#include "astat.h"
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
#endif
#ifndef MSG_DONTWA... |
#include<bits/stdc++.h>
#include<cstdio>
#include<cstdlib>
#include<fstream>
using namespace std;
class Node{
char data;
Node *link;
public:
Node(char);
friend class List;
friend class Hash;
};
Node::Node(char x){
data=x;
link=NULL;
}
class List{
Node *start;
public:
List(){
start=NULL;
}
void pushBack(c... |
// Confidential, unpublished property of <NAME>
// The access and distribution of this material is limited solely to
// authorized personnel. The use, disclosure, reproduction,
// modification, transfer, or transmittal of this work for any purpose
// in any form or by any means without the written permission of
// <N... |
/*
* evalue.cc
*
* Created on: Feb 23, 2015
* Author: isovic
*/
#include <string.h>
#include <math.h>
#include "evalue.h"
#include "../log_system/log_system.h"
/* Short usage instructions:
* Scorer *scorer;
* ScorerCreateMatrix(&scorer, "EDNA_FULL", gap_open, gap_extend);
*
*/
#define SCORERS_LEN (siz... |
#include "playerclass.h"
// contructor
PlayerClass::PlayerClass()
{
pGraphBuilder = NULL;
pMediaControl = NULL;
pMediaSeeking = NULL;
pMediaEventEx = NULL;
hProgressBar = NULL;
hOwner = NULL;
totalDuration = 0;
timeElapsed ... |
/*
* Copyright 2009-2017 Alibaba Cloud 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 "motorlib/monitor.hpp"
#include <fstream>
void MonitorJuego::cambiarOrientacion(unsigned char entidad, unsigned char orientacion) {
Orientacion aux;
switch (orientacion) {
case 0:
aux = norte;
break;
case 1:
aux = este;
break;
case 2:
aux = sur;
break;
cas... |
/* ************************************************************************
* Copyright 2016-2021 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "testing_common.hpp"
using namespace std;... |
// Copyright 2015 The Shaderc 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 a... |
//-----------------------------------------------------------------------------
// luna2d engine
// Copyright 2014-2017 <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 re... |
/******************************************************************************
Copyright (c) 2018 Advanced Micro Devices, Inc. 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 Software... |
// Copyright (c) 2019 Zededa, Inc.
// SPDX-License-Identifier: Apache-2.0
#include <iostream>
#include "api.pb.h"
#include <string.h>
#include <list>
#include <algorithm>
#include <string>
#include <fstream>
#include <sstream>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_i... |
// ConsoleApplication1.cpp: definisce il punto di ingresso dell'applicazione console.
//
//#include "stdafx.h"
#include <iostream>// libraries for input and out put
#define MAX 100 //decleretion of a constat vai define
// -------END OF PREPROCESSORS OPERETION ----------
using namespace std; //(*)optional to a... |
/*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundl... |
#include "WraithManager.h"
#include <BWAPI.h>
#include <BWTA.h>
#include <math.h>
#include <boost/foreach.hpp>
#include "Common.h"
WraithManager::WraithManager(){
Wraiths.clear();
Wraiths.reserve(200);
AttackTarget = BWAPI::Positions::None;
AttackBuilding = NULL;
RepairSCV = NULL;
}
void WraithManager::AddWr... |
#include "GbUtil.h"
#include "SafeBuf.h"
#include <string.h>
#include <sstream>
bool cdataEncode(SafeBuf *dstBuf, const char *src) {
return cdataEncode(dstBuf,src,strlen(src));
}
bool cdataEncode(SafeBuf *dstBuf, const char *src, size_t len) {
if(len<3)
return dstBuf->safeMemcpy(src,len);
if(!dstBuf->reserve(le... |
#include <windows.h>
#include "stdio.h"
#include "math.h"
#include "MSFS_var.h"
#ifdef NOSIM
t_structControl yc;
#endif
#define DATA_LENGTH 16
typedef struct t_filter_data {
double data[DATA_LENGTH];
unsigned int index;
} t_filter_data;
t_filter_data data_roll = {.index = 0};
t_filter_data data_pitch = {.index = ... |
#include <iostream>
#include <algorithm>
#include <vector>
#include <deque>
#include <iomanip>
#include <cmath>
int SumaCifara(long long int arg){
int suma=0;
if (arg == 0) return 1;
while(arg){
suma+=arg%10;
arg/=10;
}
return suma;
}
bool savrsen(long long int arg){
//savrseni broj je jednak ... |
#include <iostream> // for standard I/O
#include <string> // for strings
#include <iomanip> // for controlling float print precision
#include <sstream> // string to number conversion
#include <opencv2/core/core.hpp> // Basic OpenCV structures (cv::Mat, Scalar)
#include <opencv2/imgproc/imgproc.hpp> // Gaus... |
#include <agSIMD/Quad.hpp>
#include <gtest/gtest.h>
using namespace ag::SIMD;
TEST(BQUAD, CREATE_UNIQUE) {
u8Quad a{1, 3, 5, 7};
EXPECT_EQ(a.a, 1);
EXPECT_EQ(a.b, 3);
EXPECT_EQ(a.c, 5);
EXPECT_EQ(a.d, 7);
}
TEST(BQUAD, CREATE_SAME) {
u8Quad a{1, 1, 1, 1};
EXPECT_EQ(a.a, 1);
EXPECT_EQ(a.b, 1);
EXPE... |
#include <futurehead/core_test/testutil.hpp>
#include <futurehead/node/election.hpp>
#include <futurehead/node/testing.hpp>
#include <gtest/gtest.h>
TEST (election, construction)
{
futurehead::system system (1);
futurehead::genesis genesis;
auto & node = *system.nodes[0];
genesis.open->sideband_set (futurehead::b... |
#include <defs.h>
#include <spreadinterp.h>
#include <utils.h>
#include <utils_precindep.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
void usage() {
printf("usage: spreadtestnd dims [M N [tol [sort [flags [debug [kerpad [kerevalmeth [upsampfac]]]]]]]]\n\twhere "
"dims=1,2,3... |
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
#include <chrono>
#include <thread>
#include <tuple>
#include "linux_parser.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
using LinuxParser::kProcDirectory;
using LinuxParser::kStatFilename;
// DONE: An exam... |
#include <iostream>
#include <fstream>
#include <omp.h>
#include <fftw3.h>
#include <math.h>
#include "fft_conv3D.hpp"
extern "C"{
#include "convfpga/convfpga.h"
}
#include "helper.hpp"
#include "config.h"
using namespace std;
static fftwf_plan plan_filter, plan_sig, plan_inv_sig;
/**
* \brief Destroy FFTW plan... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
#include "pgm.h"
#define MAX_SOURCE_SIZE (0x100000)
#define AMP(a, b) (sqrt((a)*(a)+(b)*(b)))
cl_context context = NULL;
cl_command_queue queue = NULL;
cl_program p... |
#include <iostream>
#include <glm/geometric.hpp>
#include <glm/gtc/epsilon.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/quaternion.hpp>
#include <glm/gtx/fast_square_root.hpp>
#include <glm/gtx/fast_trigonometry.hpp>
#include <glm/gtc/matrix_access.hpp>
#include "math.h"
#define _sqrtHalf 0.70710678
#defin... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
//
// Dog.cpp
// G53GRA
//
// Created by <NAME> on 4/12/15.
// Copyright (c) 2015 NottinghamUniversity. All rights reserved.
//
#include <stdlib.h>
#include <math.h>
#include "Environment.h"
#include "Dog.h"
using namespace dog;
Dog::Dog(Position* pos)
: pos(pos)
{
unsigned int time_ui = int( time(NULL)... |
#include "DownlinkParser.hpp"
#include <common/Serializer.hpp>
#include <vector>
#include <fstream>
#include <json.hpp>
DownlinkParser::DownlinkParser(StateFieldRegistry& r,
const std::vector<DownlinkProducer::FlowData>& flow_data) :
fcp(r, flow_data),
registry(r),
flow_data(... |
#include<iostream>
#include<vector>
#include "BTC-USD2.h"
#include<math.h>
#include<fstream>
#include<omp.h>
#include <set>
#include<time.h>
using namespace std;
vector<double> macd;
vector<double> signal;
//#define REGULA_FALSI
void regula(double *x, double x0, double x1, double fx0, double fx1, int *itr)
{
*x... |
/*****************************************************************************
wRNA.cpp
Last-modified: 09 Oct 2014 03:49:10 PM
(c) 2012 - <NAME>
Center for Systems Biology
Department of Molecular & Cell Biology
University of Texas at Dallas
<EMAIL>
Licensed under the GNU General Public License 2.0 lic... |
/* Copyright 2013-2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
/*
Fast and Robust Detection of Crest Lineson Meshes C++ code
Copyright:(c) <NAME>, 2004
E-mail: <EMAIL>
URL: http://www.mpi-sb.mpg.de/~shin
Affiliation: Max-Planck-Institut fuer Informatik: Computer Graphics Group
Stuhlsatzenhausweg 85, 66123 Saarbruecken, Germany
Phone +49 681 9325-408 Fax +49 681 9325-499
All ... |
/*****************************************************************************
* *
* Copyright 2016-2018 Intel Corporation. *
* *
***... |
/*
* Copyright 2013, 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 applica... |
#include "BetaStar.h"
using namespace sc2;
// called each time the coordinator steps the simulation forward
void BetaStar::OnStep() {
const ObservationInterface* observation = Observation();
const GameInfo game_info = observation->GetGameInfo();
uint32_t currentLoop = observation->GetGameLoop();
//... |
#include "common.h"
#include "constants.h"
#include "kernels.h"
#include <vector>
#include <cstdio>
#include "xcl2.hpp"
#include <string>
// This extension file is required for stream APIs
#include "CL/cl_ext_xilinx.h"
// Declaration of custom stream APIs that binds to Xilinx Streaming APIs.
decltype(&clCreateS... |
#include "ModelViewer_pcp.h"
#include "QtSceneFromModel_T2D_CHM_s.h"
QtSceneFromModel_T2D_CHM_s::QtSceneFromModel_T2D_CHM_s(
QOpenGLFunctions_3_3_Core &_gl) :
QtSceneFromModel(_gl),
model(nullptr),
pt_num(0), pts(nullptr),
display_bg_mesh(true),
display_pcls(true),
display_rigid_circle(true),
display_pts(true... |
// Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2014 Google Inc. All rights reserved.
// http://code.google.com/p/ceres-solver/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistr... |
#include <http/HttpServer.h>
#include <http/HttpRequest.h>
#include <http/HttpResponse.h>
#include "muduo/net/EventLoop.h"
#include "muduo/base/Logging.h"
#include <iostream>
#include <fstream>
#include <string>
#include <map>
#include <cstdio>
#include <cstdio>
#include <cstdlib>
#include <cassert>
// #include "mysq... |
/** plik prezentuje zagadnienia z programowania w C++ :
* szablony
* przestrzenie nazw
* wyjątki
**/
#include<iostream>
#include<limits>
using namespace std;
/// deklarujemy szablon klasy
// szablon może mieć kilka parametrów oraz parametry z wartością domyślną (opcjonalne)
template <typename T1, typename T2... |
#include "EnemyFlyer.h"
#include "Scene.h"
#include "Collisions.h"
#include "Render.h"
#include "Player.h"
#include "Pathfinding.h"
#include "Player.h"
#include "Particles.h"
#include "EntityManager.h"
EnemyFlyer::EnemyFlyer(iPoint pos, const char* path, pugi::xml_document &EnemiesDocument) : Enemy(enemy_position, EN... |
#include "tracker_helper.h"
#include "Eigen/Dense"
#include "math_helper.h"
using namespace Eigen;
void kalman_filter_impl(double sigma_z, double sigma_b,
std::vector<double> *o_delta_t_in,
std::vector<double> *sigma_delta_t_in,
std::vector<double... |
//MIT License
//Copyright (c) 2020 bexoft GmbH (<EMAIL>)
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify,... |
/*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#include "moderndbs/schema.h"
#include "moderndbs/segment.h"
#include "moderndbs/error.h"
#include "rapidjson/writer.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/document.h"
#include "rapidjson/error/en.h"
#include "moderndbs/buffer_manager.h"
#include "moderndbs/file.h"
#include <limits>
#include <cstrin... |
#include <glm.hpp>
#include <algorithm>
#include <stack>
#include <Utils.h>
#include "BVHBuilder.h"
using glm::vec3;
struct AABB
{
private:
vec3 min;
vec3 max;
public:
AABB():
min({ 0, 0, 0 }),
max({ 0, 0, 0 }) {}
AABB(vec3 min, vec3 max) :
min(min),
max(max) {}
void surrounding(AABB const& aabb)
{
... |
// ======================================================================== //
// Copyright 2019 <NAME> //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// you ... |
// Copyright (c) 2012 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 "chrome/browser/history/select_favicon_frames.h"
#include <set>
#include "skia/ext/image_operations.h"
#include "third_party/skia/include/c... |
#include <vlog/resultjoinproc.h>
#include <vlog/fcinttable.h>
void copyFromArray(Term_t *dest, FCInternalTableItr *source, const uint8_t n, const int *pos) {
for (int i = 0; i < n; ++i)
dest[i] = source->getCurrentValue((uint8_t) pos[i]);
}
void copyFromArray(Term_t *dest, const Term_t *source, const uint... |
#include<AgendaUI.hpp>
#include<iostream>
#include<iomanip>
AgendaUI::AgendaUI() {
system("clear");
}
void AgendaUI::OperationLoop(void) {
std::string t_operation = "";
while(t_operation != "q") {
//system("clear");
std::cout << "------------------------Agenda------... |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
Copyright (c) 2016-2018 <NAME>, University of London
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 witho... |
#include <iostream>
#include <sstream>
#include <Kinect.h>
#include <opencv2\opencv.hpp>
#include <atlbase.h>
// 次のように使います
// ERROR_CHECK( ::GetDefaultKinectSensor( &kinect ) );
// 書籍での解説のためにマクロにしています。実際には展開した形で使うことを検討してください。
#define ERROR_CHECK( ret ) \
if ( (ret) != S_OK ) { \
std::stringstream ss... |
// Copyright 2018 The Fuchsia 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 <dirent.h>
#include <fbl/algorithm.h>
#include <fbl/string_buffer.h>
#include <fbl/vector.h>
#include <fcntl.h>
#include <fuchsia/hardware/power/c... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h> // for usleep
#include <gu3000graphic.h>
#define DEFAULT_FILENAME "/dev/fb0"
#define DEFAULT_WIDTH 256
#define DEFAULT_HEIGHT 128
#define DEFAULT_BPP 16
#define DEFAULT_FPS 20
#define DEFAULT_DITHER true
void usage(){
fprin... |
#include "sim_mesh_ctrl/sim_mesh_ctrl.hpp"
#include <thread>
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <nlohmann/json.hpp>
#include "std_msgs/msg/string.hpp"
using json = nlohmann::json;
#define BUFFER_SIZE 2048
struct DroneLocation
{
std::string name;
double x;
double ... |
#include "pch.h"
#include "config.h"
#include "utils.h"
#include "time_scale_view.h"
// TODO: Remove this lazy hack:
#include "histogram_view.h"
extern HistogramView* hack_histogramView;
int64_t TimeScaleView::Camera::NsToPx(int64_t ns)
{
return (ns - leftNs) * rendererWidth / widthNs;
}
int64_t TimeScaleView::... |
#include <stdlib.h>
#include <iostream>
#include <assert.h>
#include "subdivision.h"
Edge *Subdivision::makeEdge(Vec2& org, Vec2& dest)
{
Edge *e = new Edge();
e->EndPoints(org, dest);
return e;
}
Edge *Subdivision::makeEdge()
{
return new Edge();
}
void Subdivision::initMesh(const Vec2& A,const Ve... |
// Copyright (c) 2019, Lawrence Livermore National Security, LLC.
// See top-level LICENSE file for details.
// Caliper on-line aggregation service
#include "AggregationDB.h"
#include "caliper/CaliperService.h"
#include "caliper/Caliper.h"
#include "caliper/SnapshotRecord.h"
#include "caliper/common/Log.h"
#includ... |
#include "ukf.h"
#include <iostream>
using Eigen::MatrixXd;
using Eigen::VectorXd;
UKF::UKF() {
Init();
}
UKF::~UKF() {
}
void UKF::Init() {
}
/**
* • https://youtu.be/TIc3n-cxTqc
• First Coding quiz in this session.
• Let’s go ahead and put what we have learned into C++.
• You will write a s... |
/* ____ ____ _ __ __ ____ ___
* | _ \| _ \ / \ | \/ |/ ___/ _ \
* | | | | |_) | / _ \ | |\/| | | | | | |
* | |_| | _ < / ___ \| | | | |__| |_| |
* |____/|_| \_\/_/ \_\_| |_|\____\___/
* research group
* dramco.be/
*
* KU Leuven -... |
#include "car.hpp"
#include <glm/gtx/fast_trigonometry.hpp>
#include <glm/gtx/rotate_vector.hpp>
void Car::initializeGL(GLuint program) {
terminateGL();
me_program = program;
m_rotationLoc = abcg::glGetUniformLocation(me_program, "rotation");
m_scaleLoc = abcg::glGetUniformLocation(me_program, "sc... |
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Copyright(C) 2014 <NAME>
* Written (W) 2014 <NAME>
*/
#include <shogun/features/DotFeatures.h>
#include <shogun/mathematics/Math.h>
#include <shogun/mathematics/linalg/LinalgNamespace.h>
#include <shogun/structure/MultilabelModel... |
// ****************************************************************************
// This file is part of the Integrating Vision Toolkit (IVT).
//
// The IVT is maintained by the Karlsruhe Institute of Technology (KIT)
// (www.kit.edu) in cooperation with the company Keyetech (www.keyetech.de).
//
// Copyright (C) 2014 K... |
// Copyright (c) 2010 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.
// This is a simple application that stress-tests the crash recovery of the disk
// cache. The main application starts a copy of itself on a loop, che... |
/** Sample code to Read Streammer and recover file without bad events
This is meant to debug streamer data files.
compares_bad:
Compares the streamer header info for two events and return true
if any header information that should be the same is different
uncompressBuffer:
Tries to uncom... |
// Copyright (c) 2010 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 "app/resource_bundle.h"
#include "base/data_pack.h"
#include "base/lock.h"
#include "base/logging.h"
#include "base/string_piece.h"
#include... |
/*
* Pufflux for the Adafruit Feather M0 WiFi - ATSAMD21 + ATWINC1500
* (Product ID: 3010)
*
* Copyright 2013-2022 <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
*... |
/*
* Copyright 2019 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 i... |
/***************************************************************************
file : racemenu.cpp
created : Thu May 2 22:02:51 CEST 2002
copyright : (C) 2001-2014 by <NAME>, <NAME>
email : <EMAIL>
version : $Id: racemenu.cpp,v 1.2.... |
/*
* Copyright (C) 2020 <NAME>
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distribute... |
/*
* Copyright (C) 2019, unclearness
* All rights reserved.
*/
// original code is from
// http://paulbourke.net/geometry/polygonise/
#include "vacancy/marching_cubes.h"
#include <array>
#include <map>
#include <utility>
#include <vector>
#include "vacancy/marching_cubes_lut.h"
#include "vacancy/timer.h"
namesp... |
#include "SurfExtractApp.h"
SurfExtractApp::SurfExtractApp()
{
_image_width = 1024;
_image_height = 1024;
_window_width = 1024 * 2;
_window_height = 768 * 2;
_pview_complete = false;
_pview_start = false;
_verbose = false;
_enable_render_3d = true;
_enable_render_points = true;
_pview_camera_distance = 3... |
/*
* Copyright (c) 2015, University of Michigan.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
/*... |
//-----------------------------------------------------------------------------
// File: D3DMath.cpp
//
// Desc: Shortcut macros and functions for using DX objects
//
// Copyright (c) 1997-1999 Microsoft Corporation. All rights reserved
//-----------------------------------------------------------------------------
#de... |
/*
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 distributed in the hope that it will be usefu... |
#include <Arduino.h>
struct LedCycle {
int eCount; // event count
unsigned long eTime[10]; // next event time
unsigned char r[10],g[10],b[10]; // rgb values at event start
};
LedCycle operator + (const LedCycle& c1, const LedCycle& c2) {
LedCycle lc = c1;
// this breaks if co... |
#include "tiger/canon/canon.h"
namespace tree {
/**
* Gets rid of the top-level SEQ's, producing a list
* @param stm current statement
*/
void StmList::Linear(tree::Stm *stm) {
if (typeid(*stm) == typeid(tree::SeqStm)) {
auto seqstm = static_cast<tree::SeqStm *>(stm);
Linear(seqstm->left_);
Linear(seq... |
/*
* Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors.
* All rights reserved; provided, that any files identified as open source shall
* be governed by the specific open source license(s) applicable to such files.
*
* For any files associated with distributions under the Apache 2.0 lic... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2021, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (<NAME>, et al.) listed in
// the CONTRIBUTORS file. <<EMAIL>>
//
// LL... |
/*from http://www.ltrr.arizona.edu/pub/trees/doc/old_html/gauss_8c-source.html
Main Page Data Structures File List Data Fields Globals
--------------------------------------------------------------------------------
gauss.c
Go to the documentation of this file.*/
/*#include "sadie.h"
#include "prot... |
/*
Copyright (c) 2003, 2011, 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... |
/***************************************************************************\
RViewPnt.cpp
<NAME>
August 20, 1996
Manages information about a world space location and keeps the weather,
terrain, and object lists in synch.
\***************************************************************************/
#i... |
/*
FFGL plugin for sending DirectX texture to a Spout receiver
With compatible hardware sends texture, otherwise memoryshare
Original 01.06.13 - first version based on RR-DXGLBridge
Copyright 2013 Elio <<EMAIL>>
Note fix to FFGL.cpp to allow setting string parameters
http://resolume.com/forum/viewtopic.php?f=... |
#include "object3d.h"
#include "camera3d.h"
struct infinite_chessboard : object3d {
float y;
float scale;
static int round(float x) {
return (int)(x >= 0 ? x + 0.5 : x - 0.5);
}
infinite_chessboard(float y = 0, float scale = 1)
: y(y)
, scale(scale)
{}
float trace(const ray3d &ray, color3d &color, int... |
/*
This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2012.
Authors: <NAME>, <NAME>, <NAME>
*/
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <unistd.h>
#include "otf.h"
#include "otfaux.h"
#include "create_marker.h"
#include "otfprofile.h"
using namespace std... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.