Class Matrix
Assembly: cs.temp.dll.dll
Syntax
Constructors
Matrix(Int32, Int32)
Declaration
public Matrix(int rows, int cols)
Parameters
Matrix(Int32[,])
Declaration
public Matrix(int[, ] matrix)
Parameters
Type |
Name |
Description |
Int32[,] |
matrix |
|
Properties
Columns
Declaration
public int Columns { get; }
Property Value
Determinant
Declaration
public int Determinant { get; }
Property Value
IsIdentity
Declaration
public bool IsIdentity { get; }
Property Value
IsSquare
Declaration
public bool IsSquare { get; }
Property Value
Item[Int32, Int32]
Declaration
public int this[int row, int col] { get; set; }
Parameters
Property Value
Rows
Declaration
Property Value
Trace
Declaration
public int Trace { get; }
Property Value
Methods
Clone()
Declaration
Returns
Column(Int32)
Declaration
public int[] Column(int col)
Parameters
Type |
Name |
Description |
Int32 |
col |
|
Returns
Column(Int32, Int32[])
Declaration
public void Column(int col, params int[] values)
Parameters
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Identity(Int32)
Declaration
public static Matrix Identity(int dimensions)
Parameters
Type |
Name |
Description |
Int32 |
dimensions |
|
Returns
Invert()
Declaration
[Obsolete("Integers (Z) has only inverse elements for addition but not for multiplication. If introducing inverse for multiplications you are in rational numbers (Q). So there cant be a inverse matrix for an int-matrix", true)]
public Matrix Invert()
Returns
One(Int32, Int32)
Declaration
public static Matrix One(int rows, int columns)
Parameters
Returns
Row(Int32)
Declaration
public int[] Row(int row)
Parameters
Type |
Name |
Description |
Int32 |
row |
|
Returns
Row(Int32, Int32[])
Declaration
public void Row(int row, params int[] values)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Transpose()
Declaration
public Matrix Transpose()
Returns
Zero(Int32, Int32)
Declaration
public static Matrix Zero(int rows, int columns)
Parameters
Returns
Operators
Addition(Matrix, Matrix)
Declaration
public static Matrix operator +(Matrix a, Matrix b)
Parameters
Returns
Division(Matrix, Int32)
Declaration
public static Matrix operator /(Matrix a, int d)
Parameters
Returns
Equality(Matrix, Matrix)
Declaration
public static bool operator ==(Matrix a, Matrix b)
Parameters
Returns
ExclusiveOr(Matrix, Int32)
Declaration
public static Matrix operator ^(Matrix a, int e)
Parameters
Returns
Inequality(Matrix, Matrix)
Declaration
public static bool operator !=(Matrix a, Matrix b)
Parameters
Returns
Multiply(Matrix, Matrix)
Declaration
public static Matrix operator *(Matrix a, Matrix b)
Parameters
Returns
Multiply(Matrix, Int32)
Declaration
public static Matrix operator *(Matrix a, int d)
Parameters
Returns
Multiply(Int32, Matrix)
Declaration
public static Matrix operator *(int d, Matrix a)
Parameters
Returns
Subtraction(Matrix, Matrix)
Declaration
public static Matrix operator -(Matrix a, Matrix b)
Parameters
Returns
UnaryNegation(Matrix)
Declaration
public static Matrix operator -(Matrix a)
Parameters
Type |
Name |
Description |
Matrix |
a |
|
Returns