<p dir="auto">The example file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="包名,模块名,引入,名,简体,类型
Base,Base,否,-,#,符号
Base,Base,否,!,#,符号
Base,#,否,!=,#,符号
Base,Base,否,!==,#,符号
Base,Base,否,$,#,符号
Base,Base,否,%,#,符号
#,Base,否,&amp;,#,符号
Base,Base,否,*,,符号
Base,Base,否,.-,#,符号"><pre lang="csv" class="notranslate"><code class="notranslate">包名,模块名,引入,名,简体,类型
Base,Base,否,-,#,符号
Base,Base,否,!,#,符号
Base,#,否,!=,#,符号
Base,Base,否,!==,#,符号
Base,Base,否,$,#,符号
Base,Base,否,%,#,符号
#,Base,否,&amp;,#,符号
Base,Base,否,*,,符号
Base,Base,否,.-,#,符号
</code></pre></div>
<p dir="auto">The result in Julia 0.4</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; readcsv(&quot;Base.csv&quot;)
9x6 Array{Any,2}:
 &quot;包名&quot;    &quot;模块名&quot;   &quot;引入&quot;  &quot;名&quot;    &quot;简体&quot;  &quot;类型&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否&quot;   &quot;-&quot;    &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否&quot;   &quot;!&quot;    &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;&quot;      &quot;&quot;    &quot;&quot;     &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否&quot;   &quot;!==&quot;  &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否&quot;   &quot;\$&quot;   &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否&quot;   &quot;%&quot;    &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否&quot;   &quot;*&quot;    &quot;&quot;    &quot;符号&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否&quot;   &quot;.-&quot;   &quot;&quot;    &quot;&quot;"><pre class="notranslate"><code class="notranslate">julia&gt; readcsv("Base.csv")
9x6 Array{Any,2}:
 "包名"    "模块名"   "引入"  "名"    "简体"  "类型"
 "Base"  "Base"  "否"   "-"    ""    ""
 "Base"  "Base"  "否"   "!"    ""    ""
 "Base"  ""      ""    ""     ""    ""
 "Base"  "Base"  "否"   "!=="  ""    ""
 "Base"  "Base"  "否"   "\$"   ""    ""
 "Base"  "Base"  "否"   "%"    ""    ""
 "Base"  "Base"  "否"   "*"    ""    "符号"
 "Base"  "Base"  "否"   ".-"   ""    ""
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 0.4.0-dev+2304
Commit 8cea71e (2014-12-29 02:07 UTC)
Platform Info:
  System: Windows (i686-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz
  WORD_SIZE: 32
  BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Nehalem)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3"><pre class="notranslate"><code class="notranslate">Julia Version 0.4.0-dev+2304
Commit 8cea71e (2014-12-29 02:07 UTC)
Platform Info:
  System: Windows (i686-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz
  WORD_SIZE: 32
  BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Nehalem)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
</code></pre></div>
<p dir="auto">And There are some problems on my Windows box when I copy the texts from console. Some texts will be duplicated, Here is the origin paste result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; readcsv(&quot;Base.csv&quot;)
9x6 Array{Any,2}:
 &quot;包包名名&quot;    &quot;模模块块名名&quot;   &quot;引引入入&quot;  &quot;名名&quot;    &quot;简简体体&quot;  &quot;类类型型&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否否&quot;   &quot;-&quot;    &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否否&quot;   &quot;!&quot;    &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;&quot;      &quot;&quot;    &quot;&quot;     &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否否&quot;   &quot;!==&quot;  &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否否&quot;   &quot;\$&quot;   &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否否&quot;   &quot;%&quot;    &quot;&quot;    &quot;&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否否&quot;   &quot;*&quot;    &quot;&quot;    &quot;符符号号&quot;
 &quot;Base&quot;  &quot;Base&quot;  &quot;否否&quot;   &quot;.-&quot;   &quot;&quot;    &quot;&quot;"><pre class="notranslate"><code class="notranslate">julia&gt; readcsv("Base.csv")
9x6 Array{Any,2}:
 "包包名名"    "模模块块名名"   "引引入入"  "名名"    "简简体体"  "类类型型"
 "Base"  "Base"  "否否"   "-"    ""    ""
 "Base"  "Base"  "否否"   "!"    ""    ""
 "Base"  ""      ""    ""     ""    ""
 "Base"  "Base"  "否否"   "!=="  ""    ""
 "Base"  "Base"  "否否"   "\$"   ""    ""
 "Base"  "Base"  "否否"   "%"    ""    ""
 "Base"  "Base"  "否否"   "*"    ""    "符符号号"
 "Base"  "Base"  "否否"   ".-"   ""    ""
</code></pre></div>
<p dir="auto">I also try this on JuliaBox</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Out[1]:
9x6 Array{Any,2}:
 &quot;\u5305\u540d&quot;  &quot;\u6a21\u5757\u540d&quot;  …  &quot;\u7b80\u4f53&quot;  &quot;\u7c7b\u578b&quot;
 &quot;Base&quot;          &quot;Base&quot;                   &quot;&quot;              &quot;&quot;            
 &quot;Base&quot;          &quot;Base&quot;                   &quot;&quot;              &quot;&quot;            
 &quot;Base&quot;          &quot;&quot;                       &quot;&quot;              &quot;&quot;            
 &quot;Base&quot;          &quot;Base&quot;                   &quot;&quot;              &quot;&quot;            
 &quot;Base&quot;          &quot;Base&quot;                …  &quot;&quot;              &quot;&quot;            
 &quot;Base&quot;          &quot;Base&quot;                   &quot;&quot;              &quot;&quot;            
 &quot;Base&quot;          &quot;Base&quot;                   &quot;&quot;              &quot;\u7b26\u53f7&quot;
 &quot;Base&quot;          &quot;Base&quot;                   &quot;&quot;              &quot;&quot;            "><pre class="notranslate"><code class="notranslate">Out[1]:
9x6 Array{Any,2}:
 "\u5305\u540d"  "\u6a21\u5757\u540d"  …  "\u7b80\u4f53"  "\u7c7b\u578b"
 "Base"          "Base"                   ""              ""            
 "Base"          "Base"                   ""              ""            
 "Base"          ""                       ""              ""            
 "Base"          "Base"                   ""              ""            
 "Base"          "Base"                …  ""              ""            
 "Base"          "Base"                   ""              ""            
 "Base"          "Base"                   ""              "\u7b26\u53f7"
 "Base"          "Base"                   ""              ""            
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 0.3.3
Commit 21d5433* (2014-10-21 20:18 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libblas.so.3
  LAPACK: liblapack.so.3
  LIBM: libopenlibm
  LLVM: libLLVM-3.3"><pre class="notranslate"><code class="notranslate">Julia Version 0.3.3
Commit 21d5433* (2014-10-21 20:18 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libblas.so.3
  LAPACK: liblapack.so.3
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
</code></pre></div>
<p dir="auto">I read the source code of <code class="notranslate">readcsv</code>, it might be some problem with <code class="notranslate">readdlm</code>.</p>
<p dir="auto">Working on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="138424377" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/15354" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/15354/hovercard" href="https://github.com/JuliaLang/julia/pull/15354">#15354</a> I realized that</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="A = rand(10, 10)
sA = sub(A, 1:10, 1:10)
sA'"><pre class="notranslate">A <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">10</span>, <span class="pl-c1">10</span>)
sA <span class="pl-k">=</span> <span class="pl-c1">sub</span>(A, <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">10</span>, <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">10</span>)
sA<span class="pl-k">'</span></pre></div>
<p dir="auto">works, but</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="As = sprand(10, 10, 0.3)
sAs = sub(As, 1:10, 1:10)
sAs'"><pre class="notranslate">As <span class="pl-k">=</span> <span class="pl-c1">sprand</span>(<span class="pl-c1">10</span>, <span class="pl-c1">10</span>, <span class="pl-c1">0.3</span>)
sAs <span class="pl-k">=</span> <span class="pl-c1">sub</span>(As, <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">10</span>, <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">10</span>)
sAs<span class="pl-k">'</span></pre></div>
<p dir="auto">does not. I would love to fix it, but I am wondering what the preferred way would be. Should I add a method in <code class="notranslate">linalg/abstractsparse.jl</code>, or?</p>
<p dir="auto">Of course <code class="notranslate">A'</code> and <code class="notranslate">As'</code> works, but <code class="notranslate">sA'</code> seems to be redirected to the correct <code class="notranslate">ctranspose</code>, while <code class="notranslate">sAs'</code> does not get dispatched to the sparse method.</p>
<p dir="auto">Edit: So I just realized that this goes for all matrix operations on subs of sparse matrices. Is this intentional? <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andreasnoack/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andreasnoack">@andreasnoack</a></p>