Collaboration diagram for Sparse Matrix Linker:
|
Functions | |
| C_NNFW_API NnfwLinker * | NnfwLinkerCreateSparse (NnfwCluster *from, NnfwCluster *to) |
| C_NNFW_API void | NnfwSparseLinkerSetWeights (NnfwLinker *link, Real *matrix) |
| C_NNFW_API void | NnfwSparseLinkerSetWeight (NnfwLinker *link, unsigned int from, unsigned int to, Real w) |
| C_NNFW_API Real * | NnfwSparseLinkerWeights (NnfwLinker *) |
| C_NNFW_API Real | NnfwSparseLinkerWeight (NnfwLinker *, unsigned int from, unsigned int to) |
| C_NNFW_API int | NnfwSparseLinkerRows (NnfwLinker *) |
| C_NNFW_API int | NnfwSparseLinkerCols (NnfwLinker *) |
| C_NNFW_API void | NnfwSparseLinkerConnect (NnfwLinker *, unsigned int from, unsigned int to) |
| C_NNFW_API void | NnfwSparseLinkerConnectAll (NnfwLinker *) |
| C_NNFW_API void | NnfwSparseLinkerConnectRandom (NnfwLinker *, Real prob) |
| C_NNFW_API void | NnfwSparseLinkerDisconnect (NnfwLinker *, unsigned int from, unsigned int to) |
| C_NNFW_API void | NnfwSparseLinkerDisconnectAll (NnfwLinker *) |
| C_NNFW_API void | NnfwSparseLinkerDisconnectRandom (NnfwLinker *, Real prob) |
| C_NNFW_API int | NnfwSparseLinkerConnectionAt (NnfwLinker *, unsigned int from, unsigned int to) |
| C_NNFW_API NnfwLinker* NnfwLinkerCreateSparse | ( | NnfwCluster * | from, | |
| NnfwCluster * | to | |||
| ) |
Create a Sparse Linker
| C_NNFW_API int NnfwSparseLinkerCols | ( | NnfwLinker * | ) |
return the number of columns of weight matrix
| C_NNFW_API void NnfwSparseLinkerConnect | ( | NnfwLinker * | , | |
| unsigned int | from, | |||
| unsigned int | to | |||
| ) |
connect the neurons 'from' and 'to'
| C_NNFW_API void NnfwSparseLinkerConnectAll | ( | NnfwLinker * | ) |
connect all neurons
| C_NNFW_API int NnfwSparseLinkerConnectionAt | ( | NnfwLinker * | , | |
| unsigned int | from, | |||
| unsigned int | to | |||
| ) |
return 1 if neurons are connected, 0 otherwise
| C_NNFW_API void NnfwSparseLinkerConnectRandom | ( | NnfwLinker * | , | |
| Real | prob | |||
| ) |
connect with probability prob
| C_NNFW_API void NnfwSparseLinkerDisconnect | ( | NnfwLinker * | , | |
| unsigned int | from, | |||
| unsigned int | to | |||
| ) |
disconnect the neurons 'from' and 'to'
| C_NNFW_API void NnfwSparseLinkerDisconnectAll | ( | NnfwLinker * | ) |
disconnect all neurons
| C_NNFW_API void NnfwSparseLinkerDisconnectRandom | ( | NnfwLinker * | , | |
| Real | prob | |||
| ) |
disconnect with probability prob
| C_NNFW_API int NnfwSparseLinkerRows | ( | NnfwLinker * | ) |
return the number of row of weight matrix
| C_NNFW_API void NnfwSparseLinkerSetWeight | ( | NnfwLinker * | link, | |
| unsigned int | from, | |||
| unsigned int | to, | |||
| Real | w | |||
| ) |
Set a single weight from neuron 'from' to neuron 'to'
| C_NNFW_API void NnfwSparseLinkerSetWeights | ( | NnfwLinker * | link, | |
| Real * | matrix | |||
| ) |
Set the weight matrix
| matrix | is an array of Real containing a matrix in row-major convention |
| C_NNFW_API Real NnfwSparseLinkerWeight | ( | NnfwLinker * | , | |
| unsigned int | from, | |||
| unsigned int | to | |||
| ) |
Return the weight of connection between 'from' and 'to' neurons
| C_NNFW_API Real* NnfwSparseLinkerWeights | ( | NnfwLinker * | ) |
Return the weight matrix in row-major convention