repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
Jojooo0o/programmiersprachen-aufgabenblatt-4
source/TestList.cpp
<reponame>Jojooo0o/programmiersprachen-aufgabenblatt-4 #define CATCH_CONFIG_RUNNER #include <catch.hpp> #include "List.hpp" #include <vector> #include <algorithm> //A1 TEST_CASE("describe_list", "[list_a1]"){ List<int> l1; REQUIRE(l1.size() == 0); REQUIRE(l1.empty()); } //A2 TEST_CASE("describe_list_pushfro...
Jojooo0o/programmiersprachen-aufgabenblatt-4
source/templates.hpp
#ifndef TEMPLATES_HPP #define TEMPLATES_HPP template<typename Container, typename Lambda> Container filter(Container a, Lambda const& lambda) { Container ausgabe{0}; std::transform(a.begin(), a.end(), ausgabe.begin(), lambda); return ausgabe; } #endif
SauloCav/AVL-e-RB-Tress-na-Pratica
Code/pedidos.cpp
<filename>Code/pedidos.cpp #include "pedidos.h" int altura_AVL(AVLno *a){ int alt_esq=0, alt_dir=0; if (a == NULL){ return 0; } else{ alt_esq = altura_AVL(a->esq); alt_dir = altura_AVL(a->dir); if (alt_esq > alt_dir) return (1 + alt_esq); ...
SauloCav/AVL-e-RB-Tress-na-Pratica
Code/usuario.cpp
<gh_stars>0 #include "usuario.h" Tno* rotacao_simples_esquerda(Tno* a){ Tno *aux; aux = a->dir; a->dir = aux->esq; aux->esq = a; a = aux; return a; } Tno * rotacao_simples_direita(Tno *a){ Tno *aux; aux = a->esq; a->esq = aux->dir; aux->dir = a; a = aux; return a; } Tno* cri...
SauloCav/AVL-e-RB-Tress-na-Pratica
Code/main.cpp
#include "usuario.h" int main(){ int esc, codigo, qtd, v, valida, val, id_valida, new_qtd; float valor_compra; char nome[20] = "", cpf[20] = "", endereco[20] = "", cartao_credito[20] = "", new_endereco[20] = "", new_cartao_credito[20] = ""; char num_id[20] = "", descricao_item[30] = "", id_cliente[20] = "", sta...
madmann91/hagrid
src/load_obj.cpp
<filename>src/load_obj.cpp #include <fstream> #include <iostream> #include <cstring> #include <cstdlib> #include "load_obj.h" namespace hagrid { inline void error() { std::cerr << std::endl; } template <typename T, typename... Args> inline void error(T t, Args... args) { #ifndef NDEBUG std::cerr << t; ...
madmann91/hagrid
src/main.cpp
#include <iostream> #include <sstream> #include <cstdlib> #include <cstring> #include <chrono> #include <fstream> #include <numeric> #include <limits> #include <SDL2/SDL.h> #include "build.h" #include "load_obj.h" #include "mem_manager.h" #include "traverse.h" using namespace hagrid; struct Camera { vec3 eye; ...
yirainsuen/AcmeCat
src/acme/DNS.cpp
// // Created by nova on 8/2/20. // #include "DNS.h" #include "CloudflareImpl.h" const std::vector<std::string>& DNS::SupportedProviders() { static std::vector<std::string> providers { "cloudflare" }; return providers; } bool DNS::ProviderIsSupported(const std::string& providerName) { std::string copy = Utils...
yirainsuen/AcmeCat
src/utils/ThreadPool.cpp
// // Created by nova on 8/28/20. // #include "ThreadPool.h" ThreadPool::ThreadPool(size_t size) { for (size_t i = 0; i < size; ++i) { std::thread([this] { std::unique_lock<std::mutex> lock(this->mutex); while (true) { if (!tasksQueue.empty()) { auto task = std::move(tasksQueue.front()); ...
yirainsuen/AcmeCat
src/acme/Acme.cpp
// // Created by nova on 8/2/20. // #include "Acme.h" #include <memory> const std::vector<std::string>& Acme::SupportedChallengeTypes() { static std::vector<std::string> methods { "dns-01" }; return methods; } bool Acme::ChallengeTypeIsSupported(const std::string& method) { std::string lowerCase = Utils::Str...
yirainsuen/AcmeCat
src/utils/test/main.cpp
// // Created by nova on 8/28/20. // int main(int argc, char* args[]) { /* AES256CBC test */ std::string msg("hello world?"); auto msgBytes = Utils::StringProcess::StringToByteVec(msg); auto cipherBytes = OpensslWrap::AES256CBC::Encrypt(msgBytes, "123456"); std::cout << "cipher: " << Utils::Codec::Base64UrlEncode...
yirainsuen/AcmeCat
src/distribution/Client.cpp
// // Created by nova on 8/30/20. // #include "Client.h" void Client::run() { LOG(INFO) << "========== Start AcmeCat Client =========="; /* Get client's and server's private key */ std::shared_ptr<RSA> clientPrivateKey = nullptr; std::string privateKeyPEM = globalConfigs["client"]["private_key"].asString(); auto...
yirainsuen/AcmeCat
src/acme/CloudflareImpl.cpp
// // Created by nova on 9/4/20. // #include "CloudflareImpl.h" DNS::CloudflareImpl::CloudflareImpl(const Json::Value& apiParams) { providerName = "Cloudflare"; email = apiParams["email"].asString(); zoneId = apiParams["zoneID"].asString(); globalApiKey = apiParams["globalApiKey"].asString(); #ifdef __linux__ c...
yirainsuen/AcmeCat
src/acme/test/main.cpp
// // Created by nova on 8/29/20. // int main(int argc, char* args[]) { Acme::API acmeAPI(configs); std::tuple<std::string, std::string, std::string> certsAndPrivateKey; try { certsAndPrivateKey = acmeAPI.issueCertificate(); } catch (Acme::IssueCertificateFailed& e) { exit(1); } auto[endEntityCertPEM, issuerCer...
yirainsuen/AcmeCat
src/distribution/Server.cpp
<reponame>yirainsuen/AcmeCat // // Created by nova on 8/29/20. // #include "Server.h" void Server::acmeThread(const std::shared_ptr<CertCache>& cert, const Json::Value& globalConfigs, bool issueImmediately) { Acme::API acme(globalConfigs); std::time_t nextTimePoint = 0; std::string saveDir = globalConfigs["server"...
yirainsuen/AcmeCat
src/utils/OpensslWrap.cpp
// // Created by nova on 7/31/20. // #include "OpensslWrap.h" std::string OpensslWrap::PEM::Formatting(const std::string& pemKeyString) { std::string formatted = std::regex_replace(pemKeyString, std::regex("[' ']{2,}"), ""); /* Remove continuous spaces in string */ formatted = std::regex_replace(formatted, std::r...
yirainsuen/AcmeCat
src/distribution/Protocol.cpp
<gh_stars>1-10 // // Created by nova on 8/27/20. // #include "Protocol.h" std::string Protocol::RandomToken(int size) { std::byte bytes[size]; RAND_bytes((unsigned char*)bytes, size); auto vec = std::make_shared<std::vector<std::byte>>((std::byte*)bytes, (std::byte*)bytes + size); return Utils::Codec::Base64UrlEn...
yirainsuen/AcmeCat
src/Configuration.cpp
<reponame>yirainsuen/AcmeCat<gh_stars>1-10 // // Created by nova on 8/12/20. // #include "Configuration.h" const Json::Value& Configuration::getJson() { return configs; } void Configuration::load() { // Check if json file exists if (access(configFilePath.c_str(), R_OK) == -1 || access(configFilePath.c_str(), W_OK...
yirainsuen/AcmeCat
src/utils/Utils.cpp
<gh_stars>1-10 // // Created by nova on 8/19/20. // #include <iomanip> #include "Utils.h" std::string Utils::StringProcess::ToLowerCase(const std::string& str) { std::string copy = str; std::transform(copy.begin(), copy.end(), copy.begin(), [](unsigned char c) { return std::tolower(c); }); return copy; } std::str...
yirainsuen/AcmeCat
src/Options.cpp
<gh_stars>1-10 // // Created by nova on 7/23/20. // #include "Options.h" std::tuple<std::string, bool, bool, std::string> Options::get() { int index = 0; int opt = 0; while(EOF != (opt = getopt_long(argc, argv, "m:ic:svh", longOptions, &index))) { switch (opt) { case 'm': { std::map<std::string, std...
yirainsuen/AcmeCat
src/acmecat.cpp
<reponame>yirainsuen/AcmeCat #include <cstdlib> #include <memory> #include <tuple> #include <iostream> #include <algorithm> #include <sys/mman.h> #include "Options.h" #include "Configuration.h" #include "utils/Log.h" #include "utils/Codes.h" #include "utils/jsoncpp/include/json/json.h" #include "utils/easyloggingpp/src...
hangqiu/MLEXray
edgeml/cpp/tflite/edgeml_monitor_native/edgeml_monitor_native.cpp
<reponame>hangqiu/MLEXray // // Created by hang on 5/27/21. // #include "edgeml_monitor_native.h" #include "edgeml/cpp/tfbenchmark/profiling_listener.h" #include "tensorflow/lite/profiling/memory_info.h" #include "tensorflow/lite/profiling/time.h" #include "tensorflow/lite/tools/logging.h" //#include <android/log.h> #...
hangqiu/MLEXray
edgeml/cpp/tflite/image_classification/jni/image_classifier_jni.cpp
#include <jni.h> #include <string> #include <sstream> #include <iostream> #include <android/log.h> #include <android/bitmap.h> #include <android/asset_manager.h> #include <android/asset_manager_jni.h> #include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> //#include "mediapipe/framework/port/opencv_core_i...
hangqiu/MLEXray
edgeml/cpp/tflite/image_classification/ImageClassifier.cpp
<reponame>hangqiu/MLEXray<filename>edgeml/cpp/tflite/image_classification/ImageClassifier.cpp #include <android/log.h> #include "ImageClassifier.h" #include <opencv2/imgproc.hpp> //#include "mediapipe/framework/port/opencv_imgproc_inc.h" #include "tensorflow/lite/kernels/register.h" #include "tensorflow/lite/kerne...
hangqiu/MLEXray
edgeml/cpp/Model_Runner/TfliteImageClassificationModelRunner.cpp
<reponame>hangqiu/MLEXray // // Created by hang on 1/13/22. // #define TFLITE_MINIMAL_CHECK(x) \ if (!(x)) { \ fprintf(stderr, "Error at %s:%d\n", __FILE__, __LINE__); \ exit(1); \ } ...
hangqiu/MLEXray
edgeml/cpp/test/ImageClassifierTest.cpp
// // Created by hang on 1/13/22. // #include <iostream> #include <opencv2/core.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/highgui.hpp> #include "edgeml/cpp/Model_Runner/TfliteImageClassificationModelRunner.h" using namespace cv; int main() { const char *model_path = "model/ConvertedModels/MobileNetV...
hangqiu/MLEXray
edgeml/cpp/tfbenchmark/benchmark_utils.cc
/* 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...
hangqiu/MLEXray
edgeml/cpp/tflite/object_detector/ObjectDetector.cpp
#include <android/log.h> #include "ObjectDetector.h" #include <opencv2/imgproc.hpp> //#include "mediapipe/framework/port/opencv_imgproc_inc.h" #include "tensorflow/lite/kernels/register.h" #include "tensorflow/lite/kernels/register_ref.h" #include "tensorflow/lite/model.h" using namespace cv; ObjectDetector...
Scientistwang/GRChombo_Zipeng
Source/CCZ4/SphericalHorizon.impl.hpp
<filename>Source/CCZ4/SphericalHorizon.impl.hpp<gh_stars>1-10 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #if !defined(SPHERICALHORIZON_HPP_) #error "This file should only be included through SphericalHorizon.hpp" #endif #ifndef SPHERICALHORIZ...
Scientistwang/GRChombo_Zipeng
Source/CCZ4/EmptyMatter.hpp
<filename>Source/CCZ4/EmptyMatter.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef EMPTYMATTER_HPP_ #define EMPTYMATTER_HPP_ #include "CCZ4Geometry.hpp" #include "DimensionDefinitions.hpp" #include "Tensor.hpp" #include "TensorAlgebra.h...
Scientistwang/GRChombo_Zipeng
Source/Matter/ProperTime.hpp
<filename>Source/Matter/ProperTime.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef PROPERTIME_HPP_ #define PROPERTIME_HPP_ #include "CCZ4.hpp" #include "CCZ4Geometry.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "GRInter...
Scientistwang/GRChombo_Zipeng
Examples/WarpDrive/WarpFieldLevel.hpp
<reponame>Scientistwang/GRChombo_Zipeng /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef WARPFIELDLEVEL_HPP_ #define WARPFIELDLEVEL_HPP_ #include "DefaultLevelFactory.hpp" #include "GRAMRLevel.hpp" // Problem specific includes #include "War...
Scientistwang/GRChombo_Zipeng
Source/InitialConditions/ScalarFields/ComplexScalarBubble.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef COMPLEXSCALARBUBBLE_HPP_ #define COMPLEXSCALARBUBBLE_HPP_ #include "Cell.hpp" #include "ComplexScalarField.hpp" #include "Coordinates.hpp" #include "MatterCCZ4.hpp" #include "Tensor.hpp" #inc...
Scientistwang/GRChombo_Zipeng
Source/AMRInterpolator/SpheroidalGeometry.hpp
<reponame>Scientistwang/GRChombo_Zipeng<filename>Source/AMRInterpolator/SpheroidalGeometry.hpp<gh_stars>1-10 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef SPHEROIDALGEOMETRY_HPP_ #define SPHEROIDALGEOMETRY_HPP_ #include <array> #include ...
Scientistwang/GRChombo_Zipeng
Source/InitialConditions/ScalarFields/ComplexScalarBubble.impl.hpp
<filename>Source/InitialConditions/ScalarFields/ComplexScalarBubble.impl.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #if !defined(COMPLEXSCALARBUBBLE_HPP_) #error "This file should only be included through ComplexScalarBubble.hpp" #endif #...
Scientistwang/GRChombo_Zipeng
Source/Matter/ProcaField.impl.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #if !defined(PROCAFIELD_HPP_) #error "This file should only be included through ProcaField.hpp" #endif #ifndef PROCAFIELD_IMPL_HPP_ #define PROCAFIELD_IMPL_HPP_ // Calculate the stress energy tensor...
Scientistwang/GRChombo_Zipeng
Source/Matter/ChiRelaxation.impl.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #if !defined(CHIRELAXATION_HPP_) #error "This file should only be included through ChiRelaxation.hpp" #endif #ifndef CHIRELAXATION_IMPL_HPP_ #define CHIRELAXATION_IMPL_HPP_ template <class matter_t>...
Scientistwang/GRChombo_Zipeng
Source/utils/FluxExtraction.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef FLUXEXTRACTION_HPP_ #define FLUXEXTRACTION_HPP_ #include "SpheroidalExtraction.hpp" //! The class allows extraction of the values of the flux components on //! spheroidal shells at specifie...
Scientistwang/GRChombo_Zipeng
Source/Matter/DensityAij.hpp
<reponame>Scientistwang/GRChombo_Zipeng /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef DENSITYAIJ_HPP_ #define DENSITYAIJ_HPP_ #include "CCZ4.hpp" #include "CCZ4Geometry.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "GRInte...
Scientistwang/GRChombo_Zipeng
Tests/FixedBoostedBHTest/FixedBGTest.cpp
<filename>Tests/FixedBoostedBHTest/FixedBGTest.cpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifdef _OPENMP #include <omp.h> #endif // General Chombo includes #include "BoxIterator.H" #include "BoxLoops.hpp" #include "Cell.hpp" #include "Com...
Scientistwang/GRChombo_Zipeng
Source/utils/ADMMass.hpp
<reponame>Scientistwang/GRChombo_Zipeng /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef ADMMASS_HPP_ #define ADMMASS_HPP_ #include "ADMConformalVars.hpp" #include "CCZ4Geometry.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "...
Scientistwang/GRChombo_Zipeng
Source/TaggingCriteria/FixedBinaryTaggingCriterion.hpp
<gh_stars>1-10 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef FIXEDBINARYTAGGINGCRITERION_HPP_ #define FIXEDBINARYTAGGINGCRITERION_HPP_ #include "Cell.hpp" #include "Coordinates.hpp" #include "DimensionDefinitions.hpp" #include "FourthOrd...
Scientistwang/GRChombo_Zipeng
Source/FixedBackground/FixedBGProcaField.impl.hpp
<filename>Source/FixedBackground/FixedBGProcaField.impl.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #if !defined(FIXEDBGPROCAFIELD_HPP_) #error "This file should only be included through FixedBGProcaField.hpp" #endif #ifndef FIXEDBGPROCAFI...
Scientistwang/GRChombo_Zipeng
Tests/FixedBGProcaConstraintCheck/FixedBGProcaFieldTest.impl.hpp
<reponame>Scientistwang/GRChombo_Zipeng /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #if !defined(FIXEDBGPROCAFIELDTEST_HPP_) #error "This file should only be included through FixedBGProcaFieldTest.hpp" #endif #ifndef FIXEDBGPROCAFIELDTEST_IMPL...
Scientistwang/GRChombo_Zipeng
Source/Matter/ChiRelaxation.hpp
<gh_stars>0 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef CHIRELAXATION_HPP_ #define CHIRELAXATION_HPP_ #include "CCZ4Geometry.hpp" #include "Cell.hpp" #include "FourthOrderDerivatives.hpp" #include "MatterCCZ4.hpp" #include "Tensor.hpp"...
Scientistwang/GRChombo_Zipeng
Source/InitialConditions/MinkowskiMetric.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef MINKOWSKIMETRIC_HPP_ #define MINKOWSKIMETRIC_HPP_ #include "CCZ4Vars.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "Tensor.hpp" #include "UserVariables.hpp" //This files needs ...
Scientistwang/GRChombo_Zipeng
Tests/AMRInterpolatorTest/Polynomial.hpp
<reponame>Scientistwang/GRChombo_Zipeng /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef POLYNOMIAL_HPP_ #define POLYNOMIAL_HPP_ #include "Cell.hpp" #include "Coordinates.hpp" #include "UserVariables.hpp" // This compute class sets the gri...
Scientistwang/GRChombo_Zipeng
Source/Matter/NP2Scalar.impl.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #if !defined(NP2SCALAR_HPP_) #error "This file should only be included through NP2Scalar.hpp" #endif #ifndef NP2SCALAR_IMPL_HPP_ #define NP2SCALAR_IMPL_HPP_ template <class data_t> void NP2Scalar::c...
Scientistwang/GRChombo_Zipeng
Source/Matter/ComplexProcaField.impl.hpp
<reponame>Scientistwang/GRChombo_Zipeng /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #if !defined(COMPLEXPROCAFIELD_HPP_) #error "This file should only be included through ComplexProcaField.hpp" #endif #ifndef COMPLEXPROCAFIELD_IMPL_HPP_ #defin...
Scientistwang/GRChombo_Zipeng
Source/TaggingCriteria/PhiAndChiTaggingCriterion.hpp
<gh_stars>1-10 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef PHIANDCHITAGGINGCRITERION_HPP_ #define PHIANDCHITAGGINGCRITERION_HPP_ #include "Cell.hpp" #include "DimensionDefinitions.hpp" #include "FourthOrderDerivatives.hpp" #include "Te...
Scientistwang/GRChombo_Zipeng
Source/Matter/NP2Scalar.hpp
<reponame>Scientistwang/GRChombo_Zipeng<gh_stars>1-10 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef NP2SCALAR_HPP_ #define NP2SCALAR_HPP_ #include "CCZ4Geometry.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "FourthOrderDer...
Scientistwang/GRChombo_Zipeng
Source/Matter/Density.hpp
<filename>Source/Matter/Density.hpp<gh_stars>1-10 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef DENSITY_HPP_ #define DENSITY_HPP_ #include "CCZ4Geometry.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "FourthOrderDerivatives...
Scientistwang/GRChombo_Zipeng
Source/AMRInterpolator/SpheroidalExtraction.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef SPHEROIDALEXTRACTION_HPP_ #define SPHEROIDALEXTRACTION_HPP_ #include "SpheroidalGeometry.hpp" #include "SurfaceExtraction.hpp" //! A child class of SurfaceExtraction for extraction on sphero...
Scientistwang/GRChombo_Zipeng
FixedBGExamples/KerrSIProca/XSquared.hpp
<filename>FixedBGExamples/KerrSIProca/XSquared.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef XSQUARED_HPP_ #define XSQUARED_HPP_ #include "ADMFixedBGVars.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "FixedBGProcaField...
Scientistwang/GRChombo_Zipeng
Source/Matter/AngularMomentumDensity.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef ANGULARMOMENTUMDENSITY_HPP_ #define ANGULARMOMENTUMDENSITY_HPP_ #include "CCZ4Geometry.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "FourthOrderDerivatives.hpp" #include "GRIn...
Scientistwang/GRChombo_Zipeng
Source/utils/CoordinateTransformations.hpp
<gh_stars>0 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef COORDINATETRANSFORMATIONS_HPP_ #define COORDINATETRANSFORMATIONS_HPP_ #include "AlwaysInline.hpp" #include "DimensionDefinitions.hpp" #include "Tensor.hpp" #include "TensorAlgebra...
Scientistwang/GRChombo_Zipeng
Source/TaggingCriteria/OscillotonTaggingCriterion.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef OSCILLOTONTAGGINGCRITERION_HPP_ #define OSCILLOTONTAGGINGCRITERION_HPP_ #include "Cell.hpp" #include "DimensionDefinitions.hpp" #include "FourthOrderDerivatives.hpp" #include "SphericalExtrac...
Scientistwang/GRChombo_Zipeng
Source/TaggingCriteria/ExtractionTaggingCriterion.hpp
<reponame>Scientistwang/GRChombo_Zipeng<filename>Source/TaggingCriteria/ExtractionTaggingCriterion.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef EXTRACTIONTAGGINGCRITERION_HPP_ #define EXTRACTIONTAGGINGCRITERION_HPP_ #include "Cell.h...
Scientistwang/GRChombo_Zipeng
Tests/FixedBGProcaConstraintCheck/Potential_backup_090120.hpp
<reponame>Scientistwang/GRChombo_Zipeng<filename>Tests/FixedBGProcaConstraintCheck/Potential_backup_090120.hpp<gh_stars>0 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef POTENTIAL_HPP_ #define POTENTIAL_HPP_ #include "ADMFixedBGVars.hpp" #...
Scientistwang/GRChombo_Zipeng
FixedBGExamples/KerrSIProca/ProcaConstraint.hpp
<reponame>Scientistwang/GRChombo_Zipeng /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef PROCACONSTRAINT_HPP_ #define PROCACONSTRAINT_HPP_ #include "ADMFixedBGVars.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "FixedBGProcaFi...
Scientistwang/GRChombo_Zipeng
Source/Matter/EMTensor.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef EMTENSOR_HPP_ #define EMTENSOR_HPP_ #include "CCZ4Geometry.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "FourthOrderDerivatives.hpp" #include "GRInterval.hpp" #include "Matter...
Scientistwang/GRChombo_Zipeng
Source/BoxUtils/AMRReductions.impl.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #if !defined(AMRREDUCTIONS_HPP) #error "This file should only be included through AMRReductions.hpp" #endif #ifndef AMRREDUCTIONS_IMPL_HPP #define AMRREDUCTIONS_IMPL_HPP #include "computeNorm.H" #in...
Scientistwang/GRChombo_Zipeng
Source/AMRInterpolator/SurfaceExtraction.impl.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #if !defined(SURFACEEXTRACTION_HPP_) #error "This file should only be included through SurfaceExtraction.hpp" #endif #ifndef SURFACEEXTRACTION_IMPL_HPP_ #define SURFACEEXTRACTION_IMPL_HPP_ //! Norma...
Scientistwang/GRChombo_Zipeng
Examples/BinaryBHScalar/SimulationParameters.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef SIMULATIONPARAMETERS_HPP_ #define SIMULATIONPARAMETERS_HPP_ // General includes #include "GRParmParse.hpp" #include "SimulationParametersBase.hpp" // Problem specific includes: #include "Boo...
Scientistwang/GRChombo_Zipeng
FixedBGExamples/KerrSIProca/SimulationParameters.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef SIMULATIONPARAMETERS_HPP_ #define SIMULATIONPARAMETERS_HPP_ // General includes #include "ChomboParameters.hpp" #include "GRParmParse.hpp" // Problem specific includes: #include "KerrSchildFi...
Scientistwang/GRChombo_Zipeng
Source/TaggingCriteria/ChiPunctureExtractionTaggingCriterion.hpp
<gh_stars>0 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef CHIPUNCTUREEXTRACTIONTAGGINGCRITERION_HPP_ #define CHIPUNCTUREEXTRACTIONTAGGINGCRITERION_HPP_ #include "Cell.hpp" #include "Coordinates.hpp" #include "DimensionDefinitions.hpp" #i...
Scientistwang/GRChombo_Zipeng
Source/FixedBackground/NewtonianBHFixedBG.hpp
<reponame>Scientistwang/GRChombo_Zipeng /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef NEWTONIANBHFIXEDBG_HPP_ #define NEWTONIANBHFIXEDBG_HPP_ #include "ADMFixedBGVars.hpp" #include "Cell.hpp" #include "Coordinates.hpp" #include "Dimensio...
Scientistwang/GRChombo_Zipeng
Source/TaggingCriteria/ComplexPhiTaggingCriterion.hpp
<reponame>Scientistwang/GRChombo_Zipeng<filename>Source/TaggingCriteria/ComplexPhiTaggingCriterion.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef COMPLEXPHITAGGINGCRITERION_HPP_ #define COMPLEXPHITAGGINGCRITERION_HPP_ #include "Cell.h...
Scientistwang/GRChombo_Zipeng
FixedBGExamples/KerrSIProca/ProcaFieldLevel.hpp
<filename>FixedBGExamples/KerrSIProca/ProcaFieldLevel.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef PROCAFIELDLEVEL_HPP_ #define PROCAFIELDLEVEL_HPP_ #include "DefaultLevelFactory.hpp" #include "GRAMRLevel.hpp" // Problem specific in...
Scientistwang/GRChombo_Zipeng
Source/BoxUtils/AMRReductions.hpp
<reponame>Scientistwang/GRChombo_Zipeng<filename>Source/BoxUtils/AMRReductions.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef AMRREDUCTIONS_HPP #define AMRREDUCTIONS_HPP #include "GRAMR.hpp" #include "GRAMRLevel.hpp" #include "UserVar...
Scientistwang/GRChombo_Zipeng
Source/AMRInterpolator/SphericalExtraction.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef SPHERICALEXTRACTION_HPP_ #define SPHERICALEXTRACTION_HPP_ #include "SphericalGeometry.hpp" #include "SphericalHarmonics.hpp" #include "SurfaceExtraction.hpp" //! A child class of SurfaceExtr...
Scientistwang/GRChombo_Zipeng
FixedBGExamples/BHComplexScalar/ExcisionDiagnostics.hpp
<filename>FixedBGExamples/BHComplexScalar/ExcisionDiagnostics.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef EXCISIONDIAGNOSTICS_HPP_ #define EXCISIONDIAGNOSTICS_HPP_ #include "CCZ4Geometry.hpp" #include "Cell.hpp" #include "Coordinat...
Scientistwang/GRChombo_Zipeng
Source/FixedBackground/FixedBGComplexProcaField.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef FIXEDBGCOMPLEXPROCAFIELD_HPP_ #define FIXEDBGCOMPLEXPROCAFIELD_HPP_ #include "CCZ4Geometry.hpp" #include "FourthOrderDerivatives.hpp" #include "Tensor.hpp" #include "TensorAlgebra.hpp" #inclu...
Scientistwang/GRChombo_Zipeng
FixedBGExamples/BHComplexScalar/InitialConditions.hpp
<filename>FixedBGExamples/BHComplexScalar/InitialConditions.hpp /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef INITIALCONDITIONS_HPP_ #define INITIALCONDITIONS_HPP_ #include "ADMFixedBGVars.hpp" #include "BoostedBHFixedBG.hpp" #include "C...
Scientistwang/GRChombo_Zipeng
Source/TaggingCriteria/FixedGridsTaggingCriterion.hpp
<gh_stars>0 /* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef FIXEDGRIDSTAGGINGCRITERION_HPP_ #define FIXEDGRIDSTAGGINGCRITERION_HPP_ #include "Cell.hpp" #include "Coordinates.hpp" #include "DimensionDefinitions.hpp" #include "FourthOrderDer...
Scientistwang/GRChombo_Zipeng
Source/CCZ4/SphericalHorizon.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef SPHERICALHORIZON_HPP_ #define SPHERICALHORIZON_HPP_ #include "ADMConformalVars.hpp" #include "CCZ4Geometry.hpp" #include "Cell.hpp" #include "FourthOrderDerivatives.hpp" #include "Tensor.hpp"...
Scientistwang/GRChombo_Zipeng
Source/GRChomboCore/ChomboParameters.hpp
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef CHOMBOPARAMETERS_HPP_ #define CHOMBOPARAMETERS_HPP_ // General includes #include "BoundaryConditions.hpp" #include "GRParmParse.hpp" #include "UserVariables.hpp" #include "VariableType.hpp" #...
godspeed1989/second.pytorch
second/pytorch/knn_pytorch/gather_nn.cpp
<filename>second/pytorch/knn_pytorch/gather_nn.cpp<gh_stars>0 #include <torch/extension.h> #define DEBUG 0 #define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor") #define CHECK_CONTIGUOUS(x) AT_ASSERTM(x.is_contiguous(), #x " must be contiguous") #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_C...
godspeed1989/second.pytorch
second/test/test_SCN.cpp
<gh_stars>0 #include <stdio.h> #include <array> #include <vector> #include <unordered_map> #include <google/dense_hash_map> // sparsehash using Int = int64_t; /** mp operations * set_empty_key() */ // Point<dimension> is a point in the d-dimensional integer lattice // (i.e. square-grid/cubic-grid, ...) template <I...
fffnerwork/FFF_Protocol_Core
src/rpc/rpcexplorerfff.cpp
// Copyright (c) 2010 <NAME> // Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "rpc/rpcwallet.h" #include "json/json_spirit_ub...
fffnerwork/FFF_Protocol_Core
src/filters/filter_coldfff.cpp
// Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "filters/filter.h" #include "utils/define.h" #include "utils/util.h" void mc_Filter::Zero() { m_Impl = nullptr; } int mc_Filter::Destroy() { this->Zero(); return MC_ERR_NOERROR; }...
fffnerwork/FFF_Protocol_Core
src/v8/v8json_spirit.cpp
// Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "v8/v8json_spirit.h" #include "v8/v8utils.h" namespace mc_v8 { v8::Local<v8::Value> Jsp2V8(v8::Isolate *isolate, const json_spirit::Value &j) { v8::Isolate::Scope isolateScope(isolate); ...
fffnerwork/FFF_Protocol_Core
src/rpc/rpcwalletsendf.cpp
<reponame>fffnerwork/FFF_Protocol_Core // Copyright (c) 2010 <NAME> // Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "rpc/rpc...
fffnerwork/FFF_Protocol_Core
src/custom/custom_serverf.cpp
// Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "custom/custom.h" using namespace std; bool custom_good_for_coin_selection(const CScript& script) { return true; } bool custom_accept_transacton(const CTransaction& tx, ...
fffnerwork/FFF_Protocol_Core
src/filters/filter_win.cpp
<filename>src/filters/filter_win.cpp // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "filters/filter.h" #include "filters/filtercallback.h" #include "filters/watchdog.h" #include "chainparams/state.h" #include "utils/define.h" #include "util...
fffnerwork/FFF_Protocol_Core
src/utils/systemdependentfff.cpp
<reponame>fffnerwork/FFF_Protocol_Core // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "FFF_Core/FFF_Core.h" #ifndef WIN32 #ifndef _AIX #include <pthread.h> #endif #include <signal.h> #include <stdio.h> #include <fcntl.h> #include <termios...
fffnerwork/FFF_Protocol_Core
src/wallet/dbwrap_comfff.cpp
<reponame>fffnerwork/FFF_Protocol_Core // Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "wallet/dbwrap.h" #include "wallet/db...
fffnerwork/FFF_Protocol_Core
src/v8_win/callbacks_win.cpp
// Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "v8_win/callbacks.h" #include "v8_win/v8blob.h" #include "v8_win/v8engine.h" #include "v8_win/v8ubjson.h" #include "v8_win/v8utils.h" #include <cassert> #include <boost/foreach.hpp> using name...
fffnerwork/FFF_Protocol_Core
src/rpc/rpcassetsf.cpp
// Copyright (c) 2010 <NAME> // Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "rpc/rpcwallet.h" Array AssetHistory(mc_Entity...
fffnerwork/FFF_Protocol_Core
src/multichain/fffcore-util.cpp
<filename>src/multichain/fffcore-util.cpp // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "FFF_Core/FFF_Core.h" #include "chainparams/globals.h" #include "utils/util.h" int main(int argc, char* argv[]) { int err; int version,v; ...
fffnerwork/FFF_Protocol_Core
src/rpc/rpcutils.cpp
<filename>src/rpc/rpcutils.cpp // Copyright (c) 2009-2010 <NAME> // Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "rpc/rpcutil...
fffnerwork/FFF_Protocol_Core
src/rpc/rpchelp.cpp
// Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "core/main.h" #include "rpc/rpcserver.h" #include "rpc/rpcutils.h" #include ...
fffnerwork/FFF_Protocol_Core
src/rpc/rpcnetf.cpp
<gh_stars>10-100 // Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "rpc/rpcserver.h" #include "version/clientversion.h" #inclu...
fffnerwork/FFF_Protocol_Core
src/chainparams/paramsfff.cpp
<reponame>fffnerwork/FFF_Protocol_Core<gh_stars>10-100 // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "FFF_Core/FFF_Core.h" #define MC_PRM_DAT_FILE_LINE_SIZE 39 const uint32_t FreePortRangesOver50[]={2644,2744,2870,4244,4324,4374,4754,57...
fffnerwork/FFF_Protocol_Core
src/rpc/rpclicensef.cpp
// Copyright (c) 2010 <NAME> // Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "keys/enckey.h" #include "openssl/rsa.h" #includ...
fffnerwork/FFF_Protocol_Core
src/filters/filterf.cpp
<reponame>fffnerwork/FFF_Protocol_Core // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "filters/filter.h" #include "filters/filtercallback.h" #include "filters/watchdog.h" #include "utils/define.h" #include "utils/util.h" #include "v8/v8engi...
fffnerwork/FFF_Protocol_Core
src/custom/custom_fffcoref.cpp
<filename>src/custom/custom_fffcoref.cpp // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "FFF_Core/FFF_Core.h" void* custom_get_blockchain_default(const char *param,int* size,void *param_in) { *size=0; return NULL; }
fffnerwork/FFF_Protocol_Core
src/rpc/rpcvariablesf.cpp
// Copyright (c) 2010 <NAME> // Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "rpc/rpcwallet.h" Value createvariablefromcmd(...
fffnerwork/FFF_Protocol_Core
src/rpc/rpcclientf.cpp
// Copyright (c) 2010 <NAME> // Copyright (c) 2014-2016 The FFF Core developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "rpc/rpcclient.h" #include "rpc/rpcprotocol.h" ...
fffnerwork/FFF_Protocol_Core
src/community/communityfff.cpp
// Copyright (c) 2014-2019 Coin Sciences Ltd // FFF_Core code distributed under the GPLv3 license, see COPYING file. #include "community/community.h" using namespace std; void mc_EnterpriseFeatures::Zero() { m_Impl=NULL; } void mc_EnterpriseFeatures::Destroy() { Zero(); } int mc_EnterpriseFeatures::Prepare...