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

bool

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

MAX

RAND

TSP

ACOS

EIGEN

INITBDIAG

MEAN

RANK

UCHAR

ADDRIM

EXP

INITDIAG

MEDIAN

RC2NO

UNIT

ANAGLYPH

FFT

INT

MIN

REASSIGN

VAR

ANGLE

FGAUSS

INV

MULT121

RECLASS

VECIDINDX*

ANGPHTIF

FILLPOLY

INVBDIAG

MULTDIAG*

RESHAPE

VECIDPT1D*

ASIN

FIND

INVDIAG

NCOL

REVERSE

VECIDPT2D*

ATAN

FIX

KERNELDGAUSS

NO2RC

RGB

VECIDPT3D*

BINARY

FLAG_NULL

KERNELGAUSS

NOCONNECT

RGBAUTO

VECINDX*

BOOL

FLIPLR

KERNELMEAN

NOCONNECT_EXACT

ROT180

VECPT2D*

BOUNDARY

FLIPUD

LINEFOLLOW

NORM

ROT90L

VECPT3D*

BWRGB

FLOAT

LINGEN

NROW

ROT90R

VECTOR

CLEAR

FLOOD

LN

NULLDATA

ROUND

VLOAD

CLOSE

FMEAN

LOAD

PERCENTILE

RREF

WINDOW

COMPLEX

FMEDIAN

LOADASC

POLYLINE

RX

 

COMPMAX

FMODE***

LOADBIN

PRODCOL

RXYZ

 

COMPMIN

GETCOL

LOADBIN_OFFSET

PRODROW

RY

 

CONCAT

GETROW

LOADBMP

PYRAMID

RZ

 

CONCATDOWN

GOGET

LOADTIF

QFIND

SAPPASC

 

CONVOL

GOSET

LOG

 

SAPPBIN

 

CORR

GOSETMAT

LOOKUP***

 

SAVE

 

COS

HISTMATCH***

LU

 

SAVEASC

 

COV

HISTO

LOADBIN1

 

SAVEASCXYZ

 

CROSS

 

 

 

SAVEBIN

 

DET

 

 

 

SAVEBMP

 

DIAGMULT*

 

 

 

SAVETIF

 

DOT

 

 

 

SAVEWRL

 

DOUBLE

 

 

 

SD

 

DRWCIRCLE

 

 

 

SET

 

DRWELLIPSE

 

 

 

SETBDIAG

 

DRWLINE

 

 

 

SETCOL

 

DRWPLINE

 

 

 

SETDIAG

 

DRWRECTANG

 

 

 

SETROW

 

DRWSQUARE

 

 

 

SETSYMB

 

DRWVECCIRCLE**

 

 

 

SETVECSYMB**

 

DRWVECPLINE

 

 

 

SETWINDOW

 

DRWTEXT**

 

 

 

SHORT

 

 

 

 

 

SIN

 

 

 

 

 

SIZE

 

 

 

 

 

SKIP

 

 

 

 

 

SORT

 

 

 

 

 

SORTALL

 

 

 

 

 

STRETCH

 

 

 

 

 

STRETCHEQ**

 

 

 

 

 

STRETCHFIX

 

 

 

 

 

STRETCHSAT

 

 

 

 

 

SUM

 

 

 

 

 

SWAPCOL

 

 

 

 

 

SWAPROW

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*    for class MATRIX only

**   for class MATRIX_UCH only

***  for class MATRIX_INT  MATRIX_SHT  and  MATRIX_UCH only


| HOME | BACK |