Check that the value satisfies a Leaf's symbolic attributes.

validate_val(object, val)

Arguments

object

A Leaf object.

val

The assigned value.

Value

The value converted to proper matrix type.