Struct caminos_lib::matrix::Matrix[][src]

pub struct Matrix<T> { /* fields omitted */ }
Expand description

A simple matrix struct. Used for manipulating some matrices of the topology, such as the adjacency matrix and the distance matrix.

Implementations

Read a matrix entry.

Read/write a matrix entry.

Get the number of rows

Get the number of columns

Build a matrix with constant values.

Trait Implementations

Formats the value using the given formatter. Read more

Get the total memory currently being employed by the implementing type. Both stack and heap.

Prints by stdout how much memory is used per component.

Get an estimation on how much memory the type could reach during the simulation.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.