class_docstr: Test convolution_matrix vs. numpy.convolve for various parameters.
class_docstr_tok: ["Test","convolution_matrix","vs.","numpy.convolve","for","various","parameters","."]
docstr: Make a complex or real test vector of length n.
docstr_tok: ["Make","a","complex","or","real","test","vector","of","length","n","."]
code: def create_vector(self, n, cpx):
      """Make a complex or real test vector of length n."""
      x = np.linspace(-2.5, 2.2, n)
      if cpx:
          x = x + 1j * np.linspace(-1.5, 3.1, n)
      return x
  
imports: import pytest
  import numpy
  from numpy import arange, array, eye, copy, sqrt
  from numpy.testing import assert_equal, assert_array_equal, assert_array_almost_equal, assert_allclose
  from pytest import raises
  from scipy.fft import fft
  from scipy.special import comb
  from scipy.linalg import toeplitz, hankel, circulant, hadamard, leslie, dft, companion, kron, block_diag, helmert, hilbert, invhilbert, pascal, invpascal, fiedler, fiedler_companion, eigvals, convolution_matrix
  from numpy.linalg import cond
label_desc: Use image node_id 1 for calling the TestConvolutionMatrix obj's underlying member method code with example usage: obj.create_vector(n, cpx) and returns: x