The Complete SPRLIB & ANNLIB

check_weights

- check if the weights in a network are valid (LOCAL)

SYNOPSIS

int check_weights (net)

ARGUMENTS

NET *net A pointer to a NET structure.

RETURNS

TRUE if an error was detected, FALSE if not.

FUNCTION

This function checks, for all UNIT structures in net, if its LINK structures have valid values. Checks include: the number of weights is counted and compared to the NET structure's NumWeights field. Furthermore, the SystemData.l field is set to FALSE for each weight, after which it is set to TRUE by looping over all units and traversing their linked list of InLinks and OutLinks. If there remains a weight with SystemData.l set to FALSE, the weight is not used (an error).

NOTE

This function is used by check_all_network. The NET should have write permission for the weights (see NET-ACCESS-flags).

SEE ALSO

check_net, check_units, check_links, check_conn_to_input, check_conn_to_output, check_io_conn , check_incr_ids, check_decr_ids, check_order_ids, check_ff_net , check_all_network

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998