Performs optimized diagonal addition between two datasets stored in HDF5 format. Automatically detects whether inputs are matrices (extracts diagonals) or vectors (direct operation) and uses the most efficient approach.
bdDiag_add_hdf5(
filename,
group,
A,
B,
groupB = NULL,
target = NULL,
outgroup = NULL,
outdataset = NULL,
paral = NULL,
threads = NULL,
overwrite = NULL
)List with components:
Character string with the HDF5 filename
Character string with the full dataset path to the diagonal addition result (group/dataset)
String. Path to the HDF5 file containing the datasets.
String. Group path containing the first dataset (A).
String. Name of the first dataset (matrix or vector).
String. Name of the second dataset (matrix or vector).
Optional string. Group path containing dataset B.
Optional string. Where to write result: "A", "B", or "new" (default: "new").
Optional string. Output group path (only used if target="new").
Optional string. Output dataset name (only used if target="new").
Optional logical. Whether to use parallel processing.
Optional integer. Number of threads for parallel processing.
Optional logical. Whether to overwrite existing datasets.