into

zixy.container.convert.into(source: ViewableBase[Any, Any], t: type[OutT]) OutT[source]

Clone source into a new related container of type t.

Parameters:
  • source – Container to convert.

  • t – Target container type.

Returns:

An owning clone represented as t.

Raises:
  • TypeError – If the source-target pair is unsupported or has incompatible component types.

  • ValueError – If a coefficient value cannot be represented by the target coefficient type.