Documentation
¶
Overview ¶
Package m2c implements complex matrices 2x2.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CannotInvertMatrixError ¶
type CannotInvertMatrixError struct {
// contains filtered or unexported fields
}
CannotInvertMatrixError complains when the argument of the inversion operator is a matrix with determinant equal to zero.
func (*CannotInvertMatrixError) Error ¶
func (e *CannotInvertMatrixError) Error() string
type Matrix ¶
type Matrix struct {
A, B, C, D complex128
}
A matrix with two rows, two columns and complex numbers as values.
func Inv ¶
Inv inverts given matrix respect to multiplication. If it has determinant equal to zero, an error will be returned as second argument.
func Scalar ¶
func Scalar(m Matrix, c complex128) Matrix
Scalar multiplies matrix by a complex number.
Click to show internal directories.
Click to hide internal directories.