procedure
( matrix-ref Mij)→A
i:Integerj:Integer
3
6
(array #[#[4 5 6]])
(array #[#[1] #[4]])
- : #(struct:Array
(Indexes Index (Boxof Boolean) (-> Void) (-> Indexes (U One Zero)))
#<syntax:.../array/typed-array-struct.rkt:56:13 prop:equal+hash>
#<syntax:.../array/typed-array-struct.rkt:55:13 prop:custom-write>
#<syntax:.../array/typed-array-struct.rkt:54:13 prop:custom-print-quotable>)
(array #[#[0 1 0 0 0] #[0 0 0 1 0]])
- : #(struct:Array
(Indexes Index (Boxof Boolean) (-> Void) (-> Indexes (U One Zero)))
#<syntax:.../array/typed-array-struct.rkt:56:13 prop:equal+hash>
#<syntax:.../array/typed-array-struct.rkt:55:13 prop:custom-write>
#<syntax:.../array/typed-array-struct.rkt:54:13 prop:custom-print-quotable>)
(array #[])
procedure
( matrix-diagonal M)→(Array A)
(array #[1 5 9])
> M- : #(struct:Array
(Indexes Index (Boxof Boolean) (-> Void) (-> Indexes Positive-Fixnum))
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-array-struct.rkt:56:13 prop:equal+hash>
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-array-struct.rkt:55:13 prop:custom-write>
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-array-struct.rkt:54:13 prop:custom-print-quotable>)
(array
#[#[1 2 3 4 5 6 7]
#[1 2 3 4 5 6 7]
#[1 2 3 4 5 6 7]
#[1 2 3 4 5 6 7]
#[1 2 3 4 5 6 7]])
- : (Array Nonnegative-Fixnum)
(array
#[#[1 2 3 4 5 6 7]
#[0 2 3 4 5 6 7]
#[0 0 3 4 5 6 7]
#[0 0 0 4 5 6 7]
#[0 0 0 0 5 6 7]])
- : (Array Nonnegative-Fixnum)
(array
#[#[1 0 0 0 0 0 0]
#[1 2 0 0 0 0 0]
#[1 2 3 0 0 0 0]
#[1 2 3 4 0 0 0]
#[1 2 3 4 5 0 0]])
- : (Array Flonum)
(array
#[#[1.0 0.0 0.0 0.0 0.0 0.0 0.0]
#[1.0 2.0 0.0 0.0 0.0 0.0 0.0]
#[1.0 2.0 3.0 0.0 0.0 0.0 0.0]
#[1.0 2.0 3.0 4.0 0.0 0.0 0.0]
#[1.0 2.0 3.0 4.0 5.0 0.0 0.0]])
procedure
( matrix-rows M)→(Listof (Matrix A))
procedure
( matrix-cols M)→(Listof (Matrix A))
(list (array #[#[1 2 3]]) (array #[#[4 5 6]]))
(list (array #[#[1] #[4]]) (array #[#[2] #[5]]) (array #[#[3] #[6]]))
procedure
( matrix-augment Ms)→(Matrix A)
procedure
( matrix-stack Ms)→(Matrix A)
(array #[#[1 1 2 2 3 3] #[1 1 2 2 3 3]])
(array #[#[1 1] #[1 1] #[2 2] #[2 2] #[3 3] #[3 3]])
(array #[#[-1 2 3] #[-2 5 6] #[-3 8 9]])
(array #[#[-1 -2 -3] #[4 5 6] #[7 8 9]])
(array #[#[2 4 6] #[8 10 12] #[14 16 18] #[20 22 24]])
> Z- : (Array Zero)
(array #[#[0 0 0 0] #[0 0 0 0] #[0 0 0 0] #[0 0 0 0]])
- : (U 'FAILURE (Array Real))
'FAILURE