Sha256: 43903b0d6e46dbba488e1960c8ea5fcb4e9b5d84dac26ab30260e0885734487f

Contents?: true

Size: 782 Bytes

Versions: 4

Compression:

Stored size: 782 Bytes

Contents

module Mopti
  class ScaledConjugateGradient
    include Enumerable[untyped]

    @fnc: Method | Proc
    @jcb: Method | Proc

    def initialize: (fnc: Method | Proc fnc, jcb: Method | Proc jcb,
                     x_init: Numo::DFloat x_init, ?args: untyped? args, ?max_iter: Integer max_iter,
                     ?xtol: Float xtol, ?ftol: Float ftol, ?jtol: Float jtol) -> void

    # def each: () { (x: Numo::DFloat, n_fev: Integer, n_jev: Integer, n_iter: Integer, fnc: Float, jcb: Numo::DFloat) -> untyped } -> untyped
    def each: () { (untyped) -> untyped } -> untyped

    private

    SIGMA_INIT: Float
    BETA_MIN: Float
    BETA_MAX: Float

    def func: (Numo::DFloat x, untyped args) -> Float
    def jacb: (Numo::DFloat x, untyped args) -> Numo::DFloat
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mopti-0.2.3 sig/mopti/scaled_conjugate_gradient.rbs
mopti-0.2.2 sig/mopti/scaled_conjugate_gradient.rbs
mopti-0.2.1 sig/mopti/scaled_conjugate_gradient.rbs
mopti-0.2.0 sig/mopti/scaled_conjugate_gradient.rbs