Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newMatrix (0.08 sec)

  1. src/math/big/hilbert_test.go

    		panic("index out of range")
    	}
    	a.a[i*a.m+j] = x
    }
    
    func newMatrix(n, m int) *matrix {
    	if !(0 <= n && 0 <= m) {
    		panic("illegal matrix")
    	}
    	a := new(matrix)
    	a.n = n
    	a.m = m
    	a.a = make([]*Rat, n*m)
    	return a
    }
    
    func newUnit(n int) *matrix {
    	a := newMatrix(n, n)
    	for i := 0; i < n; i++ {
    		for j := 0; j < n; j++ {
    			x := NewRat(0, 1)
    			if i == j {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.9K bytes
    - Viewed (0)
Back to top