write
Method of HDF5Group.
Overloads
| Name | Description |
|---|---|
write(const string path, const ComplexSparseMatrix values) -> HDF5Group | Writes a sparse matrix dataset relative to the group and returns the group for chaining. |
write(const string path, const List values, as_bool type) -> HDF5Group | Writes a bool list dataset relative to the group. |
write(const string path, const List values, as_string type) -> HDF5Group | Writes a string list dataset relative to the group. |
write(const string path, const complex value) -> HDF5Group | Writes a scalar dataset relative to the group and returns the group for chaining. |
write(const string path, const ComplexTensor values) -> HDF5Group | Writes a tensor dataset relative to the group and returns the group for chaining. |
write(const string path, const RealTensor values) -> HDF5Group | Writes a tensor dataset relative to the group and returns the group for chaining. |
write(const string path, const bool value) -> HDF5Group | Writes a scalar dataset relative to the group and returns the group for chaining. |
write(const string path, const real value) -> HDF5Group | Writes a scalar dataset relative to the group and returns the group for chaining. |
write(const string path, const integer value) -> HDF5Group | Writes a scalar dataset relative to the group and returns the group for chaining. |
write(const string path, const List values, as_complex type) -> HDF5Group | Writes a complex list dataset relative to the group. |
write(const string path, const List values, as_real type) -> HDF5Group | Writes a real list dataset relative to the group. |
write(const string path, const List values, as_integer type) -> HDF5Group | Writes a integer list dataset relative to the group. |
write(const string path, const List values) -> HDF5Group | Writes a list dataset relative to the group and returns the group for chaining. |
write(const string path, const string value) -> HDF5Group | Writes a scalar dataset relative to the group and returns the group for chaining. |
write(const string path, const RealMatrix values) -> HDF5Group | Writes a matrix dataset relative to the group and returns the group for chaining. |
write(const string path, const ComplexMatrix values) -> HDF5Group | Writes a matrix dataset relative to the group and returns the group for chaining. |
write(const string path, const IntegerArray values) -> HDF5Group | Writes an array dataset relative to the group and returns the group for chaining. |
write(const string path, const RealArray values) -> HDF5Group | Writes an array dataset relative to the group and returns the group for chaining. |
write(const string path, const BoolArray values) -> HDF5Group | Writes an array dataset relative to the group and returns the group for chaining. |
write(const string path, const ComplexArray values) -> HDF5Group | Writes an array dataset relative to the group and returns the group for chaining. |
write(const string path, const RealSparseMatrix values) -> HDF5Group | Writes a sparse matrix dataset relative to the group and returns the group for chaining. |
write(const string path, const ComplexSparseMatrix values) -> HDF5Group
Writes a sparse matrix dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: Sparse matrix value (RealSparseMatrix, ComplexSparseMatrix).
Returns
Reference to the same HDF5Group instance.
write(const string path, const List values, as_bool type) -> HDF5Group
Writes a bool list dataset relative to the group.
Parameters
- path: Relative dataset path.
- values: List of primitive values.
- type: Type tag (as_bool).
Returns
Reference to the same HDF5Group instance.
write(const string path, const List values, as_string type) -> HDF5Group
Writes a string list dataset relative to the group.
Parameters
- path: Relative dataset path.
- values: List of primitive values.
- type: Type tag (as_string).
Returns
Reference to the same HDF5Group instance.
write(const string path, const complex value) -> HDF5Group
Writes a scalar dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- value: Scalar value to write.
Returns
Reference to the same HDF5Group instance.
Example
var g = HDF5File("data.h5", "w").create_group("/runs")
g.write("run1/value", 3.14)
write(const string path, const ComplexTensor values) -> HDF5Group
Writes a tensor dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: Tensor value (RealTensor, ComplexTensor).
Returns
Reference to the same HDF5Group instance.
write(const string path, const RealTensor values) -> HDF5Group
Writes a tensor dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: Tensor value (RealTensor, ComplexTensor).
Returns
Reference to the same HDF5Group instance.
write(const string path, const bool value) -> HDF5Group
Writes a scalar dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- value: Scalar value to write.
Returns
Reference to the same HDF5Group instance.
Example
var g = HDF5File("data.h5", "w").create_group("/runs")
g.write("run1/value", 3.14)
write(const string path, const real value) -> HDF5Group
Writes a scalar dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- value: Scalar value to write.
Returns
Reference to the same HDF5Group instance.
Example
var g = HDF5File("data.h5", "w").create_group("/runs")
g.write("run1/value", 3.14)
write(const string path, const integer value) -> HDF5Group
Writes a scalar dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- value: Scalar value to write.
Returns
Reference to the same HDF5Group instance.
Example
var g = HDF5File("data.h5", "w").create_group("/runs")
g.write("run1/value", 3.14)
write(const string path, const List values, as_complex type) -> HDF5Group
Writes a complex list dataset relative to the group.
Parameters
- path: Relative dataset path.
- values: List of primitive values.
- type: Type tag (as_complex).
Returns
Reference to the same HDF5Group instance.
write(const string path, const List values, as_real type) -> HDF5Group
Writes a real list dataset relative to the group.
Parameters
- path: Relative dataset path.
- values: List of primitive values.
- type: Type tag (as_real).
Returns
Reference to the same HDF5Group instance.
write(const string path, const List values, as_integer type) -> HDF5Group
Writes a integer list dataset relative to the group.
Parameters
- path: Relative dataset path.
- values: List of primitive values.
- type: Type tag (as_integer).
Returns
Reference to the same HDF5Group instance.
write(const string path, const List values) -> HDF5Group
Writes a list dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: List of primitive values.
Returns
Reference to the same HDF5Group instance.
Example
var g = HDF5File("data.h5", "w").create_group("/runs")
g.write("run1/values", [1, 2, 3])
write(const string path, const string value) -> HDF5Group
Writes a scalar dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- value: Scalar value to write.
Returns
Reference to the same HDF5Group instance.
Example
var g = HDF5File("data.h5", "w").create_group("/runs")
g.write("run1/value", 3.14)
write(const string path, const RealMatrix values) -> HDF5Group
Writes a matrix dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: Matrix value (RealMatrix, ComplexMatrix).
Returns
Reference to the same HDF5Group instance.
write(const string path, const ComplexMatrix values) -> HDF5Group
Writes a matrix dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: Matrix value (RealMatrix, ComplexMatrix).
Returns
Reference to the same HDF5Group instance.
write(const string path, const IntegerArray values) -> HDF5Group
Writes an array dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: Array value (BoolArray, IntegerArray, RealArray, ComplexArray).
Returns
Reference to the same HDF5Group instance.
write(const string path, const RealArray values) -> HDF5Group
Writes an array dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: Array value (BoolArray, IntegerArray, RealArray, ComplexArray).
Returns
Reference to the same HDF5Group instance.
write(const string path, const BoolArray values) -> HDF5Group
Writes an array dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: Array value (BoolArray, IntegerArray, RealArray, ComplexArray).
Returns
Reference to the same HDF5Group instance.
write(const string path, const ComplexArray values) -> HDF5Group
Writes an array dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: Array value (BoolArray, IntegerArray, RealArray, ComplexArray).
Returns
Reference to the same HDF5Group instance.
write(const string path, const RealSparseMatrix values) -> HDF5Group
Writes a sparse matrix dataset relative to the group and returns the group for chaining.
Parameters
- path: Relative dataset path.
- values: Sparse matrix value (RealSparseMatrix, ComplexSparseMatrix).
Returns
Reference to the same HDF5Group instance.