manpagez: man pages & more
info mathgl_en
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.2 Data constructor

MGL command: new DAT [nx=1 'eq']
MGL command: new DAT nx ny ['eq']
MGL command: new DAT nx ny nz ['eq']
Constructor on mglData: mglData (int mx=1, int my=1, int mz=1)
Constructor on mglDataC: mglDataC (int mx=1, int my=1, int mz=1)
C function: HMDT mgl_create_data ()
C function: HMDT mgl_create_data_size (int mx, int my, int mz)
C function: HADT mgl_create_datac ()
C function: HADT mgl_create_datac_size (int mx, int my, int mz)

Default constructor. Allocates the memory for data array and initializes it by zero. If string eq is specified then data will be filled by corresponding formula as in fill.

MGL command: copy DAT dat2 ['eq'='']
MGL command: copy DAT val
Constructor on mglData: mglData (const mglDataA &dat2)
Constructor on mglData: mglData (const mglDataA *dat2)
Constructor on mglData: mglData (int size, const float *dat2)
Constructor on mglData: mglData (int size, int cols, const float *dat2)
Constructor on mglData: mglData (int size, const double *dat2)
Constructor on mglData: mglData (int size, int cols, const double *dat2)
Constructor on mglData: mglData (const double *dat2, int size)
Constructor on mglData: mglData (const double *dat2, int size, int cols)
Constructor on mglDataC: mglDataC (const mglDataA &dat2)
Constructor on mglDataC: mglDataC (const mglDataA *dat2)
Constructor on mglDataC: mglDataC (int size, const float *dat2)
Constructor on mglDataC: mglDataC (int size, int cols, const float *dat2)
Constructor on mglDataC: mglDataC (int size, const double *dat2)
Constructor on mglDataC: mglDataC (int size, int cols, const double *dat2)
Constructor on mglDataC: mglDataC (int size, const dual *dat2)
Constructor on mglDataC: mglDataC (int size, int cols, const dual *dat2)

Copy constructor. Allocates the memory for data array and copy values from other array. At this, if parameter eq is specified then the data will be modified by corresponding formula similarly to fill.

MGL command: read DAT 'fname'
Constructor on mglData: mglData (const char *fname)
Constructor on mglDataC: mglDataC (const char *fname)
C function: HMDT mgl_create_data_file (const char *fname)
C function: HADT mgl_create_datac_file (const char *fname)

Reads data from tab-separated text file with auto determining sizes of the data.

MGL command: delete dat
Destructor on mglData: ~mglData ()
C function: void mgl_delete_data (HMDT dat)
Destructor on mglDataC: ~mglDataC ()
C function: void mgl_delete_datac (HADT dat)

Deletes the instance of class mglData.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on March 21, 2014 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.