project_out

project_out(vecs, basis, ndim=None, orthonormal=False, inverse=None, allow_pinv=False): 

LLM Docstring

Project the span of a basis out of a set of vectors (keep the orthogonal complement).

  • vecs: np.ndarray

    the vectors to project

  • basis: np.ndarray

    the basis to remove

  • ndim: int | None

    number of vector axes (inferred if omitted)

  • orthonormal: bool

    whether the basis is orthonormal

  • inverse: np.ndarray | None

    explicit basis inverse (optional)

  • allow_pinv: bool

    use the pseudoinverse

  • :returns: np.ndarray

    the vectors with the basis removed


Feedback

Examples

Templates

Documentation