タグ

arrayに関するmanabouのブックマーク (4)

  • リリカル☆Lisp開発日記 » Blog Archive » displaced array

    Common Lispにはdisplaced arrayと呼ばれるものがあります。 これは他の配列へのポインタのようなもので、CLHSでは以下のように定義されています。 displaced array n. an array which has no storage of its own, but which is instead indirected to the storage of another array, called its target, at a specified offset, in such a way that any attempt to access the displaced array implicitly references the target array. (CLHS: Glossary-Section D) 試しに使ってみるとこんな感じです。 C

  • 行列Tips大全 - RjpWiki

    行列に関する Tips 大全 行列に関する操作は、R をマスターする基です。関連するTips を脈絡なくできるだけ集めたいと思います。お気づきの正統派・裏技テクニックをお寄せください。一部重複はむしろ好ましいと思います。 要素ベクトルを与えて行列を作る† > m <- matrix(x, nrow=i, ncol=j, byrow=TRUE, dirnames=z) # 一般形 nrow, ncol の一方だけを与えると(可能な限り) x のサイズから、もう一方が暗黙のうちに決定される x の長さが行列のサイズに足りないと、最初からりサイクル使用される > mm <- matrix(1:12, nrow=3, ncol=4) > mm <- matrix(1:12, nrow=3) # 自動的に ncol=4 とされる > mm <- matrix(1:12, ncol=4) # 自動的

  • データ分析者に嬉しいPyCharm4の新機能 - Librabuch

    先日リリースされたPyCharm4には、データ分析者にも嬉しい機能が追加されています。 NumPy Array Viewer IPython notebook Support NumPy Array Viewer NumPyのArrayの状態を可視化してくれるツールです。 import numpy as np test_array = np.arange(25).reshape(5, 5) Debug Consoleから「View as Array」を選択すると、Viewerを表示できます。 簡単に中身を確認するには便利そうです。 大きな行列を表示させるとこんな感じ。。 IPython notebook Support IPython notebookはWebブラウザでPythonが実行できる素敵な環境ですが、PyCharm4がnotebookをサポートしました。 Demo.ipynb(n

    データ分析者に嬉しいPyCharm4の新機能 - Librabuch
  • Simple-Job-Array-Howto - GridWiki

    Array jobs for clusters running SGE Last modified by: --fx 2010-05-07 This document is based on a PDF written by Kevin Thornton, modified and reproduced on this Wiki with his permission. The problem A common problem is that you have a large number of jobs to run, and they are largely identical in terms of the command to run. For example, you may have 1000 data sets, and you want to run a single pr

  • 1