function vnew = mat9vec3(R9,v3)
%	Multiply a 3 x 3 matrix stored as 9-col array times a vector stores as a 3-col array
%		Created Oct 2, 2000 (Japan)

%		R9		=		The transformation matrix stored as 9-col array with each row a transformation
%		v3		=		The 3-col array of vectors stored as rows
%		vnew	=		A new 3-col array after transformation

vnew(:,1)	= R9(:,1).*v3(:,1)+R9(:,2).*v3(:,2)+R9(:,3).*v3(:,3);
vnew(:,2)	= R9(:,4).*v3(:,1)+R9(:,5).*v3(:,2)+R9(:,6).*v3(:,3);
vnew(:,3)	= R9(:,7).*v3(:,1)+R9(:,8).*v3(:,2)+R9(:,9).*v3(:,3);
return)
