slash.vector

package slash.vector

Members list

Type members

Classlikes

object Format

Attributes

Companion
trait
Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Format.type
trait Format

Attributes

Companion
object
Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CSV.type
object Default.type
object Indexed.type
object TSV.type
object Vec

Attributes

Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Vec.type
object Vec2

Created by clifton on 1/10/17.

Created by clifton on 1/10/17.

Attributes

Source
Vec2.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Vec2.type
case class VecBounds[N <: Int](min: Vec[N], MAX: Vec[N])

Attributes

Source
VecBounds.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object VectorSpace

Attributes

Companion
class
Source
VectorSpace.scala
Supertypes
class Object
trait Matchable
class Any
Self type
opaque class VectorSpace[N0 <: Int](using dt: ValueOf[N0])

Attributes

Companion
object
Source
VectorSpace.scala
Supertypes
class Object
trait Matchable
class Any
case class WeightedVec[N <: Int](unweighted: Vec[N], var w: Double)

Attributes

Source
WeightedVec.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

opaque type Vec[N <: Int]

Attributes

Source
package.scala

Value members

Concrete methods

inline def dimensionCheck(supplied: Int, required: Int): Unit

Attributes

Source
package.scala
inline def dimensionCheck(values: Array[Double], requiredDimension: Int): Array[Double]

Attributes

Source
package.scala

Exports

Defined exports

inline def apply[N <: Int](d: Double*): Vec[N]
Exported from Vec

Varargs factory for high dimensional Vector literals. Note: This is not an efficient way to create a vector.

Varargs factory for high dimensional Vector literals. Note: This is not an efficient way to create a vector.

Type parameters

N

intended vector dimension

Value parameters

d

vector value literals

Attributes

Returns

a Vec[N] consisting of the specified Double valued literals.

Source
package.scala
inline def apply[N <: Int](a: Array[Double]): Vec[N]
Exported from Vec

Attributes

Source
package.scala
def blend[N <: Int](alpha: Double, v0: Vec[N], v1: Vec[N]): Vec[N]
Exported from Vec

Attributes

Source
package.scala
inline def fill[N <: Int](d: Double): Vec[N]
Exported from Vec

Attributes

Source
package.scala
def mean[N <: Int]([v₀v₁⋯v₍ₙ₋₁₎]: Array[Vec[N]]): Vec[N]
Exported from Vec

Attributes

Source
package.scala
def mean[N <: Int]([v₁v₂⋯vₙ]: Vec[N]*): Vec[N]
Exported from Vec

Attributes

Source
package.scala
def midpoint[N <: Int](v0: Vec[N], v1: Vec[N]): Vec[N]
Exported from Vec

Attributes

Source
package.scala
inline def ones[N <: Int](using ValueOf[N]): Vec[N]
Exported from Vec

Attributes

Source
package.scala
inline def random[N <: Int](min: Double, MAX: Double, r: Random): Vec[N]
Exported from Vec

Attributes

Source
package.scala
inline def random[N <: Int](min: Double, MAX: Double): Vec[N]
Exported from Vec

Attributes

Source
package.scala
inline def random[N <: Int](MAX: Double): Vec[N]
Exported from Vec

Attributes

Source
package.scala
inline def random[N <: Int]: Vec[N]
Exported from Vec

Attributes

Source
package.scala
inline def tabulate[N <: Int](f: Int => Double): Vec[N]
Exported from Vec

Attributes

Source
package.scala
inline def zeros[N <: Int](using ValueOf[N]): Vec[N]
Exported from Vec

Attributes

Source
package.scala