Class MatrixF
- Namespace
- FellowOakDicom.Imaging.Mathematics
- Assembly
- fo-dicom.core.dll
public class MatrixF
- Inheritance
-
MatrixF
- Inherited Members
- Extension Methods
Constructors
MatrixF(int, int)
public MatrixF(int rows, int cols)
Parameters
MatrixF(float[,])
public MatrixF(float[,] matrix)
Parameters
matrixfloat[,]
Properties
Columns
public int Columns { get; }
Property Value
Determinant
public float Determinant { get; }
Property Value
IsIdentity
public bool IsIdentity { get; }
Property Value
IsSquare
public bool IsSquare { get; }
Property Value
this[int, int]
public float this[int row, int col] { get; set; }
Parameters
Property Value
Rows
public int Rows { get; }
Property Value
Trace
public float Trace { get; }
Property Value
Methods
Clone()
public MatrixF Clone()
Returns
Column(int)
public float[] Column(int col)
Parameters
colint
Returns
- float[]
Column(int, params float[])
public void Column(int col, params float[] values)
Parameters
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Identity(int)
public static MatrixF Identity(int dimensions)
Parameters
dimensionsint
Returns
Invert()
public MatrixF Invert()
Returns
One(int, int)
public static MatrixF One(int rows, int columns)
Parameters
Returns
Row(int)
public float[] Row(int row)
Parameters
rowint
Returns
- float[]
Row(int, params float[])
public void Row(int row, params float[] values)
Parameters
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Transpose()
public MatrixF Transpose()
Returns
Zero(int, int)
public static MatrixF Zero(int rows, int columns)
Parameters
Returns
Operators
operator +(MatrixF, MatrixF)
public static MatrixF operator +(MatrixF a, MatrixF b)
Parameters
Returns
operator /(MatrixF, float)
public static MatrixF operator /(MatrixF a, float d)
Parameters
Returns
operator ==(MatrixF, MatrixF)
public static bool operator ==(MatrixF a, MatrixF b)
Parameters
Returns
operator ^(MatrixF, int)
public static MatrixF operator ^(MatrixF a, int e)
Parameters
Returns
operator !=(MatrixF, MatrixF)
public static bool operator !=(MatrixF a, MatrixF b)
Parameters
Returns
operator *(MatrixF, MatrixF)
public static MatrixF operator *(MatrixF a, MatrixF b)
Parameters
Returns
operator *(MatrixF, float)
public static MatrixF operator *(MatrixF a, float d)
Parameters
Returns
operator *(float, MatrixF)
public static MatrixF operator *(float d, MatrixF a)
Parameters
Returns
operator -(MatrixF, MatrixF)
public static MatrixF operator -(MatrixF a, MatrixF b)
Parameters
Returns
operator -(MatrixF)
public static MatrixF operator -(MatrixF a)
Parameters
aMatrixF