Interface ISparseVectorApproximator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void solve​(double[] b, smile.math.matrix.DenseMatrix A, double[] x)
      Computes x, such that b = Ax using some method.
      void solve​(double[] b, smile.math.matrix.DenseMatrix A, smile.math.matrix.DenseMatrix AtA, double[] x)
      Computes x, such that b = Ax using some method.
    • Method Detail

      • solve

        void solve​(double[] b,
                   smile.math.matrix.DenseMatrix A,
                   smile.math.matrix.DenseMatrix AtA,
                   double[] x)
            throws VectorDimensionMismatch,
                   MatrixDimensionMismatch
        Computes x, such that b = Ax using some method.
        Parameters:
        b - vector on LHS of equation
        A - Matrix A to use in the solution
        AtA - Matrix AtA to use in the solution, is the Gram matrix of A.
        x - vector to compute and return
        Throws:
        VectorDimensionMismatch - If there is some sort of internal error.
        MatrixDimensionMismatch - When there is an error