Table of Contents

Class IMatrices

Namespace
NominalSystems.Maths
Assembly
NominalSystems.Maths.dll

[NominalSystems] A helper class for 'IMatrix' types

public static class IMatrices
Inheritance
IMatrices

Methods

Abs<M>(M)

Returns the absolute of a 'Matrix'

public static M Abs<M>(M a) where M : IMatrix, new()

Parameters

a M

Returns

M

Type Parameters

M

Add<M>(double, M)

Returns the addition of a 'Matrix' with a 'double'

public static M Add<M>(double a, M b) where M : IMatrix, new()

Parameters

a double
b M

Returns

M

Type Parameters

M

Add<M>(M, double)

Returns the addition of a 'double' with a 'Matrix'

public static M Add<M>(M a, double b) where M : IMatrix, new()

Parameters

a M
b double

Returns

M

Type Parameters

M

Add<M>(M, M)

Returns the addition of a 'Matrix' with a 'Matrix'

public static M Add<M>(M a, M b) where M : IMatrix, new()

Parameters

a M
b M

Returns

M

Type Parameters

M

Col<V>(IMatrix, uint)

Get the column value of a 'Matrix'

public static V Col<V>(IMatrix src, uint col) where V : IVector, new()

Parameters

src IMatrix
col uint

Returns

V

Type Parameters

V

Col<V>(IMatrix, uint, V)

Set the column value of a 'Matrix'

public static void Col<V>(IMatrix dst, uint col, V src) where V : IVector

Parameters

dst IMatrix
col uint
src V

Type Parameters

V

Div<M>(double, M)

Returns the division of a 'Matrix' with a 'double'

public static M Div<M>(double a, M b) where M : IMatrix, new()

Parameters

a double
b M

Returns

M

Type Parameters

M

Div<M>(M, double)

Returns the division of a 'double' with a 'Matrix'

public static M Div<M>(M a, double b) where M : IMatrix, new()

Parameters

a M
b double

Returns

M

Type Parameters

M

Eq<M>(double, M, double)

Returns true if 'double' is equal to 'Matrix'

public static bool Eq<M>(double a, M b, double e) where M : IMatrix

Parameters

a double

The 1st 'double'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Eq<M>(M, double, double)

Returns true if 'Matrix' is equal to 'double'

public static bool Eq<M>(M a, double b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b double

The 2nd 'double'

e double

A precision error

Returns

bool

Type Parameters

M

Eq<M>(M, M, double)

Returns true if 'Matrix' is equal to 'Matrix'

public static bool Eq<M>(M a, M b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Ge<M>(double, M, double)

Returns true if 'double' is greater than or equal to 'Matrix'

public static bool Ge<M>(double a, M b, double e) where M : IMatrix

Parameters

a double

The 1st 'double'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Ge<M>(M, double, double)

Returns true if 'Matrix' is greater than or equal to 'double'

public static bool Ge<M>(M a, double b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b double

The 2nd 'double'

e double

A precision error

Returns

bool

Type Parameters

M

Ge<M>(M, M, double)

Returns true if 'Matrix' is greater than or equal to 'Matrix'

public static bool Ge<M>(M a, M b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Gt<M>(double, M, double)

Returns true if 'double' is greater than 'Matrix'

public static bool Gt<M>(double a, M b, double e) where M : IMatrix

Parameters

a double

The 1st 'double'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Gt<M>(M, double, double)

Returns true if 'Matrix' is greater than 'double'

public static bool Gt<M>(M a, double b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b double

The 2nd 'double'

e double

A precision error

Returns

bool

Type Parameters

M

Gt<M>(M, M, double)

Returns true if 'Matrix' is greater than 'Matrix'

public static bool Gt<M>(M a, M b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Inv<M>(M)

Returns the inverse of a 'Matrix'

public static M Inv<M>(M a) where M : IMatrix, new()

Parameters

a M

Returns

M

Type Parameters

M

Le<M>(double, M, double)

Returns true if 'double' is less than or equal to 'Matrix'

public static bool Le<M>(double a, M b, double e) where M : IMatrix

Parameters

a double

The 1st 'double'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Le<M>(M, double, double)

Returns true if 'Matrix' is less than or equal to 'double'

public static bool Le<M>(M a, double b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b double

The 2nd 'double'

e double

A precision error

Returns

bool

Type Parameters

M

Le<M>(M, M, double)

Returns true if 'Matrix' is less than or equal to 'Matrix'

public static bool Le<M>(M a, M b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Lt<M>(double, M, double)

Returns true if 'double' is less than 'Matrix'

public static bool Lt<M>(double a, M b, double e) where M : IMatrix

Parameters

a double

The 1st 'double'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Lt<M>(M, double, double)

Returns true if 'Matrix' is less than 'double'

public static bool Lt<M>(M a, double b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b double

The 2nd 'double'

e double

A precision error

Returns

bool

Type Parameters

M

Lt<M>(M, M, double)

Returns true if 'Matrix' is less than 'Matrix'

public static bool Lt<M>(M a, M b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Mul<M>(double, M)

Returns the multiplication of a 'double' with a 'Matrix'

public static M Mul<M>(double a, M b) where M : IMatrix, new()

Parameters

a double
b M

Returns

M

Type Parameters

M

Mul<M>(M, double)

Returns the multiplication of a 'Matrix' with a 'double'

public static M Mul<M>(M a, double b) where M : IMatrix, new()

Parameters

a M
b double

Returns

M

Type Parameters

M

Mul<M>(M, M)

Returns the multiplication of a 'Matrix' with a 'Matrix'

public static M Mul<M>(M a, M b) where M : IMatrix, new()

Parameters

a M
b M

Returns

M

Type Parameters

M

Mul<M, V>(M, V)

Returns the multiplication of a 'Matrix' with a 'Vector'

public static V Mul<M, V>(M a, V b) where M : IMatrix where V : IVector, new()

Parameters

a M
b V

Returns

V

Type Parameters

M
V

Mul<M, V>(V, M)

Returns the multiplication of a 'Vector' with a 'Matrix'

public static V Mul<M, V>(V a, M b) where M : IMatrix where V : IVector, new()

Parameters

a V
b M

Returns

V

Type Parameters

M
V

Ne<M>(double, M, double)

Returns true if 'double' is not equal to 'Matrix'

public static bool Ne<M>(double a, M b, double e) where M : IMatrix

Parameters

a double

The 1st 'double'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Ne<M>(M, double, double)

Returns true if 'Matrix' is not equal to 'double'

public static bool Ne<M>(M a, double b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b double

The 2nd 'double'

e double

A precision error

Returns

bool

Type Parameters

M

Ne<M>(M, M, double)

Returns true if 'Matrix' is not equal to 'Matrix'

public static bool Ne<M>(M a, M b, double e) where M : IMatrix

Parameters

a M

The 1st 'Matrix'

b M

The 2nd 'Matrix'

e double

A precision error

Returns

bool

Type Parameters

M

Neg<M>(M)

Returns the negation of a 'Matrix'

public static M Neg<M>(M a) where M : IMatrix, new()

Parameters

a M

Returns

M

Type Parameters

M

New<M>(uint, uint)

Returns a empty 'Matrix' with the desired size

public static M New<M>(uint r, uint c) where M : IMatrix, new()

Parameters

r uint
c uint

Returns

M

Type Parameters

M

Row<V>(IMatrix, uint)

Get the row value of a 'Matrix'

public static V Row<V>(IMatrix src, uint row) where V : IVector, new()

Parameters

src IMatrix
row uint

Returns

V

Type Parameters

V

Row<V>(IMatrix, uint, V)

Set the row value of a 'Matrix'

public static void Row<V>(IMatrix dst, uint row, V src) where V : IVector

Parameters

dst IMatrix
row uint
src V

Type Parameters

V

Sub<M>(double, M)

Returns the subtraction of a 'double' with a 'Matrix'

public static M Sub<M>(double a, M b) where M : IMatrix, new()

Parameters

a double
b M

Returns

M

Type Parameters

M

Sub<M>(M, double)

Returns the subtraction of a 'Matrix' with a 'double'

public static M Sub<M>(M a, double b) where M : IMatrix, new()

Parameters

a M
b double

Returns

M

Type Parameters

M

Sub<M>(M, M)

Returns the subtraction of a 'Matrix' with a 'Matrix'

public static M Sub<M>(M a, M b) where M : IMatrix, new()

Parameters

a M
b M

Returns

M

Type Parameters

M