MatrixOrderOptimization

smile.math.MatrixOrderOptimization
class MatrixOrderOptimization(dims: Array[Int]) extends LazyLogging

Optimizes the order of matrix multiplication chain. Matrix multiplication is associative. However, the complexity of matrix multiplication chain is not associative.

Value parameters

dims

Matrix A[i] has dimension dims[i-1] x dims[i] for i = 1..n

Attributes

Graph
Supertypes
trait LazyLogging
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val m: Array[Array[Int]]
val n: Int
val s: Array[Array[Int]]

Inherited fields

lazy protected val logger: Logger

Attributes

Inherited from:
LazyLogging