andes.core.service.OperationService#

class andes.core.service.OperationService(name=None, tex_name=None, info=None)[source]#

Base class for a type of Service which performs specific operations. OperationService may not use the assign_memory from BaseService, because it can have a different size.

This class cannot be used by itself.

See also

NumReduce

Service for Reducing linearly stored 2-D services into 1-D

NumRepeat

Service for repeating 1-D NumParam/ v-array following a

sub-pattern
IdxRepeat

Service for repeating 1-D IdxParam/ v-list following a

sub-pattern
__init__(name=None, tex_name=None, info=None)[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.