Table of Contents

Class Matrix<T>

Namespace
FellowOakDicom.Imaging.Mathematics
Assembly
fo-dicom.core.dll
public class Matrix<T> where T : INumber<T>

Type Parameters

T
Inheritance
Matrix<T>
Inherited Members
Extension Methods

Constructors

Matrix(int, int)

public Matrix(int rows, int cols)

Parameters

rows int
cols int

Properties

Columns

public int Columns { get; }

Property Value

int

Determinant

public T Determinant { get; }

Property Value

T

IsIdentity

public bool IsIdentity { get; }

Property Value

bool

IsSquare

public bool IsSquare { get; }

Property Value

bool

this[int, int]

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

Parameters

row int
col int

Property Value

T

Rows

public int Rows { get; }

Property Value

int

Trace

public T Trace { get; }

Property Value

T

Methods

Clone()

public Matrix<T> Clone()

Returns

Matrix<T>

Column(int)

public T[] Column(int col)

Parameters

col int

Returns

T[]

Column(int, params T[])

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

Parameters

col int
values T[]

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<T> Identity(int dimensions)

Parameters

dimensions int

Returns

Matrix<T>

Invert()

public Matrix<T> Invert()

Returns

Matrix<T>

One(int, int)

public static Matrix<T> One(int rows, int columns)

Parameters

rows int
columns int

Returns

Matrix<T>

Row(int)

public T[] Row(int row)

Parameters

row int

Returns

T[]

Row(int, params T[])

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

Parameters

row int
values T[]

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<T> Transpose()

Returns

Matrix<T>

Zero(int, int)

public static Matrix<T> Zero(int rows, int columns)

Parameters

rows int
columns int

Returns

Matrix<T>

Operators

operator +(Matrix<T>, Matrix<T>)

public static Matrix<T> operator +(Matrix<T> a, Matrix<T> b)

Parameters

a Matrix<T>
b Matrix<T>

Returns

Matrix<T>

operator /(Matrix<T>, T)

public static Matrix<T> operator /(Matrix<T> a, T d)

Parameters

a Matrix<T>
d T

Returns

Matrix<T>

operator ==(Matrix<T>, Matrix<T>)

public static bool operator ==(Matrix<T> a, Matrix<T> b)

Parameters

a Matrix<T>
b Matrix<T>

Returns

bool

operator ^(Matrix<T>, int)

public static Matrix<T> operator ^(Matrix<T> a, int e)

Parameters

a Matrix<T>
e int

Returns

Matrix<T>

operator !=(Matrix<T>, Matrix<T>)

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

Parameters

a Matrix<T>
b Matrix<T>

Returns

bool

operator *(Matrix<T>, Matrix<T>)

public static Matrix<T> operator *(Matrix<T> a, Matrix<T> b)

Parameters

a Matrix<T>
b Matrix<T>

Returns

Matrix<T>

operator *(Matrix<T>, T)

public static Matrix<T> operator *(Matrix<T> a, T d)

Parameters

a Matrix<T>
d T

Returns

Matrix<T>

operator *(Matrix<T>, T[])

public static T[] operator *(Matrix<T> a, T[] b)

Parameters

a Matrix<T>
b T[]

Returns

T[]

operator *(T, Matrix<T>)

public static Matrix<T> operator *(T d, Matrix<T> a)

Parameters

d T
a Matrix<T>

Returns

Matrix<T>

operator -(Matrix<T>, Matrix<T>)

public static Matrix<T> operator -(Matrix<T> a, Matrix<T> b)

Parameters

a Matrix<T>
b Matrix<T>

Returns

Matrix<T>

operator -(Matrix<T>)

public static Matrix<T> operator -(Matrix<T> a)

Parameters

a Matrix<T>

Returns

Matrix<T>