[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
xx [yy=: zz=:]
mglData
: mglData
SubData (mreal
xx, mreal
yy=-1
, mreal
zz=-1
) const
mglDataC
: mglData
SubData (mreal
xx, mreal
yy=-1
, mreal
zz=-1
) const
HMDT
mgl_data_subdata (HCDT
dat, mreal
xx, mreal
yy, mreal
zz)Extracts sub-array data from the original data array keeping fixed positive index. For example SubData(-1,2)
extracts 3d row (indexes are zero based), SubData(4,-1)
extracts 5th column, SubData(-1,-1,3)
extracts 4th slice and so on. If argument(s) are non-integer then linear interpolation between slices is used. In MGL version this command usually is used as inline one dat(xx,yy,zz)
.
mglData
: mglData
SubData (const mglDataA &
xx, const mglDataA &
yy, const mglDataA &
zz) const
mglDataC
: mglData
SubData (const mglDataA &
xx, const mglDataA &
yy, const mglDataA &
zz) const
HMDT
mgl_data_subdata_ext (HCDT
dat, HCDT
xx, HCDT
yy, HCDT
zz)Extracts sub-array data from the original data array for indexes specified by arrays xx, yy, zz (indirect access). This function work like previous one for 1D arguments or numbers, and resulting array dimensions are equal dimensions of 1D arrays for corresponding direction. For 2D and 3D arrays in arguments, the resulting array have the same dimensions as input arrays. The dimensions of all argument must be the same (or to be scalar 1*1*1) if they are 2D or 3D arrays. In MGL version this command usually is used as inline one dat(xx,yy,zz)
.
mglData
: mglData
Column (const char *
eq) const
mglDataC
: mglData
Column (const char *
eq) const
HMDT
mgl_data_column (HCDT
dat, const char *
eq)Get column (or slice) of the data filled by formula eq on column ids. For example, Column("n*w^2/exp(t)");
. The column ids must be defined first by idset function or read from files. In MGL version this command usually is used as inline one dat('eq')
.
mx [my=1 mz=1]
mglData
: mglData
Resize (int
mx, int
my=1
, int
mz=1
, mreal
x1=0
, mreal
x2=1
, mreal
y1=0
, mreal
y2=1
, mreal
z1=0
, mreal
z2=1
) const
mglDataC
: mglData
Resize (int
mx, int
my=1
, int
mz=1
, mreal
x1=0
, mreal
x2=1
, mreal
y1=0
, mreal
y2=1
, mreal
z1=0
, mreal
z2=1
) const
HMDT
mgl_data_resize (HCDT
dat, int
mx, int
my, int
mz)HMDT
mgl_data_resize_box (HCDT
dat, int
mx, int
my, int
mz, mreal
x1, mreal
x2, mreal
y1, mreal
y2, mreal
z1, mreal
z2)Resizes the data to new size mx, my, mz from box (part) [x1,x2] x [y1,y2] x [z1,z2] of original array. Initially x,y,z coordinates are supposed to be in [0,1].
norm=on
]norm=on
]norm=on
]mglData
: mglData
Evaluate (const mglDataA &
idat, bool
norm=true
) const
mglData
: mglData
Evaluate (const mglDataA &
idat, const mglDataA &
jdat, bool
norm=true
) const
mglData
: mglData
Evaluate (const mglDataA &
idat, const mglDataA &
jdat, const mglDataA &
kdat, bool
norm=true
) const
mglDataC
: mglData
Evaluate (const mglDataA &
idat, bool
norm=true
) const
mglDataC
: mglData
Evaluate (const mglDataA &
idat, const mglDataA &
jdat, bool
norm=true
) const
mglDataC
: mglData
Evaluate (const mglDataA &
idat, const mglDataA &
jdat, const mglDataA &
kdat, bool
norm=true
) const
HMDT
mgl_data_evaluate (HCDT
dat, HCDT
idat, HCDT
jdat, HCDT
kdat, int
norm)Gets array which values is result of interpolation of original array for coordinates from other arrays. All dimensions must be the same for data idat, jdat, kdat. Coordinates from idat, jdat, kdat are supposed to be normalized in range [0,1] (if norm=true
) or in ranges [0,nx], [0,ny], [0,nz] correspondingly.
val
'dir' [norm=on
]val
'dir' idat [norm=on
]mglData
: mglData
Solve (mreal
val, char
dir, bool
norm=true
) const
mglData
: mglData
Solve (mreal
val, char
dir, const mglDataA &
idat, bool
norm=true
) const
HMDT
mgl_data_solve (HCDT
dat, mreal
val, char
dir, HCDT
idat, int
norm)Gets array which values is indexes (roots) along given direction dir, where interpolated values of data dat are equal to val. Output data will have the sizes of dat in directions transverse to dir. If data idat is provided then its values are used as starting points. This allows to find several branches by consequentive calls. Indexes are supposed to be normalized in range [0,1] (if norm=true
) or in ranges [0,nx], [0,ny], [0,nz] correspondingly. See Solve sample, for sample code and picture.
num v1 v2 [nsub=0]
num v1 v2 [nsub=0]
mglData
: mglData
Hist (int
n, mreal
v1=0
, mreal
v2=1
, int
nsub=0
) const
mglData
: mglData
Hist (const mglDataA &
w, int
n, mreal
v1=0
, mreal
v2=1
, int
nsub=0
) const
mglDataC
: mglData
Hist (int
n, mreal
v1=0
, mreal
v2=1
, int
nsub=0
) const
mglDataC
: mglData
Hist (const mglDataA &
w, int
n, mreal
v1=0
, mreal
v2=1
, int
nsub=0
) const
HMDT
mgl_data_hist (HCDT
dat, int
n, mreal
v1, mreal
v2, int
nsub)HMDT
mgl_data_hist_w (HCDT
dat, HCDT
w, int
n, mreal
v1, mreal
v2, int
nsub)Creates n-th points distribution of the data values in range [v1, v2]. Array w specifies weights of the data elements (by default is 1). Parameter nsub define the number of additional interpolated points (for smoothness of histogram). See also Data manipulation
mglData
: mglData
Momentum (char
dir, const char *
how) const
mglDataC
: mglData
Momentum (char
dir, const char *
how) const
HMDT
mgl_data_momentum (HCDT
dat, char
dir, const char *
how)Gets momentum (1d-array) of the data along direction dir. String how contain kind of momentum. The momentum is defined like as res_k = \sum_ij how(x_i,y_j,z_k) a_ij/ \sum_ij a_ij if dir=‘z’ and so on. Coordinates ‘x’, ‘y’, ‘z’ are data indexes normalized in range [0,1].
mglData
: mglData
Sum (const char *
dir) const
mglDataC
: mglData
Sum (const char *
dir) const
HMDT
mgl_data_sum (HCDT
dat, const char *
dir)Gets array which is the result of summation in given direction or direction(s).
mglData
: mglData
Max (const char *
dir) const
mglDataC
: mglData
Max (const char *
dir) const
HMDT
mgl_data_max_dir (HCDT
dat, const char *
dir)Gets array which is the maximal data values in given direction or direction(s).
mglData
: mglData
Min (const char *
dir) const
mglDataC
: mglData
Min (const char *
dir) const
HMDT
mgl_data_min_dir (HCDT
dat, const char *
dir)Gets array which is the maximal data values in given direction or direction(s).
mglData
: mglData
Combine (const mglDataA &
a) const
mglDataC
: mglData
Combine (const mglDataA &
a) const
HMDT
mgl_data_combine (HCDT
dat, HCDT
a)Returns direct multiplication of arrays (like, res[i,j] = this[i]*a[j] and so on).
mglData
: mglData
Trace () const
mglDataC
: mglData
Trace () const
HMDT
mgl_data_trace (HCDT
dat)Gets array of diagonal elements a[i,i] (for 2D case) or a[i,i,i] (for 3D case) where i=0...nx-1. Function return copy of itself for 1D case. Data array must have dimensions ny,nz >= nx or ny,nz = 1.
mglDataC
: mglData
Real () const
HMDT
mgl_datac_real (HCDT
dat)Gets array of real parts of the data.
mglDataC
: mglData
Imag () const
HMDT
mgl_datac_imag (HCDT
dat)Gets array of imaginary parts of the data.
mglDataC
: mglData
Abs () const
HMDT
mgl_datac_abs (HCDT
dat)Gets array of absolute values of the data.
mglDataC
: mglData
Arg () const
HMDT
mgl_datac_arg (HCDT
dat)Gets array of arguments of the data.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated on May 5, 2014 using texi2html 1.82.