CircularMappingArray class#
- class laygo2.object.grid.CircularMappingArray(elements=array([0]), dtype=<class 'int'>)[source]#
Bases:
laygo2.object.grid.core.CircularMapping
Multi-dimensional circular mapping class (index number expands infinitely).
Notes
(Korean) 다차원 순환맵핑(인덱싱 넘버가 무한히 확장) 클래스.
Public Data Attributes:
Inherited from
CircularMapping
getter of elements.
The shape of circular mapping.
Public Methods:
__getitem__
(pos)Element access function.
flip
(axis)Flip the elements of the object.
copy
()Copy the object.
Inherited from
CircularMapping
numpy.ndarray: getter of elements.
set_elements
(value)numpy.ndarray: setter of elements.
__init__
([elements, dtype])Constructor function of CircularMapping class.
__getitem__
(pos)Element access function.
__iter__
()Iteration function of circular mapping.
__next__
()Next element access function of circular mapping.
__str__
()Return str(self).
Return the summary of the object information.
append
(elem)Append elements to the mapping.
flip
(axis)Flip the elements of the object.
copy
()Copy the object.
concatenate
(obj)
- __init__(elements=array([0]), dtype=<class 'int'>)#
Constructor function of CircularMapping class.
Example
>>> from laygo2.object.grid import CircularMapping >>> elements = [0, 35, 85, 130, 180] >>> cm = CircularMapping(elements) >>> cm.shape [5] >>> cm[5] 35 >>> cm[0:10] [0, 35, 85, 130, 0, 35, 85, 130, 0, 35]
Notes
- (Korean) CircularMapping 클래스의 생성자함수
파라미터 - elements(list): 구성 요소 - dtype(type): 구성 요소의 datatype
- append(elem)#
Append elements to the mapping.
- concatenate(obj)#
- get_elements()#
numpy.ndarray: getter of elements.
- set_elements(value)#
numpy.ndarray: setter of elements.
- summarize()#
Return the summary of the object information.
- _elements = None#
Array consisting of the elements of circular mapping.
Example
>>> from laygo2.object.grid import CircularMapping >>> elements = [0, 35, 85, 130, 180] >>> cm = CircularMapping(elements) >>> cm.elements [0, 35, 85, 130, 180]
Notes
(Korean) 순환 맵핑의 구성 요소로 이루어진 배열.
- Type
- property elements#
getter of elements.
- Type
- property shape#
The shape of circular mapping.
Example
>>> from laygo2.object.grid import CircularMapping >>> elements = [0, 35, 85, 130, 180] >>> cm = CircularMapping(elements) >>> cm.shape array([5])
Notes
(Korean) 순환 맵핑의 shape.
- Type