Array

class kgpy.data.Array(value, grid)

Bases: Copyable, Generic[GridT]

__init__(value, grid)
Parameters
  • value (Array) –

  • grid (GridT) –

Return type

None

Attributes

ndim

shape

size

value_broadcasted

value

grid

Methods

__init__(value, grid)

copy()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

copy_shallow()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

interp_barycentric_linear(grid)

rtype

typing.TypeVar(ArrayT, bound= Array)

interp_barycentric_linear_scipy(grid)

Inheritance Diagram

Inheritance diagram of kgpy.data.Array

copy()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

copy_shallow()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

interp_barycentric_linear(grid)
Return type

typing.TypeVar(ArrayT, bound= Array)

Parameters
  • self (ArrayT) –

  • grid (GridT) –

interp_barycentric_linear_scipy(grid)
Parameters
  • self (ArrayT) –

  • grid (GridT) –

grid: typing.TypeVar(GridT, bound= kgpy.grid.Grid)
property ndim: int
property shape: Dict[str, int]
property size: int
value: kgpy.labeled.Array
property value_broadcasted: ArrayT