Inheritance diagram for MatrixLinker:


Constructors | |
| MatrixLinker (Cluster *from, Cluster *to, const char *name="unnamed") | |
| MatrixLinker (PropertySettings &prop) | |
| virtual | ~MatrixLinker () |
Interface | |
| u_int | rows () |
| u_int | cols () |
| u_int | size () const |
| virtual void | randomize (Real min, Real max) |
| virtual void | setWeight (u_int from, u_int to, Real weight) |
| virtual Real | getWeight (u_int from, u_int to) |
| RealMat & | matrix () |
| const RealMat & | matrix () const |
| Variant | matrixP () |
| void | setMatrix (const RealMat &mat) |
| bool | setMatrix (const Variant &v) |
| Properties | ||||
| Name | Type [isVector] | Access mode | Description | Class |
|---|---|---|---|---|
| typename | string | read-only | Class's type | Propertized |
| name | string | read/write | name of the object | Updatable |
| from | Cluster | read-only | incoming Cluster | Linker |
| to | Cluster | read-only | outgoing Cluster | Linker |
| weights | RealMat | read/write | connections' weights | this |
| MatrixLinker | ( | Cluster * | from, | |
| Cluster * | to, | |||
| const char * | name = "unnamed" | |||
| ) |
Connect clusters with a complete connections
| MatrixLinker | ( | PropertySettings & | prop | ) |
Construct by PropertySettings
| virtual ~MatrixLinker | ( | ) | [virtual] |
Destructor
| u_int rows | ( | ) | [inline] |
Get the number of rows
| u_int cols | ( | ) | [inline] |
Get the number of cols
Set the weight of the connection specified
Reimplemented in SparseMatrixLinker.
Get the weight of the connection specified
| RealMat& matrix | ( | ) | [inline] |
Return the weight matrix
| void setMatrix | ( | const RealMat & | mat | ) |
Set the whole weight matrix