Next: bpipe_datatype_copy, Previous: Internal Functions, Up: Internal Functions
Ensure that a matrix copy request is legal.
#include <bpipe/bpipe.h>int bpipe_check_matrix_copy( BPMatrix *src, BPMatrix *dst, BPMatrixMap *map );
BPMatrix *src
- description of the source matrix
BPMatrix *dst
- description of the destination matrix
BPMatrixMap *map
- description of source to destination mapping
This routine checks that the dimensions of the submatrix are compatible with the destination matrix, that the dimensional extents are consistent with the source and destination matrices, and that the offsets are consistent. It can deal with non-expanded map entries.
It returns zero if the request is legal, non-zero otherwise.