def is_dyad_weight(w):
 return (is_weight(w) and all((is_dyad(f) for f in w)))

def is_dyad_weight ( w ) : return ( is_weight ( w ) and all ( ( is_dyad ( f ) for f in w ) ) )
test if a vector is a valid dyadic weight vector .