Skip to main content

write

Method of NumpyFile.

Overloads

NameDescription
write(const ComplexSparseMatrix values) -> NumpyFileWrites a sparse matrix densely to a .npy file and returns the file for chaining.
write(const integer value) -> NumpyFileWrites a value to a .npy file and returns the file for chaining.
write(const real value) -> NumpyFileWrites a value to a .npy file and returns the file for chaining.
write(const bool value) -> NumpyFileWrites a value to a .npy file and returns the file for chaining.
write(const RealTensor values) -> NumpyFileWrites a tensor to a .npy file and returns the file for chaining.
write(const BoolArray values) -> NumpyFileWrites an array to a .npy file and returns the file for chaining.
write(const complex value) -> NumpyFileWrites a value to a .npy file and returns the file for chaining.
write(const ComplexTensor values) -> NumpyFileWrites a tensor to a .npy file and returns the file for chaining.
write(const ComplexMatrix values) -> NumpyFileWrites a matrix to a .npy file and returns the file for chaining.
write(const IntegerArray values) -> NumpyFileWrites an array to a .npy file and returns the file for chaining.
write(const RealArray values) -> NumpyFileWrites an array to a .npy file and returns the file for chaining.
write(const ComplexArray values) -> NumpyFileWrites an array to a .npy file and returns the file for chaining.
write(const RealSparseMatrix values) -> NumpyFileWrites a sparse matrix densely to a .npy file and returns the file for chaining.
write(const List values, as_string type) -> NumpyFileWrites a string list to a .npy file.
write(const string name, const List values, as_complex type) -> NumpyFileWrites a named complex list to a .npz archive.
write(const string value) -> NumpyFileWrites a value to a .npy file and returns the file for chaining.
write(const List values, as_complex type) -> NumpyFileWrites a complex list to a .npy file.
write(const List values, as_real type) -> NumpyFileWrites a real list to a .npy file.
write(const List values, as_integer type) -> NumpyFileWrites a integer list to a .npy file.
write(const List values, as_bool type) -> NumpyFileWrites a bool list to a .npy file.
write(const List value) -> NumpyFileWrites a value to a .npy file and returns the file for chaining.
write(const string name, const integer value) -> NumpyFileWrites a named value to a .npz archive and returns the file for chaining.
write(const string name, const real value) -> NumpyFileWrites a named value to a .npz archive and returns the file for chaining.
write(const string name, const bool value) -> NumpyFileWrites a named value to a .npz archive and returns the file for chaining.
write(const string name, const RealTensor values) -> NumpyFileWrites a named tensor to a .npz archive and returns the file for chaining.
write(const string name, const ComplexTensor values) -> NumpyFileWrites a named tensor to a .npz archive and returns the file for chaining.
write(const string name, const complex value) -> NumpyFileWrites a named value to a .npz archive and returns the file for chaining.
write(const string name, const List values, as_string type) -> NumpyFileWrites a named string list to a .npz archive.
write(const string name, const List values, as_real type) -> NumpyFileWrites a named real list to a .npz archive.
write(const string name, const List values, as_integer type) -> NumpyFileWrites a named integer list to a .npz archive.
write(const string name, const List values, as_bool type) -> NumpyFileWrites a named bool list to a .npz archive.
write(const string name, const List value) -> NumpyFileWrites a named value to a .npz archive and returns the file for chaining.
write(const string name, const string value) -> NumpyFileWrites a named value to a .npz archive and returns the file for chaining.
write(const string name, const RealMatrix values) -> NumpyFileWrites a named array or matrix to a .npz archive and returns the file for chaining.
write(const string name, const ComplexMatrix values) -> NumpyFileWrites a named array or matrix to a .npz archive and returns the file for chaining.
write(const string name, const IntegerArray values) -> NumpyFileWrites a named array or matrix to a .npz archive and returns the file for chaining.
write(const string name, const RealArray values) -> NumpyFileWrites a named array or matrix to a .npz archive and returns the file for chaining.
write(const string name, const BoolArray values) -> NumpyFileWrites a named array or matrix to a .npz archive and returns the file for chaining.
write(const string name, const ComplexArray values) -> NumpyFileWrites a named array or matrix to a .npz archive and returns the file for chaining.
write(const string name, const RealSparseMatrix values) -> NumpyFileWrites a named sparse matrix densely to a .npz archive and returns the file for chaining.
write(const string name, const ComplexSparseMatrix values) -> NumpyFileWrites a named sparse matrix densely to a .npz archive and returns the file for chaining.
write(const RealMatrix values) -> NumpyFileWrites a matrix to a .npy file and returns the file for chaining.

write(const ComplexSparseMatrix values) -> NumpyFile

Writes a sparse matrix densely to a .npy file and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const integer value) -> NumpyFile

Writes a value to a .npy file and returns the file for chaining.

Parameters

  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const real value) -> NumpyFile

Writes a value to a .npy file and returns the file for chaining.

Parameters

  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const bool value) -> NumpyFile

Writes a value to a .npy file and returns the file for chaining.

Parameters

  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const RealTensor values) -> NumpyFile

Writes a tensor to a .npy file and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const BoolArray values) -> NumpyFile

Writes an array to a .npy file and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const complex value) -> NumpyFile

Writes a value to a .npy file and returns the file for chaining.

Parameters

  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const ComplexTensor values) -> NumpyFile

Writes a tensor to a .npy file and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const ComplexMatrix values) -> NumpyFile

Writes a matrix to a .npy file and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const IntegerArray values) -> NumpyFile

Writes an array to a .npy file and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const RealArray values) -> NumpyFile

Writes an array to a .npy file and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const ComplexArray values) -> NumpyFile

Writes an array to a .npy file and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const RealSparseMatrix values) -> NumpyFile

Writes a sparse matrix densely to a .npy file and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const List values, as_string type) -> NumpyFile

Writes a string list to a .npy file.

Parameters

  • values: List of primitive values.
  • type: Type tag (as_string).

Returns

Reference to the same NumpyFile instance.

write(const string name, const List values, as_complex type) -> NumpyFile

Writes a named complex list to a .npz archive.

Parameters

  • name: Dataset name.
  • values: List of primitive values.
  • type: Type tag (as_complex).

Returns

Reference to the same NumpyFile instance.

write(const string value) -> NumpyFile

Writes a value to a .npy file and returns the file for chaining.

Parameters

  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const List values, as_complex type) -> NumpyFile

Writes a complex list to a .npy file.

Parameters

  • values: List of primitive values.
  • type: Type tag (as_complex).

Returns

Reference to the same NumpyFile instance.

write(const List values, as_real type) -> NumpyFile

Writes a real list to a .npy file.

Parameters

  • values: List of primitive values.
  • type: Type tag (as_real).

Returns

Reference to the same NumpyFile instance.

write(const List values, as_integer type) -> NumpyFile

Writes a integer list to a .npy file.

Parameters

  • values: List of primitive values.
  • type: Type tag (as_integer).

Returns

Reference to the same NumpyFile instance.

write(const List values, as_bool type) -> NumpyFile

Writes a bool list to a .npy file.

Parameters

  • values: List of primitive values.
  • type: Type tag (as_bool).

Returns

Reference to the same NumpyFile instance.

write(const List value) -> NumpyFile

Writes a value to a .npy file and returns the file for chaining.

Parameters

  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const integer value) -> NumpyFile

Writes a named value to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const real value) -> NumpyFile

Writes a named value to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const bool value) -> NumpyFile

Writes a named value to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const RealTensor values) -> NumpyFile

Writes a named tensor to a .npz archive and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const string name, const ComplexTensor values) -> NumpyFile

Writes a named tensor to a .npz archive and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.

write(const string name, const complex value) -> NumpyFile

Writes a named value to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const List values, as_string type) -> NumpyFile

Writes a named string list to a .npz archive.

Parameters

  • name: Dataset name.
  • values: List of primitive values.
  • type: Type tag (as_string).

Returns

Reference to the same NumpyFile instance.

write(const string name, const List values, as_real type) -> NumpyFile

Writes a named real list to a .npz archive.

Parameters

  • name: Dataset name.
  • values: List of primitive values.
  • type: Type tag (as_real).

Returns

Reference to the same NumpyFile instance.

write(const string name, const List values, as_integer type) -> NumpyFile

Writes a named integer list to a .npz archive.

Parameters

  • name: Dataset name.
  • values: List of primitive values.
  • type: Type tag (as_integer).

Returns

Reference to the same NumpyFile instance.

write(const string name, const List values, as_bool type) -> NumpyFile

Writes a named bool list to a .npz archive.

Parameters

  • name: Dataset name.
  • values: List of primitive values.
  • type: Type tag (as_bool).

Returns

Reference to the same NumpyFile instance.

write(const string name, const List value) -> NumpyFile

Writes a named value to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const string value) -> NumpyFile

Writes a named value to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • value: Scalar or list value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const RealMatrix values) -> NumpyFile

Writes a named array or matrix to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • values: Array or matrix value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const ComplexMatrix values) -> NumpyFile

Writes a named array or matrix to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • values: Array or matrix value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const IntegerArray values) -> NumpyFile

Writes a named array or matrix to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • values: Array or matrix value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const RealArray values) -> NumpyFile

Writes a named array or matrix to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • values: Array or matrix value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const BoolArray values) -> NumpyFile

Writes a named array or matrix to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • values: Array or matrix value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const ComplexArray values) -> NumpyFile

Writes a named array or matrix to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • values: Array or matrix value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const RealSparseMatrix values) -> NumpyFile

Writes a named sparse matrix densely to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • values: Sparse matrix value.

Returns

Reference to the same NumpyFile instance.

write(const string name, const ComplexSparseMatrix values) -> NumpyFile

Writes a named sparse matrix densely to a .npz archive and returns the file for chaining.

Parameters

  • name: Dataset name.
  • values: Sparse matrix value.

Returns

Reference to the same NumpyFile instance.

write(const RealMatrix values) -> NumpyFile

Writes a matrix to a .npy file and returns the file for chaining.

Parameters

Returns

Reference to the same NumpyFile instance.