Skip to content

tenzr::TorusDimensions

Extents of a three-dimensional torus network.

#include <torus_model.h>

Public Functions

Name
int64_t TotalNodes() const
Total number of nodes in the torus.
std::string ToString() const
Render the dimensions as a string.

Public Attributes

Name
int64_t kx
int64_t ky
int64_t kz

Public Functions Documentation

function TotalNodes

inline int64_t TotalNodes() const

Total number of nodes in the torus.

function ToString

std::string ToString() const

Render the dimensions as a string.

Return: Human-readable dimension string.

Render the torus dimensions as kx x ky x kz (N nodes).

Public Attributes Documentation

variable kx

int64_t kx {1};

variable ky

int64_t ky {1};

variable kz

int64_t kz {1};