class GSL::DenseMatrix

Defined in:

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

Constructors

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.eye(size : Int32) : DenseMatrix #

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

[View source]
def self.new(another : SparseMatrix) #

[View source]

Instance Method Detail

def *(v : Vector) : Vector #

[View source]

[View source]
def *(n : Int32 | Float64) : DenseMatrix #

[View source]
def +(n : DenseMatrix) : DenseMatrix #

[View source]
def +(n : Int32 | Float64) : DenseMatrix #

[View source]

[View source]
def -(n : Int32 | Float64) : DenseMatrix #

[View source]
def /(n : Int32 | Float64) : DenseMatrix #

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

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

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

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

[View source]
def add!(another : SparseMatrix) #

[View source]
def clone : GSL::DenseMatrix #

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

[View source]
def empty? #

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

[View source]
def has_neg? #

[View source]
def head #

[View source]
def i : DenseMatrix #

alias to inverse


[View source]
def inverse : DenseMatrix #

[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 : DenseMatrix #

[View source]
def max #

[View source]
def max_index #

[View source]
def min #

[View source]
def min_index #

[View source]
def minmax #

[View source]
def neg? #

[View source]
def norm1 #

[View source]
def pos? #

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

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

[View source]
def set_all(n : Float64 | Int32) #

[View source]
def set_col(c : Int32, v : Vector) : Int32 #

[View source]
def set_identity #

[View source]
def set_row(r : Int32, v : Vector) : Int32 #

[View source]
def set_zero #

[View source]
def sub!(another : SparseMatrix) #

[View source]
def tail #

[View source]
def to_sparse(typ = SparseMatrix::Type::COO) #

[View source]
def transpose : DenseMatrix #

[View source]