[]
        
(Showing Draft Content)

C1.Framework.Mathematics.Matrix

Matrix Class

Define a class that represents the matrix in mathematics.

Inheritance
Matrix
Implements
Namespace: C1.Framework.Mathematics
Assembly: C1.Win.Input.8.dll
Syntax
public class Matrix : ICloneable

Constructors

Name Description
Matrix()

Initializes a new instance of Matrix class.

Matrix(bool, params Vector[])

Initializes a new instance of Matrix class.

Matrix(double[,])

Initializes a new instance of Matrix class.

Matrix(int, int)

Initializes a new instance of Matrix class.

Fields

Name Description
_data

A two dimension double array used to save the data.

Properties

Name Description
Columns

Get the vectors from the column direction.

Elements

Gets the elements of the matrix.

Height

Get the row number of the matrix.

IsIdentity

Gets a value indicating whether this Matrix object is the identity matrix.

this[int, int]

Gets or sets the value of element at special location.

Rows

Get the vectors from the row direction..

Value

Gets the value of the current matrix.

Width

Get the column number of the matrix.

Methods

Name Description
Add(Matrix)

Adds a speical Matrix to this Matrix.

Clone()

Create a new object that is a copy of this Matrix.

Equals(object)

Determines whether the specified System.Object is equal to the current System.Object.

GetHashCode()

Serves as a hash function for a particular type. System.Object.GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

LeftMultiply(Matrix)

Left multiply a speical Matrix to this Matrix.

RightMultiply(Matrix)

Right multiply a speical Matrix to this Matrix.

ToString()

Returns a string that represents the current matrix.

Transpose()

Convertes this Matrix to it's transpose matrix.

Transpose(Matrix)

Defines the transpose operator for Matrix class.

Operators

Name Description
operator +(Matrix, Matrix)

Defines the + operator for Matrix class.

operator ==(Matrix, Matrix)

Defines the == operator for vector.

explicit operator double(Matrix)

Use the explicit convertion to get a value of matrix.

operator !=(Matrix, Matrix)

Defines the == operator for vector.

operator *(Matrix, Matrix)

Defines the * operator for Matrix class.

operator -(Matrix, Matrix)

Defines the binary - operator for Matrix class.

operator -(Matrix)

Defines the binary - operator for Matrix class.