Vec_d.kl

Types

Vec_d (struct)

The Vec_d represents a dense vector.

/*
** Example: Vec_d
*/

// create a 7-element vector
Vec_d vec(7);

Members

Float64[] vals  

Methods

  Vec_d ( in Integer size )
  Vec_d ( in Vec_d that )
  Vec_d ()
Boolean almostEqual ? ( in Vec_d other )
Boolean almostEqual ? ( in Vec_d that, in Float64 precision )
  appendDesc ? ( io String string )
Vec_d clamp ? ( in Vec_d min, in Vec_d max )
Vec_d clone ? ()
Float64 dot ? ( in Vec_d that )
Boolean equal ? ( in Vec_d that )
Float64 get ? ( in Integer ind )
UInt32 hash ? ()
Vec_d head ? ( in Integer n )
Float64 length ? ()
Float64 lengthSquared ? ()
Vec_d linearInterpolate ? ( in Vec_d that, in Float64 t )
  normalize ! ()
  resize ! ( in Integer newSize )
  set ! ( in Integer ind, in Float64 val )
  setAll ! ( in Float64 val )
  setNull ! ()
Float64 setUnit ! ()
Integer size ? ()
String sizeDesc ? ()
Vec_d sub ? ( in Integer s, in Integer e )
Vec_d unit ? ()
Integer validateSize ? ( in Vec_d that, in String desc )

Operators

  - Vec_d
Vec_d = ( Param other )