Perform computations with matrices and vectors.
Framework
- Accelerate
Perform computations with matrices and vectors.
Framework
func sparse _matrix _product _dense _double(CBLAS _ORDER, CBLAS _TRANSPOSE, sparse _dimension, Double, sparse _matrix _double!, Unsafe Pointer<Double>!, sparse _dimension, Unsafe Mutable Pointer<Double>!, sparse _dimension) -> sparse _status
Multiplies the dense matrix B by the sparse matrix A and adds the result to the dense matrix C, all with double-precision values.
func sparse _matrix _product _dense _float(CBLAS _ORDER, CBLAS _TRANSPOSE, sparse _dimension, Float, sparse _matrix _float!, Unsafe Pointer<Float>!, sparse _dimension, Unsafe Mutable Pointer<Float>!, sparse _dimension) -> sparse _status
Multiplies the dense matrix B by the sparse matrix A and adds the result to the dense matrix C, all with single-precision values.
func sparse _matrix _product _sparse _double(CBLAS _ORDER, CBLAS _TRANSPOSE, Double, sparse _matrix _double!, sparse _matrix _double!, Unsafe Mutable Pointer<Double>!, sparse _dimension) -> sparse _status
Multiplies the sparse matrix B by the sparse matrix A and adds the result to the dense matrix C, all with double-precision values.
func sparse _matrix _product _sparse _float(CBLAS _ORDER, CBLAS _TRANSPOSE, Float, sparse _matrix _float!, sparse _matrix _float!, Unsafe Mutable Pointer<Float>!, sparse _dimension) -> sparse _status
Multiplies the sparse matrix B by the sparse matrix A and adds the result to the dense matrix C, all with single-precision values.
func sparse _matrix _triangular _solve _dense _double(CBLAS _ORDER, CBLAS _TRANSPOSE, sparse _dimension, Double, sparse _matrix _double!, Unsafe Mutable Pointer<Double>!, sparse _dimension) -> sparse _status
Solves the system of equations B = alpha * T⁻¹ * B for B where B is a dense matrix and T is a triangular sparse matrix, both with double-precision values.
func sparse _matrix _triangular _solve _dense _float(CBLAS _ORDER, CBLAS _TRANSPOSE, sparse _dimension, Float, sparse _matrix _float!, Unsafe Mutable Pointer<Float>!, sparse _dimension) -> sparse _status
Solves the system of equations B = alpha * T⁻¹ * B for B where B is a dense matrix and T is a triangular sparse matrix, both with double-precision values.
func sparse _matrix _vector _product _dense _double(CBLAS _TRANSPOSE, Double, sparse _matrix _double!, Unsafe Pointer<Double>!, sparse _stride, Unsafe Mutable Pointer<Double>!, sparse _stride) -> sparse _status
Multiplies the dense vector x by the sparse matrix A and adds the result to the dense vector y, with all operands containing double-precision values.
func sparse _matrix _vector _product _dense _float(CBLAS _TRANSPOSE, Float, sparse _matrix _float!, Unsafe Pointer<Float>!, sparse _stride, Unsafe Mutable Pointer<Float>!, sparse _stride) -> sparse _status
Multiplies the dense vector x by the sparse matrix A and adds the result to the dense vector y, with all operands containing single-precision values.
func sparse _vector _triangular _solve _dense _double(CBLAS _TRANSPOSE, Double, sparse _matrix _double!, Unsafe Mutable Pointer<Double>!, sparse _stride) -> sparse _status
Solves the system of equations x = alpha * T⁻¹ * x for x where x is a dense vector and T is a triangular sparse matrix, with all operands containing double-precision values.
func sparse _vector _triangular _solve _dense _float(CBLAS _TRANSPOSE, Float, sparse _matrix _float!, Unsafe Mutable Pointer<Float>!, sparse _stride) -> sparse _status
Solves the system of equations x = alpha * T⁻¹ * x for x where x is a dense vector and T is a triangular sparse matrix, with all operands containing single-precision values.
func sparse _outer _product _dense _double(sparse _dimension, sparse _dimension, sparse _dimension, Double, Unsafe Pointer<Double>!, sparse _stride, Unsafe Pointer<Double>!, Unsafe Pointer<sparse _index>!, Unsafe Mutable Pointer<sparse _matrix _double?>!) -> sparse _status
Computes the outer product of the dense vector x and the sparse vector y, with both operands containing double-precision values.
func sparse _outer _product _dense _float(sparse _dimension, sparse _dimension, sparse _dimension, Float, Unsafe Pointer<Float>!, sparse _stride, Unsafe Pointer<Float>!, Unsafe Pointer<sparse _index>!, Unsafe Mutable Pointer<sparse _matrix _float?>!) -> sparse _status
Computes the outer product of the dense vector x and the sparse vector y, with both operands containing single-precision values.
func sparse _permute _rows _double(sparse _matrix _double!, Unsafe Pointer<sparse _index>!) -> sparse _status
Permutes the rows of the double-precision sparse matrix A based on the provided permutation array.
func sparse _permute _rows _float(sparse _matrix _float!, Unsafe Pointer<sparse _index>!) -> sparse _status
Permutes the rows of the single-precision sparse matrix A based on the provided permutation array.
func sparse _permute _cols _double(sparse _matrix _double!, Unsafe Pointer<sparse _index>!) -> sparse _status
Permutes the columns of the double-precision sparse matrix A based on the provided permutation array.
func sparse _permute _cols _float(sparse _matrix _float!, Unsafe Pointer<sparse _index>!) -> sparse _status
Permutes the columns of the single-precision sparse matrix A based on the provided permutation array.
func sparse _elementwise _norm _double(sparse _matrix _double!, sparse _norm) -> Double
Computes the specified element-wise norm of the double-precision sparse matrix A.
func sparse _elementwise _norm _float(sparse _matrix _float!, sparse _norm) -> Float
Computes the specified element-wise norm of the single-precision sparse matrix A.
func sparse _operator _norm _double(sparse _matrix _double!, sparse _norm) -> Double
Computes the specified operator norm of the double-precision sparse matrix A.
func sparse _operator _norm _float(sparse _matrix _float!, sparse _norm) -> Float
Computes the specified operator norm of the single-precision sparse matrix A.
func sparse _matrix _trace _double(sparse _matrix _double!, sparse _index) -> Double
Computes the sum along the specified diagonal of the double-precision sparse matrix A.
func sparse _matrix _trace _float(sparse _matrix _float!, sparse _index) -> Float
Computes the sum along the specified diagonal of the single-precision sparse matrix A.
func sparse _inner _product _dense _double(sparse _dimension, Unsafe Pointer<Double>!, Unsafe Pointer<sparse _index>!, Unsafe Pointer<Double>!, sparse _stride) -> Double
Computes the inner product of sparse vector x with double-precision y, with both vectors containing double-precision values.
func sparse _inner _product _dense _float(sparse _dimension, Unsafe Pointer<Float>!, Unsafe Pointer<sparse _index>!, Unsafe Pointer<Float>!, sparse _stride) -> Float
Computes the inner product of sparse vector x with dense vector y, with both vectors containing single-precision values.
func sparse _inner _product _sparse _double(sparse _dimension, sparse _dimension, Unsafe Pointer<Double>!, Unsafe Pointer<sparse _index>!, Unsafe Pointer<Double>!, Unsafe Pointer<sparse _index>!) -> Double
Computes the inner product of sparse vector x with sparse vector y, with both vectors containing double-precision values.
func sparse _inner _product _sparse _float(sparse _dimension, sparse _dimension, Unsafe Pointer<Float>!, Unsafe Pointer<sparse _index>!, Unsafe Pointer<Float>!, Unsafe Pointer<sparse _index>!) -> Float
Computes the inner product of sparse vector x with sparse vector y, with both vectors containing single-precision values.
func sparse _vector _add _with _scale _dense _double(sparse _dimension, Double, Unsafe Pointer<Double>!, Unsafe Pointer<sparse _index>!, Unsafe Mutable Pointer<Double>!, sparse _stride)
Scales the sparse vector x by alpha and adds the result to the dense vector y, with both vectors containing double-precision values.
func sparse _vector _add _with _scale _dense _float(sparse _dimension, Float, Unsafe Pointer<Float>!, Unsafe Pointer<sparse _index>!, Unsafe Mutable Pointer<Float>!, sparse _stride)
Scales the sparse vector x by alpha and adds the result to the dense vector y, with both vectors containing single-precision values.
func sparse _vector _norm _double(sparse _dimension, Unsafe Pointer<Double>!, Unsafe Pointer<sparse _index>!, sparse _norm) -> Double
Computes the specified norm of the double-precision sparse vector x.
func sparse _vector _norm _float(sparse _dimension, Unsafe Pointer<Float>!, Unsafe Pointer<sparse _index>!, sparse _norm) -> Float
Computes the specified norm of the single-precision sparse vector x.
typealias sparse _matrix _double
Sparse matrix opaque type for Double
.
typealias sparse _matrix _float
Sparse matrix opaque type for Float
.
struct sparse _status
The type reflecting the status of an operations.
typealias sparse _dimension
The dimension type.
typealias sparse _index
The index type.
struct sparse _norm
The norm specifier.
typealias sparse _stride
The stride type.
Create, insert values into, and extract values from a pointwise sparse matrix.
Create, insert values into, and extract values from a blockwise sparse matrix.
Operations to manage and work with sparse matrix properties.
Various utility operations for creating and working with sparse structures.