andes.core.service.IdxRepeat#

class andes.core.service.IdxRepeat(u, ref, **kwargs)[source]#

Helper class to repeat IdxParam.

This class has the same functionality as andes.core.service.NumRepeat but only operates on IdxParam, DataParam or NumParam.

__init__(u, ref, **kwargs)[source]#

Methods

assign_memory(n)

Assign memory for self.v and set the array to zero.

get_names()

Return name in a list

Attributes

class_name

Return the class name

n

Return the count of values in self.v.

v

Return values stored in self._v.