inner product

[[concept]]

Topics

const fieldName = "theme"; // Your field with links
const oldPrefix = "Thoughts/01 Themes/";
const newPrefix = "Digital Garden/Topics/";
 
const relatedLinks = dv.current()[fieldName];
 
if (Array.isArray(relatedLinks)) {
    // Map over the links, replace the path, and output only clickable links
    dv.el("span",
        relatedLinks
            .map(link => {
                if (link && link.path) {
                    let newPath = link.path.startsWith(oldPrefix)
                        ? link.path.replace(oldPrefix, newPrefix)
                        : link.path;
                    return dv.fileLink(newPath);
                }
            })
            .filter(Boolean).join(", ") 
	// Remove any undefined/null items
    );
} else {
    dv.el(dv.current().theme);
}
 
 

Inner Product

An inner product on a vector space over field is a function such that for all and all we have

  1. is real, nonnegative. Also,

  2. (2 and 3 indicate that this is linear)

  3. (ie symmetric)

If all of these hold, then is an inner product space.

over .

  • Euclidean inner product:
  • some positive definite: Note that the euclidean inner product is a special case of the second, where is the identity!

Mentions

Mentions

const modules = await cJS()
 
const COLUMNS = [  
	{ id: "Name", value: page => page.$link },  
	{ id: "Last Modified", value: page => modules.dateTime.getLastMod(page) },
];  
  
return function View() {  
	const current = dc.useCurrentFile();
// Selecting `#game` pages, for example. 
	let queryString = `@page and linksto(${current.$link})`;
	let pages = dc.useQuery(queryString);
	
	// check types
	pages = pages.filter( (p) => !modules.typeCheck.checkAll(p, current) ).sort()
	
	
	return <dc.Table columns={COLUMNS} rows={pages} paging={20}/>;  
}  
const page = dv.current();
 
let earliest;
if (page.created) {
	earliest = moment(dv.current().created.toString()).isBefore(moment(page.file.cday))
	? page.created.toString()
	: page.file.cday;
} else {
	earliest = page.file.cday;
}
 
let latest = (Array.isArray(page.modified) && page.modified.length > 0)
	? page.modified[-1]
	: page.file.mday;
 
dv.el(
	'span',
	"Created " +
		moment(earliest).format("YYYY-MM-DD") + 
		"    ֍     Last Modified " +
		moment(latest).format("YYYY-MM-DD"),
  { cls: "dv-modified" }
);