SyScSelection (version 1.0.1)

fill_corners: Systematically fills a given mesh array (cmesh) with d-dimensional points representing every corner of a d-dimensional hypercube. The function fills the successive dimensions of each point via depth-first recursion across all d dimensions.

Description

Systematically fills a given mesh array (cmesh) with d-dimensional points representing every corner of a d-dimensional hypercube. The function fills the successive dimensions of each point via depth-first recursion across all d dimensions.

Usage

fill_corners(cmesh, shock, shk_curs, dim_curs)

Arguments

cmesh

The mesh to be filled with corner points

shock

The current shock vector being filled

shk_curs

Index in cmesh of the shock currently being filled

dim_curs

Index in the current shock of the dimension being filled

Value

A list of: cmesh - d x 2^d array of corner points being filled, shk_curs - last point in cmesh that was filled