copapy.vector#
- class copapy.vector(values)#
Bases:
Generic[TNum]Mathematical vector class supporting basic operations and interactions with values.
Create a vector with given values.
- Parameters:
values (
Iterable[TypeVar(TNum,int,float) |value[TypeVar(TNum,int,float)]]) – iterable of constant values
- dot(other)#
- Return type:
Any
- map(func)#
Applies a function to each element of the vector and returns a new vector.
- property shape: tuple[int]#
Return the shape of the vector as (length,).
- sum()#
Sum of all vector elements.
- Return type:
Any