aboutsummaryrefslogblamecommitdiff
path: root/src/main/scala/scalam/LowPriorityImplicits.scala
blob: 6014053c9f130293cd65355ced64c68b4916b364 (plain) (tree)
1
2
3
4
5
6
7




                                
                                                                                                         
                            




                                                
                                                                                               




                                                                     
                                                                                     
 
 
package scalam

import breeze.linalg.DenseVector
import scalam.collection._

/** 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: ClassManifest](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: ClassManifest](w: WrappedDenseVector[A]) = w.self

}