struct LA::Utils::LUMatrix(T)

Overview

Struct holding lu-decomposition of a matrix

Can be used to solve linear equations

Defined in:

linalg/lu.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(a : LA::Matrix(T), ipiv : Slice(Int32)) #

[View source]

Instance Method Detail

def a : Matrix(T) #

L and U matrices packed in one matrix


[View source]
def ipiv : Slice(Int32) #

indices of permutations


[View source]
def size #

Returns size of a system


[View source]
def solve(b, transpose = LUTranspose::None, *, overwrite_b = false) #

Solves A*x = b equations system with given b and returns x

transpose allows to solve A.t * x = b and A.conjt * x = b systems instead

if overwrite_b is true, b will be overriden in process of calculation

Uses getrs LAPACK routine


[View source]