A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://reference.wolfram.com/language/ref/compiledtype/SparseArray.html below:

SparseArray—Wolfram Language Documentation

WOLFRAM Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technology expertise.

WolframConsulting.com

COMPILED TYPE "SparseArray" (Compiled Type)

"SparseArray"::[type,rank]

represents a sparse array composite type with elements of specified type and rank.

Details Properties Expression Conversions Examplesopen allclose all Scope  (1)

SparseArray properties may be used within CompiledCodeFunction:

This is equivalent to the "Density" property:

The function uses real arithmetic so that it works even when the total number of elements is too large for a machine-sized integer:

Neat Examples  (1)

Compute a power series of a sparse matrix:

This is equivalent to computing the square of a matrix:

Generate coefficients of the exponential function and use them to compute a matrix exponential:

The MatrixExp function is a better way to compute the exponential, but the power series result was close:

History

Introduced in 2021 (13.0)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4