티스토리 뷰
Introduction to the use of SMath Studio
Prepared by Gilberto E. Urroz, May 2010
p44.
Operations with matrices
Creating matrices: augment, diag, identity, mat, matrix, stack
augment("number") - returns a matrix formed by placing the arguments left to right, Arguments are matrices/vectors having the same number of rows, or they are scalars and row matrices.
- 인수를 왼쪽에서 오른쪽으로 배치하여 형성된 행렬을 반환합니다. 인수는 행 수가 같은 행렬/벡터이거나 스칼라 및 행렬 행렬입니다.
diag("number") - returns a squre matrix containing on its diagonal the elements of the given vector(a vector is a column matrix)
- 주어진 벡터의 요소를 대각선에 포함하는 스쿼 행렬을 반환합니다(벡터는 열 행렬입니다).
identity("number") - returns an n x n identity matrix(a matrix of 0's with 1's along the diagonal). "matrix" must be a positive integer.
- 대각선을 따라 0과 1로 이루어진 행렬을 반환합니다(대각선에 1이 있는 행렬). "행렬"은 양의 정수여야 합니다.
mat('...) - matrix, 행렬
matrix("1:number, "2-number") - returns a zero matrix of the specified size "1:number"-rows, "2:number"-columns.
- 지정된 크기 "1:숫자"-행, "2:숫자"-열의 제로 행렬을 반환합니다.
stack('...) - returns an array formed by placing arguments top to bottom. Arguments are matrices/vectors having the same number of columns, or they are scalars and vectors.(A vector is a column matrix)
- 인수를 위에서 아래로 배치하여 형성된 배열을 반환합니다. 인수는 열 수가 같은 행렬/벡터이거나 스칼라 및 벡터입니다(벡터는 열 행렬입니다).
'SMath' 카테고리의 다른 글
Range function (0) | 2023.05.04 |
---|---|
Operations with matrices2 (0) | 2023.04.24 |
Matrices (0) | 2023.04.19 |
Solving single equations with solve (0) | 2023.04.10 |
Define function with the if function (0) | 2023.04.06 |