tp {lazy.symbolic}R Documentation

Transposition of a Fully Symbolic Partitioned Matrix

Description

Transposition of a Fully Symbolic Partitioned Matrix

Usage

tp(A, func = "t", func2 = t)

Arguments

A

fully symbolic partitioned matrix

func

= "transp" if necessary.

func2

= transp if necessary.

Details

tp is defined as
map( func, func2(A) )

If A does not have fullsymb attribute nore SMdim attribute, that is,
is.null(attributes(A)$fullsymb) == TRUE, and
is.null(attributes(A)$SEdim) == TRUE,
tp is equal to t.
If A has SMdim attribute, tp is equal to transp.

Examples

# Standard Matrix
A=demomat(2,3,root="a")
tA=tp(A)
Printb(tA)

# Semi Symbolic Partitioned Matrix:  Super Matrix with SMdim attributes
A=demomat(c(2,3),c(3,4),root="a")
Printb(A)
tA=tp(A)
Printb(tA)

# Fully Symbolic Partitioned Matrix:
# No SMdim attribute but fullsymb attribute
Ap=demomat(2,3,root="A", fullsymb=1)
Printb(Ap)
tAp=tp(Ap)
Printb(tAp)

tp(demomat(3,3,root="A", fullsymb=1,shape="diag"))


[Package lazy.symbolic version 0.1.4 ]