Meta Matrix Library
Home About FAQ Install Documentation To Do Download Related Links


Tutorial   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages (e.g. ToDo)  

vecl.h File Reference

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <math.h>

Defines

#define INLINE   static inline

Typedefs

typedef double MEML_FLOAT
typedef int MEML_INT
typedef long int MEML_LINT

Functions

VECTORvecl_vector_new (MEML_INT dim)
MEML_FLOAT vecl_vector_element_get (const VECTOR *x, const MEML_INT i)
int vecl_vector_element_set (VECTOR *x, MEML_INT i, MEML_FLOAT value)
int vecl_vector_element_add (VECTOR *x, MEML_INT i, MEML_FLOAT value)
MEML_FLOAT vecl_vector_dot_product (const VECTOR *a, const VECTOR *b)
VECTORvecl_vector_scaling (const MEML_FLOAT alpha, const VECTOR *x)
 $ y := \alpha x $
VECTORvecl_vector_add (const VECTOR *x, const VECTOR *y)
 $ z := x + y $
void vecl_vector_print (const VECTOR *x)
int vecl_export_densevector2csv (const VECTOR *x, const char dateiname[])
INLINE MEML_FLOAT vecl_vector_element_get_f (const VECTOR *v, const MEML_INT x)
INLINE VECTORvecl_vector_copy (const VECTOR *x)
 $ y := x $
INLINE void vecl_vector_copy_f (const VECTOR *x, VECTOR *y)
 $ y := x $
INLINE void vecl_vector_resize_f (VECTOR *x, const MEML_INT dim)
 $ y := x $
INLINE VECTORvecl_vector_resize (const VECTOR *x, const MEML_INT dim)
 $ y := x $
INLINE void vecl_vector_add_ff (const MEML_FLOAT alpha, const VECTOR *x, VECTOR *y)
 $ y := \alpha x + y $
INLINE void vecl_vector_add_f (const VECTOR *x, VECTOR *y)
 $ y := x + y $
INLINE void vecl_vector_scaling_f (const MEML_FLOAT alpha, VECTOR *x)
 $ x := \alpha x $
INLINE MEML_FLOAT vecl_vector_dot_product_f (const VECTOR *a, const VECTOR *b)
INLINE void vecl_vector_free (VECTOR *x)
INLINE void vecl_vector_element_set_f (VECTOR *x, MEML_INT i, MEML_FLOAT value)
INLINE void vecl_vector_element_add_f (VECTOR *x, MEML_INT i, MEML_FLOAT value)

Define Documentation

#define INLINE   static inline
 


Typedef Documentation

typedef double MEML_FLOAT
 

A type definition for the used Floating-Type in ssml. You can set it to

  1. double(default),
  2. long double
  3. and float.

typedef int MEML_INT
 

A type definition for the used Integer-Type in ssml. You can set it to

  1. int(default),
  2. long int
  3. and char.

typedef int MEML_LINT
 

A type definition for the used as "bigger" Integer-Type in ssml. You can set it to

  1. long int(default),
  2. and int
char might work, but it is a bad idea.


Function Documentation

int vecl_export_densevector2csv const VECTOR x,
const char  dateiname[]
 

VECTOR* vecl_vector_add const VECTOR x,
const VECTOR y
 

$ z := x + y $

INLINE void vecl_vector_add_f const VECTOR x,
VECTOR y
 

$ y := x + y $

INLINE void vecl_vector_add_ff const MEML_FLOAT  alpha,
const VECTOR x,
VECTOR y
 

$ y := \alpha x + y $

INLINE VECTOR* vecl_vector_copy const VECTOR x  ) 
 

$ y := x $

INLINE void vecl_vector_copy_f const VECTOR x,
VECTOR y
 

$ y := x $

MEML_FLOAT vecl_vector_dot_product const VECTOR a,
const VECTOR b
 

INLINE MEML_FLOAT vecl_vector_dot_product_f const VECTOR a,
const VECTOR b
 

int vecl_vector_element_add VECTOR x,
MEML_INT  i,
MEML_FLOAT  value
 

INLINE void vecl_vector_element_add_f VECTOR x,
MEML_INT  i,
MEML_FLOAT  value
 

MEML_FLOAT vecl_vector_element_get const VECTOR x,
const MEML_INT  i
 

INLINE MEML_FLOAT vecl_vector_element_get_f const VECTOR v,
const MEML_INT  x
 

int vecl_vector_element_set VECTOR x,
MEML_INT  i,
MEML_FLOAT  value
 

INLINE void vecl_vector_element_set_f VECTOR x,
MEML_INT  i,
MEML_FLOAT  value
 

INLINE void vecl_vector_free VECTOR x  ) 
 

VECTOR* vecl_vector_new MEML_INT  dim  ) 
 

void vecl_vector_print const VECTOR x  ) 
 

INLINE VECTOR* vecl_vector_resize const VECTOR x,
const MEML_INT  dim
 

$ y := x $

INLINE void vecl_vector_resize_f VECTOR x,
const MEML_INT  dim
 

$ y := x $

VECTOR* vecl_vector_scaling const MEML_FLOAT  alpha,
const VECTOR x
 

$ y := \alpha x $

INLINE void vecl_vector_scaling_f const MEML_FLOAT  alpha,
VECTOR x
 

$ x := \alpha x $


Generated on Tue Mar 28 14:10:38 2006 by  doxygen 1.4.1