博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
julia 数组类型转换_在Julia中确定类型的超类型
阅读量:2531 次
发布时间:2019-05-11

本文共 1071 字,大约阅读时间需要 3 分钟。

julia 数组类型转换

To determine the supertype of a type – we use the , it accepts a data type and returns the concrete supertype of the given type.

确定类型的超类型 –我们使用 ,该接受数据类型并返回给定类型的具体超类型。

Example:

例:

# Julia example to determine the # supertype of a type in Juliaprintln("supertype(Bool): ", supertype(Bool))println("supertype(Char): ", supertype(Char))println("supertype(String): ", supertype(String))println()println("supertype(Int8): ", supertype(Int8))println("supertype(Int16): ", supertype(Int16))println("supertype(Int32): ", supertype(Int32))println("supertype(Int64): ", supertype(Int64))println()println("supertype(Float16): ", supertype(Float16))println("supertype(Float32): ", supertype(Float32))println("supertype(Float64): ", supertype(Float64))println()

Output

输出量

supertype(Bool): Integersupertype(Char): AbstractCharsupertype(String): AbstractStringsupertype(Int8): Signedsupertype(Int16): Signedsupertype(Int32): Signedsupertype(Int64): Signedsupertype(Float16): AbstractFloatsupertype(Float32): AbstractFloatsupertype(Float64): AbstractFloat

翻译自:

julia 数组类型转换

转载地址:http://wxtzd.baihongyu.com/

你可能感兴趣的文章
win32使用拖放文件
查看>>
Android 动态显示和隐藏软键盘
查看>>
raid5什么意思?怎样做raid5?raid5 几块硬盘?
查看>>
【转】how can i build fast
查看>>
null?对象?异常?到底应该如何返回错误信息
查看>>
django登录验证码操作
查看>>
(简单)华为Nova青春 WAS-AL00的USB调试模式在哪里开启的流程
查看>>
图论知识,博客
查看>>
[原创]一篇无关技术的小日记(仅作暂存)
查看>>
20145303刘俊谦 Exp7 网络欺诈技术防范
查看>>
原生和jQuery的ajax用法
查看>>
iOS开发播放文本
查看>>
20145202马超《java》实验5
查看>>
JQuery 事件
查看>>
main(argc,argv[])
查看>>
在线教育工具—白板系统的迭代1——bug监控排查
查看>>
121. Best Time to Buy and Sell Stock
查看>>
hdu 1005 根据递推公式构造矩阵 ( 矩阵快速幂)
查看>>
安装php扩展
查看>>
百度移动搜索主要有如下几类结果构成
查看>>