Linear Algebra and the C Language/a0ff
Copy a matrix
Copy an array of numbers into a matrix:
Copy a number into a matrix:
Copy a matrix A into a matrix B:
Copy rows and columns
Copy a column or row from matrix A into matrix B :
Copy a column of matrix A into a row of matrix B:
Copy a row R1 into row R2 of a matrix:
Copy n rows of a matrix A into a matrix B:
Copy a diagonal matrix into a one-column matrix:
Copy a column matrix into a diagonal matrix:
Gauss-Jordan Utilities
Copy A and b into Ab:
Copy A from Ab to A, and b from Ab to b:
Copy the submatrix of Ab into subA:
Copy b of the system Ab into the matrix invA:
Index Matrix Utilities (R0)
Copy a matrix with row zero (R0: column position index):
Copy a column with its index into another column:
Other utilities
Copy the row vector U in reverse order:
Copy vector U into A as a Hankel matrix: