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

breeze.linalg.View.scala Maven / Gradle / Ivy

There is a newer version: 1.0
Show newest version
package breeze.linalg

/**
 * Trait used for methods that can return a view or a copy.
 * @author dlwh
 */
sealed trait View

//ToDo 3: Could View be made part of the Opts hierarchy for options?
object View {
  implicit def viewPreferenceFromBoolean(b: Boolean) = if (b) Require else Copy

  case object Require extends View
  case object Copy extends View
  case object Prefer extends View

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy