【问题标题】:source code of GNU Octave function: mldivideGNU Octave 函数的源代码:mldivide
【发布时间】:2015-01-27 14:59:37
【问题描述】:

在哪里可以找到 GNU Octave 的mldivide 的源代码?它是作为 C++ 代码实现还是 m 文件?在 GNU Octave 命令行中键入 which mldivide 将返回 mldivide is a built-in function。我搜索了但我找不到源代码。

【问题讨论】:

    标签: octave linear-algebra


    【解决方案1】:

    至少在 octave 3.8.2 上,您可以获得更多信息。

    octave-cli-3.8.2:2> which mldivide 
    'mldivide' is a built-in function from the file libinterp/corefcn/data.cc
    

    此文件可在octave repository 上找到。具体功能在line 6083:

    DEFUN (mldivide, args, ,
           "-*- texinfo -*-\n\
    @deftypefn {Built-in Function} {} mldivide (@var{x}, @var{y})\n\
    Return the matrix left division of @var{x} and @var{y}.\n\
    This function and @w{@tcode{x @xbackslashchar{} y}} are equivalent.\n\
    @seealso{mrdivide, ldivide, rdivide}\n\
    @end deftypefn")
    {
      return binary_op_defun_body (octave_value::op_ldiv, args);
    }
    

    如果您愿意自己浏览标头以追踪发生魔法的地方,您应该克隆存储库以执行此操作。如果没有,octave doxygen docs 可能会有所帮助,但仅包含方法和类名。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-04
      • 1970-01-01
      • 2021-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多