WOLFRAM

CUDASparseVector[sparse,type]

CUDA対応のGPU上に存在する,指定された型の疎ベクトルを生成する.

詳細とオプション

  • CUDALink アプリケーションがNeeds["CUDALink`"]でロードされていなければならない.
  • CUDASparseVectorが使用したリソースは,使用しなくなった時点で自動的にGPUから回収される.
  • CUDASparseVector のデータはNormalで取り出すことができる.
  • 多くの関数がCUDASparseVectorオブジェクトを受け取ったり返したりするため,GPUにあるデータを操作することができる.
  • CUDASparseVectorで利用できる型には次のものがある:
  • "Real32""ComplexReal32"
    "Real64""ComplexReal64"

例題

すべて開くすべて閉じる

  (1)基本的な使用例

まず,CUDALink アプリケーションをロードする:

GPU上にデータの疎ベクトルを生成する:

Out[2]=2

CUDASparseVectorからデータを取り出す:

Out[3]=3

密な行列と疎行列の積を取る(結果もGPU上に置かれる):

Out[4]=4

スコープ  (1)標準的な使用例のスコープの概要

情報  (1)

CUDA疎行列についての情報を見る:

Out[1]=1

考えられる問題  (1)よく起る問題と予期しない動作

CUDASparseVectorNormalSparseArrayである:

Out[1]=1

元になるデータを取得するには,Normalを2回適用する:

Out[2]=2
Wolfram Research (2022), CUDASparseVector, Wolfram言語関数, https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html.
Wolfram Research (2022), CUDASparseVector, Wolfram言語関数, https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html.

テキスト

Wolfram Research (2022), CUDASparseVector, Wolfram言語関数, https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html.

Wolfram Research (2022), CUDASparseVector, Wolfram言語関数, https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html.

CMS

Wolfram Language. 2022. "CUDASparseVector." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html.

Wolfram Language. 2022. "CUDASparseVector." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html.

APA

Wolfram Language. (2022). CUDASparseVector. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html

Wolfram Language. (2022). CUDASparseVector. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html

BibTeX

@misc{reference.wolfram_2024_cudasparsevector, author="Wolfram Research", title="{CUDASparseVector}", year="2022", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html}", note=[Accessed: 01-April-2025 ]}

@misc{reference.wolfram_2024_cudasparsevector, author="Wolfram Research", title="{CUDASparseVector}", year="2022", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html}", note=[Accessed: 01-April-2025 ]}

BibLaTeX

@online{reference.wolfram_2024_cudasparsevector, organization={Wolfram Research}, title={CUDASparseVector}, year={2022}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html}, note=[Accessed: 01-April-2025 ]}

@online{reference.wolfram_2024_cudasparsevector, organization={Wolfram Research}, title={CUDASparseVector}, year={2022}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDASparseVector.html}, note=[Accessed: 01-April-2025 ]}