repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
fxjm/BuDeJie | BuDeJie/Classes/Setting/Controller/FLPSettingViewController.h | //
// FLPSettingViewController.h
// BuDeJie
//
// Created by <NAME> on 2019/8/30.
// Copyright © 2019 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface FLPSettingViewController : UITableViewController
@end
NS_ASSUME_NONNULL_END
|
fxjm/BuDeJie | BuDeJie/Classes/Other/Category/UIBarButtonItem+Item.h | //
// UIBarButtonItem+Item.h
// BuDeJie
//
// Created by <NAME> on 2019/8/23.
// Copyright © 2019 <NAME>. All rights reserved.
//
NS_ASSUME_NONNULL_BEGIN
@interface UIBarButtonItem (Item)
+(UIBarButtonItem *)itemWithImage:(UIImage *)image hightImage:(UIImage *)hightImage target:(nullable id)target action:(SEL)a... |
fxjm/BuDeJie | BuDeJie/Classes/Other/AppDelegate.h | //
// AppDelegate.h
// BuDeJie
//
// Created by <NAME> on 2019/8/22.
// Copyright © 2019 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
fxjm/BuDeJie | BuDeJie/Classes/Tool/File/XMGFileTool.h | //
// XMGFileTool.h
// BuDeJie
//
// Created by xiaomage on 16/3/16.
// Copyright © 2013年 xxx. All rights reserved.
// 处理文件缓存
#import <Foundation/Foundation.h>
/*
业务类:以后开发中用来专门处理某件事情,网络处理,缓存处理
*/
@interface XMGFileTool : NSObject
/**
* 获取文件夹尺寸
*
* @param directoryPath 文件夹路径
*
* @return 返回文件夹尺寸
*/
+ ... |
seanboyy/BitmapWriter | Bitmap/BMP_Handler32d/BMP_Handler.h | <filename>Bitmap/BMP_Handler32d/BMP_Handler.h
#pragma once
#ifdef BMPEXPORTS
#define BMP_API __declspec(dllexport)
#else
#define BMP_API __declspec(dllimport)
#pragma comment(lib, "BMP_Handler32d.lib")
#endif
class BMP_Handler {
public:
static BMP_API unsigned char* loadBMP(const char*, int&, int&);
static BMP_API... |
seanboyy/BitmapWriter | Bitmap/BMP_Handler32d/Bitmap_IO.h | <reponame>seanboyy/BitmapWriter
#pragma once
#include <string>
#include <cassert>
#include <vector>
#include <fstream>
#include <iostream>
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned short ushort;
namespace bmp {
class Bitmap {
public:
struct Pixel {
Pixel();
Pixel(uchar, uchar... |
seanboyy/BitmapWriter | BMPOtherEnd/BMPOtherEnd/GeneratedFiles/ui_BMPOtherEnd.h | /********************************************************************************
** Form generated from reading UI file 'BMPOtherEnd.ui'
**
** Created by: Qt User Interface Compiler version 5.6.3
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***************************************... |
seanboyy/BitmapWriter | BMPOtherEnd/BMPOtherEnd/BMPOtherEnd.h | #pragma once
#include <BMP_Handler.h>
#include <QPlainTextEdit>
#include <QtWidgets/QMainWindow>
#include "ui_BMPOtherEnd.h"
class BMPOtherEnd : public QMainWindow
{
Q_OBJECT
public:
BMPOtherEnd(QWidget *parent = Q_NULLPTR);
public slots:
//loading file
void loadFile(void);
//saving file
void saveFile(void);
... |
papagiannakis/PyGLM | PyGLM/internal_functions/warnings.h | #pragma once
#include "error_functions.h"
#define PyGLM_FREXP_WARNING 0x1
#define PyGLM_FLOAT_ZERO_DIVISION_WARNING 0x2
int PyGLM_SHOW_WARNINGS = PyGLM_FREXP_WARNING | PyGLM_FLOAT_ZERO_DIVISION_WARNING;
static PyObject*
silence(PyObject*, PyObject* arg) {
if (PyLong_Check(arg)) {
int warning_id = static_cast... |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/matrix_transform.h | #pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
#include "../function_generator_macros.h"
static PyObject*
identity_(PyObject*, PyObject* arg) {
if (!PyType_Check(arg)) {
PyGLM_TYPEERROR_O("identity() requires a PyGLM matrix type as it's argu... |
papagiannakis/PyGLM | PyGLM/functions/detail/func_geometric.h | #pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
#include "../function_generator_macros.h"
PyGLM_MAKE_GLM_FUNC_N_V_Q__tfF(length)
PyGLM_MAKE_GLM_FUNC_NN_VV__tfF(distance)
PyGLM_MAKE_GLM_FUNC_NN_VV_QQ__tfF(dot)
static PyObject*
cross_(PyObject*,... |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/type_ptr.h | #pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
static PyObject*
sizeof_(PyObject*, PyObject* arg) {
if (PyGLM_Vec_Check(1, float, arg) || arg == (PyObject*)&hfvec1Type) {
return PyLong_FromLong(sizeof(glm::vec<1, float>));
}
if (PyGLM_Vec_C... |
papagiannakis/PyGLM | PyGLM/functions/detail/func_trigonometric.h | <filename>PyGLM/functions/detail/func_trigonometric.h
#pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
#include "../function_generator_macros.h"
PyGLM_MAKE_GLM_FUNC_N_V__tfF(radians)
PyGLM_MAKE_GLM_FUNC_N_V__tfF(degrees)
PyGLM_MAKE_GLM_FUNC_N_V_... |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/matrix_inverse.h | <gh_stars>0
#pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
static PyObject*
affineInverse_(PyObject*, PyObject* arg) {
PyGLM_PTI_Init0(arg, PyGLM_T_MAT | PyGLM_SHAPE_3x3 | PyGLM_SHAPE_4x4 | PyGLM_DT_FD);
if (PyGLM_Mat_PTI_Check0(3, 3, float, a... |
papagiannakis/PyGLM | PyGLM/functions/all.h | #pragma once
#include "function_generator_macros.h"
#include "detail/all.h"
#include "stable_extensions/all.h"
#include "unstable_extensions/all.h" |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/color_space.h | <reponame>papagiannakis/PyGLM
#pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
#include "../function_generator_macros.h"
static PyObject*
convertLinearToSRGB_(PyObject*, PyObject* args) {
PyObject* arg1;
PyObject* arg2 = NULL;
if (!PyArg_Unpac... |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/quaternion.h | <reponame>papagiannakis/PyGLM
#pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
#include "../function_generator_macros.h"
PyGLM_MAKE_GLM_FUNC_V3V3__tfF(quatLookAt)
PyGLM_MAKE_GLM_FUNC_V3V3__tfF(quatLookAtLH)
PyGLM_MAKE_GLM_FUNC_V3V3__tfF(quatLookA... |
papagiannakis/PyGLM | PyGLM/functions/detail/func_common.h | <filename>PyGLM/functions/detail/func_common.h
#pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
#include "../function_generator_macros.h"
PyGLM_MAKE_GLM_FUNC_N_V__tfF(abs)
PyGLM_MAKE_GLM_FUNC_N_V__tfF(sign)
PyGLM_MAKE_GLM_FUNC_N_V__tfF(floor)
PyG... |
papagiannakis/PyGLM | PyGLM/internal_functions/type_getters/mat.h | #pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
template<int C, int R, typename T>
static constexpr PyTypeObject* PyGLM_MAT_TYPE() {
return (std::is_same<mat<C, R, T>, mat<2, 2, float> >::value) ? (PyTypeObject*)&hfmat2x2Type :
(std::is_same<mat<C, R, T>, mat<2, 3, float> >::value) ? (... |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/packing.h | <reponame>papagiannakis/PyGLM<gh_stars>0
#pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
static PyObject*
packHalf1x16_(PyObject*, PyObject* arg) {
if (PyFloat_Check(arg)) {
return PyLong_FromUnsignedLong((unsigned long)glm::packHalf1x16(PyGLM... |
papagiannakis/PyGLM | PyGLM/types/mvec/double/mvec3.h | <reponame>papagiannakis/PyGLM<filename>PyGLM/types/mvec/double/mvec3.h
#pragma once
#include "../forward_declarations.h"
static PyMethodDef hdmvec3_methods[] = {
{ "__copy__", (PyCFunction)mvec_copy<3, double>, METH_NOARGS, "Create a copy of this instance"},
{ "__deepcopy__", (PyCFunction)mvec_deepcopy<3, double>, ... |
papagiannakis/PyGLM | PyGLM/types/all.h | <filename>PyGLM/types/all.h
#pragma once
#include "types.h"
#include "forward_declarations.h"
#include "mat/all.h"
#include "mvec/all.h"
#include "qua/all.h"
#include "vec/all.h"
#include "glmArray/glmArray.h" |
papagiannakis/PyGLM | PyGLM/type_methods/glmArray.h | <reponame>papagiannakis/PyGLM<filename>PyGLM/type_methods/glmArray.h<gh_stars>0
#pragma once
#include "../compiler_setup.h"
#include "../internal_functions/all.h"
#include "../types/glmArray/glmArray.h"
static PyObject*
glmArray_getPtr(glmArray* self, void*) {
return PyGLM_CtypesVoidP_FromVoidP(self->data);
}
sta... |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/reciprocal.h | <reponame>papagiannakis/PyGLM
#pragma once
#include "../function_generator_macros.h"
PyGLM_MAKE_GLM_FUNC_N_V__tfF(sec)
PyGLM_MAKE_GLM_FUNC_N_V__tfF(csc)
PyGLM_MAKE_GLM_FUNC_N_V__tfF(cot)
PyGLM_MAKE_GLM_FUNC_N_V__tfF(asec)
PyGLM_MAKE_GLM_FUNC_N_V__tfF(acsc)
PyGLM_MAKE_GLM_FUNC_N_V__tfF(acot)
PyGLM_MAKE_GLM_FUNC_N_V_... |
papagiannakis/PyGLM | PyGLM/functions/unstable_extensions/norm.h | #pragma once
#include "../function_generator_macros.h"
PyGLM_MAKE_GLM_FUNC_VV__tfF(distance2)
PyGLM_MAKE_GLM_FUNC_V3_V3V3__tfF(l1Norm)
PyGLM_MAKE_GLM_FUNC_V3_V3V3__tfF(l2Norm)
PyGLM_MAKE_GLM_FUNC_N_V__tfF(length2)
static PyObject*
lxNorm_(PyObject*, PyObject* args) {
PyObject *arg1, *arg2, *arg3 = NULL;
if (!Py... |
papagiannakis/PyGLM | PyGLM/types/forward_declarations.h | <gh_stars>0
#pragma once
#include "types.h"
static PyObject* generic_copy(PyObject* self, PyObject*);
static PyObject* generic_deepcopy(PyObject* self, PyObject* memo); |
papagiannakis/PyGLM | PyGLM/functions/unstable_extensions/polar_coordinates.h | <filename>PyGLM/functions/unstable_extensions/polar_coordinates.h
#pragma once
#include "../function_generator_macros.h"
PyGLM_MAKE_GLM_FUNC_V3__tfF(polar)
PyGLM_MAKE_GLM_FUNC_V2__tfF(euclidean)
#define POLAR_COORDINATES_METHODS { "polar", (PyCFunction)polar_, METH_O, "polar(v) -> vec3\nConvert Euclidean to Polar co... |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/round.h | <filename>PyGLM/functions/stable_extensions/round.h
#pragma once
#include "../function_generator_macros.h"
PyGLM_MAKE_GLM_FUNC_N_V__tiqsu(isPowerOfTwo);
PyGLM_MAKE_GLM_FUNC_N_V__tiqsu(ceilPowerOfTwo);
PyGLM_MAKE_GLM_FUNC_N_V__tiqsu(floorPowerOfTwo);
PyGLM_MAKE_GLM_FUNC_N_V__tiqsu(roundPowerOfTwo);
//PyGLM_MAKE_GLM_FU... |
papagiannakis/PyGLM | PyGLM/functions/detail/func_exponential.h | #pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
#include "../function_generator_macros.h"
static PyObject*
pow_(PyObject*, PyObject* args) {
PyObject *arg1, *arg2;
PyGLM_Arg_Unpack_2O(args, "pow", arg1, arg2);
if (PyGLM_Number_Check(arg1) && ... |
papagiannakis/PyGLM | PyGLM/functions/detail/func_packing.h | #pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
static PyObject*
packDouble2x32_(PyObject*, PyObject* arg) {
PyGLM_PTI_Init0(arg, PyGLM_T_VEC | PyGLM_SHAPE_2 | PyGLM_DT_UINT);
if (PyGLM_Vec_PTI_Check0(2, glm::uint, arg)) {
glm::uvec2 o = PyGL... |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/noise.h | #pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
static PyObject*
perlin_(PyObject*, PyObject* args) {
PyObject *arg1, *arg2 = NULL;
if (!PyArg_UnpackTuple(args, "perlin", 1, 2, &arg1, &arg2)) {
PyErr_SetString(PyExc_TypeError, "invalid argume... |
papagiannakis/PyGLM | PyGLM/types/glmArray/glmArray.h | <reponame>papagiannakis/PyGLM
#pragma once
#include "forward_declarations.h"
static PyMemberDef glmArray_members[] = {
{ "nbytes", T_PYSSIZET, offsetof(glmArray, nBytes), 1, "Total combined bytecount of all elements" },
{ "typecode", T_CHAR, offsetof(glmArray, format), 1, "The typecode character of the underlying f... |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/constants.h | <gh_stars>0
#pragma once
#include "../function_generator_macros.h"
PyGLM_MAKE_GLM_FUNC__rF(epsilon)
PyGLM_MAKE_GLM_FUNC__rF(zero)
PyGLM_MAKE_GLM_FUNC__rF(one)
PyGLM_MAKE_GLM_FUNC__rF(pi)
PyGLM_MAKE_GLM_FUNC__rF(two_pi)
PyGLM_MAKE_GLM_FUNC__rF(root_pi)
PyGLM_MAKE_GLM_FUNC__rF(half_pi)
PyGLM_MAKE_GLM_FUNC__rF(three_ove... |
papagiannakis/PyGLM | PyGLM/functions/detail/func_integer.h | <reponame>papagiannakis/PyGLM
#pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
static PyObject*
uaddCarry_(PyObject*, PyObject* args) {
PyObject *arg1, *arg2, *arg3;
PyGLM_Arg_Unpack_3O(args, "uaddCarry", arg1, arg2, arg3);
if (PyGLM_Number_Che... |
papagiannakis/PyGLM | PyGLM/functions/detail/func_matrix.h | #pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
#include "../function_generator_macros.h"
static PyObject*
outerProduct_(PyObject*, PyObject* args) {
PyObject *arg1, *arg2;
PyGLM_Arg_Unpack_2O(args, "outerProduct", arg1, arg2);
PyGLM_PTI_Init... |
papagiannakis/PyGLM | PyGLM/internal_functions/number_functions.h | <reponame>papagiannakis/PyGLM
#pragma once
#include "../compiler_setup.h"
#define PyGLM_Number_Check(arg) (PyFloat_Check(arg) || PyLong_Check(arg) || PyBool_Check(arg))
double PyGLM_Number_AsDouble(PyObject* arg) {
if (PyFloat_Check(arg)) {
return PyFloat_AS_DOUBLE(arg);
}
if (PyLong_Check(arg)) {
return PyLo... |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/integer.h | #pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
static PyObject*
iround_(PyObject*, PyObject* arg) {
if (PyGLM_Number_Check(arg)) {
double d = PyGLM_Number_FromPyObject<double>(arg);
PyGLM_ASSERT((0.0 <= d), "x has to be greater than or equa... |
papagiannakis/PyGLM | PyGLM/imports.h | <reponame>papagiannakis/PyGLM<filename>PyGLM/imports.h<gh_stars>0
#pragma once
#include "../build_options.h"
#include <Python.h>
#include "structmember.h"
#include <cstdlib>
#include <type_traits>
#include <stdint.h>
#include <clocale>
#define GLM_FORCE_CTOR_INIT
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/glm.h... |
papagiannakis/PyGLM | version.h | #define PyGLM_VERSION "1.2.0" |
papagiannakis/PyGLM | PyGLM/functions/stable_extensions/random.h | <reponame>papagiannakis/PyGLM<gh_stars>0
#pragma once
#include "../../compiler_setup.h"
#include "../../types/all.h"
#include "../../internal_functions/all.h"
#include "../function_generator_macros.h"
PyGLM_MAKE_GLM_FUNC_NN_VV__tGPL(linearRand)
PyGLM_MAKE_GLM_FUNC_NN_VV__tGPL(gaussRand)
static PyObject*
circularR... |
papagiannakis/PyGLM | PyGLM/types/mvec/forward_declarations.h | <filename>PyGLM/types/mvec/forward_declarations.h
#pragma once
#include "../forward_declarations.h"
template<int L, typename T>
static int mvec_getbuffer(mvec<L, T>* self, Py_buffer* view, int flags);
void mvec_releasebuffer(PyObject* self, Py_buffer* view);
template<int L>
static Py_ssize_t mvec_len(PyObject* self... |
marka63/flamethrower | flame/metrics.h | // Copyright 2017 NSONE, Inc
#pragma once
#include "config.h"
#include <nlohmann/json.hpp>
#include <chrono>
#include <fstream>
#include <memory>
#include <unordered_map>
#include <uvw.hpp>
class Metrics;
class MetricsMgr
{
std::chrono::high_resolution_clock::time_point _start_time;
std::chrono::high_reso... |
marka63/flamethrower | flame/target.h | #ifndef FLAMETHROWER_TARGET_H
#define FLAMETHROWER_TARGET_H
struct http_parser_url;
struct Target {
http_parser_url* parsed;
std::string address;
std::string uri;
};
#endif //FLAMETHROWER_TARGET_H
|
feltor-dev/spectral | file/nc_utilities.h | <filename>file/nc_utilities.h<gh_stars>0
#pragma once
#include <exception>
#include <netcdf.h>
#include "thrust/host_vector.h"
#include "dg/backend/grid.h"
#include "dg/backend/weights.cuh"
/*!@file
*
* Contains Error handling class and the define_dimensions functions
*/
namespace file
{
/**
* @brief Class thro... |
feltor-dev/spectral | src/interactive/equations.h | #ifndef _TL_EQUATIONS_
#define _TL_EQUATIONS_
#include <array>
#include <complex>
#include "spectral/matrix.h"
#include "spectral/quadmat.h"
#include "blueprint.h"
namespace spectral{
/*! @addtogroup equations
* @{
*/
/*! @brief Yield the coefficients for the local Poisson equation
*/
class Poisson
{
public:... |
feltor-dev/spectral | spectral/matrix.h | #ifndef _TL_MATRIX_
#define _TL_MATRIX_
#include <iostream>
#include <array>
#include <vector>
#include "fftw3.h"
#include "exceptions.h"
#include "padding.h"
namespace spectral{
/*! @brief enum for telling to not allocate memory
@ingroup containers
*/
enum Void{ TL_VOID = false //!< Use for not allocating memo... |
feltor-dev/spectral | file/file.h | <filename>file/file.h
#ifndef _FILE_
#define _FILE_
#include <iostream>
#include <iomanip>
#include <sstream>
#include <cmath>
#include <cassert>
#include "read_input.h"
#include "hdf5.h"
#include "hdf5_hl.h"
/**
* @file
* Utility functions for proper scientific h5 file format
*/
/**
* @brief Namespace contai... |
feltor-dev/spectral | spectral/toefl_doc.h | #error Documentation only
/*! @namespace spectral
* @brief This is the namespace for all functions and
* classes defined and used by the spectral solvers.
*/
/*!
* @defgroup TOEFL The TOEFL library
* @{
* @defgroup containers Containers
* @defgroup algorithms Numerical schemes
* @defgroup fftw ... |
feltor-dev/spectral | spectral/ghostmatrix.h | #ifndef _TL_GHOSTMATRIX_
#define _TL_GHOSTMATRIX_
#include "matrix.h"
#include <array>
namespace spectral{
/*! @brief Possible boundary conditions for the ghostmatrix class.
* Naming follows FFTW R2R kind naming.
*
* @ingroup containers
* @sa http://en.wikipedia.org/wiki/Discrete_sine_transform
*/
enum bc { TL... |
feltor-dev/spectral | spectral/timer.h | <reponame>feltor-dev/spectral
#ifndef _TL_TIMER_
#define _TL_TIMER_
#include <sys/time.h>
namespace spectral{
/*! @brief Very simple tool for performance measuring
* @ingroup utilitiesX
*/
class Timer
{
timeval start;
timeval stop;
public:
/*! @brief Start timer using gettimeofday */
void tic()... |
feltor-dev/spectral | spectral/dft_dft.h | <reponame>feltor-dev/spectral
#ifndef _TL_DFT_DFT_
#define _TL_DFT_DFT_
#include <complex>
#include "matrix.h"
#include "fftw3.h"
#include "fft.h"
namespace spectral{
/*! @brief Class for 2d discrete fourier transformations of Matrix using FFTW
*
* @ingroup fftw
* Actually just a wrapper for the dft_c2r_2d/r2c_2d... |
feltor-dev/spectral | spectral/arakawa.h | <gh_stars>0
/*!
* @file
* @brief Implementation of the arakawa scheme
* @author <NAME>
* <EMAIL>
*
*/
#ifndef _TL_ARAKAWA_
#define _TL_ARAKAWA_
#include "quadmat.h"
namespace spectral{
template< class M>
static double interior( const size_t i0, const size_t j0, const M& lhs, const M& rhs);
template< class M... |
feltor-dev/spectral | spectral/init.h | /*! \file
* @brief Implementation of some matrix initialisation routines
* @author <NAME>
* <EMAIL>
*/
#ifndef _TL_INIT_
#define _TL_INIT_
#include <time.h>
#include <math.h>
namespace spectral
{
/*! @addtogroup utilitiesX
* @{
*/
/*! @brief Adds a gaussian to a given matrix
*
* The function interprets the... |
feltor-dev/spectral | spectral/drt_drt.h | <reponame>feltor-dev/spectral
#ifndef _TL_DRT_DRT_
#define _TL_DRT_DRT_
#include "fftw3.h"
#include "matrix.h"
#include "fft.h"
namespace spectral
{
/*! @brief Class for 2d r2r transformation of Matrix using FFTW
*
* @ingroup fftw
* Actually just a wrapper for the r2r_2d plans and execute functions
* Note that R... |
feltor-dev/spectral | spectral/karniadakis.h | <reponame>feltor-dev/spectral
#ifndef _TL_KARNIADAKIS_
#define _TL_KARNIADAKIS_
#include <array>
#include "matrix.h"
#include "matrix_array.h"
#include "quadmat.h"
namespace spectral{
/*! @brief Kinds of Stepper coefficients for karniadakis scheme
* @ingroup algorithms
*/
enum stepper { TL_EULER, //!< Euler scheme (... |
feltor-dev/spectral | src/innto/dft_dft_solver.h | #ifndef _DFT_DFT_SOLVER_
#define _DFT_DFT_SOLVER_
#include <complex>
#include "spectral/spectral.h"
#include "blueprint.h"
#include "equations.h"
namespace spectral
{
/*! @brief Solver for periodic boundary conditions of the spectral equations.
* @ingroup solvers
*/
template< size_t n>
class DFT_DFT_Solver
{
pu... |
feltor-dev/spectral | src/innto/energetics.h | <filename>src/innto/energetics.h
#pragma once
#include <complex>
#include <cassert>
#include "spectral/spectral.h"
#include "blueprint.h"
#include "equations.h"
namespace spectral{
///@addtogroup solvers
///@{
/**
* @brief Blas1 function
*
* computes \f[ y = \alpha x + \beta y \f]
*... |
feltor-dev/spectral | spectral/message.h | /*!
* \file
* \author <NAME>
* \date 20.10.2012
*/
#ifndef _MESSAGE_
#define _MESSAGE_
#include <iostream>
/*! for the simplified construction of a Message use this Macro*/
#define _ping_ __FILE__, __LINE__
namespace spectral
{
/*! @brief class intended for the use in throw statements
*
* @ingroup exception... |
feltor-dev/spectral | spectral/karniadakis2.h | //empty dummy file to make the karniadakis2_t.cpp file compile with make
|
feltor-dev/spectral | spectral/quadmat.h | /*!
* @file
* @brief Implementation of the QuadMat class and the invert function
* @author <NAME>
* <EMAIL>
*
*/
#ifndef _TL_QUADMAT_
#define _TL_QUADMAT_
#include <iostream>
#include "exceptions.h"
namespace spectral{
/*! @brief POD container for quadratic fixed size matrices
*
* @ingroup containers
* The Q... |
feltor-dev/spectral | spectral/spectral.h | <reponame>feltor-dev/spectral<gh_stars>0
/*! @file
* @brief This file includes all header files of the spectral library
*/
#ifndef _TL_TOEFL_
#define _TL_TOEFL_
//Message handling
#include "message.h"
#include "exceptions.h"
//input reading and visualization
//#include "read_input.h" //moved to file lib
//#include ... |
feltor-dev/spectral | spectral/dft_drt.h | #ifndef _TL_DFT_DRT_
#define _TL_DFT_DRT_
#include <complex>
#include "fftw3.h"
#include "matrix.h"
#include "fft.h"
namespace spectral
{
/*! @brief Expansion class of DRT_DRT for periodic BC in the horizontal direction
*
* @ingroup fftw
* First transforms linewise r2c, then transposes (r2r) and transforms linewis... |
Katistic/3ds_monty | 3ds/modules/citrus/soc.c | #include <malloc.h>
#include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_soc_##__n##_obj, mod_citrus_soc_##__n)
#define METHOD_OBJ_KW(__min, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(mod_citrus_soc_##__n##_... |
Katistic/3ds_monty | py/emitglue.c | <reponame>Katistic/3ds_monty<gh_stars>10-100
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation ... |
Katistic/3ds_monty | 3ds/modules/citrus/news.c | <reponame>Katistic/3ds_monty
#include <string.h>
#include <stdint.h>
#include <3ds.h>
#include "py/runtime.h"
#include "py/objstr.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_news_##__n##_obj, mod_citrus_news_##__n)
#define METHOD_OBJ_VAR_... |
Katistic/3ds_monty | 3ds/modules/citrus/hid.c | <filename>3ds/modules/citrus/hid.c
#include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_hid_##__n##_obj, mod_citrus_hid_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_c... |
Katistic/3ds_monty | 3ds/modules/_img/common.h | <reponame>Katistic/3ds_monty<gh_stars>10-100
#ifndef _IMG_COMMON_H_
#define _IMG_COMMON_H_
typedef struct {
unsigned char *buffer;
size_t length;
size_t cursor;
} mem_file;
#endif // _IMG_COMMON_H_ |
Katistic/3ds_monty | 3ds/netrepl.h | <filename>3ds/netrepl.h
#ifndef _NET_REPL_H_
#define _NET_REPL_H_
#include <unistd.h>
#include <3ds.h>
#define REPL_OK 0
#define REPL_CONTINUE 1
#define REPL_ERROR 2
#define REPL_QUIT 3
#define REPL_WAIT 4
typedef struct PACKED {
int type;
bool partial;
size_t line_len;
char *line;... |
Katistic/3ds_monty | 3ds/modules/sftd.c | <filename>3ds/modules/sftd.c
#include <sftd.h>
#include "py/runtime.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_sftd_##__n##_obj, mod_sftd_##__n)
#define LOCAL_CLASS(__n) \
{MP_ROM_QSTR(MP_QSTR_##__n), MP_ROM_PTR(&mod_sftd_##__n##_type)}
#define LOCAL_METHOD(__n) \
... |
Katistic/3ds_monty | 3ds/modules/file.h | #ifndef MICROPYTHON_FILE_H
#define MICROPYTHON_FILE_H
typedef struct _mp_obj_fdfile_t {
mp_obj_base_t base;
int fd;
} mp_obj_fdfile_t;
extern const mp_obj_type_t mp_type_fileio;
extern const mp_obj_type_t mp_type_textio;
#endif //MICROPYTHON_FILE_H
|
Katistic/3ds_monty | 3ds/modules/_img/_PngLoader.c | <filename>3ds/modules/_img/_PngLoader.c
#include <malloc.h>
#include <string.h>
#include <unistd.h>
#include <3ds.h>
#include <png.h>
#include "py/runtime.h"
#include "py/objstr.h"
#include "py/stream.h"
#include "../file.h"
#include "common.h"
#define SELF(src) mod__img__PngLoader_t *self = src
#define METHOD_OBJ... |
Katistic/3ds_monty | 3ds/modules/citrus/sslc.c | #include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_sslc_##__n##_obj, mod_citrus_sslc_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_citrus_sslc_##__n##_obj}
static i... |
Katistic/3ds_monty | 3ds/modules/_img/_JpegLoader.c | #include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <3ds.h>
#include <jpeglib.h>
#include "py/runtime.h"
#include "py/objstr.h"
#include "py/stream.h"
#include "../file.h"
#include "common.h"
#define SELF(src) mod__img__JpegLoader_t *self = src
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFI... |
Katistic/3ds_monty | 3ds/modules/citrus/ptmsysm.c | #include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_ptmsysm_##__n##_obj, mod_citrus_ptmsysm_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_citrus_ptmsysm_##__n##_obj}
... |
Katistic/3ds_monty | 3ds/modules/citrus/gsp.c | <gh_stars>10-100
#include <3ds.h>
#include "py/runtime.h"
#include "helpers.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_gsp_##__n##_obj, mod_citrus_gsp_##__n)
#define METHOD_OBJ_KW(__min, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(mod_ci... |
Katistic/3ds_monty | 3ds/netcommon.c | <filename>3ds/netcommon.c
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <malloc.h>
#include <stdio.h>
#include <unistd.h>
#include <3ds.h>
#include "basic_console.h"
#define SOC_BUFFER_ALIGNMENT 0x1000
#define SOC_BUFFER_SIZE 0x100000
static void *soc_buffer;
int net_error(const char *error... |
Katistic/3ds_monty | 3ds/file_lexer.c | #include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include "py/mpconfig.h"
#include "py/lexer.h"
typedef struct _mp_lexer_file_buf_t {
int fd;
byte buf[1024];
uint16_t len;
uint16_t pos;
} mp_lexer_file_buf_t;
STATIC mp_uint_t file_buf_next_byte(mp_lexer_file_buf_t *fb) {
if (fb->pos >= f... |
Katistic/3ds_monty | 3ds/config.h | <reponame>Katistic/3ds_monty<gh_stars>10-100
#ifndef _3DS_CONFIG_H_
#define _3DS_CONFIG_H_
// Available build modes:
#define _3DS_MODE_REPL (0)
#define _3DS_MODE_NETLOAD (1)
#define _3DS_MODE_ROMFS (2)
#define _3DS_MODE_ARGS (3)
#endif // _3DS_CONFIG_H_
|
Katistic/3ds_monty | 3ds/modules/citrus/cfg.c | #include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ(__n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_citrus_cfg_##__n##_obj, mod_citrus_cfg_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_citrus_cfg_##__n##_obj}
#define LOCAL_INT(__n) \
... |
Katistic/3ds_monty | 3ds/modules/citrus/ir.c | #include <malloc.h>
#include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_ir_##__n##_obj, mod_citrus_ir_##__n)
#define METHOD_OBJ_VAR(__min, __max, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_citr... |
Katistic/3ds_monty | 3ds/netcommon.h | #ifndef _NET_COMMON_H_
#define _NET_COMMON_H_
#define NET_BUFFER_SIZE 32768
int net_error(const char *error);
int net_server_init(unsigned short port);
void net_server_exit(int socket);
#endif // _NET_COMMON_H_ |
Katistic/3ds_monty | 3ds/modules/citrus/classes/AptHook.c | #include <string.h>
#include <3ds.h>
#include "py/runtime.h"
#define SELF(src) mod_citrus_apt_Hook_t *self = src
#define ATTR_METHOD(__n) \
if(!strcmp(name, qstr_str(MP_QSTR_##__n))) { \
dest[0] = (mp_obj_t) &mod_citrus_apt_Hook_##__n##_obj; \
}
const mp_obj_type_t mod_citrus_apt_Hook_type;
typede... |
Katistic/3ds_monty | 3ds/modules/citrus/fs.c | <gh_stars>10-100
#include <3ds.h>
#include "py/runtime.h"
#define LOCAL_INT(__n, __v) \
{MP_ROM_QSTR(MP_QSTR_##__n), MP_ROM_INT(__v)}
FS_MediaType _mod_citrus_fs_get_mediatype(mp_obj_t type) {
if (mp_obj_is_integer(type)) {
int _type = mp_obj_get_int(type);
if (_type >= MEDIATYPE_NAND && _typ... |
Katistic/3ds_monty | 3ds/modules/mod_cpy_os.c | #include <limits.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "py/runtime.h"
extern const mp_obj_module_t mp_module_os_path;
mp_obj_t mod_os_mkdir(size_t n_args, const mp_obj_t *args) {
const char *path = mp_obj_str_get_str(args[0]);
mode_t mode = 0777;
... |
Katistic/3ds_monty | 3ds/modules/socket/SocketErrorException.c | <reponame>Katistic/3ds_monty
#include "py/runtime.h"
#include "py/objexcept.h"
STATIC void mod_socket_exception_error_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) {
mp_obj_exception_t *o = MP_OBJ_TO_PTR(o_in);
mp_print_kind_t k = kind & ~PRINT_EXC_SUBCLASS;
bool is_subclass = kind & ... |
Katistic/3ds_monty | 3ds/modules/citrus/classes/NdspChannel.c | #include <string.h>
#include <3ds.h>
#include "py/runtime.h"
#include "../helpers.h"
#define SELF(src) mod_citrus_ndsp_Channel_t *self = src;
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_ndsp_Channel_##__n##_obj, mod_citrus_ndsp_Channel_##__n)
#define METHOD_OBJ_KW(__m... |
Katistic/3ds_monty | 3ds/modules/citrus/httpc.c | <gh_stars>10-100
#include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
// 8kb
#define DEFAULT_SHAREDMEM_SIZE 8192
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_httpc_##__n##_obj, mod_citrus_httpc_##__n)
#define METHOD_OBJ_KW(__min, __n) \
STATIC MP_DEF... |
Katistic/3ds_monty | 3ds/modules/citrus.c | <gh_stars>10-100
#include "py/runtime.h"
#include "citrus/exits.h"
#define IMPORT_SUBMODULE(__n) \
extern const mp_obj_module_t mp_module_citrus_##__n;
#define SUBMODULE(__n) \
{MP_ROM_QSTR(MP_QSTR_##__n), MP_ROM_PTR(&mp_module_citrus_##__n)}
// submodules
IMPORT_SUBMODULE(ac);
IMPORT_SUBMODULE(apt);
IMPORT... |
Katistic/3ds_monty | 3ds/modules/citrus/os.c | #include <string.h>
#include <3ds.h>
#include "py/runtime.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_os_##__n##_obj, mod_citrus_os_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_citrus_os_##__n##_obj}
STATIC mp_obj_t mod_ci... |
Katistic/3ds_monty | 3ds/modules/citrus/ac.c | #include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ(__n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_citrus_ac_##__n##_obj, mod_citrus_ac_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_citrus_ac_##__n##_obj}
static int _mod_citrus_ac_is_in... |
Katistic/3ds_monty | 3ds/modules/citrus/ns.c | <filename>3ds/modules/citrus/ns.c
#include <3ds.h>
#include "py/runtime.h"
#include "helpers.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_ns_##__n##_obj, mod_citrus_ns_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n),... |
Katistic/3ds_monty | 3ds/modules/citrus/classes/NdspSound.c | <filename>3ds/modules/citrus/classes/NdspSound.c
#include <string.h>
#include <stdio.h>
#include <3ds.h>
#include "py/runtime.h"
#include "py/objstr.h"
#include "py/stream.h"
#include "../helpers.h"
#include "../../file.h"
#define SELF(src) mod_citrus_ndsp_Sound_t *self = src;
#define METHOD_OBJ_N(__args, __n) \
... |
Katistic/3ds_monty | 3ds/modules/time.c | <gh_stars>10-100
#include <string.h>
#include <3ds.h>
#include "py/runtime.h"
STATIC mp_obj_t mod_time_time(void) {
double time = osGetTime() / 1000;
return mp_obj_new_float(time);
}
MP_DEFINE_CONST_FUN_OBJ_0(mod_time_time_obj, mod_time_time);
STATIC const mp_rom_map_elem_t mp_module_time_globals_table[] ... |
Katistic/3ds_monty | extmod/vfs_fat_misc.c | <reponame>Katistic/3ds_monty
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),... |
Katistic/3ds_monty | 3ds/stubs.c | #include <string.h>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <dirent.h>
#include <errno.h>
#include <sys/stat.h>
#include <stdint.h>
#include <stdarg.h>
#include <3ds.h>
#include "py/runtime.h"
#include "py/lexer.h"
mp_import_stat_t mp_import_stat(const char *path) {
FILE *f = fopen(pa... |
Katistic/3ds_monty | 3ds/qstrdefsport.h | <reponame>Katistic/3ds_monty
// qstrs specific to this port
Q(citrus)
Q(hello)
// shared
Q(self)
Q(init)
Q(exit)
Q(last_result)
Q(x)
Q(y)
Q(width)
Q(height)
Q(data)
Q(bind)
// citrus.gfx
Q(gfx)
Q(init_default)
Q(set_3d)
Q(is_3d)
Q(set_screen_format)
Q(get_screen_format)
Q(set_double_buffering)
Q(flush_buffers)
Q(conf... |
Katistic/3ds_monty | extmod/modwebsocket.c | <gh_stars>10-100
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2016 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
Katistic/3ds_monty | 3ds/modules/citrus/result.c | #include <3ds.h>
#include "py/runtime.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_result_##__n##_obj, mod_citrus_result_##__n)
#define METHOD_OBJ_KW(__min, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(mod_citrus_result_##__n##_obj, __min, mod_citrus_result_##__n)
#de... |
Katistic/3ds_monty | 3ds/modules/mod_cpy_os.path.c | #include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "py/runtime.h"
mp_obj_t mod_os_path_exists(mp_obj_t path) {
const char *_path = mp_obj_str_get_str(path);
struct stat st;
int res = stat(_path, &st);
return res < 0 ? mp_const_false : mp_const_true;
}
mp_o... |
Katistic/3ds_monty | 3ds/modules/citrus/apt.c | #include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_apt_##__n##_obj, mod_citrus_apt_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_citrus_apt_##__n##_obj}
#define LOCA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.