blob: 81ee4809831fb0edf382328af0bceebaaa2573b6 (
plain) (
tree)
|
|
package scalam
import breeze.linalg.DenseVector
import scalam.collection._
import scala.reflect.ClassTag
import scala.language.implicitConversions
/** Defines implicit conversions with a lower priority than those found in [[scalam]]'s package object.*/
trait LowPriorityImplicits {
/**
* Wraps the given dense vector to a sequence.
* @see scalam.collection.WrappedDenseVector
*/
implicit def wrapDenseVector[A: ClassTag](v: DenseVector[A]) = new WrappedDenseVector(v)
/**
* Unwraps the given wrapped dense vector to a normal dense vector.
* @see scalam.collection.WrappedDenseVector
*/
implicit def unwrapDenseVector[A: ClassTag](w: WrappedDenseVector[A]) = w.self
}
|