package scipy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type tag = [
  1. | `VarWriter5
]
type t = [ `Object | `VarWriter5 ] Obj.t
val of_pyobject : Py.Object.t -> t
val to_pyobject : [> tag ] Obj.t -> Py.Object.t
val create : Py.Object.t -> t

Generic matlab matrix writing class

val update_matrix_tag : start_pos:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

None

val write : arr:[> `Ndarray ] Np.Obj.t -> [> tag ] Obj.t -> Py.Object.t

Write `arr` to stream at top and sub levels

Parameters ---------- arr : array_like array-like object to create writer for

val write_bytes : arr:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

None

val write_cells : arr:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

None

val write_char : ?codec:Py.Object.t -> arr:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Write string array `arr` with given `codec`

val write_element : ?mdtype:Py.Object.t -> arr:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

write tag and data

val write_empty_struct : [> tag ] Obj.t -> Py.Object.t

None

val write_header : ?is_complex:Py.Object.t -> ?is_logical:Py.Object.t -> ?nzmax:Py.Object.t -> shape:Py.Object.t -> mclass:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Write header for given data options shape : sequence array shape mclass - mat5 matrix class is_complex - True if matrix is complex is_logical - True if matrix is logical nzmax - max non zero elements for sparse arrays

We get the name and the global flag from the object, and reset them to defaults after we've used them

val write_numeric : arr:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

None

val write_object : arr:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Same as writing structs, except different mx class, and extra classname element after header

val write_regular_element : arr:Py.Object.t -> mdtype:Py.Object.t -> byte_count:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

None

val write_smalldata_element : arr:Py.Object.t -> mdtype:Py.Object.t -> byte_count:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

None

val write_sparse : arr:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Sparse matrices are 2D

val write_string : s:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

None

val write_struct : arr:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

None

val write_top : arr:[> `Ndarray ] Np.Obj.t -> name:string -> is_global:bool -> [> tag ] Obj.t -> Py.Object.t

Write variable at top level of mat file

Parameters ---------- arr : array_like array-like object to create writer for name : str, optional name as it will appear in matlab workspace default is empty string is_global : False, True, optional whether variable will be global on load into matlab

val to_string : t -> string

Print the object to a human-readable representation.

val show : t -> string

Print the object to a human-readable representation.

val pp : Format.formatter -> t -> unit

Pretty-print the object to a formatter.

OCaml

Innovation. Community. Security.