source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/zisserman/vgg_numerics/vgg_lmultiply_matrix.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

  • Property svn:executable set to *
File size: 421 bytes
Line 
1function M = vgg_lmultiply_matrix(A, size_B)
2% VGG_LMULTIPLY_MATRIX  Return M such that M*vec(B) = vec(A*B)
3%      M = VGG_LMULTIPLY_MATRIX(A, size(B))
4%
5%      See also vgg_matrix_test, vgg_rmultiply_matrix
6
7% Author: awf@robots.ox.ac.uk
8
9if isfinite(size_B(1))
10  if size_B(1) ~= size(A,2)
11    error
12  end
13end
14
15if ~issparse(A)
16  E = eye(size_B(2));
17else
18  E = speye(size_B(2));
19end
20
21M = kron(E, A);
Note: See TracBrowser for help on using the repository browser.