A robot analysis notebook can report two positive singular values for a two-by-three matrix while the matrix still has a nonzero right nullspace. A helper that searches only for zero entries in that returned singular-value array may incorrectly announce that there are no input directions left to inspect.

The missing information can come from the chosen SVD output shape. NumPy's reduced decomposition retains enough factors to reconstruct the matrix, but it need not return a complete basis for every input-space direction. Before using Vh to build a right-nullspace basis, check its shape alongside rank and the number of columns in the original matrix.

A small matrix with a hidden direction

Consider the synthetic real matrix A with rows [1,0,2] and [0,3,0]. It maps a three-component input into two outputs. These numbers are an original unitless teaching fixture, not a measured robot Jacobian or a controller configuration.

The first output is input1 plus twice input3, and the second is three times input2. The input vector [-2,0,1] therefore produces exactly [0,0] in hand arithmetic. Normalizing that vector by the square root of five gives one unit right-nullspace direction.

The two rows are independent, so the rank is two. There are three input coordinates, leaving right nullity three minus two, or one. Full row rank does not make this wide matrix one-to-one. Those dimension counts provide a reference independent of how a particular SVD routine orients its vectors.

What the two calls actually return

The local NumPy 2.5.2 fixture calls linalg.svd twice on this matrix. With full_matrices=False, U is two by two, S has length two, and Vh is two by three. With full_matrices=True, U remains two by two, S still has length two, and Vh becomes three by three.

Both calls return singular values approximately [3,2.2360679775]. Neither entry is zero. Switching to full matrices does not append a third zero to S. The full call instead supplies an additional row of Vh, whose transpose belongs to the right nullspace.

The independent hand vector and the returned null vector can have opposite signs without disagreeing. The recorded checks use dimensions, orthogonality, and the norm of A times the basis. They do not require a particular signed row from the decomposition.

Reconstruction does not prove basis completeness

For this real two-dimensional example, multiplying the reduced U, the diagonal matrix formed from S, and reduced Vh reconstructs A. The full factors also reconstruct it when using the first two columns of U and first two rows of Vh with S. Both reconstruction errors in the local fixture are below 1e-12.

That success answers a factorization question. It does not establish that reduced Vh contains every right-nullspace direction. Its two rows already span the two nonzero singular directions here; the third input-space direction has been omitted by the reduced output contract.

A proposed helper that counts zero singular values would find zero in this case. The independent nullity calculation finds one. Comparing these two counts catches the assumption before a notebook incorrectly treats an empty basis as evidence that no such direction exists.

A rank-deficient companion exposes the same gap

Now replace the second row with [0,0,0], keeping the first row [1,0,2]. This companion matrix has rank one and right nullity two. Both SVD modes still return two singular values, approximately [2.2360679775,0].

Reduced Vh is still two by three. Taking its rows from the rank onward supplies one null direction. Full Vh is three by three, and taking rows from the same rank onward supplies two. Finding one zero singular value in the reduced result has recovered part of the nullspace, but not its full dimension.

This second case matters because a helper might appear to work when it returns a plausible vector whose product with A is nearly zero. A valid individual vector is weaker evidence than a complete basis. Check the expected number of basis columns as well as their residuals.

Use one declared numerical rank decision

For each fixture the numerical threshold is S.max() times max(A.shape) times machine epsilon for the singular-value dtype. Counting entries above it agrees with NumPy's default matrix_rank result: two for the first matrix and one for the companion. This threshold statement follows the separate matrix_rank reference.

Using the full decomposition, the real-valued construction is Z = Vh[r:].T after deciding rank r. Check that Z has three rows and three minus r columns, that A @ Z is small, and that Z.T @ Z is close to the identity of that nullity. For complex data, use the conjugate transpose instead of simply transposing Vh.

The 1e-12 bounds in this local experiment check these small synthetic calculations. They are not an operating threshold for a robot. Scaling, measurement uncertainty, and the question being asked can require a different numerical-rank policy. Record that policy rather than silently mixing rank decisions between helpers.

Keep the output contract in the receipt

A proposed notebook receipt keeps the original matrix shape, dtype, SVD mode, returned factor shapes, singular values, rank threshold, rank, expected nullity, and basis dimensions. It also records reconstruction, null residual, and orthogonality checks. An empty returned basis remains an observation to reconcile against those dimensions.

For an instantaneous robot model, an algebraic null direction concerns that model at that state. It does not by itself validate a finite motion, a collision constraint, actuator limits, or a safe command. This fixture runs none of those operations. Its practical result is narrower: reduced factors can reconstruct a wide matrix correctly while omitting right-nullspace directions needed by a downstream report.

Sources checked November 18, 2026:

NumPy, numpy.linalg.svd, version 2.5 manual:

https://numpy.org/doc/stable/reference/generated/numpy.linalg.svd.html

NumPy, numpy.linalg.matrix_rank, version 2.5 manual:

https://numpy.org/doc/stable/reference/generated/numpy.linalg.matrix_rank.html

Python 3.14.7 and NumPy 2.5.2 produced the isolated fixture. Matrices, comparisons, and receipt design are original T-800 editorial work; no source example or physical robot test is reproduced.

Illustration: an AI-generated concept compares reduced and full Vh dimensions for a synthetic wide matrix. It is not a controller interface or measured robot result.