All Downloads are FREE. Search and download functionalities are using the official Maven repository.

axle.algebra.package.scala Maven / Gradle / Ivy

The newest version!

package axle

import axle.algebra.EnrichedMetricSpace
import spire.algebra.MetricSpace
import axle.matrix.JblasMatrixModule

// http://en.wikipedia.org/wiki/Algebraic_structure

package object algebra {

//  def ∅[T](implicit m: Monoid[T]): T = m.id

//  implicit def toIdent[A](a: A): Identity[A] = new Identity[A] {
//    lazy val value = a
//  }
//
//  implicit def toMA[M[_], A](ma: M[A]): MA[M, A] = new MA[M, A] {
//    val value = ma
//  }

  implicit def enrichMetricSpace[T: Manifest](space: MetricSpace[T, Double]): EnrichedMetricSpace[T] =
    new EnrichedMetricSpace(space) with JblasMatrixModule

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy