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

breeze.linalg.functions.trace.scala Maven / Gradle / Ivy

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

import breeze.generic.UFunc


/**
 * Computes the determinant of the given real matrix.
 */
object trace extends UFunc {
  implicit def canTraceUsingDiagAndSum[T, U, V](implicit diagImpl: diag.Impl[T, U], sumImpl: sum.Impl[U, V]):Impl[T, V] = {
    new Impl[T, V] {
      def apply(X: T): V = {
        sumImpl(diagImpl(X))
      }
    }
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy