sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
2145d307ec273d62b03ae09bf1b6be45741d8dec388df759d58008b7b79a2d91
C/C++
8,664
213
/*************************************************************************//*! * Title: tImage/distance_transform.h * Description: Implements drawing operations on images without the need * for the libRender library. * * Author: Brian Amberg, 2006-2007 * Computer Science Depart...
5b2a91103bbafeceb6fda27842708a04f7251bbd1679cbeecd29f72ab5e82d27
C/C++
8,677
270
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * 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 F...
2ac5fa1188f5af40e6ddb9c22e222af8b27828f78c57077924af485203864ab3
C/C++
8,709
237
#pragma once #include <ATen/Parallel.h> #include <ATen/NumericUtils.h> #include <ATen/cpu/vec/vec.h> #include <ATen/cpu/vec/functional.h> #include <ATen/native/ReductionType.h> #include <c10/util/irange.h> #include <ATen/OpMathType.h> #include <ATen/native/cpu/utils.h> namespace at::native { inline namespace CPU_CAPA...
b99f81492ba56ad0d17a24a3dec0ebfc4af1efa82ef5081b464710aaebdcb095
C/C++
8,742
275
/*************************************************************************** * * Author: "Jasenko Zivanov" * MRC Laboratory of Molecular Biology * * 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 Foun...
1ac007878b57b4adfb719cd1a96233fa98d36bfff84fe2423ea434c9fd3115d1
C/C++
8,772
298
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec_base.h> #include <ATen/cpu/vec/vec_mask.h> namespace at::vec { inline namespace CPU_CAPABILITY { #if defined(CPU_CAPABILITY_AVX2) && !defined(_MSC_VER) template <typename T, int dst_n, typename mask_t, int mask_n> struct VecMaskLoad< T...
5fa1904ea9ffc729a4a680d49e155218141e372849bbdef9f897723055626a53
C/C++
8,776
243
/* * Some useful stuff.... */ #define ABS(x) ((int)(x) < 0 ? (int)(-x) : (int)(x)) #define MAX(x,y) ((int)(x) < (int)(y) ? (int)(y) : (int)(x)) #define MIN(x,y) ((int)(x) < (int)(y) ? (int)(x) : (int)(y)) /* * convert hershey byte to coordinate */ #define COORD(x) ((int)(x) - (int)'R') /* * Max Number of Her...
1fe1b7fcd4b4935c5bb96265de7f47721b60de0b099aa0806c6486084a52de69
C/C++
8,781
328
/*========================================================================= Program: ALFABIS fast medical image registration programs Language: C++ Website: github.com/pyushkevich/greedy Copyright (c) Paul Yushkevich, University of Pennsylvania. All rights reserved. This program is part of ALFABIS: Ada...
74ad9ba96df4f9ce8ce554bd567308ecfa60010e2eeb542e6691bc48bc51cf78
C/C++
8,797
275
///////////////////////////////////////////////////////////////////////////// // Name: wx/wxLatexDC.h // Purpose: wxLatexDC // Author: Christoph Schmidt-Hieber, based on dcsvg by Chris Elliott and // dcpsg by Julian Smart, Robert Roebling, Markus Holzhem // Modified by: // Created: // Copyr...
bf3807695ca07f53f32d36077b9fc2551d82e59f1220e42797596cfe2048d68c
C/C++
8,804
236
/*************************************************************************************************** * Copyright (c) 2017 - 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in source and binary forms, with or without * modification, are p...
b8ab547cc97230cec6860049ad1085417fc5c876197fb5f5a16e00569341ee8b
C/C++
8,807
280
#pragma once // DO NOT DEFINE STATIC DATA IN THIS HEADER! // See Note [Do not compile initializers with AVX] #include <ATen/cpu/vec/vec256/vec256_16bit_float.h> #include <c10/util/irange.h> namespace at::vec { // See Note [CPU_CAPABILITY namespace] inline namespace CPU_CAPABILITY { #if defined(CPU_CAPABILITY_AVX2) ...
99f83fca7f70ebb3ebc34511eb6b9187f295d133ff2ffce33cfe95193670e392
C/C++
8,812
200
// Some stateful GPU libraries, such as cuDNN, cuBLAS, use handles to store states. // These handles are tied to device, and these libraries requires/recommends not to // share handles across host threads. // // These libraries recommend using one handle per host thread. We may not want to do // this because threads ar...
19c9bbbaecd20f261bbf09b6a6acb7ebcee8e474d3d0940763c50d2ab4ffeaee
C/C++
8,830
301
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <cassert> #include <cmath> #include <cstddef> #include <c...
fe11da89ea0d89a4b24a32bbb063e6e3519fa23e58c74269d82fa874b2a072ba
C/C++
8,830
294
/* * SSE2 implementation of vector oprations (64bit double). * * Copyright (c) 2007-2010 Naoaki Okazaki * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software w...
ecad978b2a7c94402924cd7efb9a8f60416c6ef3a4f0859daba0e95f1de705ad
C/C++
8,857
334
#ifndef CUDA_FFT_H_ #define CUDA_FFT_H_ #include "src/acc/cuda/cuda_settings.h" #include "src/acc/cuda/cuda_mem_utils.h" #include <cuda_runtime.h> #include <cufft.h> #ifdef DEBUG_CUDA #define HANDLE_CUFFT_ERROR( err ) (CufftHandleError( err, __FILE__, __LINE__ )) #else #define HANDLE_CUFFT_ERROR( err ) (err) //Do not...
0ec1366463240e70b19bb25c6346af723798834e5f919de4bfe5f1d869d66dae
C/C++
8,896
219
//*********************************************************************************************** // // Copyright (c) 1993-1997 Axon Instruments. // All rights reserved. // Permission is granted to freely to use, modify and copy the code in this file. // //************************************************...
fb1285fdcbee2ece40abf88bf9406240e123a9556e256c809de0ecbd4ab6454c
C/C++
8,901
264
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
06e36d144c6ce80629500cc23d864bb26e2a4c697cfe92854c9cf411fee46587
C/C++
8,918
309
#pragma once #include <ATen/core/TransformationHelper.h> #include <c10/util/Half.h> #include <c10/util/BFloat16.h> #include <c10/util/MathConstants.h> #include <c10/macros/Macros.h> #include <cmath> #include <limits> #include <optional> #include <type_traits> /** * Distributions kernel adapted from THRandom.cpp * ...
200004a54e3234faf9b95a901e6e7950062060de90b89be2287ae7b8522437c0
C/C++
8,964
254
///////////////////////////////////////////////// // // Name: Neuralynx Error Constants // // // File Name: NLX_Error.h // // // Description: // This is the file which holds all the error codes from // all NLX Classes // // Copyright 1999 @ Neuralynx, Inc. // // Author: Casey Stengel...
4f7d9e2c2880dff65834dd5df47e9d54526e1ddf5cb752dde4f13be7224304a8
C/C++
8,973
287
#ifndef __LIBGRAVIS_MESH_H__ #define __LIBGRAVIS_MESH_H__ /****************************************************************************** ** Title: Mesh.h ** Description: Mesh representation. ** ** Author: Jean-Sebastien Pierrard, 2005 ** Computer Science Department, University Basel (CH) **...
d8126d82e428e5e13a02f8c136d6dbbb5416e492b2db643994f1f37fc81ad19c
C/C++
9,006
264
/*************************************************************************** * * Author: "Takanori Nakane" * MRC Laboratory of Molecular Biology * * 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 Foun...
d0b0f66aec71db886bc10fbfbcf6fd5c021b21a21e5ce9125429e8e9c408dfae
C/C++
9,008
223
/* FILE event.h */ /* ******************************************************************** */ /* Add in missing stuff, either newer than this file, or obsolete: */ /* */ /* Only difference from event.h is that we've added TARGET_RE_[5-9] and TARGET_RE_[5-9].POLAR */ # define TARGET_RE_5 445 /* Pl...
e6acd890a6180bf24a55655d5709ef0f24c742859b884d78b195bd0a1f783a2d
C/C++
9,032
222
/* FILE event.h */ /* ******************************************************************** */ /* Only difference from event.h is that we should add TARGET_RE_[5-9] and TARGET_RE_[5-9].POLAR (?) */ /* ******************************************************************** */ /* READ IN event.h from reach here: */ /*...
65368e639d6511882ee7a89c1f906be814dbb76a12704a40ffb091fcc5a1286e
C/C++
9,035
324
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * 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 F...
fcfa704ad7965355398ca5d776714a60acbe66ba3379cdc1d5011b4df5de70fb
C/C++
9,054
337
/* Portions of this code are under: Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. */ #ifndef HIP_FFT_H_ #define HIP_FFT_H_ #include "src/acc/hip/hip_settings.h" #include "src/acc/hip/hip_mem_utils.h" #include <hip/hip_runtime.h> #include <hipfft/hipfft.h> #ifdef DEBUG_HIP #define HANDLE_HIPF...
3c913196359c230216f2fe7a53b9e098692c07e04953726466ff6208dde2d91f
C/C++
9,070
298
/* * SSE/SSE3 implementation of vector oprations (32bit float). * * Copyright (c) 2007-2010 Naoaki Okazaki * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwar...
3658f045e368fd8817b8b226597ad12435991656b50711b8e02c163bdc37b6fd
C/C++
9,075
208
#pragma once #include <ATen/core/Tensor.h> #include <ATen/TensorUtils.h> #include <c10/util/strides.h> #include <utility> #include <vector> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/CPUFunctions.h> #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/bmm.h> #include <ATen/ops/e...
b17128625016cf9c6011d2ce2d9b55b84cc428657bfe5fa8e7490ca354d733b1
C/C++
9,094
358
#ifndef NEW_STACK_HELPER_H #define NEW_STACK_HELPER_H #include "buffered_image.h" #include <src/jaz/math/t_complex.h> #include <src/jaz/math/fft.h> #include <vector> #include <omp.h> class NewStackHelper { public: template <typename T> static BufferedImage<T> extractSliceZ(const RawImage<T>& img, int z); ...
0dfd0cf92f449b69b259ecd77395e18ebb52515a6d9923d2eb001e47f0336a05
C/C++
9,123
246
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * 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 F...
e106c00241c661838d73c6aaf785e63858a8fd8a446a9990d22d0b7383ac297e
C/C++
9,153
304
/* Implements AdaBoost learning and classification. Implemented by Hongzhi Wang 07/18/2010 A few improvements that significantly speedup the code were made by Paul Yushkevich on 07/22/2013. */ #include <stdio.h> #include <vector> #include <string> #include <cmath> #include <algorithm> #include<time.h> using namespac...
6629c251f1e30e52f22de8be0d150c2c43b7bf6c7588ee83b1ef08691bdc210a
C/C++
9,186
250
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
8764b8844f83a2cfb7c53b7e490f4b5df234c4cd78ab42ef0dfd04f84ad14541
C/C++
9,197
232
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2011-2018 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
8e7fddbbe4654f25c4a534686849bd9949432b3827fc56c2bf856c20a4c6d9df
C/C++
9,218
254
///////////////////////////////////////////////// // // Name: Neuralynx Error Constants // // // File Name: NLX_Error.h // // // Description: // This is the file which holds all the error codes from // all NLX Classes // // Copyright 1999 @ Neuralynx, Inc. // // Author: ...
71475229496b67754b68d6c90d55b6db8a6f3e07cb1081c823d3bff62807fe35
C/C++
9,224
347
#ifndef MKL_FFT_H_ #define MKL_FFT_H_ #include <vector> #include <src/complex.h> /* #include <mkl.h> #ifdef DEBUG_MKL #define HANDLE_MKL_ERROR( err ) (MKLHandleError( err, __FILE__, __LINE__ )) #else #define HANDLE_MKL_ERROR( err ) (err) //Do nothing #endif static void MKLHandleError(MKL_LONG err, const char *fil...
caccb3cae5d2fbfcbb320c0f68e8b690eb3e651f87a2118ece957bf7772ec16e
C/C++
9,226
235
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
4adcf41b6524915dafe2950a9603eb937d6931a32449fb2f1fa1153571b09957
C/C++
9,241
266
// This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // This program is distributed in the hope that it will be use...
e6594786ca3fe2540775580475987f461a22f7df5292e592c86551a06df4a95f
C/C++
9,253
202
// Header file for the stimfit namespace // Routines for measuring basic event properties // last revision: 24-Jan-2011 // C. Schmidt-Hieber, christsc@gmx.de // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Fre...
203c4f7fc74b5598438614c42e7ef0a9d1388785ca6ce788ea579101f2fa1e0f
C/C++
9,285
221
#pragma once #include <ATen/Tensor.h> #include <c10/core/Device.h> #include <c10/cuda/CUDACachingAllocator.h> #include <c10/cuda/CUDAGraphsC10Utils.h> #include <c10/cuda/CUDAGuard.h> #include <c10/cuda/CUDAStream.h> #include <c10/util/flat_hash_map.h> #include <limits> #include <optional> #include <stack> #include <v...
c573d2716e8cd1381893b66f9346036dfad9a751590707979bac5c01690a20e2
C/C++
9,304
309
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
e35878eb2355b79fb48bedb3e80d7b2b4b7dc58b85265306a68b659c6bbb92bb
C/C++
9,351
219
// IgorBin.h -- structures and #defines for dealing with Igor binary data. #ifdef __cplusplus extern "C" { #endif // All structures written to disk are 2-byte-aligned. #if GENERATINGPOWERPC #pragma options align=mac68k #endif #define C_ASSERT(e) extern void __C_ASSERT__(int [(e)?1:-1]) #if 1 // def ...
a16430f942945c20062b1a788fd0a84c23a07a6813128d767bbfcc8581d9f6ec
C/C++
9,369
281
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * 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 F...
521b1bd09594f62e118663b765778b3ef6e7ce1f171bb801609782eb961f41f8
C/C++
9,417
417
#ifndef SIMILARITY_H #define SIMILARITY_H #include "raw_image.h" #include <src/jaz/math/fft.h> #include <src/macros.h> #include "padding.h" class Similarity { public: template<typename T> static BufferedImage<T> convolution(BufferedImage<T>& i0, BufferedImage<T>& i1); template<typename T> static Buffer...
a9360ca9c1813e020ade8b40219163e869d3539ec87745076691fb98b1e72be4
C/C++
9,493
344
#pragma once #include <ATen/OpMathType.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/TransposeType.h> #include <c10/util/complex.h> #include <c10/core/ScalarType.h> #include <c10/core/Scalar.h> #include <ATen/Config.h> namespace at::native::cpublas { namespace internal { void normalize_last_dims( ...
2a8250f7b8f9cf273ad131bb1b50682873e24808177ae4e0a9501e49be281924
C/C++
9,520
300
#ifndef _NLX_CODE_H_69696913 #define _NLX_CODE_H_69696913 //#pragma pack(push, before_nlx_code) //#pragma pack(1) #include "compatibility.h" #include "Nlx_DataTypes.h" //returns whether already opened CFile contains a nlx header (aka '########') BOOL HasHeader(std::fstream & File_In); BOOL HasHeader(int fd); //Disp...
da649d6d0d8145cb068b634762a349494bff9b8a95258d015e557525a2b5a4e5
C/C++
9,548
306
/****************************************************************************** ** Title: io/array/a.h ** Description: Input/Output for tArrays. ** ** Author: Brian Amberg, 2006 ** Computer Science Department, University Basel (CH) ** **************************************************...
2134b11c60d315237e8ebaf95ac4ec47a5fc48ae35cc21be238bf75e64dd5123
C/C++
9,603
206
// Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
d104eba0548dd90abc4c9625071885c5afa8967924cd13a71c17be42888691c0
C/C++
9,628
271
/* * This file is part of Healpix_cxx. * * Healpix_cxx is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Healpix_cxx is...
82b37a5b59fb6de9e3dc5da94803a997fb3abe7d58e7441f00ff836a5783edc0
C/C++
9,648
374
/* * This is a convenience header file providing compatibility utilities * for supporting different minor versions of Python 3. * It was originally used to support the transition from Python 2, * hence the "3k" naming. * * If you want to use this for your own projects, it's recommended to make a * copy of it. We...
65561663685f0ea82198f1e8ba03a380553223744b88dc2ed869285943e7e351
C/C++
9,705
262
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2007-2009 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2009-2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0...
f6927b36bd820ffd4f4428fc225cb2e1481de1d7f04eea33bbd089437b92e8cc
C/C++
9,712
301
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec256/vsx/vsx_helpers.h> #include <ATen/cpu/vec/vec_base.h> namespace at { namespace vec { // See Note [CPU_CAPABILITY namespace] inline namespace CPU_CAPABILITY { template <> struct is_vec_specialized_for<int64_t> : std::bool_constant<true> {}...
ba2c627c49347a9418136d9eeff9b848cc805f1f6dbd5ecea05f2613c3ff9331
C/C++
9,776
271
#ifndef __itkOrientedRASImage_h_ #define __itkOrientedRASImage_h_ #include "itkImage.h" namespace itk { /** * Oriented image with RAS physical coordinates (as opposed to LPS) */ template <class TPixel, unsigned int VImageDimension> class ITK_EXPORT OrientedRASImage : public Image<TPixel, VImageDimension> { public...
e320d91fd5926ef8e2090a0d51f3108c1d3afb28b911a562c0f65cd275a3886d
C/C++
9,817
232
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a cop...
8c301f51d568e57d188cd086023dc808272cd46ec9e078f7ee3101f1a6400aaa
C/C++
9,820
300
#ifndef _NLX_CODE_H_69696913 #define _NLX_CODE_H_69696913 //#pragma pack(push, before_nlx_code) //#pragma pack(1) #include "compatibility.h" #include "Nlx_DataTypes.h" //returns whether already opened CFile contains a nlx header (aka '########') BOOL HasHeader(std::fstream & File_In); BOOL HasHeader(int f...
5b9b4ec844ddd26d56d0675a6797493fc7ca941b6c4e91b6dd5d99966ae5aa98
C/C++
9,861
209
#ifndef NUMPY_CORE_INCLUDE_NUMPY_RANDOM_DISTRIBUTIONS_H_ #define NUMPY_CORE_INCLUDE_NUMPY_RANDOM_DISTRIBUTIONS_H_ #ifdef __cplusplus extern "C" { #endif #include <Python.h> #include "numpy/npy_common.h" #include <stddef.h> #include <stdbool.h> #include <stdint.h> #include "numpy/npy_math.h" #include "numpy/random/bi...
6a4f4f49970e2454a57b9dabca28a5b7cb802d56e00ec53ad15177568bc87764
C/C++
9,881
285
/*************************************************************************** * * Author: "Jasenko Zivanov" * MRC Laboratory of Molecular Biology * * 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 Foun...
ade18333bc6fd29180ed061c6fdf08d2fa81522e71c6af5160523dbc45fcc48c
C/C++
9,922
311
#pragma once // Shared code for bfloat16 and float16. // DO NOT DEFINE STATIC DATA IN THIS HEADER! // See Note [Do not compile initializers with AVX] namespace at::vec { inline namespace CPU_CAPABILITY { // Shared implementation between Vectorized<c10::Half> and // Vectorized<c10::BFloat16>. Uses CRTP to allow deriv...
5115d5a8ced36a20b8cec034812f7b0d2ac20d511a147f9beea9b0ef27d94b56
C/C++
9,952
232
// Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
58267c98bac8dafe79ff5a65d1480f89f3ac8131311958ae4e2c9dc1e7ec3265
C/C++
10,034
301
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2012 Désiré Nuentsa-Wakam <desire.nuentsa_wakam@inria.fr> // Copyright (C) 2012 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. ...
c1b8eed27eaa346b91abbddac32894e67aa72d9b549b8a9543d867ebee545615
C/C++
10,039
309
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * 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 F...
da9bdbadca6dd077759a9eff5a449c2ac7d04ccc352b72a8632fc2213e6d02dd
C/C++
10,058
313
/*************************************************************************** * * Author: "Jasenko Zivanov" * MRC Laboratory of Molecular Biology * * 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 Foun...
f1fe9a2136806068edae1170856f54301ba16f71e4f94bce6bea66d3238b17d3
C/C++
10,073
301
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec256/vsx/vsx_helpers.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/util/qint32.h> #include <array> // This file defines Vectorized<> for the quantized types. // // // Currently, we simply use these classes as efficient converters between...
5d3c6afa2d233016f1830f3a505ebe9a679abd20eb30d8553bcc338e7a1c288f
C/C++
10,085
268
#ifndef DIFF2_IMPL_KERNELS_H_ #define DIFF2_IMPL_KERNELS_H_ #include <vector> #include <iostream> #include <limits> #include <chrono> #include <algorithm> #include <cassert> #include <sycl/sycl.hpp> #include "src/acc/acc_projectorkernel_impl.h" #include "src/acc/sycl/sycl_dev.h" #include "src/acc/sycl/sycl_kernels/sy...
a48b59c564758a08750cffc20a849bd085ff1ad7e9c2b1266ea294f27d4e5aa5
C/C++
10,198
410
/*************************************************************************//*! * Title: tImage/operators.h * Description: Implements operators on tImages * * Author: Brian Amberg, 2006-2007 * Computer Science Department, University Basel (CH) *************************************************...
40d9ca6042bdfd8f724d6e4ca97f0994d7a8a7b993c5f312452aa3df642eb538
C/C++
10,224
264
#pragma once #include <c10/macros/Macros.h> #ifdef __OBJC__ C10_DIAGNOSTIC_PUSH_AND_IGNORED_IF_DEFINED("-Wdeprecated-declarations") #include <Metal/Metal.h> C10_DIAGNOSTIC_POP() typedef id<MTLLibrary> MTLLibrary_t; typedef id<MTLFunction> MTLFunction_t; typedef id<MTLComputePipelineState> MTLComputePipelineState_t; typ...
a16fb7dfc3a1fd1b1aeb99c40bcc24c14b175bc151296a2d4ea65c07c184a1d8
C/C++
10,241
312
/***************************************************************************** ** ** cfs.h ** 78 cols --->* ** Header file for MSC version of CFS functions. ** Definitions of the structures and routines for the CFS filing * ** system. This is th...
1ec858bbb9ed8a8bb553232df016437c080b2670f00453b4de297c286eb78c21
C/C++
10,242
259
// Copyright 2008 Google Inc. // All Rights Reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions a...
5011c2ddb217cdfa02917e395080b78ed6320a0b976954426afb6127ddc8135f
C/C++
10,246
378
#pragma once // DO NOT DEFINE STATIC DATA IN THIS HEADER! // See Note [Do not compile initializers with AVX] #include <ATen/cpu/vec/intrinsics.h> // clang-format off #include <ATen/cpu/vec/vec_base.h> #include <ATen/cpu/vec/vec512/vec512_float.h> #include <ATen/cpu/vec/vec512/vec512_bfloat16.h> #include <ATen/cpu/ve...
39e57c184071b1cc8fc2b75a8f77d55cfcf077e0318c9829e8fa919c2d999f46
C/C++
10,255
332
#pragma once #include <optional> #include <string_view> #include <ATen/Config.h> #include <ATen/native/DispatchStub.h> // Forward declare TI namespace at { class Tensor; struct TensorIterator; namespace native { enum class TransposeType; } } namespace at::native { enum class LapackLstsqDriverType : int64_t { Gels...
104375f6433f1c8ff728dd742820962aed29ddff85ef87146be444268ad00015
C/C++
10,260
287
#pragma once #include <ATen/MemoryOverlap.h> #include <ATen/Tensor.h> #include <c10/core/DispatchKey.h> #include <c10/core/DispatchKeySet.h> #include <c10/core/MemoryFormat.h> #include <c10/core/TensorImpl.h> #include <c10/util/ArrayRef.h> #include <c10/util/Exception.h> #include <c10/util/Metaprogramming.h> #include <...
f7becb291ce1c7270f4fec9ca24609b3e84665a3bde7178f501dbc69325988e1
C/C++
10,343
275
#pragma once #include <ATen/core/Tensor.h> #include <ATen/native/ResizeCommon.h> #include <ATen/EmptyTensor.h> #include <ATen/TensorUtils.h> #include <c10/core/CPUAllocator.h> #include <c10/core/SymBool.h> #include <utility> namespace at::native { // TODO: make all operations that resize given outputs use this fu...
4d9b5dc623c78eb6bd045e51ac26cacc8ffb47b65b40a81594dde1e7ffbc9a08
C/C++
10,399
346
#pragma once #include <ATen/core/ATen_fwd.h> #include <ATen/core/boxing/BoxedKernel.h> #include <ATen/core/stack.h> #include <c10/core/DispatchKeySet.h> #include <c10/util/TypeList.h> #include <c10/util/intrusive_ptr.h> #include <atomic> #include <memory> #include <type_traits> namespace c10 { using Stack = torch::j...
5a4c28cc140f9ad6ba694518719cf1d4f63d5c271fcf65045f4c6026d07d21a9
C/C++
10,401
291
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ...
b3dcbe6b9f508552cae5436e27a5eecb5a9e52e8a7291fa9dd9f8148ed166265
C/C++
10,407
298
#pragma once #include <algorithm> #include <cmath> #include <cstdint> #include <utility> #include <ATen/native/GridSamplerUtils.h> namespace at::native { using detail::GridSamplerInterpolation; using detail::GridSamplerPadding; // Unnormalizes a coordinate from the -1 to +1 scale to its pixel index value, // where...
2399af23b9f3118c3d34feeddad5f47f5523b1a839fd847ce7f1c401c7272232
C/C++
10,415
319
#pragma once #include <ATen/cpu/vec/vec_base.h> #include <ATen/cpu/vec/vec_n.h> namespace at::vec { inline namespace CPU_CAPABILITY { /** * The `VecMask` class provides a convenient interface for working with * vectorized masks in SIMD operations. It encapsulates a `Vectorized<T, N>` * mask that can be directly us...
a253e82c1960f8aa7594a51a8ac606a6235738c923f12d67a7742e88bf07ed63
C/C++
10,507
131
//----------------------------------------------------------------------------- // DEAR IMGUI COMPILE-TIME OPTIONS // Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure. // You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateContext()...
c63dd3c8cd4dbedb019ce102484edbe09d307eb9e81f28024b38aee061220844
C/C++
10,580
437
#ifndef __LIBGRAVIS_T_ARRAY_H__ #define __LIBGRAVIS_T_ARRAY_H__ /****************************************************************************** ** Title: tArray.h ** Description: Implements a one dimensional array with reference counting. ** ** Author: Jean-Sebastien Pierrard, 2005 ** Comput...
b23559ad43713aa52ce3fa2ef8ac33043b65e210233554c504c1dc40534cec9d
C/C++
10,629
351
#pragma once #include <ATen/CollapseDims.h> #include <ATen/Parallel.h> #include <ATen/TensorUtils.h> #include <c10/util/irange.h> #include <cstring> #include <limits> namespace at { /* * The basic strategy for apply is as follows: * * 1. Starting with the outermost index, loop until we reach a dimension where * ...
59f76c6b495d164de510d35322d0a420751bde73a2d5e210fac0461ee42141bc
C/C++
10,643
220
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a cop...
1b3679d1f04593490958cbba8cf656b0dbe212a57df6e30954c41dcfeac80647
C/C++
10,754
272
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * 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 F...
ee7520b959c6f73284e3f585df580524550861481642c5e10caac4b07c824f79
C/C++
10,792
379
// Original TunableOp is from onnxruntime. // https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/core/framework/tunable.h // https://github.com/microsoft/onnxruntime/tree/main/onnxruntime/core/providers/cuda/tunable // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // // Adapting Tu...
2dff801d2107a07220a24a88fe0331e5638f9679e8efb9deabeb464e5b166132
C/C++
10,895
272
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2017 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
2898493ab200b3a7855a76db9f403eb734fabb0f86af9a8f8492cbef0d46d125
C/C++
10,901
247
#pragma once #include <cstdint> #include <memory> #include <type_traits> #include <ATen/core/jit_type_base.h> #include <optional> namespace c10 { using DynamicTypeBits = std::uint32_t; #define DYNAMIC_TYPE_BIT(x) (1u << x) constexpr DynamicTypeBits kDynamicCovariantTypeBit = DYNAMIC_TYPE_BIT(31); constexpr Dynamic...
62592ca7ddd09898fe1ebef232e3d3b7cd17d509cf8d9b4db412c470ea10ccf4
C/C++
10,953
280
#pragma once #include <ATen/core/Variadic.h> #include <ATen/core/function_schema.h> #include <ATen/core/jit_type.h> #include <ATen/core/stack.h> #include <c10/core/DispatchKeySet.h> #include <c10/util/Bitset.h> #include <c10/util/irange.h> #include <cstdint> namespace c10 { namespace impl { // Take a DispatchKeySet...
5d4ed55474aa8a10aba8e6ea7a7df8ad6f14f39f84915ba3041815284daeec2f
C/C++
11,063
364
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * 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 F...
649980208caef4857e25009a1b38e9b9b2b592f569a17e6b84ba435692cacee0
C/C++
11,074
447
#ifndef TOMO_EXTRACTION_HELPER_H #define TOMO_EXTRACTION_HELPER_H #include <src/jaz/gravis/t3Vector.h> #include <src/jaz/gravis/t4Matrix.h> #include <vector> #include <string> #include <omp.h> #include <src/jaz/math/fft.h> #include <src/jaz/image/raw_image.h> #include <src/jaz/image/interpolation.h> #include <src/jaz...
1d327041d5896049f25c579a1548e932878ad4291649e7690111d7d623e0e449
C/C++
11,212
308
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2007-2010 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If ...
2d4bf501cd347fb690429f3e7fdad6b9e0de68492534aaa13589c3d07fb688f6
C/C++
11,269
365
#ifndef WAVG_KERNEL_H_ #define WAVG_KERNEL_H_ #include <vector> #include <iostream> #include <fstream> #include "src/acc/cpu/cpu_settings.h" #include "src/acc/acc_projector.h" #include "src/acc/cpu/cpu_kernels/cpu_utils.h" #include "src/acc/cpu/cpu_kernels/helper.h" namespace CpuKernels { // sincos lookup table opt...
286e6c8a3a43d1ef4071628b0210602ef76c7a96f9489fb90b2ebab901f3efb9
C/C++
11,277
300
#pragma once #include <ATen/Tensor.h> #include <tuple> #include <type_traits> #include <utility> namespace at::functionalization { // See Note [Functionalization Pass In Core] enum class InverseReturnMode { /// Specifies that functional inverses should always return a view. AlwaysView, /// Specifies that fun...
7f9f6f22e6d0b51f5a9afe014546c821df8628465ddda88b278d8418c95794fa
C/C++
11,306
357
/* Portions of this code are under: Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. */ #ifndef HIP_UTILS_CUB_H_ #define HIP_UTILS_CUB_H_ #include <hip/hip_runtime.h> #include "src/acc/hip/hip_settings.h" #include "src/acc/hip/hip_mem_utils.h" #include <stdio.h> #include <signal.h> #include <vec...
258c2e9a0083be6dba4bd862e0b3a0343e2d62672afbd8ff30b77ce495eaaa57
C/C++
11,320
286
/* * This file is part of Healpix_cxx. * * Healpix_cxx is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Healpix_cxx is...
4b30649d2981a7196555eebf0b40b178067227514a06cc01fbf036451a1f3bf2
C/C++
11,340
289
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <ATen/cuda/CUDAContext.h> #include <ATen/cuda/tunable/TunableOp.h> #include <ATen/cuda/tunable/GemmCommon.h> #include <c10/util/StringUtil.h> #include <fmt/printf.h> #include <algorithm> #include <cst...
5d282fe78ec0b9d56b13bfe8407063901e368b47a10e56f49d385a736b1070f9
C/C++
11,345
424
#ifndef ACC_ML_OPTIMISER_H_ #define ACC_ML_OPTIMISER_H_ #include "src/acc/acc_ptr.h" #ifdef ALTCPU #include <tbb/spin_mutex.h> #elif _SYCL_ENABLED #include "src/acc/sycl/sycl_virtual_dev.h" using deviceStream_t = virtualSYCL*; #endif /* #ifdef ACC_DOUBLE_PRECISION #define XFLOAT double #else #define XFLOAT float #en...
0897bbb0e850572cf20e29abf231282197c5937cace8947c02f8c63892b58a1e
C/C++
11,350
366
#pragma once #include <ATen/core/jit_type_base.h> #include <ATen/core/ivalue.h> namespace c10 { template<class T> decltype(auto) getTypePtr(); std::string toString(const Type& type); template<class T> List<T>::List(c10::intrusive_ptr<c10::detail::ListImpl>&& elements) : impl_(std::move(elements)) {} template<class...
ce09e7eeab75b927ae8cdb5a0d6b978c31356e185aa786ea05ff0805f37cfe7c
C/C++
11,398
193
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010-2016 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2010 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If ...
51ffebf37f497240591986feca992f03330312097962864a3dc3ab119ecd7a10
C/C++
11,425
434
/*************************************************************************** * * Author: "Jasenko Zivanov" * MRC Laboratory of Molecular Biology * * 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 Foun...
fd129380d20e08044a48da4157924ee129d6a6ec7bdc5c39c1d2f8407194a4a2
C/C++
11,443
347
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec256/vsx/vsx_helpers.h> #include <ATen/cpu/vec/vec_base.h> namespace at { namespace vec { // See Note [CPU_CAPABILITY namespace] inline namespace CPU_CAPABILITY { template <> struct is_vec_specialized_for<int32_t> : std::bool_constant<true> {}...
3dc1130fdc76f7676baffb72ea638935c093f4550c7ad193cf6b22a9f5563166
C/C++
11,490
349
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * 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 F...
30ed50a7894b6a29d1ae4e320c5672b7c83ef923c70e4c87330bb5be5cf256bd
C/C++
11,492
456
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * 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 F...
a04017a66a7c9fa04da6934439d589e52171e93b131f1f4ea22973bbaa6f77b0
C/C++
11,523
294
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
037ee2bac8f8f5a7a4ff75d3c785e3d6b8d9de1bcfb22c8f6b5745c055891af5
C/C++
11,534
358
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2017 Kyle Macfarlan <kyle.macfarlan@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obt...
89a4348bccaa42db6393640ef65bc83b818edfb9ab92d8e39a2ace4db44dbc08
C/C++
11,651
318
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2008, 2010 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, Yo...