Header menu logo FsSpreadsheet

FsSparseMatrix<'T> Type

A FsSparseMatrix

Constructors

Constructor Description

FsSparseMatrix(defaultEmptyValue, sparseValues, sparseRowOffsets, ncols, columnValues)

Full Usage: FsSparseMatrix(defaultEmptyValue, sparseValues, sparseRowOffsets, ncols, columnValues)

Parameters:
    defaultEmptyValue : 'T
    sparseValues : 'T array
    sparseRowOffsets : int array
    ncols : int
    columnValues : int array

Returns: FsSparseMatrix<'T>
defaultEmptyValue : 'T
sparseValues : 'T array
sparseRowOffsets : int array
ncols : int
columnValues : int array
Returns: FsSparseMatrix<'T>

Instance members

Instance member Description

this[i, j]

Full Usage: this[i, j]

Parameters:
    i : int
    j : int

Returns: 'T
i : int
j : int
Returns: 'T

this.MaxIndexForRow

Full Usage: this.MaxIndexForRow

Parameters:
    i : int

Returns: int
i : int
Returns: int

this.MinIndexForRow

Full Usage: this.MinIndexForRow

Parameters:
    i : int

Returns: int
i : int
Returns: int

this.NumCols

Full Usage: this.NumCols

Returns: int
Returns: int

this.NumRows

Full Usage: this.NumRows

Returns: int
Returns: int

this.SparseColumnValues

Full Usage: this.SparseColumnValues

Returns: int array
Returns: int array

this.SparseRowOffsets

Full Usage: this.SparseRowOffsets

Returns: int array
Returns: int array

this.SparseValues

Full Usage: this.SparseValues

Returns: 'T array
Returns: 'T array

Static members

Static member Description

FsSparseMatrix.init emptyValue maxi maxj s

Full Usage: FsSparseMatrix.init emptyValue maxi maxj s

Parameters:
    emptyValue : 'T
    maxi : int
    maxj : int
    s : (int * int * 'T) seq

Returns: FsSparseMatrix<'T>

Creates a matrix from a sparse sequence

emptyValue : 'T
maxi : int
maxj : int
s : (int * int * 'T) seq
Returns: FsSparseMatrix<'T>

FsSparseMatrix.toArray2D m

Full Usage: FsSparseMatrix.toArray2D m

Parameters:
Returns: 'T[,]

Returns the SparseMatrix as Array2D

m : FsSparseMatrix<'T>
Returns: 'T[,]

Type something to start searching.