class GSL::SparseMatrix
- GSL::SparseMatrix
- GSL::Matrix
- GSL::Object
- Reference
- Object
Defined in:
gsl/base/sparse_matrix.crgsl/maths/basic/sparse_matrix.cr
Constructors
- .new(nrows : Int32, ncols : Int32, type : Type, non_zero = (nrows * ncols) / 10)
- .new(nrows : Int32, ncols : Int32)
- .new(another : SparseMatrix, type : Type = another.type)
- .new(another : DenseMatrix, type : Type = Type::COO)
Class Method Summary
Instance Method Summary
- #*(n : Int32 | Float64) : SparseMatrix
- #*(v : Vector)
- #*(m : SparseMatrix)
- #==(m : GSL::SparseMatrix)
- #[](row : Int32, column : Int32) : Float64
- #[]=(row : Symbol | Int32, column : Symbol | Int32, x : Int32 | Float64)
- #clone : SparseMatrix
- #column(c : Int32 | Symbol) : Vector
- #convert(type : Type)
- #get(row, column) : Float64
-
#lib_free
This function must call corresponding gsl_*_free to free internal pointer
- #like : SparseMatrix
- #min_index
- #minmax
- #non_zero : Int32
- #norm1
- #row(r : Int32 | Symbol) : Vector
- #scale_columns!(v)
- #scale_rows!(v)
- #set(row, column, x)
- #set_zero
- #to_dense
- #transpose : SparseMatrix
- #transpose!
- #type
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
Class Method Detail
def self.solve(a : SparseMatrix, b : Vector, *, guess : Vector | Nil = nil, eps = 1e-6, max_iterations = 10, subspace_size = 0)
#
Instance Method Detail
def lib_free
#
Description copied from class GSL::Object
This function must call corresponding gsl_*_free to free internal pointer