Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Vector(values: number[]): Vector

Properties

height

height: number

Protected values

values: number[]

width

width: number

Methods

*

  • Multiply the matrix by a number or by another matrix

    Parameters

    • a: Matrix | number

      The value or the matrix with which the multiplication should take place

    Returns Matrix

+

-

/

^

dot

getValues

  • getValues(): number[]

toString

  • toString(): string
  • Converts a Vector to a string. See example below:

    ╭     ╮
    │  1  │
    │  2  │
    │  3  │
    │  7  │
    │  8  │
    │  9  │
    ╰     ╯

    Returns string

Generated using TypeDoc