Class MatrixF
- Namespace
- FellowOakDicom.Imaging.Mathematics
- Assembly
- fo-dicom.core.dll
- Inheritance
-
MatrixF
- Inherited Members
-
- Extension Methods
-
Constructors
MatrixF(int, int)
public MatrixF(int rows, int cols)
Parameters
rows
int
cols
int
MatrixF(float[,])
public MatrixF(float[,] matrix)
Parameters
matrix
float[,]
Properties
Columns
public int Columns { get; }
Property Value
- int
Determinant
public float Determinant { get; }
Property Value
- float
IsIdentity
public bool IsIdentity { get; }
Property Value
- bool
IsSquare
public bool IsSquare { get; }
Property Value
- bool
this[int, int]
public float this[int row, int col] { get; set; }
Parameters
row
int
col
int
Property Value
- float
Rows
Property Value
- int
Trace
public float Trace { get; }
Property Value
- float
Methods
Clone()
Returns
- MatrixF
Column(int)
public float[] Column(int col)
Parameters
col
int
Returns
- float[]
Column(int, params float[])
public void Column(int col, params float[] values)
Parameters
col
int
values
float[]
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
Identity(int)
public static MatrixF Identity(int dimensions)
Parameters
dimensions
int
Returns
- MatrixF
Invert()
Returns
- MatrixF
One(int, int)
public static MatrixF One(int rows, int columns)
Parameters
rows
int
columns
int
Returns
- MatrixF
Row(int)
public float[] Row(int row)
Parameters
row
int
Returns
- float[]
Row(int, params float[])
public void Row(int row, params float[] values)
Parameters
row
int
values
float[]
ToString()
public override string ToString()
Returns
- string
Transpose()
public MatrixF Transpose()
Returns
- MatrixF
Zero(int, int)
public static MatrixF Zero(int rows, int columns)
Parameters
rows
int
columns
int
Returns
- MatrixF
Operators
operator +(MatrixF, MatrixF)
public static MatrixF operator +(MatrixF a, MatrixF b)
Parameters
a
MatrixF
b
MatrixF
Returns
- MatrixF
operator /(MatrixF, float)
public static MatrixF operator /(MatrixF a, float d)
Parameters
a
MatrixF
d
float
Returns
- MatrixF
operator ==(MatrixF, MatrixF)
public static bool operator ==(MatrixF a, MatrixF b)
Parameters
a
MatrixF
b
MatrixF
Returns
- bool
operator ^(MatrixF, int)
public static MatrixF operator ^(MatrixF a, int e)
Parameters
a
MatrixF
e
int
Returns
- MatrixF
operator !=(MatrixF, MatrixF)
public static bool operator !=(MatrixF a, MatrixF b)
Parameters
a
MatrixF
b
MatrixF
Returns
- bool
operator *(MatrixF, MatrixF)
public static MatrixF operator *(MatrixF a, MatrixF b)
Parameters
a
MatrixF
b
MatrixF
Returns
- MatrixF
operator *(MatrixF, float)
public static MatrixF operator *(MatrixF a, float d)
Parameters
a
MatrixF
d
float
Returns
- MatrixF
operator *(float, MatrixF)
public static MatrixF operator *(float d, MatrixF a)
Parameters
d
float
a
MatrixF
Returns
- MatrixF
operator -(MatrixF, MatrixF)
public static MatrixF operator -(MatrixF a, MatrixF b)
Parameters
a
MatrixF
b
MatrixF
Returns
- MatrixF
operator -(MatrixF)
public static MatrixF operator -(MatrixF a)
Parameters
a
MatrixF
Returns
- MatrixF