Learn R Programming

optR (version 1.2.5)

opt.matrix.reorder: Function to Re-order the matrix to make dominant diagnals

Description

Function re-order the matrix to make matrix pivot.diag at each iteration

Usage

opt.matrix.reorder(A, tol = 1e-16)

Arguments

A
: Input Matrix
tol
: tolerance

Value

A : Updated Matrixb.order : Order sequence of A updated matrix

Examples

Run this code
A<-matrix(c(0,-1,1, -1,2,-1,2,-1,0), nrow=3,ncol=3, byrow = TRUE)
b<-matrix(c(0,0, 1), nrow=3,ncol=1,byrow=TRUE)
Z<-optR(A, b, method="gauss")

Run the code above in your browser using DataLab