repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
kblas-gpu | kblas-gpu-master/testing/blas_l2/test_dscal.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l2/test_dscal.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided ... | 4,677 | 24.016043 | 127 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l2/test_chemv_mgpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l2/test_chemv_mgpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is prov... | 11,895 | 26.537037 | 134 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l2/test_dsymv.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l2/test_dsymv.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided ... | 6,527 | 28.142857 | 127 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ztrmm_cpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ztrmm_cpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provi... | 1,403 | 21.285714 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ctrsm.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ctrsm.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided ... | 1,353 | 20.83871 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_strmm.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_strmm.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided ... | 1,322 | 20.33871 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_dtrsm.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_dtrsm.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided ... | 1,282 | 20.032787 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_dtrsm_mgpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_dtrsm_mgpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is prov... | 1,292 | 20.196721 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_strmm_mgpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_strmm_mgpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is prov... | 1,269 | 20.166667 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ctrmm_cpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ctrmm_cpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provi... | 1,400 | 21.238095 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ctrmm_mgpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ctrmm_mgpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is prov... | 1,270 | 20.183333 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ctrsm_mgpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ctrsm_mgpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is prov... | 1,334 | 20.885246 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_dtrmm.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_dtrmm.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided ... | 1,328 | 20.435484 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ztrmm.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ztrmm.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided ... | 1,399 | 21.222222 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ctrsm_cpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ctrsm_cpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provi... | 1,361 | 20.967742 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_dtrmm_cpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_dtrmm_cpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provi... | 1,329 | 20.451613 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_strmm_cpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_strmm_cpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provi... | 1,327 | 20.419355 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ztrsm.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ztrsm.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided ... | 1,265 | 20.457627 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_strsm_mgpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_strsm_mgpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is prov... | 1,291 | 20.180328 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_dtrsm_cpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_dtrsm_cpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provi... | 1,290 | 20.163934 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ztrmm_mgpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ztrmm_mgpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is prov... | 1,315 | 20.933333 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ctrmm.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ctrmm.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided ... | 1,398 | 21.206349 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ztrsm_cpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ztrsm_cpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provi... | 1,364 | 21.016129 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/l3_common.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/l3_common.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided b... | 7,676 | 45.810976 | 96 | h |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_ztrsm_mgpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_ztrsm_mgpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is prov... | 1,337 | 20.934426 | 96 | c |
kblas-gpu | kblas-gpu-master/testing/blas_l3/test_dtrmm_mgpu.c | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l3/test_dtrmm_mgpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is prov... | 1,270 | 20.183333 | 96 | c |
kblas-gpu | kblas-gpu-master/src/kblas_prec_def.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file src/kblas_prec_def.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided by KAUST... | 16,642 | 46.687679 | 92 | h |
kblas-gpu | kblas-gpu-master/src/kblas_error.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file src/kblas_error.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided by KAUST.
... | 1,705 | 30.018182 | 99 | h |
kblas-gpu | kblas-gpu-master/src/kblas_gpu_timer.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file src/kblas_gpu_timer.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided by KAUS... | 1,666 | 20.934211 | 93 | h |
kblas-gpu | kblas-gpu-master/src/kblas_common.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file src/kblas_common.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided by KAUST.
... | 4,515 | 45.556701 | 96 | h |
kblas-gpu | kblas-gpu-master/src/blas_l2/mgpu_control.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file src/blas_l2/mgpu_control.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided by... | 4,080 | 25.160256 | 129 | h |
kblas-gpu | kblas-gpu-master/include/kblas_operators.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file include/kblas_operators.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided by ... | 12,427 | 30.304786 | 126 | h |
kblas-gpu | kblas-gpu-master/include/kblas.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file include/kblas.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided by KAUST.
*
... | 3,352 | 22.95 | 78 | h |
kblas-gpu | kblas-gpu-master/include/kblas_defs.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file include/kblas_defs.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided by KAUST... | 1,521 | 23.95082 | 86 | h |
kblas-gpu | kblas-gpu-master/include/batch_block_copy.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file include/batch_block_copy.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided by... | 5,115 | 30.776398 | 95 | h |
kblas-gpu | kblas-gpu-master/include/kblas_l3.h | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file include/kblas_l3.h
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided by KAUST.
... | 20,776 | 44.265795 | 85 | h |
hammurabiX | hammurabiX-master/include/tefield.h | // thermal electron field generators/interface
//
// class design:
//
// TEfield
// |-- TEreg
// | |-- TEreg_xxx
// | |-- TEreg_yyy
// |
// |-- TErnd
// |-- TErnd_xxx
// |-- TErnd_yyy
//
// TEfield has similar structure and member functions as Bfield
// the major difference is t... | 6,062 | 34.45614 | 80 | h |
hammurabiX | hammurabiX-master/include/hamvec.h | // hammurabi (3D) vector class
//
// dotprod, versor, length, lengthsq
// return floating datatype independent of inputs
#ifndef HAMMURABI_VECTOR_H
#define HAMMURABI_VECTOR_H
#include <array>
#include <cassert>
#include <cmath>
#include <hamtype.h>
#include <ostream>
#include <stdexcept>
#include <type_traits>
templ... | 5,572 | 24.447489 | 78 | h |
hammurabiX | hammurabiX-master/include/hamdis.h | #ifndef HAMMURABI_DIS_H
#define HAMMURABI_DIS_H
#include <array>
#include <cmath>
#include <iostream>
#include <memory>
#include <omp.h>
#include <stdexcept>
#include <vector>
#include <hamp.h>
#include <hamtype.h>
#include <hamunits.h>
// data type T
// key structure of each sample point
template <typename T> class... | 23,373 | 31.24 | 80 | h |
hammurabiX | hammurabiX-master/include/timer.h | // Timer class
//
// Timer records time elapse from Timer::start to Timer::stop
// Timer supports nested/overlaped recording
#ifndef HAMMURABI_TIMR_H
#define HAMMURABI_TIMR_H
#include <cassert>
#include <chrono>
#include <ctime>
#include <hamtype.h>
#include <iostream>
#include <map>
#include <string>
class Timer {
... | 2,009 | 28.558824 | 77 | h |
hammurabiX | hammurabiX-master/include/hamio.h | #ifndef HAMMURABI_IO_H
#define HAMMURABI_IO_H
#include <cassert>
#include <fstream>
#include <memory>
#include <omp.h>
#include <stdexcept>
#include <string>
#include <hamdis.h>
#include <hamp.h>
#include <hamtype.h>
template <typename T> class Hamio {
protected:
std::string Filename;
public:
Hamio() = default;... | 3,892 | 30.650407 | 78 | h |
hammurabiX | hammurabiX-master/include/bfield.h | // magnetic field generators/interface
//
// class design:
//
// Bfield
// |-- Breg
// | |-- Breg_xxx
// | |-- Breg_yyy
// |
// |-- Brnd
// |-- Brnd_xxx
// |-- Brnd_yyy
//
// field parameterized modelling is implemented in ``write_field`` function
// interactions with grid are carried ... | 18,158 | 39.715247 | 92 | h |
hammurabiX | hammurabiX-master/include/param.h | // parameters
#ifndef HAMMURABI_PARAM_H
#define HAMMURABI_PARAM_H
#include <string>
#include <vector>
#include <hamtype.h>
#include <hamvec.h>
#include <tinyxml2.h>
class Param {
public:
Param(const std::string);
Param() = default;
Param(const Param &) = delete;
Param(Param &&) = delete;
Param &operator=(... | 7,869 | 30.354582 | 75 | h |
hammurabiX | hammurabiX-master/include/pipeline.h | #ifndef HAMMURABI_PIPELINE_H
#define HAMMURABI_PIPELINE_H
#include <string>
#include <bfield.h>
#include <crefield.h>
#include <grid.h>
#include <integrator.h>
#include <param.h>
#include <tefield.h>
#include <toolkit.h>
class Pipeline {
public:
Pipeline() = default;
Pipeline(const std::string &);
Pipeline(con... | 1,219 | 24.416667 | 49 | h |
hammurabiX | hammurabiX-master/include/hamp.h | // reforged HEALPix pointing class
// spherical frame described by (theta,phi) in radian
// associated default Cartesian frame described by (x,y,z)
// and the default relation is
// theta = 0, z direction
// phi = 0, x direction
// phi = 90, y direction
#ifndef HAMMURABI_POINTING_H
#define HAMMURABI_POINTING_H
#inclu... | 2,600 | 26.09375 | 73 | h |
hammurabiX | hammurabiX-master/include/hamtype.h | // this customized header file allows
// ajdusting data types for working enviroment/project
//
// brief idea of how many bits to use
//
// 64bit is out of our reach, do not use it
//
// 32bit unsigned integer goes upto 4,294,967,296
// that's sufficient for HEALPix Nsise 18,918
//
// 16bit unsigned integer goes upto 6... | 649 | 25 | 54 | h |
hammurabiX | hammurabiX-master/include/hamsk.h | #ifndef HAMMURABI_MSK_H
#define HAMMURABI_MSK_H
#include <iostream>
#include <map>
#include <memory>
#include <omp.h>
#include <stdexcept>
#include <hamdis.h>
#include <hamtype.h>
template <typename T> class Hamsk {
private:
public:
Hamsk() = default;
Hamsk(const Hamsk<T> &) = delete;
Hamsk &operator=(const Ha... | 3,588 | 30.761062 | 73 | h |
hammurabiX | hammurabiX-master/include/toolkit.h | // auxiliary functions
#ifndef HAMMURABI_TOOLKIT_H
#define HAMMURABI_TOOLKIT_H
#include <cassert>
#include <cmath>
#include <ctime>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <thread>
#include <vector>
#include <hamtype.h>
#include <hamvec.h>
#include <tinyxml2.h>
namespace ... | 9,790 | 32.646048 | 80 | h |
hammurabiX | hammurabiX-master/include/hamunits.h | // constants in CGS units
#ifndef HAMMURABI_UNITS_H
#define HAMMURABI_UNITS_H
#include <cmath>
namespace cgs {
const double erg = 1.;
const double cm = 1.;
const double sec = 1.;
const double Kelvin = 1.;
const double gram = (erg * sec * sec / (cm * cm));
const double joule = (1.e7 * erg);
const double watt = (jou... | 2,612 | 35.802817 | 75 | h |
hammurabiX | hammurabiX-master/include/crefield.h | // cosmic ray electron flux field generator/interface
//
// class design:
//
// CREfield
// |-- CRE_xxx
// |-- CRE_yyy
//
// CRE class either defines CRE flux analytically
// or read from numerical input
// CRE synchrotron emissivity is also defined here
// by function ``read_emissivity_t`` and ``read_emissivity_... | 5,684 | 38.755245 | 80 | h |
hammurabiX | hammurabiX-master/include/integrator.h | // line-of-sight radiative transfer integrator
#ifndef HAMMURABI_INT_H
#define HAMMURABI_INT_H
#include <vector>
#include <bfield.h>
#include <crefield.h>
#include <grid.h>
#include <hamp.h>
#include <hamtype.h>
#include <param.h>
#include <tefield.h>
class Integrator {
public:
Integrator() = default;
Integrato... | 5,090 | 39.404762 | 78 | h |
hammurabiX | hammurabiX-master/include/grid.h | // grid for allocating physical/observable fields
//
// class design:
//
// Grid
// |-- Grid_breg (regular magnetic field grid)
// |-- Grid_brnd (random magnetic field grid)
// |-- Grid_tereg (regular thermal electron field grid)
// |-- Grid_ternd (random thermal electron field grid)
// |-- Grid_cre (cosmic ray el... | 5,884 | 28.873096 | 80 | h |
pyHST | pyHST-master/lib/tinytim/pupil.c | /* File : pupil.c
*
* Contents :
* Draw_ellipse : Draw an elliptical aperture (for STIS Lyot stop)
* Smooth : Smooth image using boxcar averaging
* Dark_inside_circle : Draw a dark circle into the pupil function
* using subpixellation.
* Dark_outside_circle : Mask out everything the t... | 16,536 | 23.608631 | 91 | c |
pyHST | pyHST-master/lib/tinytim/psf.c | /*
* File : psf.c
*
* Contents :
* Compute_crit_psf : Compute critically sampled PSF
*
* Author : John Krist (Space Telescope Science Institute)
*
* Date : January 1992
*
* Modifications :
* August 1994 - JEK
* Modified routines to use complex structures.
*/
#include <stdio.h>... | 1,807 | 23.432432 | 79 | c |
pyHST | pyHST-master/lib/tinytim/cpupil.c | /* File : cpupil.c
*
* Contents :
* Get_wfpc_shift : Compute WFPC obscuration shifts
* Draw_wfpc_spiders : Draw WFPC spiders in pupil function
* Compute_pupil : Generate pupil function
*
* Author : John Krist, STScI
* Date : January 1992
*
* Modifications :
* J. Krist - Ap... | 14,525 | 29.710359 | 106 | c |
pyHST | pyHST-master/lib/tinytim/polypsf.c | /* File : polypsf.c
*
* Contents :
* Add_mono_to_poly : weighted addition of a monochromatic PSF to the
* current polychromatic PSF array.
* Compute_poly_psf : Compute polychromatic PSF for a given position.
*
* Author : John Krist (STScI)
* Date : Januar... | 8,659 | 28.060403 | 81 | c |
pyHST | pyHST-master/lib/tinytim/rotate.c | /* File : rotate.c
*
* Contents :
* Rotateimage : Rotate an image
* Rotate : Rotate, scale, and shift an image
*
* Author : John Krist (STScI)
* Date : January 1992
*
* Modifications :
* JEK - March 1994
* Added Rotate routine.
*
* JEK - April 1994
* Fixed bug in Rotate routin... | 4,910 | 25.545946 | 86 | c |
pyHST | pyHST-master/lib/tinytim/entry.c | /* File : entry.c
* Contents :
* Init_entry_list : Initialize counter for parameter buffer.
* Delete_entry_list : Deallocate the parameter buffer.
* Write_entry_list : Write current parameter buffer to a file.
* Store_entry : Create an entry in the parameter buffer.
* Get_string ... | 4,328 | 26.398734 | 79 | c |
pyHST | pyHST-master/lib/tinytim/v2v3.c | /* File : v2v3.c
*
* Contents :
* XY_to_V2V3 : Convert detector X,Y to pupil V2,V3; used by v2v3()
* V2V3_to_XY : Convert field V2,V3 to detector X,Y; used by v2v3()
* v2v3 : Compute pupil V2,V3 for a given detector X,Y
*
* Author : John Krist
* Date : October 2000
*
* Modified to inc... | 6,804 | 28.977974 | 127 | c |
pyHST | pyHST-master/lib/tinytim/jitter.c | /* File : jitter.c
*
* Contents :
* Compute_jitter : Convolve PSF with a jitter function
*
* Author : John Krist (STScI)
* Date : January 1992
*
* Modifications:
* May 2004 : Added 2-D elliptical Gaussian jitter
*/
#include <stdio.h>
#include <math.h>
#include "tinytim.h"
/*-----------------------... | 1,692 | 22.191781 | 73 | c |
pyHST | pyHST-master/lib/tinytim/intpsf.c | #include <stdio.h>
#include <math.h>
#ifndef MACOSX
#include <malloc.h>
#else
#include <stdlib.h>
#endif
#include "tinytim.h"
#ifdef TT_THREADED
#include <pthread.h>
#endif
static float **Sinc_table;
#define K 21
#define DK 10
struct iparstruct {
float mag;
int size_out;
float **psf_out;
... | 12,842 | 29.218824 | 112 | c |
pyHST | pyHST-master/lib/tinytim/monopsf.c | /* File : monopsf.c
*
* Contents :
* WaveCorrectOPD : Convert OPD from 547 nm to specified wavelength.
* Computemono_psf : Compute the monochromatic PSF.
*
* Author : John Krist (STScI)
* Date : January 1992
*
* Modifications :
* JEK - May 1992
* Added code to use NewIntegratePs... | 4,985 | 26.395604 | 82 | c |
pyHST | pyHST-master/lib/tinytim/misc.c | /* File : misc.c
*
* Contents :
* round : round to nearest whole number
* Convolve : Convolve PSF with charge diffusion kernel
* Flux_normalize : flux normalizes an array
* sinc : Computes sinc(x)
* Str_trim : Null terminate a string after last character.
* Swap_test: Determine byt... | 8,777 | 23.181818 | 79 | c |
pyHST | pyHST-master/lib/tinytim/inter.c | /* File : inter.c
*
* Contents :
* Interpolate : Bilinear interpolation (used by CreateMirrorMap)
*
* Author : John Krist (STScI)
* Date : January 1992
*
* Modifications :
* J. Krist - April 1992
* Modified Interpolate to use separate x and y starting values
* for the images.
*/
#includ... | 2,815 | 26.881188 | 106 | c |
pyHST | pyHST-master/lib/tinytim/distort.c | /* File : distort.c
*
* Contents :
* Damped_interp : Damped-sinc interpolation routine
* Distort_thread : Threaded routine used by Distort
* Distort : Map input image onto a distorted grid
*
* Written by John Krist, November 2000
*
* Typo in polynomial expression fixed, Richard Hook, March 2008
*
*/
#include <stdio.h>... | 9,759 | 22.518072 | 114 | c |
pyHST | pyHST-master/lib/tinytim/compgrid.c | /* File : compgrid.c (formerly inputs3.c)
*
* Contents :
* Compute_grid_dims : Compute the PSF grid dimensions
*
* Author : John Krist (STScI)
* Date : January 1992
*
* Modifications :
* J. Krist - March 1992
* Changed ComputeGridDims to use the focal ratios and pixel sizes
* from the... | 5,655 | 32.270588 | 92 | c |
pyHST | pyHST-master/lib/tinytim/fft.c | /* File : fft.c
*
* Contents :
* fft : Compute the FFT of a multidimensional array.
* fft2d : Compute FFT of a 2-d array.
*
* Author : Converted from Fortran to C by John Krist (STScI)
* Original author unknown (Singleton?). Obtained from
* netlib.
* Date : January 1992
*
* M... | 16,733 | 20.70428 | 79 | c |
pyHST | pyHST-master/lib/tinytim/acs.c | /* File : acs.c
*
* Contents :
* Read_psf : Read PSF produced by tiny2 from FITS file
* Read_scene : Read user-generated scene to be PSF convolved & distorted
* Convolve_scene : Resample, PSF convolve, and distort input scene
* Resample_thread : Resample procedure used by Resample
* Resample : Resample input sc... | 24,612 | 28.654217 | 125 | c |
pyHST | pyHST-master/lib/tinytim/tiny1.c | /* File : tiny1.c
*
* Contents :
* main() : Accept input parameters for Tiny Tim and write
* them out to a file for use by tiny2.
*
* Author : John Krist (STScI)
* Date : January 1992
*
* Modifications :
*
* J. Krist - March 1992
* Got rid of limit of 6.0 arcseconds for integrated PS... | 24,384 | 33.34507 | 99 | c |
pyHST | pyHST-master/lib/tinytim/halo.c | /* File : halo.c
*
* Contents :
* Halo_f1042m : Add halo to WFPC2 F1042M PSFs
* Acs_pixel_area : Compute area of distorted ACS pixel
* Hrc_halo : Add ACS HRC red halo to PSF
*
* Written by John Krist, November 2000
*/
#include <stdio.h>
#include <math.h>
#include "tinytim.h"
/*--------------------------------... | 3,343 | 23.955224 | 79 | c |
pyHST | pyHST-master/lib/tinytim/opd.c | /* File : opd.c
*
* Contents :
* Compute_opd : Compute the OPD array for 547 nm.
*
* Author : John Krist (STScI)
* Date : January 1992
*
* Modifications :
* March 1994 - JEK
* Modified ComputeOPD to adjust focus depending on PSF position for
* WFPC2 cameras o... | 6,880 | 31.611374 | 80 | c |
pyHST | pyHST-master/lib/tinytim/param.c | /* File : param.c
*
* Contents :
* Read_param_data : used by Read_params()
* Read_params : Read parameter file.
*
* Author : John Krist (STScI)
* Date : January 1992
*
* Modified :
* Aug 1992 - J.K.
* Removed input for Wfpc2PCRot and replaced NumSincSamples
* with SincLimit (which ... | 5,103 | 28.847953 | 89 | c |
pyHST | pyHST-master/lib/tinytim/tiny3.c | /* File : tiny3.c
*
* Contents:
* Tiny3_command_line : process command line arguments
* Read_psf : read PSF FITS file produced by tiny2
*
* Author : John Krist
* Date : September 2000
*
* Updated: Richard Hook & Felix Stoehr, March 2008
*/
#include <stdio.h>
#include <string.h>
#include <tim... | 10,900 | 27.462141 | 114 | c |
pyHST | pyHST-master/lib/tinytim/image.c | /* File : image.c
*
* Contents :
* Alloc_image : Allocate a single precision image array
* Free_image : Free an image allocated with Alloc_image
* Alloc_complex_image : Allocate a complex valued image array
* Free_complex_image : Free an image allocated with Alloc_complex... | 6,171 | 25.042194 | 83 | c |
pyHST | pyHST-master/lib/tinytim/spectrum.c | /* File : spectrum.c
*
* Contents :
*
* Author : John Krist (STScI)
* Date : October 1998
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "tinytim.h"
#define MAX_POINTS 15000
#define SQR(x) ((x)*(x))
#define DEFAULT_SPECTRUM 0
#define USER_SPECTRUM 1
#... | 16,039 | 29.436433 | 101 | c |
pyHST | pyHST-master/lib/tinytim/convotf.c | /* File : convotf.c
*
* Contents :
* Convolve_otf : Convolve the critically sampled PSF with
* the integrated pixel OTF.
*
* Author : John Krist
* Date : May 1992
*/
#include <stdio.h>
#include <math.h>
#include "tinytim.h"
/*-----------------------------------------------------------------------
*... | 1,520 | 21.043478 | 85 | c |
pyHST | pyHST-master/lib/tinytim/map.c | /* File : map.c
*
* Contents :
* Compute_map : Create the mirror zonal error map.
*
* Author : John Krist
* Date : January 1992
*
* Modifications :
*
* JEK - March 1994
* Added Wfpcmirrormap routine.
* JEK - April 1994
* Fixed bug in Wfpcmirrormap routine (did not zero arrays)
* RN... | 4,910 | 31.74 | 94 | c |
pyHST | pyHST-master/lib/tinytim/fitsio.c | /* File : fitsio.c
*
* Contents :
* Which_byte_order : determines byte order of computer
* Report_error : prints error messages
* Read_FITS_header : read FITS file header and return image dimensions
* Swap_bytes : byte-swap 4-byte words
* Read_FITS : Read simple FITS file
* Write_FITS_header : Write basic image... | 11,810 | 25.782313 | 102 | c |
pyHST | pyHST-master/lib/tinytim/system.c | /* File : system.c
*
* Contents :
* DeleteFile : Delete a file
* DefaultDir : Attach TINYTIM system directory
* specifier to a filename.
*
* Author : John Krist (STScI)
* Date : January 1992
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include... | 1,194 | 23.387755 | 68 | c |
pyHST | pyHST-master/lib/tinytim/inputs.c | /* File : inputs.c (formerly inputs2.c)
*
* Contents :
* Find_string : Search for a string in another string.
* Str_up_case : Convert a string to upper case.
* Strtoken : Get the next token from a string.
* Str_get_floats : Read an variable number of floats from
* a string.
* Open_filter_file : Op... | 9,960 | 27.138418 | 78 | c |
pyHST | pyHST-master/lib/tinytim/tiny2.c | /* File : tiny2.c (formerly mkpsf.c)
*
* Contents:
* main() : Main program for PSF generation routines.
*
* Author : John Krist (STScI)
* Date : January 1992
*
* Some modifications for WFC3
*
* Richard Hook & Felix Stoehr, ST-ECF, March 2008
*/
#include <stdio.h>
#include <string.h>
#include... | 7,212 | 26.636015 | 97 | c |
pyHST | pyHST-master/lib/tinytim/vignet.c | /* File : vignet.c
*
* Contents :
* WfcVignette : Multiply WFC (WFPC I) aperture by a circle with
* a blurred edge to simulate vignetting. Kludge.
*
* Author : John Krist (STScI)
* Date : January 1993
*/
#include <stdio.h>
#include <math.h>
#include "tinytim.h"
#define Sqr(x) ((x)*(x))
/*--------... | 3,007 | 24.066667 | 77 | c |
pyHST | pyHST-master/lib/tinytim/tinytim.h | #define VERSION_NUM 7.5
/* 1-8 = WF/PC-1 */
#define FOC_F48 9
#define FOC_F96 10
#define WFPC2_PC 11
#define WFPC2_WFC_2 12
#define WFPC2_WFC_3 13
#define WFPC2_WFC_4 14
#define FOC2_F48 15
#define FOC2_F96 16
#define NICMOS_1 17
#define NICMOS_2 18
#define NICMOS_3 19
#define ... | 11,671 | 32.54023 | 114 | h |
pyHST | pyHST-master/lib/tinytim/outputs.c | /* File : outputs.c
*
* Contents :
* Write_params : Write Tiny Tim parameters to a file.
*
* Author : John Krist (STSci)
* Date : January 1992
*
*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include "tinytim.h"
/*------------------------------------... | 5,319 | 34.945946 | 93 | c |
atomic-red-team | atomic-red-team-master/atomics/T1137.002/src/officetest/officetest/pch.h | // pch.h: This is a precompiled header file.
// Files listed below are compiled only once, improving build performance for future builds.
// This also affects IntelliSense performance, including code completion and many code browsing features.
// However, files listed here are ALL re-compiled if any one of them is upda... | 563 | 39.285714 | 105 | h |
atomic-red-team | atomic-red-team-master/atomics/T1546.009/src/AtomicTest.c | /*
Atomic Test T1546.009
Author: traceflow (Twitter: @traceflow_ Email: traceflow@0x8d.cc)
https://github.com/tr4cefl0w
Credits: https://skanthak.homepage.t-online.de/appcert.html
*/
#include <Windows.h>
#include <stdio.h>
#pragma comment(lib, "user32")
typedef enum _REASON
{
PROC... | 1,308 | 24.173077 | 120 | c |
atomic-red-team | atomic-red-team-master/atomics/T1222.002/src/T1222.002.c | #include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
if (argc < 3) {
printf("usage: %s </path/to/dir> <filename>\n", argv[0]);
return 2;
}
const char *dirpath = argv[1];
const c... | 1,308 | 20.112903 | 88 | c |
atomic-red-team | atomic-red-team-master/atomics/T1055.004/src/Linux/T1055.c | /*
Atomic Red Team Shared Object Library
Uses code inspired by Zombie Ant Farm (https://github.com/dsnezhkov/zombieant)
Compilation
-------------
gcc -shared -fPIC -o ../bin/T1055.so T1055.c
*/
#include <stdio.h>
static void init(int argc, char **argv, char **envp) {
printf("Loaded Atomic Red... | 602 | 26.409091 | 82 | c |
atomic-red-team | atomic-red-team-master/atomics/T1574.012/src/atomicNotepad/pch.h | // pch.h: This is a precompiled header file.
// Files listed below are compiled only once, improving build performance for future builds.
// This also affects IntelliSense performance, including code completion and many code browsing features.
// However, files listed here are ALL re-compiled if any one of them is upda... | 563 | 39.285714 | 105 | h |
atomic-red-team | atomic-red-team-master/atomics/T1574.002/src/libcurl.c | #include <stdio.h>
#include <windows.h>
extern __declspec(dllexport) void curl_easy_setopt(void){ return; }
extern __declspec(dllexport) void curl_easy_cleanup(void) { return; }
extern __declspec(dllexport) void curl_easy_duphandle(void) { return; }
extern __declspec(dllexport) void curl_easy_escape(void) { return; }
... | 1,305 | 30.095238 | 76 | c |
atomic-red-team | atomic-red-team-master/atomics/T1547.006/src/T1547006.c | /*
* Source from https://linux.die.net/lkmpg/x121.html
* hello.c - The simplest kernel module.
*/
#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h> /* Needed for KERN_INFO */
MODULE_LICENSE("GPL");
int init_module(void)
{
printk(KERN_INFO "Atomic kernel module T1547.006 loaded.\n... | 513 | 21.347826 | 69 | c |
atomic-red-team | atomic-red-team-master/atomics/T1137.006/src/excelxll/excelxll/pch.h | // pch.h: This is a precompiled header file.
// Files listed below are compiled only once, improving build performance for future builds.
// This also affects IntelliSense performance, including code completion and many code browsing features.
// However, files listed here are ALL re-compiled if any one of them is upda... | 563 | 39.285714 | 105 | h |
atomic-red-team | atomic-red-team-master/atomics/T1137.006/src/wordwll/wordwll/pch.h | // pch.h: This is a precompiled header file.
// Files listed below are compiled only once, improving build performance for future builds.
// This also affects IntelliSense performance, including code completion and many code browsing features.
// However, files listed here are ALL re-compiled if any one of them is upda... | 563 | 39.285714 | 105 | h |
atomic-red-team | atomic-red-team-master/atomics/T1574.006/src/Linux/T1574.006.c | /*
Atomic Red Team Shared Object Library
Uses code inspired by Zombie Ant Farm (https://github.com/dsnezhkov/zombieant)
Compilation
-------------
gcc -shared -fPIC -o ../bin/T1574.006.so T1055.c
*/
#include <stdio.h>
static void init(int argc, char **argv, char **envp) {
printf("Loaded Atomic... | 606 | 26.590909 | 82 | c |
atomic-red-team | atomic-red-team-master/atomics/T1014/src/Linux/T1014.c | /*
* Source from https://linux.die.net/lkmpg/x121.html
* hello.c - The simplest kernel module.
*/
#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h> /* Needed for KERN_INFO */
MODULE_LICENSE("GPL");
int init_module(void)
{
printk(KERN_INFO "Atomic kernel module T1014 loaded.\n");
... | 505 | 20.083333 | 69 | c |
atomic-red-team | atomic-red-team-master/atomics/T1547.003/src/AtomicTest.c | /*
Atomic Test T1547.003
Author: traceflow
https://github.com/tr4cefl0w
Credits: https://github.com/scottlundgren/w32time
https://pentestlab.blog/2019/10/22/persistence-time-providers/
Resources: https://docs.microsoft.com/en-us/windows/win32/sysinfo/creating-a-time-provi... | 1,815 | 26.938462 | 120 | c |
atomic-red-team | atomic-red-team-master/atomics/T1040/src/macos_pcapdemo.c | #include <fcntl.h>
#include <getopt.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <net/bpf.h>
#include <net/if.h>
#include <netinet/tcp.h>
#include <netinet/udp.... | 7,905 | 25.353333 | 118 | c |
atomic-red-team | atomic-red-team-master/atomics/T1040/src/linux_pcapdemo.c | #include <errno.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <linux/filter.h>
#include <netinet/ether.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#inc... | 5,880 | 25.731818 | 80 | c |
pik | pik-master/third_party/fse_wrapper.h | // Copyright 2019 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
// Wrapper module to make the symbols of FiniteStateEntropy have a different
// name than the ones exported by Zstd. Unfortunately, FSE i... | 3,788 | 47.576923 | 79 | h |
pik | pik-master/third_party/fse_error_wrapper.h | // Copyright 2019 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
// fse_decompress.c uses a "#define FSE_isError" so we can't use that define in
// our wrapper for that specific file. This removes the #... | 625 | 35.823529 | 80 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.