code
stringlengths
10
1.34M
language
stringclasses
1 value
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
package queue import ( "flag" "fmt" ) var ( nodes []*Node queue []string //done chan(*Task) ) func init() { } func Main() { flag.Parse() setup() PrintInfo() } func PrintInfo() { PrintNodes() } func PrintNodes() { for _, n := range nodes { fmt.Println(n) } } func setup() { localhost := NewNode("...
Go
package queue import ( "fmt" ) type GPU struct { megabytes int busy bool } func NewGPU(megabytes int) *GPU { return &GPU{megabytes, false} } func (g *GPU) String() string { return fmt.Sprint(g.megabytes, "MB,", busyStr(g.busy)) } func busyStr(busy bool) string { if busy { return "busy" } return "fre...
Go
package queue import () type Task struct { command string }
Go
package queue import ( "fmt" ) type Node struct { host string gpus []*GPU } func NewNode(host string) *Node { n := new(Node) n.host = host n.gpus = make([]*GPU, 0) return n } func (n *Node) AddGPU(g *GPU) { n.gpus = append(n.gpus, g) } func (n *Node) String() string { return n.host + ":" + fmt.Sprint(n.gp...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator // Copyright 2010 Arne Vansteenkiste // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // Note that you are welcom...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
package dump import ( "hash" "hash/crc64" "io" "math" "unsafe" ) var table = crc64.MakeTable(crc64.ISO) const ( CRC_ENABLED = true CRC_DISABLED = false ) // Writes data frames in dump format. // Usage: // w := NewWriter(out, CRC_ENABLED) // // set desired w.Header fields // w.WriteHeader() // w.WriteDat...
Go
package dump import ( "fmt" //"nimble-cube/core" "hash" "hash/crc64" "io" "math" "unsafe" ) // Reads successive data frames in dump format. type Reader struct { Frame // Frame read by the last Read(). in io.Reader crc hash.Hash64 } func NewReader(in io.Reader, enableCRC bool) *Reader { r := new(Reade...
Go
package dump import ( "fmt" ) // Magic number const MAGIC = "#dump002" // Precision identifier const ( FLOAT32 = 4 ) // Header+data frame. type Frame struct { Header Data []float32 CRC uint64 Bytes int64 // Total number of bytes read. Err error // Stores the latest I/O error, if any. } // Header for du...
Go
/* Binary output format. Header contains all 64-bit words. Strings are 8 bytes long. Magic number "#dump002" Components int MeshSize [3]int MeshStep [3]float64 MeshUnit string Time float64 TimeUnit string DataLabel string DataUnit string Precission uint64 DATA crc64 of DATA and header u...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2010 Arne Vansteenkiste // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // Note that you are welco...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2010 Arne Vansteenkiste // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // Note that you are welco...
Go
// This file is part of MuMax, a high-perfomrance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// This file is part of MuMax, a high-performance micromagnetic simulator. // Copyright 2011 Arne Vansteenkiste and Ben Van de Wiele. // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // N...
Go
// Copyright 2010, 2012 Arne Vansteenkiste // Use of this source code is governed by the GNU General Public License version 3 // (as published by the Free Software Foundation) that can be found in the license.txt file. // Note that you are welcome to modify this code under the condition that you do not remove any ...
Go
package test //#include "libmumax2.h" import "C" import ( "mumax/gpu" "unsafe" ) func init() { //fmt.Println("loaded test.mod") } // DEBUG: sets all values to their X (i) index func SetIndexX(dst *gpu.Array) { partSize := dst.PartSize() C.setIndexX( (**C.float)(unsafe.Pointer(&(dst.Pointers()[0]))), C.int(...
Go
package main import _ "module/test"
Go
package test
Go
/* * jQuery File Upload Plugin GAE Go Example 3.1.0 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ package app import ( "appengine" "appengine/blobstore" "appengine/i...
Go
//Copyright 2011 Siyabonga Dlamini (siyabonga.dlamini@gmail.com). All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions //are met: // // 1. Redistributions of source code must retain the above copyright // n...
Go
//Copyright 2011 Siyabonga Dlamini (siyabonga.dlamini@gmail.com). All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions //are met: // // 1. Redistributions of source code must retain the above copyright /...
Go
//Copyright 2011 Siyabonga Dlamini (siyabonga.dlamini@gmail.com). All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions //are met: // // 1. Redistributions of source code must retain the above copyright // n...
Go
//Copyright 2011 Siyabonga Dlamini (siyabonga.dlamini@gmail.com). All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions //are met: // // 1. Redistributions of source code must retain the above copyright /...
Go
//Copyright 2011 Siyabonga Dlamini (siyabonga.dlamini@gmail.com). All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions //are met: // // 1. Redistributions of source code must retain the above copyright // n...
Go
//Copyright 2011 Siyabonga Dlamini (siyabonga.dlamini@gmail.com). All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions //are met: // // 1. Redistributions of source code must retain the above copyright // n...
Go
//Copyright 2011 Siyabonga Dlamini (siyabonga.dlamini@gmail.com). All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions //are met: // // 1. Redistributions of source code must retain the above copyright /...
Go
// //A RESTful style web-services framework for the Go language. </br> //Creating services in Go is straight forward, GoRest? takes this a step further by adding a layer that //makes tedious tasks much more automated and avoids regular pitfalls. <br/> //This gives you the opportunity to focus more on the task at ...
Go