sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
5d82af153662f43a1c5c3525837ef94bb7778da263a488e809408cfc06b6153e
C/C++
203
7
/** * Collects all external functions used by cython * (eliminates compiler warnings) */ double upper_bessel_k(double, double, double, double); double lower_bessel_k(double, double, double, double);
7058ab3d195a1f01266e9654b9d7454a8c4d49922ddbdd01b3e31a49b8811098
C/C++
224
12
#ifndef FUNCTIONS_H #define FUNCTIONS_H class functions{ public: static bool fileExists (const std::string&); static void tokenize(const string& str, vector<string>& tokens, const string& delimiters = " "); }; #endif
9869aee921445fdee328cacc02648b6f3c569f18bc7a14b26933b31f159bdd7d
C/C++
224
8
#include <string.h> #if defined (_WIN32) || defined(_WIN64) || defined(_WINDOWS) #define strcasecmp _stricmp #endif MPLchtype _R_mpl_str2chtype(const char *chtypename); MPLgap_t _R_mpl_str2gaptype(const char *chtypename);
17ee37e1eb41d5c8ea209e44334f30c500c1afc12e03ae7808971fb6b5953ec3
C/C++
234
14
// // testwagner.h // morphylib // // Created by mbrazeau on 21/05/2017. // Copyright © 2017 brazeaulab. All rights reserved. // #ifndef testwagner_h #define testwagner_h int test_small_wagner(void); #endif /* testwagner_h */
a5a701a6bbb521ca65d339cf8972f8c289ed35f91eb8c0e31dea0311321ce6b2
C/C++
240
12
#pragma once // Standard libs #include <stdio.h> #include <cstdlib> // Cuda #include "cuda_runtime.h" #include "libs/cuda/helper_cuda.h" #include "libs/cuda/helper_math.h" // Function to check cuda requirements bool initCuda();
f0b706255ab84eba7051b17f4f92372cd3db74e545d31f7d46b082b2d62bcdec
C/C++
242
9
// Generated by using Rcpp::compileAttributes() -> do not edit by hand // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #ifndef RCPP_STAAR_H_GEN_ #define RCPP_STAAR_H_GEN_ #include "STAAR_RcppExports.h" #endif // RCPP_STAAR_H_GEN_
a221f071d58143d0790a6dab44ad14b8cdcc7912ea5e6d7368b8748a6059d5b7
C/C++
246
15
#pragma once #include <vulkan/vulkan.h> #include <string> #include "Camera.h" struct FrameInfo { Camera& camera; uint32_t frameIndex; VkExtent2D sceneExtent; VkCommandBuffer commandBuffer; VkDescriptorSet descriptorSet; };
e14890848e4444a6dd9a43e903fa14942872830b3d7d13b5cac5eb7fcb7efbf5
C/C++
266
15
// // testwagner.h // morphylib // // Created by mbrazeau on 21/05/2017. // Copyright © 2017 brazeaulab. All rights reserved. // #ifndef testwagner_h #define testwagner_h int test_small_wagner(void); int test_wagner_extended(void); #endif /* testwagner_h */
b7072f80c7b95b4dd102b15c69e332c54e3642db08ece31d20af20b738f0b6a9
C/C++
278
10
#ifndef STORAGE_H #define STORAGE_H #include <vector> void add_to_arr(int x, int j, int beta,std::vector<unsigned> &arr); int extract_from_arr(int j,int beta,std::vector<unsigned> &arr); std::vector<int> get_orig_arr(int beta,std::vector<unsigned> &arr,int Nelements); #endif
80ef35004f83048e4c760b1185478d628033dce70511dc9d0cb618ca6aaa0775
C/C++
304
15
#ifndef __version_h__ #define __version_h__ // update this with the tag name every time the code is tagged // for example: // set MRTRIX_BASE_VERSION to "3.3.0" // git add core/version.h // git commit // git tag -s 3.3.0 // git push --follow-tags #define MRTRIX_BASE_VERSION "3.0.8" #endif
b7ada9521253f9c6f5a674bb789c7f3ab6638733ab0ad4a26be849e3cf3d0f50
C/C++
304
15
#pragma once #include <string> #include <vector> #include "Core.h" #include "Shader/Ray.h" #include "Tracer/Tracer.h" namespace rayx { void RAYX_API writeCsv(const std::filesystem::path& filepath, const Rays& rays); Rays RAYX_API readCsv(const std::filesystem::path& filepath); } // namespace rayx
d4fe652c4085813379b3810446556464b414b1776480dbd244505c120ee8f4e1
C/C++
314
7
#ifndef _TRIMMED_FILTER_H_ #define _TRIMMED_FILTER_H_ int trimmed_filter(const double *arr, double *output, int n, const char* type, int w, int alpha = 0, const double* h = 0); int trimmed_filter_max_min_indexes(const double *arr, int *output, int n, const char* type, int w); #endif /*_TRIMMED_FILTER_H_*/
614e28d902db267196805f273ac3a9b46cd85ff50c35bc1c53d4770e22be0253
C/C++
318
13
#pragma once #include "Core.h" #include "Ray.h" namespace rayx { // TODO: doku RAYX_FN_ACC glm::dvec3 RAYX_API cubicPosition(const glm::dvec3& __restrict rayPosition, const double alpha); RAYX_FN_ACC glm::dvec3 RAYX_API cubicDirection(const glm::dvec3& __restrict rayDirection, double alph); } // namespace rayx
441d0df51d9d9be29e84bf1b397458cca23d4e72cf79dcffb855e1170b77d9a0
C/C++
320
15
#pragma once double COORDS[][3] = { {0.0, 0.0, 0.0}, {1.0, 0.0, 0.0}, {0.5, 0.866025403784, 0.0}, {0.0, 0.0, 1.0}, {1.0, 0.0, 1.0}, {0.5, 0.866025403784, 1.0}, }; steps::vertex_id_t::value_type TETINDICES[][4] = { {0uL, 1uL, 2uL, 3uL}, {1uL, 4uL, 3uL, 2uL}, {2uL, 4uL, 5uL, 3uL}, };
5d21443939a20f0244daae0c822dafde83d8138f18b5c9440ea067f6fdb6beec
C/C++
339
17
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <string> namespace starspace { // In-place normalization of UTF-8 strings. extern void normalize_text(std...
614dcb247452ba4f74f3a8be44e0829d5291bb3ef88a9eddbf6e43d957915a16
C/C++
339
18
/* * File: qvoronoi.h * Author: peter * * Created on 04 March 2009, 15:38 * This file is not part of the official qhull distribution. * (p) added again to the new QHULL distribution (2015.2) */ #ifndef _QVORONOI_H #define _QVORONOI_H int qvoronoi_test(int v); int run_qvoronoi(FILE *fin,FILE *fout); #endi...
33bc0cafa4ccf4a7a34cc818b0a5045bebbadd3fc9dd2dff827512c55794be97
C/C++
359
14
#pragma once #include <filesystem> #include "Beamline/Beamline.h" #include "Core.h" namespace rayx { // This is the central point where the beamline is loaded from an RML file. // Any future plans for other formats, will *not* use this Importer. It's intended for XML. RAYX_API Beamline importBeamline(const std::fil...
be9706d32b2d44ae252fd56a16bcaee96dad4df5fc9d2e05c85495158931b826
C/C++
361
23
/* * rtwtypes.h * * Code generation for function 'GPExpand' * * C source code generated on: Sun Aug 23 01:10:53 2015 * */ #ifndef __RTWTYPES_H__ #define __RTWTYPES_H__ #include "tmwtypes.h" /* * TRUE/FALSE definitions */ #ifndef TRUE #define TRUE (1U) #endif #ifndef FALSE #define FALSE (0U) #endif #endif /...
ebb8573aac4b99603180e35cdf33369c8469226b8d5a7672c9f6119af9689f10
C/C++
361
23
/* * rtwtypes.h * * Code generation for function 'GPReduce' * * C source code generated on: Sun Aug 23 01:10:26 2015 * */ #ifndef __RTWTYPES_H__ #define __RTWTYPES_H__ #include "tmwtypes.h" /* * TRUE/FALSE definitions */ #ifndef TRUE #define TRUE (1U) #endif #ifndef FALSE #define FALSE (0U) #endif #endif /...
407a84a4ff7e278ac129cd8e41769d34e4abdd24a7bac123d98c53d4477bd615
C/C++
363
11
#pragma once #include "Core.h" #include "InvocationState.h" namespace rayx { RAYX_FN_ACC void traceSequential(const int gid, const ConstState& __restrict constState, MutableState& __restrict mutableState); RAYX_FN_ACC void traceNonSequential(const int gid, const ConstState& __restrict constState, MutableState& __res...
c81cf558542de9bd2a936ac6df9ff82da485e19b655d91f5accd22b95ec517bb
C/C++
376
18
// // testfitch.h // MorPhy2 // // Created by mbrazeau on 16/05/2017. // Copyright © 2017 brazeaulab. All rights reserved. // #ifndef testfitch_h #define testfitch_h int test_small_fitch(void); int test_weighted_small_fitch(void); int test_small_fitch_na(void); int test_small_fitch_withmissing(void); int test_bul...
625ded406f104e00a80521ab641277f3793833e3213cb54daadebae7bce38d4e
C/C++
400
27
/* * File: qconvex.h * Author: peter * * Created on November 21, 2012, 9:18 PM */ #ifndef QCONVEX_H #define QCONVEX_H /* * File: qconvex.h * Author: peter * * Created on 04 March 2012, 15:38 * This file is not part of the official qhull distribution. * (v) added again to the new QHULL distribution (...
cd9f0b5987767f16e812cae3ef5fe70014ea22eb99777a8b2a8dbef23b748686
C/C++
402
23
#ifndef FILTER_H_ #define FILTER_H_ //#define SWAP(a,b) temp = (a);(a) = (b);(b) = temp; template <class T> void SWAP(T &a,T &b) { T temp; temp = a; a = b; b = temp; } //abstract filter class class Filter { public: virtual int process(const double *input_vector, double *output_ve...
08f791526e95c5aa7bbf782d7029b41a7da26b29f294b77544ccff71d78952d0
C/C++
408
17
#ifndef __HW_CONFIG_IONRATES_H__ #define __HW_CONFIG_IONRATES_H__ #define NB_IONCHAN 6 #define NB_IONRATE 5 #define IONRATE_TABLE_VMIN -76.0 #define IONRATE_TABLE_VMAX 52.0 #define IONRATE_TABLE_DEPTH 2048 #define IONRATE_TABLE_DEPTH 2048 #define IONCHAN_ID_NA 0 #define IONCHAN_ID_KD 1 #define IONCHAN_ID_...
498fd5b923281ac449ff49c5da87c97c83845ed6fcae45579f0d71b452900edb
C/C++
432
27
#ifndef STD_H #define STD_H using namespace std; #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <map> #include <algorithm> #include <vector> #include <deque> #include <math.h> #include <ctype.h> #inclu...
b829ef3747b1ba941e08ce03014cbdd92dda892fa1b979442c321fa58c13f15d
C/C++
443
15
#pragma once #include <TriMesh.h> #include <cstdio> #include <cmath> #include <omp.h> #include "libs/cuda/helper_math.h" #include "util.h" #include "timer.h" #include "morton_LUTs.h" namespace cpu_voxelizer { void cpu_voxelize_mesh(voxinfo info, trimesh::TriMesh* themesh, unsigned int* voxel_table, bool morton_orde...
cf45a77aa962b51bfdefb7845a6ab9db594d4dc14b62ba4fbddd05127b7a0fa0
C/C++
448
15
#pragma once #include "Core.h" namespace rayx { // The ImageType is a parameter within the RZP. // It's different possible values are listed below. // These numbers are chosen to be compatible with RAY-UI. constexpr int IT_POINT2POINT = 0; constexpr int IT_POINT2HORIZONTAL_LINE = 4; con...
47e73a4ccf267111fb9995131abe612f8820edf5ffe2538c742fde8e1ecbef60
C/C++
461
20
/* * rt_nonfinite.h * * Code generation for function 'GPReduce' * * C source code generated on: Sun Aug 23 01:10:26 2015 * */ #ifndef __RT_NONFINITE_H__ #define __RT_NONFINITE_H__ #define rtInf mxGetInf() #define rtMinusInf (-mxGetInf()) #define rtNaN mxGetNaN() #define rtIsNaN(X) mxIsNaN(X) #defi...
98d8be57233a642221ce95b496b40a55098cefa50b3da304c2d55ff6d13ddb00
C/C++
461
20
/* * rt_nonfinite.h * * Code generation for function 'GPExpand' * * C source code generated on: Sun Aug 23 01:10:53 2015 * */ #ifndef __RT_NONFINITE_H__ #define __RT_NONFINITE_H__ #define rtInf mxGetInf() #define rtMinusInf (-mxGetInf()) #define rtNaN mxGetNaN() #define rtIsNaN(X) mxIsNaN(X) #defi...
3b153919011f94cc33ae5afe481340d95451c965e8dd1bb8ca91c8f8ed5f267f
C/C++
469
22
// // teststatedata.h // MorPhy2 // // Created by mbrazeau on 09/05/2017. // Copyright © 2017 brazeaulab. All rights reserved. // #ifndef teststatedata_h #define teststatedata_h int test_get_states(void); int test_good_symbols(void); int test_bad_symbols(void); int test_count_applic_inapplic(void); int test_load_...
806c49a139aa7fcaa486fd820feb9db2d2780f219a852ddc2280675c45c47d5e
C/C++
473
14
#pragma once #include <vector> #include "Element/Element.h" #include "RenderObject.h" #include "Tracer/Tracer.h" /** * @brief Triangulates optical elements for rendering. * @param elements A vector of optical elements to be triangulated. * @return A vector of RenderObject, which are the triangulated version of th...
ffe4c297b7bc93d640d37fc352cc57a790cf5039dc1a6b7fc79145aabea45194
C/C++
484
19
// // wagner.h // morphylib // // Created by mbrazeau on 21/05/2017. // Copyright © 2017 brazeaulab. All rights reserved. // #ifndef wagner_h #define wagner_h int mpl_wagner_downpass (MPLndsets* lset, MPLndsets* rset, MPLndsets* nset, MPLpartition* part); int mpl_wagner_uppass (MPLndsets* lset, MPLndsets* rset, M...
b43f8b3a8b3beccaec6b580125b3051eee8282f2bc3462152918cc1376b90174
C/C++
495
36
#pragma once #include <array> #include <glm.hpp> #include <vector> #include "Core.h" namespace rayx { struct Rad; // an angle in degrees. struct RAYX_API Deg { Deg() = default; Deg(double d) : deg(d) {} Rad toRad() const; double deg; }; // an angle in radians struct RAYX_API Rad { Rad() = de...
6d03579a06fd7c5d351302857669d98132252ab08c533f38c5102809285eb310
C/C++
496
28
/* * ceil.h * * Code generation for function 'ceil' * * C source code generated on: Sun Aug 23 01:10:26 2015 * */ #ifndef __CEIL_H__ #define __CEIL_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h" #include "mex.h" #include "emlrt.h"...
7df27e1097bbaaefffd5a8009d6771c49ae3778e6a65db3fe4b07f04a3e069a0
C/C++
498
20
#ifndef __HW_CONFIG_HHPARAM_H__ #define __HW_CONFIG_HHPARAM_H__ #define NB_HHPARAM 16 #define HHP_ID_G_NA 0 #define HHP_ID_G_KD 1 #define HHP_ID_G_M 2 #define HHP_ID_G_L 3 #define HHP_ID_G_T 4 #define HHP_ID_G_LEAK 5 #define HHP_ID_E_NA 6 #define HHP_ID_E_K 7 #define HHP_ID_E_CA 8 #define HHP_ID_E_LEAK 9 #...
cd450beccc236aecf7653bbc09c134a51dcd170a7576c77e6c0c316d3b292e3f
C/C++
502
28
/* * floor.h * * Code generation for function 'floor' * * C source code generated on: Sun Aug 23 01:10:53 2015 * */ #ifndef __FLOOR_H__ #define __FLOOR_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h" #include "mex.h" #include "emlr...
f8b9b04fb0b47e99ef30b2f4b8bcfebdbf821422e53d2b04c1712acdaf360678
C/C++
503
23
// // testmpl.h // MorPhy2 // // Created by mbrazeau on 12/05/2017. // Copyright © 2017 brazeaulab. All rights reserved. // #ifndef testmpl_h #define testmpl_h int test_create_destroy_Morphy(void); int test_init_Morphy(void); int test_reinit_no_data(void); int test_reinit_with_data(void); int test_simple_chtype_s...
a183c2111cd0d1dd1a50d7da300215cc6600231f62f21558a7d31b94bffd92d4
C/C++
504
32
//#define SWAP(a,b) temp = (a);(a) = (b);(b) = temp; class item { public: double value; int from; int to; }; class list { private: item* itmlist; int ptr; int len; int start,stop; int resort(void); public: list(int N,double init=0); ~list(void); int initialize(double x); int ...
505212de4170cdc368a5faa7d3cec1245c73ddac7c20256c12391991cf7e83d2
C/C++
554
31
/* * sum.h * * Code generation for function 'sum' * * C source code generated on: Sun Aug 23 01:10:26 2015 * */ #ifndef __SUM_H__ #define __SUM_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h" #include "mex.h" #include "emlrt.h" #in...
f9ea174b21e8bc59a1e30d939dd19f79ce50a702c9b312d8363fda3a62e1684f
C/C++
557
28
/* * GPReduce.h * * Code generation for function 'GPReduce' * * C source code generated on: Sun Aug 23 01:10:26 2015 * */ #ifndef __GPREDUCE_H__ #define __GPREDUCE_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h" #include "mex.h" #i...
7d448fe7af3163e177af62cf44facd323696d65b1b44b406ea543bca40f4fd00
C/C++
568
28
/* * GPReduce_data.h * * Code generation for function 'GPReduce_data' * * C source code generated on: Sun Aug 23 01:10:26 2015 * */ #ifndef __GPREDUCE_DATA_H__ #define __GPREDUCE_DATA_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h"...
c6cfdcce3c02eea0ce830f244a2465381c792a6a4f4bd346ba9120da86d8f1ab
C/C++
573
30
/*! * Copyright (c) 2017 by Contributors * \file c_api.h * \brief C API of VarFlow */ #ifndef VARFLOW_C_API_H_ #define VARFLOW_C_API_H_ #ifdef __cplusplus extern "C" { #endif // __cplusplus #include <stdint.h> #include <stddef.h> #include <stdbool.h> #ifdef _WIN32 #define VARFLOW_DLL __declspec(dllexport) #else #d...
4b4dc79deddb2e03e484f2e0256ffafc0450b042aa391d40e2bd41c650d4be77
C/C++
581
28
/* * GPExpand.h * * Code generation for function 'GPExpand' * * C source code generated on: Sun Aug 23 01:10:53 2015 * */ #ifndef __GPEXPAND_H__ #define __GPEXPAND_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h" #include "mex.h" #i...
c0cbd76d0e3767ba264ac2e0e1bc7885e294e5c9007ab2f110d9806773e9c580
C/C++
584
31
/* * sum.h * * Code generation for function 'sum' * * C source code generated on: Sun Aug 23 01:10:53 2015 * */ #ifndef __SUM_H__ #define __SUM_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h" #include "mex.h" #include "emlrt.h" #in...
18b5e310164e417cd311510bbc278860f5da4c05db4f3e826fc9cd3812c84b31
C/C++
592
20
#pragma once #include "Element/Cutout.h" #include "Vertex.h" struct Vertex; struct Outline { std::vector<TextureVertex> vertices; void calculateForQuadrilateral(double widthA, double widthB, double lengthA, double lengthB); void calculateForElliptical(double diameterA, double diameterB); }; /** * @bri...
1d802bf407f08eeb5592ba521cc024114508a7f5d51425ce0ff76ef27596ecac
C/C++
595
28
/* * GPReduce_initialize.h * * Code generation for function 'GPReduce_initialize' * * C source code generated on: Sun Aug 23 01:10:26 2015 * */ #ifndef __GPREDUCE_INITIALIZE_H__ #define __GPREDUCE_INITIALIZE_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h...
fcec7182d99c90a0aff49bf7f60c33f82385a980163035ea981db96c6ee41a0c
C/C++
595
28
/* * GPExpand_initialize.h * * Code generation for function 'GPExpand_initialize' * * C source code generated on: Sun Aug 23 01:10:53 2015 * */ #ifndef __GPEXPAND_INITIALIZE_H__ #define __GPEXPAND_INITIALIZE_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h...
13025a05743d23327d5fa99f598d3d65c5268297adb23bb327d4b7c0ec6557bb
C/C++
605
27
#ifndef RINGBUFFER_H #define RINGBUFFER_H #include <vector> #include <mutex> class RingBuffer { public: RingBuffer(size_t capacity, size_t inRate, size_t outRate, size_t inBlockSize, size_t outBlockSize, size_t outputOverlap); bool write(const std::vector<float>& data); bool read(std::vector<float>& data)...
3a7b79953b9afcdf46bd1c9d1eb3f555d5b06e23767f6c510f7f734da65420e6
C/C++
605
24
// // teststatedata.h // MorPhy2 // // Created by mbrazeau on 09/05/2017. // Copyright © 2017 brazeaulab. All rights reserved. // #ifndef teststatedata_h #define teststatedata_h int test_get_states(void); int test_good_symbols(void); int test_bad_symbols(void); int test_count_applic_inapplic(void); int test_load_...
2538653bbb4f97b9e0a2308fe347d9444c224f703aeaddaf1c54950b6e18bd12
C/C++
606
29
/* * GPExpand_terminate.h * * Code generation for function 'GPExpand_terminate' * * C source code generated on: Sun Aug 23 01:10:53 2015 * */ #ifndef __GPEXPAND_TERMINATE_H__ #define __GPEXPAND_TERMINATE_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #...
fe8f2399df7a5c8c35466ecce29ec2a2edf4dfe87c418a52f3267928feb515b6
C/C++
606
29
/* * GPReduce_terminate.h * * Code generation for function 'GPReduce_terminate' * * C source code generated on: Sun Aug 23 01:10:26 2015 * */ #ifndef __GPREDUCE_TERMINATE_H__ #define __GPREDUCE_TERMINATE_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #...
a715a2977672b6e9263b444580c04f78282bb9d3e508e3c25ff020622afb7386
C/C++
608
23
#pragma once #include <glm.hpp> #include "Beamline/Beamline.h" // Forward declarations for your UI types class CameraController; struct UIBeamlineInfo; struct UIParameters; class BeamlineOutliner { public: BeamlineOutliner(); ~BeamlineOutliner(); // Show the outline window (to be called every frame i...
e6d29e2924d30986ccd41a6041b7b7280c9edf02f49eec2086ebb7be5feb214f
C/C++
612
25
// // testmpl.h // MorPhy2 // // Created by mbrazeau on 12/05/2017. // Copyright © 2017 brazeaulab. All rights reserved. // #ifndef testmpl_h #define testmpl_h int test_create_destroy_Morphy(void); int test_init_Morphy(void); int test_reinit_no_data(void); int test_reinit_with_data(void); int test_simple_chtype_s...
1f7bbd04076de1ea43df9ceb5b3b99a6333b97365bb474b92ceda44bf9cc8339
C/C++
616
27
#pragma once #include "LightSource.h" #include "Shader/Rand.h" namespace rayx { class DesignSource; class RAYX_API MatrixSource : public LightSourceBase { public: MatrixSource(const DesignSource&); RAYX_FN_ACC detail::Ray genRay(const int rayPathIndex, const int sourceId, const EnergyDistributionDataVari...
d73c165100befdf2587465a759be2dc9815fb4637febbefb4c56eba2268b2f9a
C/C++
622
24
// // testmorphy.h // MorPhy2 // // Created by mbrazeau on 12/05/2017. // Copyright © 2017 brazeaulab. All rights reserved. // #ifndef testmorphy_h #define testmorphy_h int test_isreal(void); int test_almost_equal(void); int test_resetting_weights(void); int test_resetting_frac_weights(void); int test_count_gaps_...
e7799507c6ed89fc860f8f8a28257a3e7e7c02bde54313a7698bce9f3af29827
C/C++
627
25
#pragma once #include <vector> #include "Rays.h" // TODO: this object oriented api to Ray is to be reworked struct Ray { glm::dvec3 m_position; rayx::EventType m_eventType; glm::dvec3 m_direction; double m_energy; rayx::ElectricField m_field; double m_pathLength; int m_order; int m_la...
a4897a7e286cde168f8549bd45cf65e35f8cae7b2c4135d4629d42ba6d77d766
C/C++
636
29
#pragma once #include <string> #include <vector> // This file defines the PalikEntry. #include "../Shader/RefractiveIndex.h" namespace rayx { /** This struct represents the contents of a .NKP file. * * Example usage: * * PalikTable cu; * bool success = PalikTable::load("CU", &cu); // the palik table for copper!...
3b77dcc818ab96d0885769666c2eee824f3e749f9c5eb39624871bf60591995f
C/C++
643
25
#pragma once #include <cstring> #include <vector> #include "Core.h" #include "ObjectMask.h" #include "Rays.h" #include "Shader/InvocationState.h" namespace rayx { /** * @brief DeviceTracer is an interface to a tracer implementation * we need this interface to remove the actual implementation from the rayx api */...
653b7a6b242331999e1b7f9b03f07966d7460f42788c10a3ce6c19782f0b77e9
C/C++
646
29
/* * GPExpand_api.h * * Code generation for function 'GPExpand_api' * * C source code generated on: Sun Aug 23 01:10:53 2015 * */ #ifndef __GPEXPAND_API_H__ #define __GPEXPAND_API_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h" #in...
80f33c007e402fee838850e2a8d98b7d307aa3f674d013a180986a5b70c69d1f
C/C++
646
29
#pragma once #include <string> #include <vector> // This file defines the CromerEntry. #include "../Shader/RefractiveIndex.h" namespace rayx { /** This struct represents the contents of a .f12 file. * * Example usage: * * CromerTable cu; * bool success = CromerTable::load("CU", &cu); // the cromer table for cop...
bfa73b52b1319f2c58552f6a0f439e8ca84a5430956b360b8bd8b757eb333592
C/C++
646
29
/* * GPReduce_api.h * * Code generation for function 'GPReduce_api' * * C source code generated on: Sun Aug 23 01:10:26 2015 * */ #ifndef __GPREDUCE_API_H__ #define __GPREDUCE_API_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h" #in...
19edddaf545e54fd78de13ea5eee1168bedb81391d837d4e2502d4012875ec4e
C/C++
648
16
// #include <TH/TH.h> void BatchNormalizationP_forward( THFloatTensor *input, THFloatTensor *output, THFloatTensor *weight, THFloatTensor *bias, THFloatTensor *running_mean, THFloatTensor *running_var, THFloatTensor *save_mean, THFloatTensor *save_std, int train, double momentum, double eps); void BatchNor...
865839249162b37b2b1332c5bb455615433b39bd20b8e677cf6fe918c8eaabcc
C/C++
651
21
#pragma once #include <memory> #include <vector> #include "RenderSystem/RenderSystem.h" /** * @brief The ObjectRenderSystem class handles the rendering of a collection of RenderObjects. * * It manages the creation of pipelines and pipeline layouts, as well as the rendering process. */ class ObjectRenderSystem : ...
2052c63d7f8b7aa3d7a8eb67e60e8e306882432a34c4b75c13588c1553ed2861
C/C++
653
18
#pragma once #include <glm.hpp> #include "Core.h" namespace rayx { // Consider this https://en.wikipedia.org/wiki/Spherical_coordinate_system. // But we fix the radius r = 1, as we only care to express direction, not distance. // The definitions of phi & psi might differ from their definitions at other places, due...
f0147e225dd402b78afa020d61d61648eb7d8b905ac8384d0b4b3882e18ff2d2
C/C++
655
25
// // testfitch.h // MorPhy2 // // Created by mbrazeau on 16/05/2017. // Copyright © 2017 brazeaulab. All rights reserved. // #ifndef testfitch_h #define testfitch_h int test_small_fitch(void); int test_weighted_small_fitch(void); int test_small_fitch_na(void); int test_small_fitch_withmissing(void); int test_bul...
255650edb473cf6a4ac63d9d2431cfeece44759f5a70190005dc265fbd088a88
C/C++
658
29
#pragma once #include <string> #include <vector> // This file defines the MolecEntry. #include "../Shader/RefractiveIndex.h" namespace rayx { /** This struct represents the contents of a .NKP file. * * Example usage: * * Molec SiC2; * bool success = MolecTable::load("SiC2", &csic2); // the refractive index * t...
d479369c5b3c02fd3696d275d9723afca22a79ebb90c9cbd101d76b98b92be99
C/C++
662
30
#pragma once #include <string> #include <vector> // This file defines the NffEntry. #include "../Shader/RefractiveIndex.h" #include "Material.h" namespace rayx { /** This struct represents the contents of a .NKP file. * * Example usage: * * NffTable cu; * bool success = NffTable::load("CU", &cu); // the refract...
f9c97decb6d64fed494077ad5a3abb82991ac78f0cae46320675c0cd818c75b6
C/C++
662
18
#pragma once #include <filesystem> #include "Rays.h" namespace rayx { #ifndef NO_H5 RAYX_API Rays readH5Rays(const std::filesystem::path& filepath, const RayAttrMask attr = RayAttrMask::All); RAYX_API std::vector<std::string> readH5ObjectNames(const std::filesystem::path& filepath); RAYX_API void writeH5(const std...
fc304f5cf7066b3f487bc207f97caf5e28c1ebc0d8ef23a0660a07d043820059
C/C++
663
16
// *************************************************************************** // api_global.h (c) 2010 Derek Barnett // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- // Last modified: 19 November 2010 (DB) // ----------------------------...
8d527091d5796e71e38f31db57d8297f9a2135a6c21047b0cfe48d7427492ee2
C/C++
665
32
#ifndef __HW_CONFIG_MONITORING_H__ #define __HW_CONFIG_MONITORING_H__ // Globals // --- #define DATAWIDTH_MON_NID 32 #define DATAWIDTH_TIME_STEP 32 // Waves DAC // --- #define NB_CHANNELS_DAC 8 // Spikes DMA // --- #define NB_REGS_SPK_MON 32 #define MAX_NB_PACKETS_MON_SPK_DMA 256 #define DATAWIDTH_MA...
a00530aa685689d8265dacd674bf3e9d05ae37e5a20f433d63afc54d8aa18ad9
C/C++
681
12
#pragma once #include <glm.hpp> static constexpr glm::vec4 RED = {1.0f, 0.0f, 0.0f, 1.0f}; static constexpr glm::vec4 ORANGE = {1.0f, 0.5f, 0.0f, 1.0f}; static constexpr glm::vec4 YELLOW = {1.0f, 1.0f, 0.0f, 1.0f}; static constexpr glm::vec4 GREY ...
55df5a25ef25a811b16f775af2bbe290dd0b670004b2f7934da2fceac24425ae
C/C++
691
24
#include <stdio.h> #include <stdlib.h> #include "mplerror.h" #include "mpl.h" #include "./ctreelib/treelib.h" #include "./ctreelib/tltree.h" #define pfail \ printf("[ FAIL ] %s, line: %i in: %s\n", __FUNCTION__, __LINE__, __FILE__) #define ppass printf("[ PASS ] %s\n", __FUNCTION__) #define psumf(...) \ ...
618cf477de31d7e01a6f2330a0b711eb7c421e0b094f0f3214cf6363fcda4086
C/C++
694
32
/* * GPExpand_data.h * * Code generation for function 'GPExpand_data' * * C source code generated on: Sun Aug 23 01:10:53 2015 * */ #ifndef __GPEXPAND_DATA_H__ #define __GPEXPAND_DATA_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h"...
51d851ae6a5bc62cfa75e0928a9e2357a9dbbdca445baa6e6ce7bec1422d966c
C/C++
728
29
#ifndef IIR_NOTCH_FILTER_H_ #define IIR_NOTCH_FILTER_H_ //#include <gsl/gsl_math.h> #define M_PI 4*atan(1) #include <math.h> #include <cstdlib> #include<fstream.h> #include "iir_filter.h" ///////////////////////////////////////////////////////////////////////// class IIR_notch_filter: public IIR_filt...
c446a58322aa7f02840627d3becbea7fc1d8bd05b440602c28b04322edd82bfb
C/C++
736
29
#pragma once #include "LightSource.h" #include "Shader/Rand.h" namespace rayx { class RAYX_API PixelSource : public LightSourceBase { public: PixelSource(const DesignSource&); RAYX_FN_ACC detail::Ray genRay(const int rayPathIndex, const int sourceId, const EnergyDistributionDataVariant& __restrict energyD...
5e26667a6922bf060fabf588c8902c10558111ea0af20463fcb309a57758a07d
C/C++
758
16
#include <THC/THCTensor.h> void THNN_CudaBatchNormalization_updateOutputhaha( THCState *state, THCudaTensor *input_, THCudaTensor *output_, THCudaTensor *weight_, THCudaTensor *bias_, THCudaTensor *runningMean_, THCudaTensor *runningVar_, THCudaTensor *saveMean_, THCudaTensor *saveStd_, int train, double momen...
3d7b1daeeb5e7204003d4553f137685b784fe32229be7540eb27e904970fcb81
C/C++
759
18
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
e7b4a71bd7abe6b44e19536ae91fecfc645282fdc84554ecfd8fe229cdeaa0df
C/C++
759
18
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
355b17593e0f02970ebb16441c2b6055b96f396d8653463aa12071a21c18190d
C/C++
770
21
// *************************************************************************** // utils_global.h (c) 2010 Derek Barnett // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- // Last modified: 19 November 2010 (DB) // --------------------------...
2b05af866196452b93c511c49254837eb2b58870542a17fcfe76d011e542b2cf
C/C++
772
23
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * 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 obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
97e245091b30fd6a61759e5f7a50acd18d77bb2216f80616b607c3348f0d934c
C/C++
772
22
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * 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 obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
2d4be342e3ed3118643d2292014222de5c3bf833c8cd871e26e237aac7cd6011
C/C++
783
23
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * 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 obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
8633c1f687e4fc12b7216d84d4bf0672c626d5becc1d73e1c62c89e89d7823e0
C/C++
786
34
#include <stdio.h> #include "../src/mplerror.h" #include "../src/mpl.h" #define pfail \ printf("[ FAIL ] %s, line: %i in: %s\n", __FUNCTION__, __LINE__, __FILE__) #define ppass printf("[ PASS ] %s\n", __FUNCTION__) #define psumf(...) \ printf("[ ** FAILED ** ] %i times. Review output to see details.\n...
b9f814bdd6ae890274a51516624eebfda061900eac39dd9f4c551ddb649986e0
C/C++
795
27
/**************************************************************************** ** ** Copyright (c) 2008-2015 C.B. Barber. All rights reserved. ** $Id: //main/2015/qhull/src/libqhullcpp/QhullSets.h#2 $$Change: 2066 $ ** $DateTime: 2016/01/18 19:29:17 $$Author: bbarber $ ** ************************************************...
c17c496f204dc5dd158520c168361451d7eb429e66c7b7ee0b32d3b509130416
C/C++
796
21
#pragma once #include <filesystem> #include <optional> #include <vector> #include "Core.h" namespace rayx { // The readFile functions return {} if an error occured while opening the file. // We prefered this over an exception, as you typically forget to handle them. std::optional<std::vector<uint8_t>> RAYX_API read...
85a62766cc3ebe3ca9792920a8789a4db5e64e0e193139ce9eaf06af13f9f104
C/C++
797
18
#pragma once namespace rayx { /** * @brief Structure to represent slope error parameters. */ struct SlopeError { double m_sag; ///< Slope error in the sagittal direction, aka `slopeErrorX`. double m_mer; ///< Slope error in the meridional direction, aka `slopeErrorZ...
5f658b913e779e90d5b1a5a5a96a933ff6143f3fb1454e85146729ad6823507f
C/C++
802
21
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
5291870908c193513482d0d623b380285248de58a65bb868e006907e0f5e54e6
C/C++
808
28
#ifndef DH_READ_MMCIF #define DH_READ_MMCIF #include <stdio.h> #include <stdlib.h> #include <string.h> #include "atom.h" #include "pertable.h" #include "utils.h" #include "memhandler.h" #include "math.h" #include "fparams.h" #include "rpdb.h" /* * Plugin header files; get plugin source from www.ks.uiuc.edu/Resear...
5c38f1b47a823aded8f06085b25340da6eef1cd3d9dbf149156ee418dfa797a9
C/C++
814
37
#pragma once #include <filesystem> #include <random> #include <string> #include <vector> #include "Core.h" namespace rayx { /** This struct represents one line of a .DAT file. */ struct DatEntry { double m_energy; double m_weight; }; /** This struct represents the contents of a .DAT file. */ struct DatFile...
dd49b285205290c7ecf8a48bc4ffe38265073d6d8d458b62f78ee2f8e5404bff
C/C++
814
20
/* * Copyright (C) 2012 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
e7c28783dbf3ba9583a64dfbf39d861432e0024623cf39efb71912c8320660ce
C/C++
820
29
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * 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 obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
a064582a93f9a2369ed0c2157f781e8f6342f280168f08cdd419423b4f2fad9c
C/C++
827
27
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
0d79f9b03688be0623df4ab305ded643850089121b221d282b6a5c65bc023637
C/C++
830
24
#pragma once #include <glm.hpp> #include "Element/Cutout.h" namespace rayx { // checks whether the point (x, z) is within the cutout. RAYX_FN_ACC bool RAYX_API inCutout(Cutout cutout, double x, double z); // returns a matrix M where (M[i].x, M[i].z) are the key points of our cutout. // The key points are typically...
71ee7f65abae6181d3c2739e4e960770341a165cabd46f9783757d6f06cacac9
C/C++
831
20
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
613376a75f6a61203e162d77f2e2c625dd8ccda6e48891398331a236436a1430
C/C++
832
26
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * 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 obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
db4cb2edc9cdc850de8247e8f69022e62a7fd1e077e7e8e53c29f88008f51e75
C/C++
839
22
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
fbec4fe1eacfa72cefe39211254e75e81c449046f9200aaa6290860f8677b8ba
C/C++
845
33
#pragma once #include "LightSource.h" #include "Shader/Rand.h" namespace rayx { class RAYX_API PointSource : public LightSourceBase { public: PointSource(const DesignSource&); RAYX_FN_ACC detail::Ray genRay(const int rayPathIndex, const int sourceId, const EnergyDistributionDataVariant& __restrict energyD...
2fdecaa687ba0792a845facc9bf1fae5523ebc9878cdf2ae7155e028fd14fc8f
C/C++
848
29
#pragma once #include <memory> #include "FrameInfo.h" #include "GraphicsCore/Device.h" #include "GraphicsCore/GraphicsPipeline.h" #include "RenderObject.h" #include "RenderSystem.h" /** * @brief The GridRenderSystem class handles the rendering of the grid in the scene. * * It manages the creation of pipelines and...
b1ce8c1dd2d3df228190281824d65d2911ef1d7be5fc40e93e2b541165a19d87
C/C++
848
21
// *************************************************************************** // BamAlgorithms.h (c) 2009 Derek Barnett // Marth Lab, Department of Biology, Boston College // All rights reserved. // --------------------------------------------------------------------------- // Last modified: 10 October 2011 (DB) // --...
95fafa86e88a9656a74206bff405c59b19a44ecda736af54772052703e5b900f
C/C++
850
33
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * 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 obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...