Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Abs

  • Parameters

    Returns Real[]

DotProduct

  • Parameters

    Returns Real

Exp

  • Parameters

    Returns Real[]

Log

  • Parameters

    Returns Real[]

Norm2

  • Parameters

    Returns Real

Pow

  • Parameters

    Returns Real[]

Sqrt

  • Parameters

    Returns Real[]

add

  • Parameters

    Returns Real[]

addScalar

  • Parameters

    Returns Real[]

assign

  • x = y by reference used in function parameter assignment

    Parameters

    Returns void

back

  • back<T>(a: T[]): T
  • last element

    Type parameters

    • T

    Parameters

    • a: T[]

    Returns T

clear

  • clear(a: any[]): void
  • Parameters

    • a: any[]

    Returns void

clone

  • clone(a: any[]): any[]
  • clone Array without reference

    Parameters

    • a: any[]

    Returns any[]

copy

  • copy<T>(from: T[], to: T[], toStart?: Size, fromStart?: Size, fromEnd?: Size): void
  • assuming to array is already initialized

    Type parameters

    • T

    Parameters

    • from: T[]
    • to: T[]
    • Default value toStart: Size = 0
    • Default value fromStart: Size = 0
    • Default value fromEnd: Size = from.length

    Returns void

div

  • Parameters

    Returns Real[]

divScalar

  • Parameters

    Returns Real[]

empty

  • empty(a: any[]): boolean
  • Parameters

    • a: any[]

    Returns boolean

equal

  • equal(a1: Real[], a2: Real[], compFun?: Function): boolean
  • Parameters

    • a1: Real[]
    • a2: Real[]
    • Default value compFun: Function = null

    Returns boolean

fromSizeValue

  • fromSizeValue(size: Size, value: any): any[]
  • Parameters

    • size: Size
    • value: any

    Returns any[]

fromSizeValueIncrement

  • Parameters

    Returns Real[]

insertArray

  • insertArray<T>(a1: T[], start: Size, a2: T[]): void
  • insert one array's elements into another array

    https://stackoverflow.com/questions/7032550/ javascript-insert-an-array-inside-another-array

    Type parameters

    • T

    Parameters

    • a1: T[]
    • start: Size
    • a2: T[]

    Returns void

mul

  • Parameters

    Returns Real[]

mulScalar

  • Parameters

    Returns Real[]

negate

  • Parameters

    Returns Real[]

partial_sort

  • Parameters

    Returns void

partial_sum

resize

  • resize(a: any[], newSize: Size, defaultValue?: Real): void
  • Parameters

    • a: any[]
    • newSize: Size
    • Default value defaultValue: Real = null

    Returns void

size

  • size(a: any[]): Size
  • Parameters

    • a: any[]

    Returns Size

sub

  • Parameters

    Returns Real[]

subScalar

  • Parameters

    Returns Real[]

sum