make_basis: Generate a random basis for R^n

View source: R/make_basis.R

make_basisR Documentation

Generate a random basis for R^n

Description

Generate a random basis for R^n

Usage

make_basis(n)

Arguments

n

The dimension of the basis generated

Value

A n by n matrix where each column is a basis vector

Examples

library(dasc2594)
B <- make_basis(4)
# check that columns of B are linearly independent
all.equal(rref(B), diag(4))

jtipton25/dasc2594 documentation built on Oct. 7, 2022, 3:46 p.m.