You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Matrix Structure > Matrix Methods > Matrix.DisableSubrange Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Matrix.DisableSubrange Method

Prevents calls to SetSubRange.

Syntax
C#
Visual Basic
public void DisableSubrange();

Prevents calls to SetSubRange method. This can be usefull guard when an object is already working on a subrange and the user would like to further subrange an already subranged object. When subranging matrices in-place, they are temporariliy converted to a vector by settings Rows to 1 and Cols to Length.

DisableSubrange, EnableSubrange

var a: Matrix; b: Vector; begin a.SetIt(3,3,false, [1,2,3,4,5,6,7,8,9]); a.SetSubRange(0,2); //a = [1,2] a.DisableSubrange; a.SetSubRange(2,2); //exception raised here b.SetSubRange(a,2,2); //but this will work a.SetFullRange; //b is not changed, it still points to [4,5] end;
Copyright (c) 1999-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!