Matrix_str

| HOME | BACK |

Overview

Matrix_cmp is a two-dimensional array of string objects. 

A matrix_str 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.  The concept of nulldata and flag_null is in fact intended to utilize in numerical Matrix computation. However, users still make use of the nulldata in other purposes, for example as an attribute of a matrox_str object.

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_str} ret  =  MATRIX_STR([{int} argm1, {int} argm2, {String} argm3])

argm1 = no of row        (default = 0)

argm2 = no of column     (default = 0)

argm3 = initial value    (default = 0)

Example:

->a = Matrix_str()
->a

ans =

no of row : 0
no of column : 0


->b = Matrix_str(2,3)
->b

ans =

no of row : 2
no of column : 3
0:
1:


->c = Matrix_str(2,3,"Noobeed")
->c

ans =

no of row : 2
no of column : 3
0:Noobeed Noobeed Noobeed
1:Noobeed Noobeed Noobeed


->
 

 

Lfunction

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

argm1 = row index

argm2 = column index     

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

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

Example:

 

->c

ans =

no of row : 2
no of column : 3
0:Noobeed Noobeed Noobeed
1:Noobeed Noobeed Noobeed


->c(0,0) = "deeboon"
->c

ans =

no of row : 2
no of column : 3
0:deeboon Noobeed Noobeed
1:Noobeed Noobeed Noobeed


->

 

 

Class function

 

 

 A-D

 E-H 

I-L

M-P

Q-S

T-Z

(   )

FIND

INIT MUPDATE RC2NO UCHAR

CONCAT

FINDALL

LOADCSV

NCOL

RESHAPE

UPDATE

CONCATDOWN

FINDFROM  

NO2RC

REVERSE

VECTOR
 

FLAG_NULL

 

NROW

ROT180

WINDOW
 

FLIPLR

 

NULLDATA

ROT90L

 
 

FLIPUD

  QFIND

ROT90R

 
 

GETCOL

   

SAVEASC

 
 

GETROW

    SAVECSV  
        SET  
       

SETCOL

 
       

SETROW

 
       

SIZE

 
       

SORT

 
       

SORTALL

 
       

SWAPCOL

 
       

SWAPROW

 
           
         

 

         

 

     

 

 

 

     

 

 

 


 


| HOME | BACK |