Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added error message in fallback to matvec failure #10925

Closed
wants to merge 8 commits into from
Closed

added error message in fallback to matvec failure #10925

wants to merge 8 commits into from

Commits on Oct 13, 2019

  1. added error message in fallback to matvec failure

    added specific error message when sparse.linalg.LinearOperator.matmat cannot fallback properly to matvec
    
            try:
                return np.hstack([self.matvec(col.reshape(-1,1)) for col in X.T])
            except ValueError:
                raise ValueError('The user-defined matvec(v) function must properly
                                 handle the case where v has shape (N,1).')
    lobpcg committed Oct 13, 2019
    Configuration menu
    Copy the full SHA
    be5a4ad View commit details
    Browse the repository at this point in the history
  2. multiline typo fixed

    lobpcg committed Oct 13, 2019
    Configuration menu
    Copy the full SHA
    a332365 View commit details
    Browse the repository at this point in the history
  3. improved string formatting

    lobpcg committed Oct 13, 2019
    Configuration menu
    Copy the full SHA
    2cfdbbe View commit details
    Browse the repository at this point in the history
  4. adding more details in the output

    ``` 
           except ValueError:
                col = X.T[:,0]
                matvec_col = self.matvec(col.reshape(-1,1))
                raise ValueError('The user-defined matvec(v) function must return'
                                 'shape (N,1) if v has shape (N,1). Instead,'
                                 'matvec(v) has shape %r, where v has shape %r.' 
                                 % (matvec_col.shape, col.shape))
    ```
    lobpcg committed Oct 13, 2019
    Configuration menu
    Copy the full SHA
    5e350c3 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #1 from scipy/master

    master update
    lobpcg committed Oct 13, 2019
    Configuration menu
    Copy the full SHA
    028f420 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #2 from lobpcg/master

    update the fork to the latest master
    lobpcg committed Oct 13, 2019
    Configuration menu
    Copy the full SHA
    33858eb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    966516a View commit details
    Browse the repository at this point in the history
  8. typos fixed, string added

    lobpcg committed Oct 13, 2019
    Configuration menu
    Copy the full SHA
    3ffdbdc View commit details
    Browse the repository at this point in the history