Class DenseMatrix
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class DenseMatrix : IMatrix
Constructors
DenseMatrix(DenseMatrix)
Declaration
public DenseMatrix(DenseMatrix copy)
Parameters
DenseMatrix(Int32, Int32)
Declaration
public DenseMatrix(int Nrows, int Mcols)
Parameters
Properties
Buffer
Declaration
public double[] Buffer { get; }
Property Value
Columns
Declaration
public int Columns { get; }
Property Value
Item[Int32]
Declaration
public double this[int i] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Property Value
Item[Int32, Int32]
Declaration
public double this[int r, int c] { get; set; }
Parameters
Property Value
Length
Declaration
public int Length { get; }
Property Value
Rows
Declaration
Property Value
Size
Declaration
public Index2i Size { get; }
Property Value
Methods
Add(DenseMatrix)
Declaration
public void Add(DenseMatrix M2)
Parameters
Add(IMatrix)
Declaration
public void Add(IMatrix M2)
Parameters
Column(Int32)
Declaration
public DenseVector Column(int c)
Parameters
Type |
Name |
Description |
Int32 |
c |
|
Returns
Diagonal()
Declaration
public DenseVector Diagonal()
Returns
EpsilonEquals(DenseMatrix, Double)
Declaration
public bool EpsilonEquals(DenseMatrix m2, double epsilon = 1E-08)
Parameters
Returns
IsPositiveDefinite()
Declaration
public bool IsPositiveDefinite()
Returns
IsSymmetric(Double)
Declaration
public bool IsSymmetric(double dTolerance = 2.2204460492503131E-16)
Parameters
Type |
Name |
Description |
Double |
dTolerance |
|
Returns
MulAdd(DenseMatrix, Double)
Declaration
public void MulAdd(DenseMatrix M2, double s)
Parameters
MulAdd(IMatrix, Double)
Declaration
public void MulAdd(IMatrix M2, double s)
Parameters
Multiply(DenseMatrix, ref DenseMatrix, Boolean)
Declaration
public void Multiply(DenseMatrix M2, ref DenseMatrix R, bool bParallel = true)
Parameters
Multiply(DenseMatrix, Boolean)
Declaration
public DenseMatrix Multiply(DenseMatrix M2, bool bParallel = true)
Parameters
Returns
Multiply(DenseVector)
Declaration
public DenseVector Multiply(DenseVector X)
Parameters
Returns
Multiply(DenseVector, DenseVector)
Declaration
public void Multiply(DenseVector X, DenseVector R)
Parameters
Multiply(Double[], Double[])
Declaration
public void Multiply(double[] X, double[] Result)
Parameters
Row(Int32)
Declaration
public DenseVector Row(int r)
Parameters
Type |
Name |
Description |
Int32 |
r |
|
Returns
Set(Double[])
Declaration
public void Set(double[] values)
Parameters
Type |
Name |
Description |
Double[] |
values |
|
Set(Int32, Int32, Double)
Declaration
public void Set(int r, int c, double value)
Parameters
Transpose()
Declaration
public DenseMatrix Transpose()
Returns
TransposeInPlace()
Declaration
public void TransposeInPlace()
Implements