andes.core.service.ApplyFunc#

class andes.core.service.ApplyFunc(u, func, name=None, tex_name=None, info=None, cache=True)[source]#

Class for applying a numerical function on a parameter..

Parameters:
u

Input parameter

func

A condition function that returns True or False.

Warning

This class is not ready.

__init__(u, func, name=None, tex_name=None, info=None, cache=True)[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