CMatrixRow:Init


The Init method sets the first nCount CMatrixRow members to the same value.

Syntax

CMatrixRow:Init( nCount, value )

where

    nCount is the number of members to define.

    value is the target value to assign and may be a number, string, or other value.

Example

The following script initializes the first 1000 members to the value 100.54:

R = CMatrixRow:new()

-- create a CMatrixRow

R:Init( 1000, 100.54 )

-- set members 1 through 1000

Printf("R[500] = '%lg'", R:Get(500) )

-- result: R[500] = 100.54

Related Topics

Set

CMatrixRow class