Matrix.idup

When calling .idup on an already immutable matrix, the reference to the same immutable matrix is returned. It should be safe to share the immutable memory in this manner.

  1. immutable(Matrix!Number) idup()
  2. immutable(Matrix!Number) idup()
    struct Matrix(Number)
    @safe pure nothrow
    immutable(Matrix!Number)
    idup
    immutable
    (
    )
    if (
    isNumeric!Number
    )

Return Value

Type: immutable(Matrix!Number)

A reference to this immutable matrix.

Meta