package slap
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A linear algebra library with static size checking for matrix operations
Install
dune-project
Dependency
Authors
Maintainers
Sources
v4.1.1.tar.gz
sha256=93a320eefbb8a8d06c08804aea49df944fcbbe5142f58e9c38b66f4d8bc46c5d
md5=a982b3ef7e0a137d8f583a30065d8443
doc/slap/Slap_io/index.html
Module Slap_io
Slap.Io provides pretty printers for vectors and matrices.
module Context : sig ... endGeneral pretty printers
val pp_table :
?pp_open:(Format.formatter -> unit) ->
?pp_close:(Format.formatter -> unit) ->
?pp_head:(Format.formatter -> int -> unit) ->
?pp_foot:(Format.formatter -> int -> unit) ->
?pp_end_row:(Format.formatter -> index -> unit) ->
?pp_end_col:(Format.formatter -> row:index -> col:index -> unit) ->
?pp_left:(Format.formatter -> int -> unit) ->
?pp_right:(Format.formatter -> int -> unit) ->
?pad:char ->
?ellipsis:string ->
?vertical_context:Context.t option ->
?horizontal_context:Context.t option ->
(Format.formatter -> 'el -> unit) ->
Format.formatter ->
int ->
int ->
(int -> int -> 'el) ->
unitpp_table ?pp_open ?pp_close ?pp_head ?pp_foot ?pp_end_row ?pp_end_col ?pp_left ?pp_right ?pad ?ellipsis ?vertical_context ?horizontal_context pp_el ppf n_rows n_cols get_el
Generic printing of tables.
pp_open ppfis called when a table is started. (default =pp_open_box ppf 0)pp_close ppfis called when a table is complete. (default =pp_close_box ppf ())pp_head other_ppf jis used to print a header for columnjin a table. The first argumentother_ppfis notppf! (default = no header,1 <= j <= n_cols)pp_foot other_ppf jis used to print a footer for columnjin a table. The first argumentother_ppfis notppf! (default = no footer,1 <= j <= n_cols)pp_end_row ~rowis called at the end of each row. (default =pp_force_newline ppf ())pp_end_col ~colis called at the end of each column (element). (default =pp_print_string ppf " ")pp_left other_ppf iis used to print left labels for rowiin a table. The first argumentother_ppfis notppf! (default = no left labels,1 <= i <= n_rows)pp_right other_ppf iis used to print right labels for rowiin a table. The first argumentother_ppfis notppf! (default = no right labels)padis a padding character for each column. (default =' ')ellipsisis used as a filler when elements need to be skipped. (default =!default_ellipsis)- If
vertical_contextisSome n, the firstnrows and the lastnrows of a table are printed. When the number of rows is smaller than2 * n, all rows are shown. IfNone, all rows of a table are output. (default =!Context.vertical_default) - If
horizontal_contextisSome n, the firstncolumns and the lastncolumns of a table are printed. When the number of columns is smaller than2 * n, all columns are shown. IfNone, all columns of a table are output. (default =!Context.horizontal_default) pp_elis a pretty printer to used to output elements.ppfis the formatter to which all output is finally printed.n_rowsis the number of all rows of a table.n_colsis the number of all columns of a table.get_el i jreturns the(i,j)element of a table. (1 <= i <= n_rowsand1 <= j <= n_cols)
val pp_vec_gen :
?pp_open:(Format.formatter -> unit) ->
?pp_close:(Format.formatter -> unit) ->
?pp_head:(Format.formatter -> int -> unit) ->
?pp_foot:(Format.formatter -> int -> unit) ->
?pp_end_row:(Format.formatter -> index -> unit) ->
?pp_end_col:(Format.formatter -> row:index -> col:index -> unit) ->
?pp_left:(Format.formatter -> int -> unit) ->
?pp_right:(Format.formatter -> int -> unit) ->
?pad:char ->
?ellipsis:string ->
?vertical_context:Context.t option ->
?horizontal_context:Context.t option ->
(Format.formatter -> 'num -> unit) ->
Format.formatter ->
('n, 'num, 'prec, 'cnt_or_dsc) Slap_vec.t ->
unitA generator of pretty printers for (column) vectors.
val pp_rvec_gen :
?pp_open:(Format.formatter -> unit) ->
?pp_close:(Format.formatter -> unit) ->
?pp_head:(Format.formatter -> int -> unit) ->
?pp_foot:(Format.formatter -> int -> unit) ->
?pp_end_row:(Format.formatter -> index -> unit) ->
?pp_end_col:(Format.formatter -> row:index -> col:index -> unit) ->
?pp_left:(Format.formatter -> int -> unit) ->
?pp_right:(Format.formatter -> int -> unit) ->
?pad:char ->
?ellipsis:string ->
?vertical_context:int option ->
?horizontal_context:int option ->
(Format.formatter -> 'num -> unit) ->
Format.formatter ->
('n, 'num, 'prec, 'cnt_or_dsc) Slap_vec.t ->
unitA generator of pretty printers for row vectors.
val pp_mat_gen :
?pp_open:(Format.formatter -> unit) ->
?pp_close:(Format.formatter -> unit) ->
?pp_head:(Format.formatter -> int -> unit) ->
?pp_foot:(Format.formatter -> int -> unit) ->
?pp_end_row:(Format.formatter -> index -> unit) ->
?pp_end_col:(Format.formatter -> row:index -> col:index -> unit) ->
?pp_left:(Format.formatter -> int -> unit) ->
?pp_right:(Format.formatter -> int -> unit) ->
?pad:char ->
?ellipsis:string ->
?vertical_context:Context.t option ->
?horizontal_context:Context.t option ->
(Format.formatter -> 'num -> unit) ->
Format.formatter ->
('m, 'n, 'num, 'prec, 'cnt_or_dsc) Slap_mat.t ->
unitA generator of pretty printers for matrices.
Default pretty printers for elements of vectors or matrices
type 'el pp_el_default = (Format.formatter -> 'el -> unit) refval pp_float_el_default : float pp_el_defaultfprintf ppf "%G" el
val pp_complex_el_default : Complex.t pp_el_defaultfprintf ppf "(%G, %Gi)" x.re x.im
val pp_int32_el_default : int32 pp_el_defaultfprintf ppf "%ld" x
Pretty-printing in standard style
type ('n, 'num, 'prec, 'cnt_or_dsc) pp_vec =
Format.formatter ->
('n, 'num, 'prec, 'cnt_or_dsc) Slap_vec.t ->
unitA type of standard pretty printers for vectors.
val pp_fvec : ('n, float, 'prec, 'cnt_or_dsc) pp_vecval pp_ivec : ('n, int32, 'prec, Slap_misc.cnt) pp_vecval pp_rfvec : ('n, float, 'prec, 'cnt_or_dsc) pp_vecval pp_rivec : ('n, int32, 'prec, 'cnt_or_dsc) pp_vectype ('m, 'n, 'num, 'prec, 'cnt_or_dsc) pp_mat =
Format.formatter ->
('m, 'n, 'num, 'prec, 'cnt_or_dsc) Slap_mat.t ->
unitA type of standard pretty printers for matrices.
val pp_fmat : ('m, 'n, float, 'prec, 'cnt_or_dsc) pp_matval pp_imat : ('m, 'n, int32, 'prec, 'cnt_or_dsc) pp_matToplevel pretty-printers
module Toplevel : sig ... end sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page