Rohit Beriwal

Matrices and Linear Algebra Related stuff:

Following libraries are used:

Vector functions

Norm:

norm(x)

Normalize vector:

normalize(x)

Dot product:

dot(x,y)

Cross product:

cross(x,y)

Multiplication Operations:

Multiplication:

A * B

Trace, Determinant, Transponse, Inverse:

tr(A)
det(A)
transpose(A)
inv(A)

Eigen values & vectors:

eigvals(A)
eigvecs(A)

Factorize (LU):

factorize(A)

Special Matrices

These optimization can process things faster.

Diagonal:

D= Diagonal(n) # given n X n dim diagonal matrix with 1

Solve linear system Ax = b:

# For eg:
A = [1 2; 1 -1]
b = [5, -1]

# check this before going ahead
A = factorize(A)

# Simple answer: 
x0 = A \ b