package gg
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Ba.Buffer
type t = bufferThe type for bigarray buffers.
val create : scalar_type -> int -> buffercreate st count is a buffer of scalar type st with count scalars.
val scalar_type : buffer -> scalar_typebuffer_scalar_type b is b's buffer scalar type.
val length : buffer -> intbuffer_length b is b's buffer scalar length.
val byte_length : buffer -> intbuffer_byte_length b is b's buffer byte length.
of_bigarray ba is a buffer for the bigarray ba. data can be used to add information whenever the bigarray kind is:
Bigarray.int16_unsigned, if`Floatis specified the scalar type will be`Float16.Bigarray.int32orBigarray.int64, if`Unsignedis specified the scalar type will be, respectively`UInt32and`UInt64.
Raises Invalid_argument if the bigarray kind does not correspond to a Ba.scalar_type or if data is irrelevant.
val pp : Format.formatter -> buffer -> unitpp b prints a textual representation of b on ppf. Does not print the buffer's data.