Skip to content

Latest commit

 

History

History
245 lines (122 loc) · 1.61 KB

Vector.pod

File metadata and controls

245 lines (122 loc) · 1.61 KB

NAME

Sidef::Types::Array::Vector

DESCRIPTION

This class implements ...

SYNOPSIS

var obj = Vector(...)

INHERITS

Inherits methods from:

* Sidef::Types::Array::Array

METHODS

&

a & b

Returns the

Aliases: and

*

a * b

Returns the

Aliases: mul

**

a ** b

Returns the

Aliases: pow

+

a + b

Returns the

Aliases: add

-

a - b

Returns the

Aliases: sub

/

a / b

Returns the

Aliases: ÷, div

^

a ^ b

Returns the

Aliases: xor

|

a | b

Returns the

Aliases: or

abs

v.abs

Returns the

atan2

v1.atan2(v2)

Returns the

ceil

self.ceil

Returns the

chebyshev_dist

v1.chebyshev_dist(v2)

Returns the

dist

v1.dist(v2)

Returns the

dist_norm

v1.dist_norm(v2)

Returns the

floor

self.floor

Returns the

manhattan_dist

v1.manhattan_dist(v2)

Returns the

manhattan_norm

v.manhattan_norm

Returns the

neg

v1.neg

Returns the

new

self.new

Returns the

Aliases: call

norm

v.norm

Returns the

not

v1.not

Returns the

round

self.round(digits)

Returns the

to_a

v.to_a

Returns the

Aliases: to_array

to_s

self.to_s

Returns the

Aliases: dump, to_str

zero

Vector.zero(n)

Returns the