Learn R Programming

modello (version 0.1.1)

invMat.modello_number: Number Inverse Matrix

Description

Calculates the inverse matrix

Usage

# S3 method for modello_number
invMat(A)

# S3 method for matrix invMat(A)

invMat(A)

Arguments

A

a 'numeric' or a reference object of class 'number'

Value

Returns a 'numeric' or reference object of class 'number'

Examples

Run this code
# NOT RUN {
modello.init(10, 10, 10, 10)
## For modello_number matrices
x = number(diag(0.1, 3))
ix = invMat(x)
print(ix)
print(ix$v)
modello.close()
## For matrices
x = diag(0.1, 3)
ix = invMat(x)
print(ix)
# }

Run the code above in your browser using DataLab