Class Matrix2D<T>
Represents a two deminsional matrix of T. This class uses jagged arrays for internal implementation ensuring proper array sizing per matrix structure
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IEquatable<MatrixBase<T>>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Collections
Assembly: Azos.dll
Syntax
public class Matrix2D<T> : Matrix2DBase<T>, IEnumerable<T>, IEnumerable, IEquatable<MatrixBase<T>>
Type Parameters
Name | Description |
---|---|
T | Any desired type |
Constructors
Matrix2D(Int32, Int32)
Declaration
public Matrix2D(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | |
System.Int32 | height |
Fields
Array
Declaration
public readonly T[][] Array
Field Value
Type | Description |
---|---|
T[][] |
Properties
Item[Int32, Int32]
Declaration
public override T this[int x, int y] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y |
Property Value
Type | Description |
---|---|
T |
Overrides
Azos.Collections.Matrix2DBase<T>.Item[System.Int32, System.Int32]
Methods
Fill(T)
Declaration
public void Fill(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IEquatable<T>