小编May*_*ana的帖子

Julia 中 typealias 的替代品是什么?

julia> typealias
ERROR: UndefVarError: typealias not defined
Run Code Online (Sandbox Code Playgroud)

它在 Julia:0.5 中有效,但在以上版本中无效

help?> typealias
search: typealias

  Introduce a new name for an already expressible type. For example, in
  base/boot.jl, UInt is type aliased to either UInt64 or UInt32 as appropriate
  for the size of pointers on the system:

  if is(Int,Int64)
      typealias UInt UInt64
  else
      typealias UInt UInt32
  end

  For parametric types, typealias can be convenient for providing names in
  cases where some parameter choices are fixed. In base for example:

  typealias Vector{T} …
Run Code Online (Sandbox Code Playgroud)

julia

7
推荐指数
1
解决办法
684
查看次数

什么是 Julia 中 connect 的替代品?

julia> conn = connect(1234)

ERROR: UndefVarError: connect not defined
Stacktrace:
 [1] top-level scope at REPL[1]:1
Run Code Online (Sandbox Code Playgroud)

更新后它不起作用,所以是否有任何新关键字被替换?

help?> connect
search: continue countlines count_ones

Couldn't find connect
Perhaps you meant convert, collect, const, count or conj
  No documentation found.

  Binding connect does not exist.
Run Code Online (Sandbox Code Playgroud)

julia

3
推荐指数
1
解决办法
107
查看次数

REQUIRE 文件在 Julia 中的什么位置?

我在 shell 命令中使用 mate 寻找 REQUIRE 文件,但找不到它。它与Pkg有关..

shell> mate ~/.julia/
compiled/     clones/        prefs/         registries/
environments/ conda/         logs/          packages/
Run Code Online (Sandbox Code Playgroud)

julia

3
推荐指数
1
解决办法
158
查看次数

Julia 中调试功能的替代品是什么?

julia> debug("hello")
ERROR: UndefVarError: debug not defined
Stacktrace:
 [1] top-level scope at REPL[6]:1
Run Code Online (Sandbox Code Playgroud)

即使尝试使用 docker 也找不到合适的替代品。

help?> debug
search: @debug

Couldn't find debug
Perhaps you meant @debug, @enum, big or detach
  No documentation found.

  Binding debug does not exist.
Run Code Online (Sandbox Code Playgroud)

julia

3
推荐指数
1
解决办法
68
查看次数

如何在 Julia 中定义我们自己的类型?

Julia> type Circle
    ERROR: syntax: extra token "Circle" after end of expression
Stack trace:
 [1] top-level scope at none:0 
Run Code Online (Sandbox Code Playgroud)

我已经尝试过 struct 方法,但它没有按要求工作。

julia

0
推荐指数
2
解决办法
106
查看次数

标签 统计

julia ×5