Search is not available for this dataset
repo
stringlengths
2
152
⌀
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
FMM3D
FMM3D-master/test/Helmholtz/run_helmtest.sh
rm -rf print_testres.txt ./int2-test-helmrouts3d ./int2-test-hfmm3d ./int2-test-hfmm3d-scale ./int2-test-hfmm3d-vec ./int2-test-hfmm3d-mps mv print_testres.txt ../../print_testreshelm.txt rm -rf fort.13
203
21.666667
48
sh
FMM3D
FMM3D-master/test/Helmholtz/run_helmtest_ext.sh
rm -rf print_testres.txt ./int2-test-helmrouts3d ./int2-test-hfmm3d ./int2-test-hfmm3d-zkbig ./int2-test-hfmm3d-scale ./int2-test-hfmm3d-vec ./int2-test-hfmm3d-mps mv print_testres.txt ../../print_testreshelm.txt rm -rf fort.13
228
21.9
48
sh
FMM3D
FMM3D-master/test/Helmholtz/test_helmrouts3d.f
c c TESTING SUITE FOR HELMHOLTZ SUBROUTINE LIBRARY: Mar 20, 2019 c c c c Sources at S, Targets at T. c c h3dformmp forms expansion about c0 c h3dmpeval evaluates expansion at T c h3dmpmp shifts expansion to c1 c h3dmploc converts to local about y1 c ...
8,958
25.505917
71
f
FMM3D
FMM3D-master/test/Helmholtz/test_hfmm3d.f
implicit none integer ns,nt double precision, allocatable :: source(:,:),targ(:,:) double complex, allocatable :: charge(:) double complex, allocatable :: dipvec(:,:) double complex, allocatable :: pot(:),pottarg(:) double complex, allocatable :: grad(:,:),gradtarg(:,:) ...
21,853
24.801653
67
f
FMM3D
FMM3D-master/test/Helmholtz/test_hfmm3d_adjoint.f90
program test_hfmm3d_adjoint implicit double precision (a-h,o-z) double precision :: center0(3), center1(3) double precision :: xnodes(10000), wts(10000) double complex :: zk, ima, zrat, zrat1 double complex, allocatable :: mpole0(:,:,:), mpole1(:,:,:) double complex, allocatable :: mpmpmat(:,:,:,:) ...
8,908
21.497475
73
f90
FMM3D
FMM3D-master/test/Helmholtz/test_hfmm3d_big.f
implicit none integer ns double precision, allocatable :: source(:,:) double complex, allocatable :: charge(:) double complex, allocatable :: pot(:) double complex, allocatable :: potex(:) double precision eps double complex eye,zk integer i,j,k integer ntest...
1,886
17.5
65
f
FMM3D
FMM3D-master/test/Helmholtz/test_hfmm3d_mps.f90
program test_hfmm3d_mp2loc implicit double precision (a-h,o-z) character(len=72) str1 integer :: ns, nt, nc integer :: i,j,k,ntest,nd,idim integer :: ifcharge,ifdipole,ifpgh,ifpghtarg integer :: ipass(18),len1,ntests,isum integer, allocatable :: nterms(:), impole(:) double precision :: eps, err...
10,539
21.715517
70
f90
FMM3D
FMM3D-master/test/Helmholtz/test_hfmm3d_scale.f
implicit real *8 (a-h,o-z) complex *16 z1,z2,zk,ima data ima/(0.0d0,1.0d0)/ done = 1 pi = atan(done)*4 ntest = 6 z1 = 8 + ima*0.2d0 rsc = 1.0d10 zk = z1*2*pi/rsc call test_hfmm3d_scale(rsc,zk,i1) rsc = 1.0d-9 zk = z1*2*pi/rsc call test_h...
3,624
20.449704
68
f
FMM3D
FMM3D-master/test/Helmholtz/test_hfmm3d_vec.f
implicit none integer ns,nt double precision, allocatable :: source(:,:),targ(:,:) double complex, allocatable :: charge(:,:) double complex, allocatable :: dipvec(:,:,:) double complex, allocatable :: pot(:,:),pottarg(:,:) double complex, allocatable :: grad(:,:,:),gradtarg(:,...
22,810
25.340647
71
f
FMM3D
FMM3D-master/test/Helmholtz/test_hfmm3d_zkbig.f
implicit real *8 (a-h,o-z) integer ntests,nsuccess complex *16 zk,ima data ima/(0.0d0,1.0d0)/ done = 1 pi = atan(done)*4 zk = 300.0d0 call test_helm_zkbig(zk,i1) zk = 300.0d0*ima call test_helm_zkbig(zk,i2) zk = 12*pi*ima*4 call test_helm_zkbi...
3,256
19.35625
68
f
FMM3D
FMM3D-master/test/Helmholtz/test_pwrep_hfmm3d.f
implicit none integer ns,nt double precision, allocatable :: source(:,:) double complex, allocatable :: charge(:) double complex, allocatable :: pot(:),potex(:) double precision eps(5) double complex eye,zk,rkmin,rkmax double complex, allocatable :: zks(:) integer ...
2,816
21.357143
69
f
FMM3D
FMM3D-master/test/Laplace/run_laptest.sh
rm -rf print_testres.txt ./int2-test-laprouts3d ./int2-test-lfmm3d ./int2-test-lfmm3d-scale ./int2-test-lfmm3d-vec mv print_testres.txt ../../print_testreslap.txt rm -rf fort.13
178
21.375
47
sh
FMM3D
FMM3D-master/test/Laplace/test_laprouts3d.f
c c TESTING SUITE FOR Laplace SUBROUTINE LIBRARY: Mar 20, 2019 c c c c Sources at S, Targets at T. c c l3dformmp forms expansion about c0 c l3dmpeval evaluates expansion at T c l3dmpmp shifts expansion to c1 c l3dmploc converts to local about y1 c ...
12,489
25.860215
71
f
FMM3D
FMM3D-master/test/Laplace/test_lfmm3d.f
implicit none integer ns,nt double precision, allocatable :: source(:,:),targ(:,:) double precision, allocatable :: charge(:) double precision, allocatable :: dipvec(:,:) double precision, allocatable :: pot(:),pottarg(:) double precision, allocatable :: grad(:,:),gradtarg(:,:)...
32,503
25.708299
71
f
FMM3D
FMM3D-master/test/Laplace/test_lfmm3d_big.f
implicit none integer ns double precision, allocatable :: source(:,:) double precision, allocatable :: charge(:) double precision, allocatable :: pot(:) double precision, allocatable :: potex(:) double precision eps integer i,j,k integer ntest,nd double preci...
1,868
17.69
62
f
FMM3D
FMM3D-master/test/Laplace/test_lfmm3d_scale.f
implicit real *8 (a-h,o-z) done = 1 pi = atan(done)*4 ntest = 2 rsc = 1.0d10 call test_lfmm3d_scale(rsc,i1) rsc = 1.0d-9 call test_lfmm3d_scale(rsc,i2) nsuccess = i1+i2 open(unit=33,file='print_testres.txt',access='append') write(33,'(a,i1,a,i1,a)'...
2,911
19.652482
68
f
FMM3D
FMM3D-master/test/Laplace/test_lfmm3d_vec.f
implicit none integer ns,nt double precision, allocatable :: source(:,:),targ(:,:) double precision, allocatable :: charge(:,:) double precision, allocatable :: dipvec(:,:,:) double precision, allocatable :: pot(:,:),pottarg(:,:) double precision, allocatable :: grad(:,:,:),gra...
33,900
26.405821
72
f
FMM3D
FMM3D-master/test/Maxwell/run_emtest.sh
rm -rf print_testres.txt ./int2-test-emfmm3d mv print_testres.txt ../../print_testresem.txt rm -rf fort.13
107
20.6
46
sh
FMM3D
FMM3D-master/test/Maxwell/test_emfmm3d.f
implicit real *8 (a-h,o-z) integer ns,nt double complex zk double precision, allocatable :: sources(:,:),targs(:,:) double complex, allocatable :: a_vect(:,:,:),lambda(:,:) double complex, allocatable :: b_vect(:,:,:) double complex, allocatable :: E(:,:,:),divE(:,:),curlE(:,:,...
12,250
22.514395
71
f
FMM3D
FMM3D-master/test/Stokes/run_stoktest.sh
rm -rf print_testres.txt ./int2-test-stokkernels ./int2-test-stfmm3d mv print_testres.txt ../../print_testresstok.txt rm -rf fort.13
133
21.333333
48
sh
FMM3D
FMM3D-master/test/Stokes/test_stfmm3d.f
c c TESTING SUITE FOR STOKES FMM: June 18th, 2020 c c c$ use omp_lib implicit real *8 (a-h,o-z) real *8, allocatable :: pot(:,:), pre(:), grad(:,:,:) real *8, allocatable :: source(:,:), targ(:,:) real *8, allocatable :: pot2(:,:), pre2(:), grad2(:,:,:) real *8, allo...
6,401
24.505976
72
f
FMM3D
FMM3D-master/test/Stokes/test_stokkernels.f
c c TESTING SUITE FOR STOKES KERNELS: June 18th, 2020 c c implicit real *8 (a-h,o-z) real *8 ztrg(3),source(3,20),targ(3,20),targ2(3,20) real *8 errgrad(3,20), pert(3), dmu(3), dnu(3) real *8, allocatable :: pot(:,:), pre(:), grad(:,:,:) real *8, allocatable :: pot2(:,:), pre2...
13,611
26.007937
71
f
FMM3D
FMM3D-master/vec-kernels/mload.sh
module purge module load modules-nix module load nix/gcc module load intel/compiler module load intel/mkl
106
16.833333
26
sh
FMM3D
FMM3D-master/vec-kernels/include/kernels.f90
interface subroutine helm3d_f(nd, zk, sources, charge, ns, ztarg, nt, pot, thresh) !bind(C, name="helm3d_f_") implicit none integer *4, intent(in) :: nd complex *8, intent(in) :: zk real *8, intent(in) :: sources(*) complex *8, intent(in) :: charge(*) integer *4, intent(in) :: ns real ...
4,949
34.611511
123
f90
FMM3D
FMM3D-master/vec-kernels/include/kernels.h
#ifndef _KERNELS_H_ #define _KERNELS_H_ #include <stdint.h> #ifdef __cplusplus extern "C" { #endif void h3ddirectcp_new_cpp_(const int32_t* nd, const double* zk, const double* sources, const double* charge, const int32_t* ns, const double* ztarg, const int32_t* nt, double* pot, const double* thresh); void h3ddirect...
7,265
85.5
249
h
FMM3D
FMM3D-master/vec-kernels/include/sctl.hpp
// Scientific Computing Template Library #ifndef _SCTL_HPP_ #define _SCTL_HPP_ #include <sctl/common.hpp> // Import PVFMM preprocessor macro definitions #ifdef SCTL_HAVE_PVFMM #ifndef SCTL_HAVE_MPI #define SCTL_HAVE_MPI #endif #include "pvfmm_config.h" #if defined(PVFMM_QUAD_T) && !defined(SCTL_QUAD_T) #define SCTL_...
1,823
19.965517
70
hpp
FMM3D
FMM3D-master/vec-kernels/include/template-kernels.hpp
#ifndef _VEC_KERNELS_HPP_ #define _VEC_KERNELS_HPP_ #define NDEBUG #include <sctl.hpp> template <class Real, class VecType, sctl::Integer DIM, sctl::Integer KDIM0, sctl::Integer KDIM1, sctl::Integer SCDIM, class uKernel, sctl::Integer digits> struct uKerHelper { template <class CtxType> static inline void Eval(VecT...
126,431
40.049351
393
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/blas.h
/* Kernel Independent Fast Multipole Method Copyright (C) 2004 Lexing Ying, New York University 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, or (at your option) any later vers...
1,699
41.5
228
h
FMM3D
FMM3D-master/vec-kernels/include/sctl/boundary_integral.hpp
#ifndef _SCTL_BOUNDARY_INTEGRAL_HPP_ #define _SCTL_BOUNDARY_INTEGRAL_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(comm.hpp) #include SCTL_INCLUDE(mem_mgr.hpp) #include SCTL_INCLUDE(vector.hpp) #include <map> #include <set> namespace SCTL_NAMESPACE { template <class ValueType> class Matrix; template <cl...
11,403
39.15493
311
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/boundary_quadrature.hpp
#ifndef _SCTL_BOUNDARY_QUADRATURE_HPP_ #define _SCTL_BOUNDARY_QUADRATURE_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(kernel_functions.hpp) #include SCTL_INCLUDE(tree.hpp) #include SCTL_INCLUDE(cheb_utils.hpp) #include SCTL_INCLUDE(fmm-wrapper.hpp) #include SCTL_INCLUDE(tensor.hpp) #include SCTL_INCLUDE(profi...
71,395
38.686492
348
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/cheb_utils.hpp
#ifndef _SCTL_CHEB_UTILS_HPP_ #define _SCTL_CHEB_UTILS_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(matrix.hpp) #include SCTL_INCLUDE(math_utils.hpp) #include SCTL_INCLUDE(legendre_rule.hpp) #include <type_traits> #include <functional> #include <algorithm> namespace SCTL_NAMESPACE { template <class ValueTy...
52,192
35.885512
236
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/comm.hpp
#ifndef _SCTL_COMM_HPP_ #define _SCTL_COMM_HPP_ #include <sctl/common.hpp> #include <map> #include <stack> #ifdef SCTL_HAVE_MPI #include <mpi.h> #endif #ifdef SCTL_HAVE_PETSC #include <petscsys.h> #endif namespace SCTL_NAMESPACE { template <class ValueType> class Vector; class Comm { public: enum class CommOp ...
6,513
26.719149
250
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/common.hpp
#ifndef _SCTL_COMMON_HPP_ #define _SCTL_COMMON_HPP_ #ifndef SCTL_NAMESPACE #define SCTL_NAMESPACE sctl #endif #define SCTL_QUOTEME(x) SCTL_QUOTEME_1(x) #define SCTL_QUOTEME_1(x) #x #define SCTL_INCLUDE(x) SCTL_QUOTEME(SCTL_NAMESPACE/x) // Profiling parameters #ifndef SCTL_PROFILE #define SCTL_PROFILE -1 // Granularit...
2,837
31.62069
113
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/fft_wrapper.hpp
#ifndef _SCTL_FFT_WRAPPER_ #define _SCTL_FFT_WRAPPER_ #include <cmath> #include <cassert> #include <cstdlib> #include <vector> #if defined(SCTL_HAVE_FFTW) || defined(SCTL_HAVE_FFTWF) #include <fftw3.h> #ifdef SCTL_FFTW3_MKL #include <fftw3_mkl.h> #endif #endif #include <sctl/common.hpp> #include SCTL_INCLUDE(matrix.h...
27,015
35.508108
238
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/fmm-wrapper.hpp
#ifndef _SCTL_FMM_WRAPPER_HPP_ #define _SCTL_FMM_WRAPPER_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(comm.hpp) #include SCTL_INCLUDE(mem_mgr.hpp) #include <map> #include <string> #ifdef SCTL_HAVE_PVFMM namespace pvfmm { template <class Real> struct Kernel; template <class Real> class MPI_Node; templa...
6,616
39.347561
202
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/intrin-wrapper.hpp
#ifndef _SCTL_INTRIN_WRAPPER_HPP_ #define _SCTL_INTRIN_WRAPPER_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(math_utils.hpp) #ifdef __SSE__ #include <xmmintrin.h> #endif #ifdef __SSE2__ #include <emmintrin.h> #endif #ifdef __SSE3__ #include <pmmintrin.h> #endif #ifdef __SSE4_2__ #include <smmintrin.h> #endif ...
174,921
57.268488
1,279
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/kernel_functions.hpp
#ifndef _SCTL_KERNEL_FUNCTIONS_HPP_ #define _SCTL_KERNEL_FUNCTIONS_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(vec.hpp) #include SCTL_INCLUDE(mem_mgr.hpp) namespace SCTL_NAMESPACE { template <class ValueType> class Matrix; template <class ValueType> class Vector; template <class uKernel, Integer KDIM0, In...
23,393
44.337209
235
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/lapack.h
/* Kernel Independent Fast Multipole Method Copyright (C) 2004 Lexing Ying, New York University 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, or (at your option) any later vers...
2,026
44.044444
215
h
FMM3D
FMM3D-master/vec-kernels/include/sctl/legendre_rule.hpp
#ifndef _SCTL_LEGENDRE_RULE_HPP_ #define _SCTL_LEGENDRE_RULE_HPP_ # include <cstdlib> # include <cmath> # include <iostream> # include <fstream> # include <iomanip> # include <ctime> # include <cstring> # include <cassert> namespace SCTL_NAMESPACE { void cdgqf(int nt, int kind, double alpha, double beta, double t[],...
34,709
22.279678
161
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/mat_utils.hpp
#ifndef _SCTL_MAT_UTILS_ #define _SCTL_MAT_UTILS_ #include <sctl/common.hpp> namespace SCTL_NAMESPACE { namespace mat { template <class ValueType> void gemm(char TransA, char TransB, int M, int N, int K, ValueType alpha, Iterator<ValueType> A, int lda, Iterator<ValueType> B, int ldb, ValueType beta, Iterator<ValueTy...
1,175
42.555556
250
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/math_utils.hpp
#ifndef _SCTL_MATH_UTILS_ #define _SCTL_MATH_UTILS_ #include <sctl/common.hpp> #include <cmath> #include <ostream> namespace SCTL_NAMESPACE { template <class Real> inline constexpr Integer significant_bits(); template <class Real> inline constexpr Real machine_eps(); template <class Real> Real atoreal(const char*...
4,950
40.605042
113
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/matrix.hpp
#ifndef _SCTL_MATRIX_HPP_ #define _SCTL_MATRIX_HPP_ #include <cstdint> #include <cstdlib> #include <sctl/common.hpp> #include SCTL_INCLUDE(vector.hpp) #include SCTL_INCLUDE(mem_mgr.hpp) namespace SCTL_NAMESPACE { template <class ValueType> class Vector; template <class ValueType> class Permutation; template <class...
5,223
27.703297
127
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/mem_mgr.hpp
// TODO: Implement fast stack allocation. #ifndef _SCTL_MEM_MGR_HPP_ #define _SCTL_MEM_MGR_HPP_ //#include <mutex> #include <sctl/common.hpp> #include <omp.h> #include <typeinfo> #include <cstdlib> #include <cstdint> #include <cassert> #include <vector> #include <stack> #include <map> #include <set> namespace SCTL_...
13,819
30.05618
150
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/morton.hpp
#ifndef _SCTL_MORTON_ #define _SCTL_MORTON_ #include <sctl/common.hpp> #include SCTL_INCLUDE(math_utils.hpp) #include <cstdint> #ifndef SCTL_MAX_DEPTH #define SCTL_MAX_DEPTH 15 #endif namespace SCTL_NAMESPACE { template <class ValueType> class Vector; template <Integer DIM = 3> class Morton { public: #if SCTL_...
6,343
24.788618
125
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/ode-solver.hpp
#ifndef _SCTL_ODE_SOLVER_ #define _SCTL_ODE_SOLVER_ #include <sctl/common.hpp> #include SCTL_INCLUDE(math_utils.hpp) #include <functional> namespace SCTL_NAMESPACE { template <class ValueType> class Vector; template <class ValueType> class Matrix; template <class Real> class SDC { public: using Fn = std::fu...
3,528
29.686957
199
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/ompUtils.hpp
#ifndef _SCTL_OMP_UTILS_H_ #define _SCTL_OMP_UTILS_H_ #include <sctl/common.hpp> #include <iterator> namespace SCTL_NAMESPACE { namespace omp_par { template <class ConstIter, class Iter, class Int, class StrictWeakOrdering> void merge(ConstIter A_, ConstIter A_last, ConstIter B_, ConstIter B_last, Iter C_, Int p, S...
845
30.333333
192
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/parallel_solver.hpp
#ifndef _SCTL_PARALLEL_SOLVER_HPP_ #define _SCTL_PARALLEL_SOLVER_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(comm.hpp) #include SCTL_INCLUDE(mem_mgr.hpp) #include SCTL_INCLUDE(math_utils.hpp) #include <functional> namespace SCTL_NAMESPACE { template <class ValueType> class Vector; template <class ValueTyp...
11,604
32.157143
236
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/profile.hpp
#ifndef _SCTL_PROFILE_HPP_ #define _SCTL_PROFILE_HPP_ #include <sctl/common.hpp> #include <string> #include <vector> #include <stack> #ifndef SCTL_PROFILE #define SCTL_PROFILE -1 #endif namespace SCTL_NAMESPACE { class Comm; class Profile { public: static Long Add_MEM(Long inc); static Long Add_FLOP(Long in...
1,311
18.014493
105
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/quadrule.hpp
#ifndef _SCTL_QUADRULE_HPP_ #define _SCTL_QUADRULE_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(matrix.hpp) #include SCTL_INCLUDE(math_utils.hpp) #include SCTL_INCLUDE(legendre_rule.hpp) #include <algorithm> namespace SCTL_NAMESPACE { template <class Real> class ChebQuadRule { // p(x) public: t...
24,048
38.42459
327
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/slender_element.hpp
#ifndef _SCTL_SLENDER_ELEMENT_HPP_ #define _SCTL_SLENDER_ELEMENT_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(mem_mgr.hpp) #include SCTL_INCLUDE(vector.hpp) namespace SCTL_NAMESPACE { class Comm; struct VTUData; template <class Real> class FFT; template <class ValueType> class Vector; template <cl...
8,568
35.776824
234
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/sph_harm.hpp
#ifndef _SCTL_SPH_HARM_HPP_ #define _SCTL_SPH_HARM_HPP_ #define SCTL_SHMAXDEG 1024 #include <sctl/common.hpp> #include SCTL_INCLUDE(math_utils.hpp) #include SCTL_INCLUDE(mem_mgr.hpp) #include <vector> namespace SCTL_NAMESPACE { class Comm; template <class ValueType> class Vector; template <class ValueType> class M...
21,976
41.101533
266
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/stacktrace.h
#ifndef _SCTL_STACKTRACE_H_ #define _SCTL_STACKTRACE_H_ #include <sctl/common.hpp> #include <unistd.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <execinfo.h> #include <cxxabi.h> #ifdef __APPLE__ #include <mach-o/dyld.h> #endif namespace SCTL_NAMESPACE { inline void print_stacktrace(FILE* o...
3,186
23.898438
100
h
FMM3D
FMM3D-master/vec-kernels/include/sctl/tensor.hpp
#ifndef _SCTL_TENSOR_HPP_ #define _SCTL_TENSOR_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(mem_mgr.hpp) #include SCTL_INCLUDE(math_utils.hpp) #include <iostream> #include <iomanip> namespace SCTL_NAMESPACE { template <class ValueType, bool own_data, Long... Args> class Tensor { template <Long k> stat...
7,617
28.187739
154
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/tree.hpp
#ifndef _SCTL_TREE_ #define _SCTL_TREE_ #include <sctl/common.hpp> #include SCTL_INCLUDE(comm.hpp) #include SCTL_INCLUDE(morton.hpp) #include SCTL_INCLUDE(vtudata.hpp) #include SCTL_INCLUDE(ompUtils.hpp) #include <string> #include <vector> #include <algorithm> namespace SCTL_NAMESPACE { template <Integer DIM> class...
5,002
28.60355
126
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/vec-test.hpp
#ifndef _SCTL_VEC_TEST_HPP_ #define _SCTL_VEC_TEST_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(vec.hpp) #include SCTL_INCLUDE(vector.hpp) #include <cassert> #include <cstdint> #include <ostream> namespace SCTL_NAMESPACE { // Verify Vec class template <class ValueType = double, Integer N = 1> class Vec...
15,707
34.7
192
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/vec.hpp
#ifndef _SCTL_VEC_WRAPPER_HPP_ #define _SCTL_VEC_WRAPPER_HPP_ #include <sctl/common.hpp> #include SCTL_INCLUDE(intrin-wrapper.hpp) #include <cassert> #include <cstdint> #include <ostream> namespace SCTL_NAMESPACE { #if defined(__AVX512__) || defined(__AVX512F__) static_assert(SCTL_ALIGN_BYTES >= 64, "Insufficie...
10,405
33.571429
137
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/vector.hpp
#ifndef _SCTL_VECTOR_HPP_ #define _SCTL_VECTOR_HPP_ #include <sctl/common.hpp> #include <vector> #include <cstdlib> #include <cstdint> #include <initializer_list> namespace SCTL_NAMESPACE { template <class ValueType> Iterator<ValueType> NullIterator(); template <class ValueType> class Vector { public: typedef V...
3,249
23.074074
107
hpp
FMM3D
FMM3D-master/vec-kernels/include/sctl/vtudata.hpp
#ifndef _SCTL_VTUDATA_ #define _SCTL_VTUDATA_ #include <sctl/common.hpp> #include SCTL_INCLUDE(comm.hpp) #include SCTL_INCLUDE(vector.hpp) #include SCTL_INCLUDE(mem_mgr.hpp) namespace SCTL_NAMESPACE { class Comm; template <class ValueType> class Vector; template <class ValueType> class Matrix; struct VTUData { ty...
1,048
24.585366
169
hpp
FMM3D
FMM3D-master/vec-kernels/src/libkernels.cpp
#include <kernels.h> #include <template-kernels.hpp> #define VECDIM 4 #ifdef __AVX512F__ #undef VECDIM #define VECDIM 8 #endif #ifdef __cplusplus extern "C" { #endif void h3ddirectcp_new_cpp_(const int32_t* nd, const double* zk, const double* sources, const double* charge, const int32_t* ns, const double* ztarg, con...
10,759
66.672956
250
cpp
FMM3D
FMM3D-master/vec-kernels/src/test-cpp.cpp
#include <sctl.hpp> #include <kernels.h> double mydrand() { return (double)rand()/RAND_MAX; } int main() { constexpr int32_t COORD_DIM = 3; omp_set_num_threads(1); std::cout<<"num of max omp threads: "<<omp_get_max_threads()<<"\n"; double zk[2] = {1,1}; double thresh = 1e-12; int32_t Ns = 1000, Nt = 100...
1,295
26.574468
115
cpp
FMM3D
FMM3D-master/vec-kernels/src/test-fortran.f90
program main implicit none integer*4 :: nd, Ns, Nt nd = 1 Ns = 1000 Nt = 1000 call test(nd, Ns, Nt) end subroutine test(nd, Ns, Nt) use iso_c_binding implicit none include 'kernels.f90' integer*4 :: i, nd, Ns, Nt real*8 :: Xs(Ns*3), Xt(Nt*3), thresh complex*16 :: zk, Vs(Ns*nd), Vt(Nt*nd), Vt_r...
1,066
18.053571
86
f90
NRI
NRI-master/README.md
# Neural relational inference for interacting systems This repository contains the official PyTorch implementation of: **Neural relational inference for interacting systems.** Thomas Kipf*, Ethan Fetaya*, Kuan-Chieh Wang, Max Welling, Richard Zemel. https://arxiv.org/abs/1802.04687 (*: equal contribution) ![Neu...
2,887
44.125
950
md
NRI
NRI-master/__init__.py
0
0
0
py
NRI
NRI-master/lstm_baseline.py
from __future__ import division from __future__ import print_function import time import argparse import pickle import os import datetime import torch.optim as optim from torch.optim import lr_scheduler from utils import * from modules import * parser = argparse.ArgumentParser() parser.add_argument('--no-cuda', act...
15,051
34.923628
88
py
NRI
NRI-master/modules.py
import torch import torch.nn as nn import torch.nn.functional as F import math from torch.autograd import Variable from utils import my_softmax, get_offdiag_indices, gumbel_softmax _EPS = 1e-10 class MLP(nn.Module): """Two-layer fully-connected ELU net with batch norm.""" def __init__(self, n_in, n_hid, n_...
24,213
36.138037
80
py
NRI
NRI-master/train.py
from __future__ import division from __future__ import print_function import time import argparse import pickle import os import datetime import torch.optim as optim from torch.optim import lr_scheduler from utils import * from modules import * parser = argparse.ArgumentParser() parser.add_argument('--no-cuda', act...
15,858
38.158025
94
py
NRI
NRI-master/train_dec.py
from __future__ import division from __future__ import print_function import time import argparse import pickle import os import datetime import torch.optim as optim from torch.optim import lr_scheduler from utils import * from modules import * parser = argparse.ArgumentParser() parser.add_argument('--no-cuda', act...
15,025
38.43832
88
py
NRI
NRI-master/train_enc.py
from __future__ import division from __future__ import print_function import time import argparse import pickle import os import torch.optim as optim from torch.optim import lr_scheduler from utils import * from modules import * parser = argparse.ArgumentParser() parser.add_argument('--no-cuda', action='store_true'...
9,536
36.253906
88
py
NRI
NRI-master/utils.py
import numpy as np import torch from torch.utils.data.dataset import TensorDataset from torch.utils.data import DataLoader import torch.nn.functional as F from torch.autograd import Variable def my_softmax(input, axis=1): trans_input = input.transpose(axis, 0).contiguous() soft_max_1d = F.softmax(trans_input)...
18,169
37.012552
118
py
NRI
NRI-master/data/__init__.py
0
0
0
py
NRI
NRI-master/data/generate_dataset.py
from synthetic_sim import ChargedParticlesSim, SpringSim import time import numpy as np import argparse parser = argparse.ArgumentParser() parser.add_argument('--simulation', type=str, default='springs', help='What simulation to generate.') parser.add_argument('--num-train', type=int, default=50000...
3,551
38.032967
77
py
NRI
NRI-master/data/synthetic_sim.py
import numpy as np import matplotlib.pyplot as plt import time class SpringSim(object): def __init__(self, n_balls=5, box_size=5., loc_std=.5, vel_norm=.5, interaction_strength=.1, noise_var=0.): self.n_balls = n_balls self.box_size = box_size self.loc_std = loc_std ...
12,383
38.948387
80
py
qiskit-metapackage
qiskit-metapackage-master/.mergify.yml
queue_rules: - name: automerge conditions: [] # No additional rules, because branch-protection does them. pull_request_rules: - name: automatic merge on CI success and review conditions: - base=master - "#approved-reviews-by>=1" - label=automerge - label!=on hold # GitHub bra...
1,116
30.027778
79
yml
qiskit-metapackage
qiskit-metapackage-master/CITATION.md
See https://github.com/Qiskit/qiskit-terra/blob/main/CITATION.bib
66
32.5
65
md
qiskit-metapackage
qiskit-metapackage-master/CODE_OF_CONDUCT.md
# Code of Conduct ## Our Pledge The Qiskit Community is dedicated to our values of treating every individual with respect and dignity. In the interest of fostering an open and welcoming environment, all participants, including attendees, speakers, sponsors, volunteers, online contributors, and IBM employees are expec...
6,370
54.4
216
md
qiskit-metapackage
qiskit-metapackage-master/CONTRIBUTING.md
# Contributing The documentation and benchmarking of Qiskit is contained in this repository. To contribute to this project or any of the elements of qiskit we recommend you start by reading the [contributing guide](https://qiskit.org/documentation/contributing_to_qiskit.html). ## Contributor License Agreement Before...
1,229
46.307692
91
md
qiskit-metapackage
qiskit-metapackage-master/README.md
![Image](https://raw.githubusercontent.com/Qiskit/qiskit-metapackage/master/images/qiskit_header.png) [![License](https://img.shields.io/github/license/Qiskit/qiskit-metapackage.svg?)](https://opensource.org/licenses/Apache-2.0) ![Build Status](https://github.com/Qiskit/qiskit-metapackage/actions/workflows/main.yml/ba...
5,298
67.818182
430
md
qiskit-metapackage
qiskit-metapackage-master/setup.py
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
3,230
26.615385
83
py
qiskit-metapackage
qiskit-metapackage-master/.github/PULL_REQUEST_TEMPLATE.md
<!-- ⚠️ If you do not respect this template, your pull request will be closed. ⚠️ Your pull request title should be short detailed and understandable for all. ⚠️ Also, please add it in the CHANGELOG file under Unreleased section. ⚠️ If your pull request fixes an open issue, please link to the issue. ✅ I have added the...
484
24.526316
79
md
qiskit-metapackage
qiskit-metapackage-master/.github/ISSUE_TEMPLATE/bug_report.md
--- name: "\U0001F41B Bug report" about: "Create a report to help us improve \U0001F914." title: '' labels: bug assignees: '' --- <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Informations - **Qiskit version**: - **Python ...
493
14.4375
74
md
qiskit-metapackage
qiskit-metapackage-master/.github/ISSUE_TEMPLATE/documentation.md
--- name: Documentation about: 'Create an issue for documentation' title: '' labels: documentation assignees: '' --- ## Did you find a doc bug or broken link that needs to be fixed? - What is the file name(s) where you found the bug? - What is the current text that needs to be fixed or removed? (You can copy and pa...
655
23.296296
86
md
qiskit-metapackage
qiskit-metapackage-master/.github/ISSUE_TEMPLATE/feature_request.md
--- name: "\U0001F680 Feature request" about: "Suggest an idea for this project \U0001F4A1!" title: '' labels: enhancement assignees: '' --- <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. --> ###...
352
24.214286
97
md
qiskit-metapackage
qiskit-metapackage-master/.github/workflows/docs.yml
name: Docs Publish on: workflow_dispatch: push: branches: [ master ] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v2 with: python-version: '3.8' - name: Insta...
1,552
28.301887
85
yml
qiskit-metapackage
qiskit-metapackage-master/.github/workflows/docs_tag.yml
name: Stable Docs Publish on: push: tags: - '*' jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v2 with: python-version: '3.8' - name: Install dependencies ...
795
24.677419
66
yml
qiskit-metapackage
qiskit-metapackage-master/.github/workflows/main.yml
name: Tests on: push: branches: [ master ] pull_request: branches: [ master ] jobs: tests: name: tests-python${{ matrix.python-version }}-${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: python-version: [3.7, 3.8, 3.9, "3.10"] os: ["ubuntu-latest"] steps: ...
3,041
28.823529
177
yml
qiskit-metapackage
qiskit-metapackage-master/.github/workflows/release.yml
name: Publish PyPI on: push: tags: - '*' jobs: wheel-build: name: Build and Publish Release Artifacts runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: python-version: '3.8' - name: Install depen...
698
21.548387
53
yml
qiskit-metapackage
qiskit-metapackage-master/docs/README.md
# Qiskit Documentation Please refer to [Contributing to Documentation](https://qiskit.org/documentation/contributing_to_qiskit.html#contributing-to-documentation).
165
40.5
140
md
qiskit-metapackage
qiskit-metapackage-master/docs/conf.py
# This code is part of Qiskit. # # (C) Copyright IBM 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
7,727
32.6
100
py
qiskit-metapackage
qiskit-metapackage-master/docs/custom_extensions.py
# This code is part of Qiskit. # # (C) Copyright IBM 2023. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
2,826
33.060241
93
py
qiskit-metapackage
qiskit-metapackage-master/docs/versionutils.py
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
6,550
34.032086
97
py
qiskit-metapackage
qiskit-metapackage-master/test/__init__.py
0
0
0
py
qiskit-metapackage
qiskit-metapackage-master/test/base.py
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
4,775
38.147541
78
py
qiskit-metapackage
qiskit-metapackage-master/test/test_metapackage.py
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
765
26.357143
77
py
qiskit-metapackage
qiskit-metapackage-master/test/test_simulation.py
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
1,187
31.108108
91
py
qiskit-metapackage
qiskit-metapackage-master/test/benchmarks/__init__.py
0
0
0
py
qiskit-metapackage
qiskit-metapackage-master/test/benchmarks/assembler.py
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
1,893
31.655172
77
py
qiskit-metapackage
qiskit-metapackage-master/test/benchmarks/circuit_construction.py
# -*- coding: utf-8 -* # This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any ...
3,180
29.883495
77
py
qiskit-metapackage
qiskit-metapackage-master/test/benchmarks/converters.py
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
1,987
33.877193
78
py
qiskit-metapackage
qiskit-metapackage-master/test/benchmarks/import.py
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
857
30.777778
77
py
qiskit-metapackage
qiskit-metapackage-master/test/benchmarks/isometry.py
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
1,845
37.458333
79
py