Recursively Creating, Deleting, and Linearly Interpolating K-Dimensional Arrays in C++

Report Number:
ARL-TN-1200

Publish Date:

April 23, 2024

Distribution:

Approved for public release: distribution is unlimited.


Author(s):

Robert J. Yager

Abstract:

K-dimensional (K-D) arrays are arrays that require K indices to access array elements. The yKDArray namespace (described in this report) contains a set of recursive functions that can be used to create, delete, and linearly interpolate rectangular K-D arrays. Also included is a function for creating jagged 2-D arrays. The yKDArray namespace relies exclusively on standard C++ operators. However, examples make use of the yInterp namespace for performing binary searches, the yRandom namespace for generating pseudorandom numbers, and the yBmp namespace for creating images.

File Size: 692 KB
Scroll to Top

Copyright © 2026 All Rights Reserved.