abstract struct Number

Overview

The top-level number type.

Included Modules

Defined in:

matrix/num_helpers.cr

Instance Method Summary

Instance Method Detail

def *(m : LA::Matrix) #

Multiply scalar to matrix


[View source]
def +(m : LA::Matrix) #

Adds scalar to matrix


[View source]
def -(m : LA::Matrix) #

Substract matrix from scalar


[View source]
def conj #

Returns self

Because complex conjurgate for real numbers is number itself. This method is useful to streamline work with complex and real numbers


[View source]