TermData¶
- class zixy.container.data.TermData(cmpnts: Cmpnts[ImplT, SpecT], coeffs: Coeffs[CoeffT])[source]¶
Bases:
Generic[ImplT,SpecT,CoeffT]Data for terms, consisting of an array of components and a vector of coefficients.
- __init__(cmpnts: Cmpnts[ImplT, SpecT], coeffs: Coeffs[CoeffT])[source]¶
Initialize the data.
- Parameters:
cmpnts – The component array.
coeffs – The coefficient vector.
- clone(s: int | slice = slice(None, None, None)) Self[source]¶
Return a deep copy of
self.- Parameters:
s – The slice of the containers to clone.
- Returns:
A clone of
selfwith the specified slice.
- resize(n: int) None[source]¶
Resize the underlying containers.
- Parameters:
n – The new size of the containers.
- Raises:
ValueError – If the container is a view.
Note
This method operates in-place.