C# Class GeometryClassLibrary.MatricesMatrix

ファイルを表示 Open project: ParagonTruss/GeometryClassLibrary Class Usage Examples

Public Methods

Method Description
ConvertToMatrix ( ) : Matrix

Strips out all the elements from each submatrix and creates an equivalent matrix. For a more detailed explanation, see http://stackoverflow.com/questions/24678305/converting-a-2d-array-of-2d-arrays-into-a-single-2d-array

Equals ( object obj ) : bool

does the same thing as == if the passed-in object is an identical Matrices

GetColumnWidth ( int col ) : int

Returns the number of columns of the matrix with the largest number of columns in the specified column of the MatricesMatrix

GetElement ( int rowIndex, int columnIndex ) : Matrix

Returns the matrix at row "rowIndex" and column "columnIndex"

GetHashCode ( ) : int
GetRowHeight ( int row ) : int

Returns the number of rows of the matrix with the largest number of rows in the specified row of the MatricesMatrix

MatricesMatrix ( int numRowsAndColumns ) : System

Creates a square matrix with the specified number of rows and columns the constructor that is called when you say new MatricesMatrix(numberOfRows, numberOfColumns)

MatricesMatrix ( int numRows, int numCols ) : System
SetElement ( int rowIndex, int columnIndex, Matrix element ) : void

Sets an element to a specific location.

SetNullEntriesToZero ( ) : void
TotalColumns ( ) : int

Returns the total number of columns required to contain all of the columns from the inner matrices

TotalRows ( ) : int

Returns the total number of rows required to contain all of the rows from the inner matrices

operator ( ) : bool

Returns true if each matricesMatrix is the same as the other

Method Details

ConvertToMatrix() public method

Strips out all the elements from each submatrix and creates an equivalent matrix. For a more detailed explanation, see http://stackoverflow.com/questions/24678305/converting-a-2d-array-of-2d-arrays-into-a-single-2d-array
public ConvertToMatrix ( ) : Matrix
return Matrix

Equals() public method

does the same thing as == if the passed-in object is an identical Matrices
public Equals ( object obj ) : bool
obj object
return bool

GetColumnWidth() public method

Returns the number of columns of the matrix with the largest number of columns in the specified column of the MatricesMatrix
public GetColumnWidth ( int col ) : int
col int
return int

GetElement() public method

Returns the matrix at row "rowIndex" and column "columnIndex"
public GetElement ( int rowIndex, int columnIndex ) : Matrix
rowIndex int
columnIndex int
return Matrix

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetRowHeight() public method

Returns the number of rows of the matrix with the largest number of rows in the specified row of the MatricesMatrix
public GetRowHeight ( int row ) : int
row int
return int

MatricesMatrix() public method

Creates a square matrix with the specified number of rows and columns the constructor that is called when you say new MatricesMatrix(numberOfRows, numberOfColumns)
public MatricesMatrix ( int numRowsAndColumns ) : System
numRowsAndColumns int
return System

MatricesMatrix() public method

public MatricesMatrix ( int numRows, int numCols ) : System
numRows int
numCols int
return System

SetElement() public method

Sets an element to a specific location.
public SetElement ( int rowIndex, int columnIndex, Matrix element ) : void
rowIndex int
columnIndex int
element Matrix
return void

SetNullEntriesToZero() public method

public SetNullEntriesToZero ( ) : void
return void

TotalColumns() public method

Returns the total number of columns required to contain all of the columns from the inner matrices
public TotalColumns ( ) : int
return int

TotalRows() public method

Returns the total number of rows required to contain all of the rows from the inner matrices
public TotalRows ( ) : int
return int

operator() public static method

Returns true if each matricesMatrix is the same as the other
public static operator ( ) : bool
return bool