Re: [racket-users] Vector or array type for math vector?

2016-09-16 Thread Jens Axel Søgaard
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]

Re: [racket-users] Vector or array type for math vector?

2016-09-16 Thread WarGrey Gyoudmon Ju
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