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 |
|---|---|---|---|---|---|---|
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/Sparse/SparseSparseProduct.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free... | 14,483 | 35.029851 | 129 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/Sparse/SparseView.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2010 Daniel Lowengrub <lowdanie@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Le... | 3,455 | 30.418182 | 107 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/Sparse/SparseDenseProduct.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free... | 8,221 | 34.439655 | 114 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/Sparse/DynamicSparseMatrix.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free... | 11,717 | 32.769452 | 124 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/Sparse/MappedSparseMatrix.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Soft... | 6,224 | 36.5 | 126 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/Sparse/SparseDiagonalProduct.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Soft... | 7,843 | 39.020408 | 114 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/Sparse/SparseRedux.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Soft... | 2,279 | 39 | 81 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/Sparse/CompressedStorage.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Soft... | 7,272 | 29.304167 | 107 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/Sparse/SparseUtil.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Soft... | 5,436 | 40.503817 | 131 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/Sparse/SparseBlock.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free... | 18,106 | 37.856223 | 124 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/QR/FullPivHouseholderQR.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the... | 21,478 | 38.26691 | 130 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/Eigen/src/QR/ColPivHouseholderQR.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the... | 20,868 | 38.153846 | 130 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_matrixops.h | /* ========================================================================== */
/* === Include/cholmod_matrixops.h ========================================== */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 8,606 | 35.470339 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod.h | /* ========================================================================== */
/* === Include/cholmod.h ==================================================== */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 3,858 | 30.373984 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_blas.h | /* ========================================================================== */
/* === Include/cholmod_blas.h =============================================== */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 13,472 | 28.807522 | 85 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/UFconfig.h | /* ========================================================================== */
/* === UFconfig.h =========================================================== */
/* ========================================================================== */
/* Configuration file for SuiteSparse: a Suite of Sparse matrix packages
* ... | 4,050 | 34.535088 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_modify.h | /* ========================================================================== */
/* === Include/cholmod_modify.h ============================================= */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 12,969 | 41.52459 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_internal.h | /* ========================================================================== */
/* === Include/cholmod_internal.h =========================================== */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 14,408 | 36.329016 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_check.h | /* ========================================================================== */
/* === Include/cholmod_check.h ============================================== */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 14,569 | 33.856459 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_config.h | /* ========================================================================== */
/* === Include/cholmod_config.h ============================================= */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 3,162 | 36.654762 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_supernodal.h | /* ========================================================================== */
/* === Include/cholmod_supernodal.h ========================================= */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 5,471 | 35.972973 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_complexity.h | /* ========================================================================== */
/* === Include/cholmod_complexity.h ========================================= */
/* ========================================================================== */
/* Define operations on pattern, real, complex, and zomplex objects.
*
* T... | 9,380 | 34.4 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_partition.h | /* ========================================================================== */
/* === Include/cholmod_partition.h ========================================== */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 8,850 | 36.824786 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_cholesky.h | /* ========================================================================== */
/* === Include/cholmod_cholesky.h =========================================== */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 19,340 | 37.759519 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_io64.h | /* ========================================================================== */
/* === Include/cholmod_io64 ================================================= */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 1,710 | 35.404255 | 80 | h |
openslam_ParallaxBA | openslam_ParallaxBA-master/windows/include/cholmod/cholmod_template.h | /* ========================================================================== */
/* === Include/cholmod_template.h =========================================== */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 9,217 | 37.569038 | 80 | h |
null | msr-safe-main/msr_entry.c | // Copyright 2011-2020 Lawrence Livermore National Security, LLC and other
// msr-safe Project Developers. See the top-level COPYRIGHT file for
// details.
//
// SPDX-License-Identifier: GPL-2.0-only
// Copyright 2000-2008 H. Peter Anvin - All Rights Reserved
// Copyright 2009 Intel Corporation; author: H. Peter Anvin... | 9,729 | 23.75827 | 106 | c |
null | msr-safe-main/msr_allowlist.c | // Copyright 2011-2021 Lawrence Livermore National Security, LLC and other
// msr-safe Project Developers. See the top-level COPYRIGHT file for
// details.
//
// SPDX-License-Identifier: GPL-2.0-only
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/ctype.h>
#include <linux/device.h>
#include <linux/fs.h>
#... | 10,100 | 22.274194 | 106 | c |
null | msr-safe-main/msr_batch.c | // Copyright 2011-2021 Lawrence Livermore National Security, LLC and other
// msr-safe Project Developers. See the top-level COPYRIGHT file for
// details.
//
// SPDX-License-Identifier: GPL-2.0-only
/*
* x86 MSR batch access device
*
* This device is accessed by ioctl() to submit a batch of MSR requests
* which m... | 5,319 | 22.030303 | 82 | c |
null | msr-safe-main/msr_version.c | // Copyright 2011-2021 Lawrence Livermore National Security, LLC and other
// msr-safe Project Developers. See the top-level COPYRIGHT file for
// details.
//
// SPDX-License-Identifier: GPL-2.0-only
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/version.h>... | 2,806 | 21.102362 | 92 | c |
null | msr-safe-main/msr_allowlist.h | // Copyright 2011-2021 Lawrence Livermore National Security, LLC and other
// msr-safe Project Developers. See the top-level COPYRIGHT file for
// details.
//
// SPDX-License-Identifier: GPL-2.0-only
/*
* Internal declarations for x86 MSR allowlist implementation functions.
*
* Thank you to everyone who has contrib... | 887 | 25.117647 | 76 | h |
null | msr-safe-main/msr_safe.h | // Copyright 2011-2021 Lawrence Livermore National Security, LLC and other
// msr-safe Project Developers. See the top-level COPYRIGHT file for
// details.
//
// SPDX-License-Identifier: GPL-2.0-only
/*
* This file defines the ioctl interface for submitting a batch of MSR
* requests. This file should be distributed... | 1,309 | 31.75 | 74 | h |
null | msr-safe-main/msr_version.h | // Copyright 2011-2021 Lawrence Livermore National Security, LLC and other
// msr-safe Project Developers. See the top-level COPYRIGHT file for
// details.
//
// SPDX-License-Identifier: GPL-2.0-only
/*
* Internal declarations for x86 MSR version implementation functions.
*
* Thank you to everyone who has contribut... | 718 | 26.653846 | 76 | h |
null | msr-safe-main/examples/example.c | /* This example assumes the user has the following permissions:
*
* write /dev/cpu/msr_allowlist
* read/write /dev/cpu/<cpu_number>/msr_safe
* read /dev/cpu/msr_batch
*
* Typically, only the administrator will have write permissions
* on the allowlist.
*
* Production code should have more robu... | 3,108 | 25.12605 | 70 | c |
null | msr-safe-main/msrsave/msrsave_test.c | /*
* Copyright (c) 2016, Intel Corporation
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#include <assert.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "msrsave.h"
void msrsave_test_mock_msr(void *buffer, size_t buffer_size, cons... | 7,032 | 36.409574 | 104 | c |
null | msr-safe-main/msrsave/spank_msrsafe.c | /*
* Copyright (c) 2018, Intel Corporation
*
* SPDX-License-Identifier: GPL-2.0-only
*/
/*
* The msr-safe Linux kernel module enables user access to read and
* write capabilities for a restricted set of allowed Model
* Specific Registers (MSRs) on x86 platforms. The purpose of this
* slurm plugin is to ensure... | 6,063 | 28.153846 | 98 | c |
null | msr-safe-main/msrsave/msrsave.h | /*
* Copyright (c) 2015, 2016, Intel Corporation
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#ifndef MSRSAVE_H_INCLUDE
#define MSRSAVE_H_INCLUDE
#include <stdio.h>
int msr_save(const char *out_path,
const char *allowlist_path,
const char *msr_path,
int num_cpu,
... | 596 | 21.111111 | 46 | h |
null | msr-safe-main/msrsave/msrsave_main.c | /*
* Copyright (c) 2016, Intel Corporation
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#include <errno.h>
#include <getopt.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "msrsave.h"
#ifndef VERSION
#define VERSION "0.0.0"
#endif... | 3,952 | 33.077586 | 125 | c |
tucker3d | tucker3d-master/core/maxvol/build/src.macosx-10.5-x86_64-2.7/fortranobject.h | #ifndef Py_FORTRANOBJECT_H
#define Py_FORTRANOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
#include "Python.h"
#ifdef FORTRANOBJECT_C
#define NO_IMPORT_ARRAY
#endif
#define PY_ARRAY_UNIQUE_SYMBOL PyArray_API_F2PY
#include "numpy/arrayobject.h"
/*
* Python 3 support macros
*/
#if PY_VERSION_HEX >= 0x03000000
#def... | 5,165 | 27.860335 | 90 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/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 |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/resource.h | //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Project1.rc
//
#define IDD_ABOUTBOX 100
#define IDP_OLE_INIT_FAILED 100
#define IDR_MAINFRAME 128
#define IDR_Project1TYPE 130
#define ID_RENDER_RAYTRACE 32771
#d... | 705 | 29.695652 | 47 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/CMyRaytraceRenderer.h | #pragma once
#include <cassert>
#include <fstream>
#include <vector>
#include <strstream>
#include <string>
#include "graphics/GrRenderer.h"
#include "graphics/RayIntersection.h"
class CMyRaytraceRenderer :
public CGrRenderer
{
public:
CMyRaytraceRenderer() { m_window = NULL; }
int m_rayimagewidth;
in... | 1,384 | 27.854167 | 113 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/OpenGLWnd.h | //
// Name : OpenGLWnd.h
// Description : Header file for COpenGLWnd OpenGL superclass.
// Documentation : See OpenGLWnd.cpp
// Author : Charles B. Owen
// Modification: Jan 12, 19 - Y.T.
//
#pragma once
#include <gl/gl.h>
#include <gl/glu.h>
//////////////////////////////////////////////////////... | 2,094 | 24.54878 | 97 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/GrVRMLFactory.h | //
// Name : GrVRMLFactory.h
// Description : Header for CGrVRMLFactory
// Object File Format (VRML) file loader.
// Author : Charles B. Owen
//
#if !defined(GRVRMLFACTOR_H)
#define GRVRMLFACTOR_H
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string>
#include <vec... | 1,968 | 23.924051 | 133 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/Nurbs.h | //
// Name : Nurbs.h
// Description : Header file for the CNurbs class
// This class is used to describe and draw a NURBS surface.
//
#if !defined(AFX_NURBS_H__C71DE3EB_FDE1_4D39_BB30_425A2C6BE7C7__INCLUDED_)
#define AFX_NURBS_H__C71DE3EB_FDE1_4D39_BB30_425A2C6BE7C7__INCLUDED_
#if _MSC_VER > 1... | 2,474 | 24.78125 | 80 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/GrObject.h | //
// Name : GrObject.h
// Description : Scene graph library basic components.
// Author : Charles B. Owen
// Version : 2-18-01 1.01 Revisions to make CGrPtr work in vectors
//
#if !defined(AFX_GROBJECT_H__F47A21EF_E490_462E_BB99_B32A3B954CF6__INCLUDED_)
#define AFX_GROBJECT_H__F47A21EF_E490_462... | 10,472 | 29.71261 | 127 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/GrPoint.h | //
// Name : GrPoint.h
// Description : Classes and operators for homogeneous coordinates.
// Author : Charles B. Owen
// Version : 1.00 2-03-01 Declared version number
// 1.01 3-23-04 Visual Studio 2003 bug fixes
// NOOPENGL option.
// 1.... | 4,795 | 35.610687 | 119 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/RayIntersection.h | //
// Name : RayIntersection.h
// Description : Header for CRayIntersection
// Polygon ray intersection support class/DLL.
// Implements kdTree fast ray intersection algorithm.
// Author : Charles B. Owen
// Version : 3-13-07 2.00 Moved to DLL
// 4-11-0... | 3,690 | 26.962121 | 95 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/jitter.h |
#ifndef _JITTER_H
#define _JITTER_H
#include "GrPoint.h"
const CGrPoint JITTER1[] = {CGrPoint(0.5, 0.5, 0.0)};
const CGrPoint JITTER2[] = {CGrPoint(0.25, 0.75),
CGrPoint(0.75, 0.25)};
const CGrPoint JITTER3[] = {CGrPoint(0.5033922635, 0.8317967229),
CGrPoint(... | 4,128 | 49.975309 | 85 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/GrCamera.h | // GrCamera.h: interface for the CGrCamera class.
//
//////////////////////////////////////////////////////////////////////
#pragma once
#include <GL/glu.h>
//! Class that defines a simple camera model we can use with the mouse.
/*! The CGrCamera class can be used in application to allow the mouse to
change the view... | 15,514 | 39.298701 | 130 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/Texture.h | //
// Name : Texture.h
// Description : Header for CTexture, texture image class for OpenGL.
// Version : See Texture.cpp
//
#if !defined(_TEXTURE_H)
#define _TEXTURE_H
#pragma once
#include <fstream>
#include <GL/gl.h>
class CTexture
{
public:
CTexture();
CTexture(const CTexture &p_img);
... | 1,477 | 24.482759 | 84 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/GrTexture.h | //
// Name : GrTexture.h
// Description : Header for CTexture, texture image class for OpenGL.
// Notice : This is a modified version designed to work with the scene graph
// system. We can have an actual texture in a scene graph.
// Version : See Texture.cpp
//
#if !defined(_GRTEXT... | 1,807 | 26.393939 | 95 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/OpenGLRenderer.h | //
// Name : OpenGLRenderer.h
// Description : Header for COpenGLRenderer
// Plug-in renderer fro OpenGL
// See OpenGLRenderer.cpp
// Author : Charles B. Owen
//
#if !defined(AFX_OPENGLRENDERER_H__96078397_F350_4485_A87E_94051B49266B__INCLUDED_)
#define AFX_OPENGLRENDERER_H... | 1,149 | 29.263158 | 89 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/GrRenderer.h | //
// Name : GrRenderer.h
// Description : Header file for CGrRenderer, superclass for generic renderer.
// See GrRenderer.cpp
// Author : Charles B. Owen
//
#ifndef _GRRENDERER_H
#define _GRRENDERER_H
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GrObject.h"
#in... | 3,646 | 33.40566 | 123 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/accjitter.h | //
// Name : accjitter.h
// Description : Jittering functions from the OpenGL Red book.
//
#ifndef _ACCJITTER_H
#define _ACCJITTER_H
#include <GL/gl.h>
void accFrustrum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top,
GLdouble zNear, GLdouble zFar, GLdouble pixdx, GLdouble pixd... | 602 | 29.15 | 83 | h |
null | Shadow-Mask-Face-Relighting-main/shadow_mask/Project1/graphics/GrTransform.h | //
// Name : GrTransform.h
// Description : Header file for CGrTransform. This class implements
// a 4x4 transformation matrix.
//
#if !defined(AFX_GRTRANSFORM_H__BB2CDF1C_D660_4826_AD0E_16C7D5C04A29__INCLUDED_)
#define AFX_GRTRANSFORM_H__BB2CDF1C_D660_4826_AD0E_16C7D5C04A29__INCLUDED_
#if ... | 4,031 | 30.748031 | 122 | h |
null | sunpy-main/sunpy/io/src/ana/_pyana.c | /*!
@brief A C extension for Python to read ana f0 files
@author Tim van Werkhoven <t.i.m.vanwerkhoven@gmail.com>
Based on Michiel van Noort's IDL DLM library 'f0' which contains
a cleaned up version of the original anarw routines.
*/
#define Py_LIMITED_API 0x030900f0
// Needed due to https://github.com/numpy/numpy/... | 11,567 | 30.349593 | 121 | c |
null | sunpy-main/sunpy/io/src/ana/anadecompress.h | #ifndef __ANADECOMPRESS_H__ // __ANADECOMPRESS_H__
#define __ANADECOMPRESS_H__ // __ANADECOMPRESS_H__
int anadecrunch32(unsigned char *x,int32_t *array,int r9,int nx,int ny,int);
int anadecrunchrun8(unsigned char *x,int8_t *array,int r9,int nx,int ny,int);
int anadecrunchrun(unsigned char *x,int16_t *array,i... | 553 | 49.363636 | 77 | h |
null | sunpy-main/sunpy/io/src/ana/anadecompress.c | #include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include "types.h"
#include "anadecompress.h"
int anadecrunch32(unsigned char *x,int32_t *array,int r9,int nx,int ny,int little_endian)
/* decompress a bit stream in x; result is n I*4 elements, put in array;
bit slice size r9 */
{
... | 23,203 | 33.632836 | 94 | c |
null | sunpy-main/sunpy/io/src/ana/anacompress.h | #ifndef __ANACOMPRESS_H__ // __ANACOMPRESS_H__
#define __ANACOMPRESS_H__ // __ANACOMPRESS_H__
int anacrunchrun8(uint8_t *x,uint8_t *array,int slice,int nx,int ny,int limit,int t_endian);
int anacrunch8(uint8_t *x,uint8_t *array,int slice,int nx,int ny,int limit,int t_endian);
int anacrunchrun(uint8_t *x,int1... | 613 | 54.818182 | 92 | h |
null | sunpy-main/sunpy/io/src/ana/anarw.h | #ifndef __ANARW_H__ // __ANACOMPRESS_H__
#define __ANARW_H__ // __ANACOMPRESS_H__
#define ANA_VAR_SZ {1,2,4,4,8,8}
#define ANA_LITTLE_ENDIAN 0
#define ANA_BIG_ENDIAN 1
#define INT8_ana 0
#define INT16_ana 1
#define INT32_ana 2
#define FLOAT32_ana 3
#define FLOAT... | 1,189 | 33 | 129 | h |
null | mempool-main/software/riscv-tests/env/pt/riscv_test.h | // See LICENSE for license details.
#ifndef _ENV_PHYSICAL_SINGLE_CORE_TIMER_H
#define _ENV_PHYSICAL_SINGLE_CORE_TIMER_H
#include "../p/riscv_test.h"
#define TIMER_INTERVAL 2
#undef EXTRA_INIT_TIMER
#define EXTRA_INIT_TIMER \
li a0, MIP_MTIP; ... | 3,744 | 52.5 | 73 | h |
null | mempool-main/software/riscv-tests/env/v/riscv_test.h | // See LICENSE for license details.
#ifndef _ENV_VIRTUAL_SINGLE_CORE_H
#define _ENV_VIRTUAL_SINGLE_CORE_H
#include "../p/riscv_test.h"
//-----------------------------------------------------------------------
// Begin Macro
//-----------------------------------------------------------------------
#undef RVTEST_FP_E... | 2,613 | 31.271605 | 75 | h |
null | mempool-main/software/riscv-tests/env/v/vm.c | // See LICENSE for license details.
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include "riscv_test.h"
#if __riscv_xlen == 32
# define SATP_MODE_CHOICE SATP_MODE_SV32
#elif defined(Sv48)
# define SATP_MODE_CHOICE SATP_MODE_SV48
#else
# define SATP_MODE_CHOICE SATP_MODE_SV39
#endif
void trap_entry();... | 8,261 | 26.448505 | 124 | c |
null | mempool-main/software/riscv-tests/env/p/riscv_test.h | // See LICENSE for license details.
#ifndef _ENV_PHYSICAL_SINGLE_CORE_H
#define _ENV_PHYSICAL_SINGLE_CORE_H
#include "../encoding.h"
//-----------------------------------------------------------------------
// Begin Macro
//-----------------------------------------------------------------------
#define RVTEST_RV64U... | 14,971 | 54.451852 | 76 | h |
null | mempool-main/software/apps/axpy/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Yichao Zhang, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "kernel/axpy.h"
#include "printf.h"
#in... | 3,920 | 29.161538 | 79 | c |
null | mempool-main/software/apps/test_partial_barrier/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "printf.h"
#include "runtime.h"
#in... | 1,530 | 27.351852 | 75 | c |
null | mempool-main/software/apps/dct/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "kernel/dct.h"
#include "printf.h"
#in... | 1,961 | 21.044944 | 76 | c |
null | mempool-main/software/apps/matmul_i32/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "printf.h"
#include "runtime.h"
#inclu... | 4,650 | 32.702899 | 80 | c |
null | mempool-main/software/apps/conv2d_i8/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "printf.h"
#include "runtime.h"
#inclu... | 2,240 | 21.41 | 77 | c |
null | mempool-main/software/apps/systolic/queue_multi_test/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Gua Hao Khov, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "alloc.h"
#include "encoding.h"
#include "printf.h"
#include ... | 2,349 | 22.737374 | 75 | c |
null | mempool-main/software/apps/systolic/queue_test/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Gua Hao Khov, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "alloc.h"
#include "encoding.h"
#include "printf.h"
#include ... | 2,055 | 22.632184 | 75 | c |
null | mempool-main/software/apps/systolic/matmul/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Gua Hao Khov, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "alloc.h"
#include "encoding.h"
#include "printf.h"
#include ... | 4,716 | 25.5 | 76 | c |
null | mempool-main/software/apps/test_tile_wu/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "printf.h"
#include "runtime.h"
#in... | 3,753 | 32.517857 | 78 | c |
null | mempool-main/software/apps/dotp/dotp_parallel_red0.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
/*
Parallel dot-product with atomic fetch and add towards local memory
locations and final reduction by... | 3,761 | 29.585366 | 75 | h |
null | mempool-main/software/apps/dotp/dotp_parallel_redtree.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
/*
Parallel dot-product with atomic fetch and add towards local memory
locations and final reduction by... | 4,004 | 29.807692 | 78 | h |
null | mempool-main/software/apps/dotp/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "encoding.h"
#include "printf.h"
#inc... | 4,171 | 28.8 | 80 | c |
null | mempool-main/software/apps/dotp/dotp_parallel.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
/* Parallel dot-product */
void dotp_parallel(int32_t *in_a, int32_t *in_b, int32_t *s, uint32_t Len,
... | 2,294 | 26.321429 | 76 | h |
null | mempool-main/software/apps/dotp/define.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#define LEN (1024)
#define N_PE (NUM_CORES)
#define N_BANK (NUM_CORES * 4)
#define N_BANK_PE (N_PE * 4)
/*... | 1,565 | 26.964286 | 80 | h |
null | mempool-main/software/apps/dotp/dotp_parallel_local.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
/*
Parallel dot-product with final reduction performed by multiple cores
using atomic-fetch and adds to... | 4,949 | 29.368098 | 80 | h |
null | mempool-main/software/apps/dotp/dotp_single.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
/* Single-core dot-product */
void dotp_single(int32_t *in_a, int32_t *in_b, int32_t *s, uint32_t Len) {
... | 2,012 | 25.84 | 75 | h |
null | mempool-main/software/apps/convolution/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "kernel/convolution.h"
#include "print... | 3,620 | 23.972414 | 79 | c |
null | mempool-main/software/apps/tests/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "kernel/mat_mul.h"
#include "printf.h"... | 4,602 | 32.59854 | 80 | c |
null | mempool-main/software/apps/test_group_wu/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "printf.h"
#include "runtime.h"
#in... | 2,230 | 26.8875 | 79 | c |
null | mempool-main/software/apps/memcpy/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "data.h"
#include "dma.h"
#include "encoding.h"
#include "me... | 2,302 | 22.5 | 75 | c |
null | mempool-main/software/apps/hello_world/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Matheus Cavalcante, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "printf.h"
#include "runtime.h"
#... | 731 | 21.875 | 75 | c |
null | mempool-main/software/apps/synth/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "kernel/synth.h"
#include "printf.h"
#... | 903 | 21.6 | 75 | c |
null | mempool-main/software/apps/matmul_i8/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "printf.h"
#include "runtime.h"
#inclu... | 4,863 | 32.777778 | 80 | c |
null | mempool-main/software/apps/malloc_test/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Gua Hao Khov, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "alloc.h"
#include "encoding.h"
#include "printf.h"
#include ... | 5,444 | 31.218935 | 80 | c |
null | mempool-main/software/apps/cholesky_q32/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#include "encoding.h"
#include "printf.h"
#include "runtime.h"
#include "synchronization.h"
#define N_BANK... | 5,517 | 28.98913 | 80 | c |
null | mempool-main/software/apps/cholesky_q32/initialization.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#define FIXED_POINT 10
#define HALF 1023
#define FIX_DIV(a, b) ((int32_t)((a << FIXED_POINT) / b))
#define ... | 2,606 | 29.670588 | 80 | h |
null | mempool-main/software/apps/matrix_mul/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "kernel/mat_mul.h"
#include "printf.h"... | 5,358 | 29.976879 | 80 | c |
null | mempool-main/software/apps/matmul_i16/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "printf.h"
#include "runtime.h"
#inclu... | 4,803 | 32.830986 | 80 | c |
null | mempool-main/software/runtime/halide_runtime.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#ifndef __HALIDE_RUNTIME_H__
#define __HALIDE_RUNTIME_H__
#include "HalideRuntime.h"
#include <stdio.h>
void... | 916 | 32.962963 | 80 | h |
null | mempool-main/software/runtime/runtime.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
// Matheus Cavalcante, ETH Zurich
#pragma once
#include "alloc.h"
#include "encoding.h"
#include <stdd... | 6,385 | 33.333333 | 80 | h |
null | mempool-main/software/runtime/dma.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
// ATTENTION: The DMA is in a very preliminary state and likely to cause issues.
#ifndef _DMA_H_
#define _DMA... | 2,510 | 31.192308 | 80 | h |
null | mempool-main/software/runtime/mempool_dma_frontend.h | // Generated register defines for mempool_dma_frontend
// Copyright information found in source file:
// Copyright 2022 ETH Zurich and University of Bologna.
// Licensing information found in source file:
// Licensed under Solderpad Hardware License, Version 0.51, see LICENSE for
// details. SPDX-License-Identifier: ... | 1,463 | 29.5 | 75 | h |
null | mempool-main/software/runtime/arch.ld.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
/* This file will get processed by the precompiler to expand all macros. */
MEMORY {
l1 (R) : ORIGIN = 0x00000000, LENGTH = (NUM_CORES * 0x1000) ... | 2,016 | 31.015873 | 97 | c |
null | mempool-main/software/runtime/synchronization.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include <stdbool.h>
#include <stdint.h>
#include "runtime.h"
#include "synchronization.h"
uint32_t volatile... | 6,866 | 35.919355 | 80 | c |
null | mempool-main/software/runtime/halide_runtime.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#include "halide_runtime.h"
#include "printf.h"
#include "runtime.h"
#include "synchronization.h"
#include <st... | 1,975 | 23.097561 | 80 | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.