Sha256: 442fce5e57662c6c0e0bfbd80af0ad185a1eada29e50bbe7a675da22336be217

Contents?: true

Size: 1.02 KB

Versions: 14

Compression:

Stored size: 1.02 KB

Contents

#ifndef ___RB_TENSOR_H___
#define ___RB_TENSOR_H___

#ifdef HAVE_TENSOR_TENSOR_H
#include "rb_gsl.h"
#include "rb_gsl_common.h"
//#include <tensor/tensor.h>
#include <tensor/tensor.h>

EXTERN VALUE cgsl_tensor, cgsl_tensor_int;

enum {
  TENSOR_ADD,
  TENSOR_SUB,
  TENSOR_MUL_ELEMENTS,
  TENSOR_DIV_ELEMENTS,
  TENSOR_SCALE,
  TENSOR_ADD_CONSTANT,
  TENSOR_ADD_DIAGONAL,
  TENSOR_PRODUCT,
  TENSOR_CONTRACT,
};

typedef gsl_permutation tensor_indices;

typedef struct __rbgsl_tensor {
  /*  tensor *tensor;
      tensor_indices *indices;*/
  tensor *tensor;
  tensor_indices *indices;
} rbgsl_tensor;

typedef struct __rbgsl_tensor_int {
  /*  tensor_int *tensor;
      tensor_indices *indices;*/
  tensor_int *tensor;
  tensor_indices *indices;
} rbgsl_tensor_int;

rbgsl_tensor* rbgsl_tensor_alloc(const unsigned int rank, const size_t dimension);
rbgsl_tensor_int* rbgsl_tensor_int_alloc(const unsigned int rank, const size_t dimension);
void rbgsl_tensor_free(rbgsl_tensor*);
void rbgsl_tensor_int_free(rbgsl_tensor_int*);
#endif
#endif

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
gsl-nmatrix-1.15.3.2 include/rb_gsl_tensor.h
romanbsd-gsl-1.11.2.2 include/rb_gsl_tensor.h
gsl-nmatrix-1.15.3.1 include/rb_gsl_tensor.h
rb-gsl-1.16.0 include/rb_gsl_tensor.h
rb-gsl-1.15.3.2 include/rb_gsl_tensor.h
rb-gsl-1.15.3.1 include/rb_gsl_tensor.h
blackwinter-gsl-1.15.3.2 include/rb_gsl_tensor.h
gsl-nmatrix-1.15.3.0 include/rb_gsl_tensor.h
gsl-1.15.3 include/rb_gsl_tensor.h
gsl-1.14.7 include/rb_gsl_tensor.h
gsl-1.14.6 include/rb_gsl_tensor.h
gsl-1.14.5 include/rb_gsl_tensor.h
gsl-1.12.109 include/rb_gsl_tensor.h
gsl-1.12.108 include/rb_gsl_tensor.h