Matrix


| HOME | BACK |

Overview

Matrix is a two-dimensional array of double precision floating point data, i.e. each element in the matrix takes 8 bytes of computer memory. 

A matrix can have a null data, so that a particular element whose value equal to the specified value of nulldata will be omitted in matrix computation, for example calculation of minimum, maximum, or in matrix operation, for e.g. matrix overlay. 

A matrix also has a flag_null, and its value can be 0 (off) or 1 (on).  When flag_null = 0, there is no omission of nulldata.

Member data

Name

Data type

Meaning

nrow

int

number of rows

ncol

int

number of columns

flag_null

bool

a flag indicates whether the null data is omitted in computation(0 = no, 1 = yes)

nulldata

double

value of null data (not application if flag_null = 0)

 

Operator

See details in operator section.

 

Construction function

{Matrix} ret  =  MATRIX([{int} argm1, {int} argm2, {double} argm3])

argm1 = no of row        (default = 0)

argm2 = no of column     (default = 0)

argm3 = initial value    (default = 0)

Example:

->A = Matrix()
->print A

no of row    : 0
no of column : 0


->B = Matrix(3,2,10.15)
->print B

no of row    : 3
no of column : 2

0:    10.15000     10.15000
1:    10.15000     10.15000
2:    10.15000     10.15000

->

 

Lfunction

object({int} argm1, {int} argm2)   =  {double} left-value

argm1 = row index

argm2 = column index     

object.FLAG_NULL()   =  {bool} left-value

object.NULLDATA()    =  {double} left-value

Example:

->B(0,0) = 999
->B

ans =

no of row    : 3
no of column : 2

0:    999.00000    10.15000
1:     10.15000    10.15000
2:     10.15000    10.15000



->B.flag_null()

ans = 0

->B.flag_null() = 1
->B.flag_null()

ans = 1

->B.nulldata()

ans = 0.00000

->B.nulldata() = -90
->B.nulldata()

ans = -90.00000

->

 

 

Class function

 

 A-D

 E-H 

I-L

M-P

Q-S

T-Z

(   )

EDGECANNY

IFT

MATCHING**

R2OPK

TAN

ABS

EDGESOBEL

INIT

MATSTR

RAND

TSP

ACOS

EIGEN

INITBDIAG

MAX

RANK

UCHAR

ADDRIM

EXP

INITDIAG

MEAN

RC2NO

UNIT

ANAGLYPH

FFT

INT

MEDIAN

REASSIGN

VAR

ANGLE

FGAUSS

INV

MIN

RECLASS

VECIDINDX*

ANGPHTIF

FILLPOLY

INVBDIAG

MULT121

RESHAPE

VECIDPT1D*

ASIN

FIND

INVDIAG

MULTDIAG*

REVERSE

VECIDPT2D*

ATAN

FINDALL

KERNELDGAUSS

NCOL

RGB

VECIDPT3D*

BINARY

FINDFROM

KERNELGAUSS

NO2RC

RGBAUTO

VECINDX*

BIT*

FIX

KERNELMEAN

NOCONNECT

ROT180

VECPT2D*

BOOL

FLAG_NULL

LINEFOLLOW

NOCONNECT_EXACT

ROT90L

VECPT3D*

BOUNDARY

FLIPLR

LINGEN

NORM

ROT90R

VECSTR*

BWRGB

FLIPUD

LN

NROW

ROUND

VECTOR

CLEAR

FLOAT

LOAD

NULLDATA

RREF

VLOAD

CLOSE

FLOOD

LOADASC

PERCENTILE

RX

WINDOW

COMPLEX

FMEAN

LOADBIN

POLYLINE

RXYZ

 

COMPMAX

FMEDIAN

LOADBIN1

PRODCOL

RY

 

COMPMIN

FMODE***

LOADBIN_OFFSET

PRODROW

RZ

 

CONCAT

GETASC**

LOADBMP

PYRAMID

SAPPASC

 

CONCATDOWN

GETBIN2**

LOADCSV

QFIND

SAPPBIN

 

CONVOL

GETBIN4**

LOADTIF

 

SAVE

 

CORR

GETBIN4F**

LOADTIF16****

 

SAVEASC

 

COS

GETBIN8**

LOADTIF32*****

 

SAVEASCXYZ

 

COV

GETCOL

LOADTIF64*

 

SAVEBIN

 

CROSS

GETROW

LOG

 

SAVEBMP

 

DET

GOGET

LOOKUP***

 

SAVECSV

 

DIAGMULT*

GOSET

LU

 

SAVETIF

 

DOT

GOSETMAT

 

 

SAVEWRL

 

DOUBLE

HISTMATCH***

 

 

SD

 

DRWBREAKLINE*****

HISTO

 

 

SET

 

DRWCIRCLE

 

 

 

SETBDIAG

 

DRWELLIPSE

 

 

 

SETCOL

 

DRWLINE

 

 

 

SETDIAG

 

DRWPLINE

 

 

 

SETROW

 

DRWRECTANG

 

 

 

SETSYMB

 

DRWSQUARE

 

 

 

SETVECSYMB**

 

DRWVECCIRCLE**

 

 

 

SETWINDOW

 

DRWVECPLINE

 

 

 

SHORT

 

DRWTEXT**

 

 

 

SIN

 

 

 

 

 

SIZE

 

 

 

 

 

SKIP

 

 

 

 

 

SORT

 

 

 

 

 

SORTALL

 

 

 

 

 

STRETCH

 

 

 

 

 

STRETCHEQ**

 

 

 

 

 

STRETCHFIX

 

 

 

 

 

STRETCHSAT

 

 

 

 

 

STRING**

 

 

 

 

 

SUM

 

 

 

 

 

SWAPCOL

 

 

 

 

 

SWAPROW

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*    for class MATRIX only

**   for class MATRIX_UCH only

***  for class MATRIX_INT  MATRIX_SHT  and  MATRIX_UCH only

****  for class MATRIX MATRIX_FLT MATRIX_INT  and MATRIX_SHT only

*****  for class MATRIX and MATRIX_FLT only

 


| HOME | BACK |