r - Handling matrices using Brobdingnag package -


i need build matrix extremely small entries. far realized fastest way define kind of matrix need is:

  1. define vectorized function of coordinates:

    func = function(m,n){...} 
  2. combine every possible coordinate using outer:

    matrix = outer(1:100,1:100,fun=func) 

having deal extremely small numbers work in func's environment using brob numbers, output therefore of same type of brob:

typeof(func(0:100,0:100) ) [1] "s4" 

if directly plug 2 vectors 0:100 in function func returns vector of brobs if try use outer error:

error in outer(1:100, 1:100, fun = func) : invalid first argument 

i suppose because package brobdingnag can somehow deal vectors not matrices. right? there way make work?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -