"Fossies" - the Fresh Open Source Software Archive

Member "bas-2.6/var.h" (2 Jul 2019, 1410 Bytes) of package /linux/privat/bas-2.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "var.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.5_vs_2.6.

    1 #ifndef VAR_H
    2 #define VAR_H
    3 
    4 #include "value.h"
    5 
    6 struct Var
    7 {
    8   unsigned int dim;
    9   unsigned int *geometry;
   10   struct Value *value;
   11   unsigned int size;
   12   enum ValueType type;
   13   long int base;
   14 };
   15 
   16 #define VAR_SCALAR_VALUE(this) ((this)->value)
   17 
   18 extern struct Var *Var_new(struct Var *this, enum ValueType type, unsigned int dim, const unsigned int *geometry, int base);
   19 extern struct Var *Var_new_scalar(struct Var *this);
   20 extern void Var_destroy(struct Var *this);
   21 extern void Var_retype(struct Var *this, enum ValueType type);
   22 extern struct Value *Var_value(struct Var *this, unsigned int dim, int idx[], struct Value *value);
   23 extern void Var_clear(struct Var *this);
   24 extern struct Value *Var_mat_assign(struct Var *this, struct Var *x, struct Value *err, int work);
   25 extern struct Value *Var_mat_addsub(struct Var *this, struct Var *x, struct Var *y, int add, struct Value *err, int work);
   26 extern struct Value *Var_mat_mult(struct Var *this, struct Var *x, struct Var *y, struct Value *err, int work);
   27 extern struct Value *Var_mat_scalarMult(struct Var *this, struct Value *factor, struct Var *x, int work);
   28 extern void Var_mat_transpose(struct Var *this, struct Var *x);
   29 extern struct Value *Var_mat_invert(struct Var *this, struct Var *x, struct Value *det, struct Value *err);
   30 extern struct Value *Var_mat_redim(struct Var *this, unsigned int dim, const unsigned int *geometry, struct Value *err);
   31 
   32 #endif