ag_types module
- class autograph.ag_types.TypeInfo(base_type, vector_size=1)
Bases:
objectClass representing type information
- static type_to_string(a)
- class autograph.ag_types.Type(new_node, fn_ctx, type_info)
Bases:
objectBase class for all sbs types
- class autograph.ag_types.VectorType(new_node, fn_ctx, type_info)
Bases:
TypeBase class for scalar and vector arithmetic types (float, int)
- class autograph.ag_types.FloatType(new_node, fn_ctx, type_info)
Bases:
VectorTypeBase class for float scalar and vector arithmetic types
- class autograph.ag_types.Float1(new_node, fn_ctx)
Bases:
FloatTypeScalar float node type
- static constant(x, fn_ctx)
- static variable(name, fn_ctx)
- class autograph.ag_types.Float2(new_node, fn_ctx)
Bases:
FloatTypeFloat vector 2
- static constant(x, fn_ctx)
- static variable(name, fn_ctx)
- class autograph.ag_types.Float3(new_node, fn_ctx)
Bases:
FloatTypeFloat vector 3
- static constant(x, fn_ctx)
- static variable(name, fn_ctx)
- class autograph.ag_types.Float4(new_node, fn_ctx)
Bases:
FloatTypeFloat vector 4
- static constant(x, fn_ctx)
- static variable(name, fn_ctx)
- class autograph.ag_types.IntType(new_node, fn_ctx, type_info)
Bases:
VectorTypeBase class for int types
- class autograph.ag_types.Int1(new_node, fn_ctx)
Bases:
IntTypeInt scalar type
- static constant(x, fn_ctx)
- static variable(name, fn_ctx)
- class autograph.ag_types.Int2(new_node, fn_ctx)
Bases:
IntTypeInt vector 2 type
- static constant(x, fn_ctx)
- static variable(name, fn_ctx)
- class autograph.ag_types.Int3(new_node, fn_ctx)
Bases:
IntTypeInt vector 3 type
- static constant(x, fn_ctx)
- static variable(name, fn_ctx)
- class autograph.ag_types.Int4(new_node, fn_ctx)
Bases:
IntTypeInt vector 4 type
- static constant(x, fn_ctx)
- static variable(name, fn_ctx)
- class autograph.ag_types.Boolean(new_node, fn_ctx)
Bases:
TypeBoolean type, always scalar
- static constant(x, fn_ctx)
- static variable(name, fn_ctx)
- autograph.ag_types.create_constant(fn_node, type_enum, val, vector_size)
Creates a constant
- Parameters:
fn_node (
SBSFunction) – The function to create the constant intype_enum (
FunctionEnum) – The type of constant to createval (numeric type or list of numeric types) – Constant value
vector_size (int) – Size of vector
- Returns:
- autograph.ag_types.create_variable(fn_node, type_enum, name)
Creates a variable (i.e a named input reference)
- Parameters:
fn_node (
SBSFunction) – The function to create the variable in intype_enum (
FunctionEnum) – The type of variable to createname (string) – Name of variable
- Returns: