Table of Contents

Class Matrix

Namespace
FellowOakDicom.Imaging.Mathematics
Assembly
fo-dicom.core.dll
public class Matrix
Inheritance
Matrix
Inherited Members
Extension Methods

Constructors

Matrix(int, int)

public Matrix(int rows, int cols)

Parameters

rows int
cols int

Matrix(int[,])

public Matrix(int[,] matrix)

Parameters

matrix int[,]

Properties

Columns

public int Columns { get; }

Property Value

int

Determinant

public int Determinant { get; }

Property Value

int

IsIdentity

public bool IsIdentity { get; }

Property Value

bool

IsSquare

public bool IsSquare { get; }

Property Value

bool

this[int, int]

public int this[int row, int col] { get; set; }

Parameters

row int
col int

Property Value

int

Rows

public int Rows { get; }

Property Value

int

Trace

public int Trace { get; }

Property Value

int

Methods

Clone()

public Matrix Clone()

Returns

Matrix

Column(int)

public int[] Column(int col)

Parameters

col int

Returns

int[]

Column(int, params int[])

public void Column(int col, params int[] values)

Parameters

col int
values int[]

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Identity(int)

public static Matrix Identity(int dimensions)

Parameters

dimensions int

Returns

Matrix

Invert()

[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

Matrix

One(int, int)

public static Matrix One(int rows, int columns)

Parameters

rows int
columns int

Returns

Matrix

Row(int)

public int[] Row(int row)

Parameters

row int

Returns

int[]

Row(int, params int[])

public void Row(int row, params int[] values)

Parameters

row int
values int[]

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Transpose()

public Matrix Transpose()

Returns

Matrix

Zero(int, int)

public static Matrix Zero(int rows, int columns)

Parameters

rows int
columns int

Returns

Matrix

Operators

operator +(Matrix, Matrix)

public static Matrix operator +(Matrix a, Matrix b)

Parameters

a Matrix
b Matrix

Returns

Matrix

operator /(Matrix, int)

public static Matrix operator /(Matrix a, int d)

Parameters

a Matrix
d int

Returns

Matrix

operator ==(Matrix, Matrix)

public static bool operator ==(Matrix a, Matrix b)

Parameters

a Matrix
b Matrix

Returns

bool

operator ^(Matrix, int)

public static Matrix operator ^(Matrix a, int e)

Parameters

a Matrix
e int

Returns

Matrix

operator !=(Matrix, Matrix)

public static bool operator !=(Matrix a, Matrix b)

Parameters

a Matrix
b Matrix

Returns

bool

operator *(Matrix, Matrix)

public static Matrix operator *(Matrix a, Matrix b)

Parameters

a Matrix
b Matrix

Returns

Matrix

operator *(Matrix, int)

public static Matrix operator *(Matrix a, int d)

Parameters

a Matrix
d int

Returns

Matrix

operator *(int, Matrix)

public static Matrix operator *(int d, Matrix a)

Parameters

d int
a Matrix

Returns

Matrix

operator -(Matrix, Matrix)

public static Matrix operator -(Matrix a, Matrix b)

Parameters

a Matrix
b Matrix

Returns

Matrix

operator -(Matrix)

public static Matrix operator -(Matrix a)

Parameters

a Matrix

Returns

Matrix