class GSL::SparseMatrix

Defined in:

gsl/base/sparse_matrix.cr
gsl/maths/basic/sparse_matrix.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class GSL::Matrix

[](row : Int32, column : Int32) : Float64
[](row : Symbol | Int32, column : Symbol | Int32) : Vector
[]
, abs abs, clone : self clone, column(c : Int32) : Vector column, copy copy, each_columns(&block : Vector -> _) each_columns, each_rows(&block : Vector -> _) each_rows, get(row, column) : Float64 get, inspect inspect, like : Matrix like, map_columns(&block : Vector -> _) map_columns, map_rows(&block : Vector -> _) map_rows, ncols : Int32 ncols, nrows : Int32 nrows, row(r : Int32) : Vector row, set(row, column, x) set, set_zero set_zero, shape shape, t t, transpose : self transpose

Instance methods inherited from class GSL::Object

finalize finalize, free free, pointer pointer, to_unsafe to_unsafe

Constructor Detail

def self.new(nrows : Int32, ncols : Int32, type : Type, non_zero = (nrows * ncols) / 10) #

[View source]
def self.new(nrows : Int32, ncols : Int32) #

[View source]
def self.new(another : SparseMatrix, type : Type = another.type) #

[View source]
def self.new(another : DenseMatrix, type : Type = Type::COO) #

[View source]

Class Method Detail

def self.solve(a : SparseMatrix, b : Vector, *, guess : Vector | Nil = nil, eps = 1e-6, max_iterations = 10, subspace_size = 0) #

[View source]

Instance Method Detail

def *(n : Int32 | Float64) : SparseMatrix #

[View source]
def *(v : Vector) #

[View source]
def *(m : SparseMatrix) #

[View source]
def ==(m : GSL::SparseMatrix) #

[View source]
def [](row : Int32, column : Int32) : Float64 #

[View source]
def []=(row : Symbol | Int32, column : Symbol | Int32, x : Int32 | Float64) #

[View source]
def clone : SparseMatrix #

[View source]
def column(c : Int32 | Symbol) : Vector #

[View source]
def convert(type : Type) #

[View source]
def get(row, column) : Float64 #

[View source]
def lib_free #
Description copied from class GSL::Object

This function must call corresponding gsl_*_free to free internal pointer


[View source]
def like : SparseMatrix #

[View source]
def min_index #

[View source]
def minmax #

[View source]
def non_zero : Int32 #

[View source]
def norm1 #

[View source]
def row(r : Int32 | Symbol) : Vector #

[View source]
def scale_columns!(v) #

[View source]
def scale_rows!(v) #

[View source]
def set(row, column, x) #

[View source]
def set_zero #

[View source]
def to_dense #

[View source]
def transpose : SparseMatrix #

[View source]
def transpose! #

[View source]
def type #

[View source]