You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`(mx-ref mat row col)`**flonum** being **matrix**`mat` entry in row and column specified by positive **fixnum**s `row`, `col`.
210
226
227
+
*`(mx-set mat row col val)` returns **matrix** copy of **matrix**`mat` but with entry in row **fixnum**`row` and column **fixnum**`col` set to **flonum** or one-by-one **matrix**`val`.
228
+
229
+
*`(mx-set! mat row col val)` returns **void**, sets entry of **matrix**`mat` in row and column specified by positive **fixnum**s `row` and `col` to **flonum** or one-by-one **matrix**`val`.
230
+
211
231
*`(mx-col mat col)` returns **matrix** being **matrix**`mat`'s column specified by positive **fixnum**`col`.
212
232
213
233
*`(mx-row mat row)` returns **matrix** being **matrix**`mat`'s row specified by positive **fixnum**`row`.
214
234
215
-
*`(mx-submatrix mat row1 row2 col1 col2)` returns **matrix** holding entries of **matrix**`mat` in rows specified by positive **fixnum**s `row1` to `row2` and columns specified by positive **fixnum**s `col1` to `col2`.
*`(mx-set mat row col val)` returns **matrix** copy of **matrix**`mat` but with entry in row **fixnum**`row` and column **fixnum**`col` set to **flonum** or one-by-one **matrix**`val`.
220
-
221
-
*`(mx-set! mat row col val)` returns **void**, sets entry of **matrix**`mat` in row and column specified by positive **fixnum**s `row` and `col` to **flonum** or one-by-one **matrix**`val`.
237
+
*`(mx-submatrix mat row1 row2 col1 col2)` returns **matrix** holding entries of **matrix**`mat` in rows specified by positive **fixnum**s `row1` to `row2` and columns specified by positive **fixnum**s `col1` to `col2`.
*`(translate-rows idx)` returns **fixnum** for **matrix**`mat` translated row index **fixnum**`idx` (from 1-based to 0-based and from end).
512
532
513
-
*`(back-subst R b)` column-**matrix** solving linear problem of upper-right triangular-**matrix**`R` and column-**matrix**`b` by back substitution.
514
-
515
533
*`(time-stepper typ fun x0 dt tf)` states-times-steps **matrix** trajectory solving an ordinary differential equation, by method **procedure**`typ`, with vector field **procedure**`fun`, initial state column-**matrix**`x0`, time step **flonum**`dt`, and time horizon **flonum**`tf`.
516
534
517
535
#### Matrix Backend Library
@@ -521,7 +539,7 @@ Defines the matrix type (record) as column-major list-of-columns and provides ge
521
539
522
540
*`(matrix? any)` returns **boolean** answering if `any` is a **matrix**, generated by `define-record`.
523
541
524
-
*`(make-matrix lst cols)` returns **matrix** from list `lst` of columns and **fixnum** number `cols` of columns, generated by `define-record`.
542
+
*`(make-matrix cols lst)` returns **matrix** from list `lst` of columns and **fixnum** number `cols` of columns, generated by `define-record`.
525
543
526
544
*`(make-matrix* rows cols val)` returns `rows`-by-`cols`**matrix** with all entries set to `val` for **fixnum**s `rows`, `cols`.
527
545
@@ -547,17 +565,17 @@ Defines the matrix type (record) as column-major list-of-columns and provides ge
547
565
548
566
*`(matrix-ref mat row col)` returns **any** being **matrix**`mat` entry in **fixnum**`row` and **fixnum**`col`umns.
549
567
568
+
*`(matrix-set mat row col val)` returns **matrix** copy of **matrix**`mat` but with entry in row **fixnum**`row` and column **fixnum**`col` set to `val`.
569
+
570
+
*`(matrix-set! mat row col val)` returns **any**, sets entry of **matrix**`mat` in row **fixnum**`row` and column **fixnum**`col` to `val`.
571
+
550
572
*`(matrix-col mat col)` returns **matrix** being **matrix**`mat` column specified by **fixnum**`col`.
551
573
552
574
*`(matrix-row mat row)` returns **matrix** being **matrix**`mat` row specified by **fixnum**`row`.
553
575
554
-
*`(matrix-submatrix mat row1 row2 col1 col2)` returns **matrix** holding entries of **matrix**`mat` from rows **fixnum**s `row1` to `row2` in columns **fixnum**s `col1` to `col2`.
555
-
556
576
*`(matrix-diag mat)` returns **matrix** holding **matrix**`mat` diagonal entries as column-**matrix**.
557
577
558
-
*`(matrix-set mat row col val)` returns **matrix** copy of **matrix**`mat` but with entry in row **fixnum**`row` and column **fixnum**`col` set to `val`.
559
-
560
-
*`(matrix-set! mat row col val)` returns **any**, sets entry of **matrix**`mat` in row **fixnum**`row` and column **fixnum**`col` to `val`.
578
+
*`(matrix-submatrix mat row1 row2 col1 col2)` returns **matrix** holding entries of **matrix**`mat` from rows **fixnum**s `row1` to `row2` in columns **fixnum**s `col1` to `col2`.
561
579
562
580
*`(matrix-col? mat)` returns **boolean** answering if **matrix**`mat` has only a single column.
563
581
@@ -621,8 +639,6 @@ Specifies generic column functions for matrix library with f64vector (flonum vec
621
639
#### Homogeneous Flonum Vector Module
622
640
Provides homogeneous vector transformations analogous to vectors.
623
641
624
-
*`(f64vector-id)` is **string**`"#f64"`.
625
-
626
642
*`(f64vector-unfold dim fun)` returns **f64vector** of dimension **fixnum**`dim` with procedurally generated elements by **procedure**`fun`.
627
643
628
644
*`(f64vector-concat . vecs)` returns **f64vector** of concatenated **list**-of-**f64vector**(s) `vecs`.
;;@returns: **function** returning column-**matrix** solving the linear (least-squares) problem of **matrix** `mat`, given a column-**matrix** `vec` via QR decomposition.
839
838
(define* (mx-solver mat)
840
839
(returns "**function** returning column-**matrix** solving the linear (least-squares) problem of **matrix** `mat`, given a column-**matrix** `vec` via QR decomposition.")
0 commit comments