NAME

check_same_matrix_vector_dimensions - Checks that two matrix vectors have the same dimensions

SYNOPSIS

#include "m/m_error.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int check_same_matrix_vector_dimensions
(
	const Matrix_vector *first_mvp,
	const Matrix_vector *second_mvp,
	const char *context_str
);

DESCRIPTION

This routine checks that two matrix vectors have the same dimensions. It they do not, then the an error message is set and ERROR is returned. The argument context_str can be used to add more information; typically, it is the name of the calling routine, but it could be some other string which works well as the sequal to the message "failed in". If context_str is NULL, then it is not used.

RETURNS

NO_ERROR if the matrices have the same dimensions, and ERROR otherwise. Depending on the bug handler in place, this routine may not return at all.

MACROS

If different dimensions are likely due to a bug, then you may want to wrap this routine in the macro ESBRE(), which prints the error, calls set_bug(), (the "SB"), and then returns ERROR. If different dimensions are simply an error that the calling routine should deal with, then wrapping the call to this routine in ERE() saves typing.

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard

SEE ALSO

check_same_matrix_dimensions , check_same_vector_lengths , get_points_with_error