The matrix library math/matrix uses values with the type Array to
represent matrices.
A mathematical column vector is simply represented as a nx1 matrix.
Multiplying the matrix
1 0
0 2
on the vector
3
4
can be written:
(require math/matrix)
(matrix* (matrix [[1 0]
No, Racket's vector is an array from Java's perspective(int [] for
instance), not a custom data structure,
Array is not a builtin datatype in Racket.
If working with math-lib, you already have linear algebra supported.
the array in math/array is a custom data structure with vector in heart.
On Fr
2 matches
Mail list logo