parentTensor

abstract val parentTensor: Tensor<T, V>(source)

The parent tensor that this view references.

This property provides access to the original tensor from which this view was created. The parent tensor contains the actual data storage, while the view provides a transformed interface to access portions of that data.

Views maintain a reference to their parent to enable:

  • Data access through coordinate transformation

  • Memory lifecycle management

  • Composition of multiple view layers

Return

the parent Tensor that contains the underlying data